Martha MigliacioAlex Wong
Published © GPL3+

Using the Pmod CLP with Arduino Uno

Application notes for Pmod CLP and Arduino Uno. In this app, the Pmod will be programmed to display text on the LCD.

BeginnerShowcase (no instructions)1 hour2,276
Using the Pmod CLP with Arduino Uno

Things used in this project

Story

Read more

Schematics

Pmod CLP and Arduino Uno Fritzing file

Fritzing file displaying the connection of the Pmod CLP to the Arduino Uno.

Pmod CLP and Arduino Uno Fritzing Image

Fritzing image displaying the connection between the Pmod CLP and Arduino Uno.

Code

Pmod CLP and Arduino Uno Code

Arduino
Using this code will program the Pmod CLP to display a message.
/************************************************************************
*
* 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
#define en 7
#define rs 6
#define d7 5
#define d6 4
#define d5 3
#define d4 2

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

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

voidloop()
{
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);
}

Credits

Martha Migliacio
5 projects • 21 followers
Contact
Alex Wong
14 projects • 55 followers
I work in Digilent and like creating projects
Contact
Thanks to Lextronics.

Comments

Please log in or sign up to comment.