• 0
Shubham Jain

Interfacing PmodCLP with arduino

Question

4 answers to this question

Recommended Posts

  • 0

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

Share this post


Link to post
Share on other sites
  • 0

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now