Here is a link to EBay for the under $6.00 each LCD modules. I bought 7 of these to use for our Robotics Club for Children. I suggest we all get one to play with.
Sounds good, it uses only 2 I/O pins and communicates via I2C. Now here is the forum part. Who can get these particular LCD units to work with a PicAxe ? So I know it works with Arduino, but we are using 18M2+. Pins 7 and 10 are all that’s needed to hook up on the 18M2+. I checked all the previous threads and none of them will work. So here is the deal can we as a group solve this little mystery?
Serial IIC/I2C/TWI 1602 lcd Character led Module Display For Arduino R3 yellow
Here is the Arduino test code:
Sounds good, it uses only 2 I/O pins and communicates via I2C. Now here is the forum part. Who can get these particular LCD units to work with a PicAxe ? So I know it works with Arduino, but we are using 18M2+. Pins 7 and 10 are all that’s needed to hook up on the 18M2+. I checked all the previous threads and none of them will work. So here is the deal can we as a group solve this little mystery?
Serial IIC/I2C/TWI 1602 lcd Character led Module Display For Arduino R3 yellow
Here is the Arduino test code:
Code:
Arduino Test Code:
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2); //set the LCD address to 0x27 for a 16 chars and 2 line display
void setup()
{
lcd.init();
lcd.backlight();
lcd.setCursor(0, 0);
lcd.print("www.b2cqshop.com ");
lcd.setCursor(0, 1);
lcd.print("Voltage: ");
lcd.setCursor(13, 1);
lcd.print("V");
}
void loop()
{
int val;
float temp;
val=analogRead(0);
temp=val/4.092;
val=(int)temp;//
lcd.setCursor(9, 1);
lcd.print(0x30+val/100,BYTE);
lcd.print(0x30+(val%100)/10,BYTE);
lcd.print('.');
lcd.print(0x30+val%10,BYTE);
delay(100);
}
Last edited by a moderator: