Jump to content
  • 0

Interfacing PmodCLP with arduino


Shubham Jain

Question

4 answers to this question

Recommended Posts

Hi @Shubham Jain,

Which demo for the Pmod CLP are you referring to? If you are referring to the "Library and MPIDE Example" that is on the Pmod CLP Resource Center, that demo has only been designed for the Pro MX4, so as is it is not pin compatible with an Arduino Uno. If you are not using that demo, which demo are using and how do you have it set up?

Thanks,
JColvin

Link to comment
Share on other sites

Hi @Shubham Jain,

Finally figured out the issue which I should have noticed earlier. The RS and E pins are swapped, so swapping the wires around should work (since RS is pin 1 on header J2 and E is pin 3 on header J2).

Alternatively, this is the code I am using that is currently running successfully on the Pmod CLP.

Spoiler

 


/************************************************************************
*
* Test of the Pmod module
*
*************************************************************************
* Description: Pmod_CLP
* Message "Test module Pmod Digilent partner of Lextronic" will be show on LCD.
*
* Material
* 1. Arduino Uno
* 2. Pmod CLP
*
**************************************************/
// Affectation of pins
uint8_t en = 11;
uint8_t rs = 12;
uint8_t d7 = 2;
uint8_t d6 = 3;
uint8_t d5 = 4;
uint8_t d4 = 5;

#include <LiquidCrystal.h> // Add LiquidCrystal library
LiquidCrystal lcd(rs, en, d4, d5, d6, d7); // creation of object LCD

void setup()
{
lcd.begin(16,2); // initialization of LCD object
}

void loop()
{
lcd.clear(); // Erase screen
lcd.print("Test module Pmod");
lcd.setCursor(4,1); // cursor is on line 2 and columm 5
lcd.print("Digilent");
delay(3000);
lcd.clear();
lcd.setCursor(1,0); // cursor is on line 1 and columm 2
lcd.print("partner of");
lcd.setCursor(3,1); // cursor is on line 2 and columm 4
lcd.print("Lextronic");
delay(3000);
}

 

 

 

 

Let me know if you have any questions about this.

Thanks,
JColvin

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...