Grove Starter Kit Serial LCD v 1.1b - I Can't Get It To Work

Grove is a modulated, ready-to-use tool set.
Much like Lego, it takes a building block approach to assembling electronics.

Moderators: lily.li, violet, jeremy882, crail.lyu969

Post Reply
california-ken
Pre-kindergarten
Pre-kindergarten
Posts: 5
Joined: Sun Jan 01, 2012 3:18 am
Are you a staff member of seeedstudio?: no
Which products/projects are your favorite?: Electronic Brick

Grove Starter Kit Serial LCD v 1.1b - I Can't Get It To Work

Post by california-ken » Sat Jan 28, 2012 5:31 am

This is my second post on this issue.

My hardware/software setup: Ardunio UNO R3, Grove Shield v 1.2, Grove Serial LCD v 1.1b, Ardunio 1.0 software.

My program code:

#include <SoftwareSerial.h>

// include the library code:
// #include <SerialLCD.h>
// #include <NewSoftSerial.h> //this is a must

// initialize the library
SerialLCD slcd(11,12);//this is a must, assign soft serial pins

void setup() {
// set up :
slcd.begin();
// Print a message to the LCD.
slcd.print("hello, world!");
}

void loop() {
// Turn off the blinking cursor:
slcd.noBlink();
delay(1000);
// Turn on the blinking cursor:
slcd.blink();
delay(1000);
}

I have read several posts on this subject and downloaded all of the LCD library files that were mentioned. I now have several

".h" and ".cpp" files in my Ardinio/libraries/LiquidCrystal folder.

I can't reprint error messages since they vary greatly with the liobrary(ies) used.

Can someone provide with the the correct ".zip" file(s) contining the library(ies) for used with the 1.1b serial LCD? Are files other than ".h" and ".cpp required in the Ardinio/libraries/LiquidCrystal folder?

Also, the 1.1b LCD module has only one 4-pin connector. Where do I connect the cable on version 1.2 shield?

Thank you.

Ken

schmron
Elementary-1
Elementary-1
Posts: 145
Joined: Mon Dec 05, 2011 6:12 am

Re: Grove Starter Kit Serial LCD v 1.1b - I Can't Get It To

Post by schmron » Sat Jan 28, 2012 6:07 am

You need just this library:

https://github.com/downloads/fschaefer/ ... 120107.zip
(only for arduino 1.0!)

Extract it (all files in directory: SerialLCD) and copy this in the arduino library folder.
In arduino (restart if it is running) click button "open" and choose SerialLCD->HelloWorld.
You can connect it to all digital ports on the grove shield (1-12). In the example connector 11 (connector 11 uses pin 11 and 12) is used.
If you would use another pin you must edit the line 19 in the sketch.

For example if you connect the lcd to port 8 you must change the line:

Code: Select all

SerialLCD slcd(8,9);
Upload sketch.
Ready :)
Best regards from Vienna/Austria
Rony

california-ken
Pre-kindergarten
Pre-kindergarten
Posts: 5
Joined: Sun Jan 01, 2012 3:18 am
Are you a staff member of seeedstudio?: no
Which products/projects are your favorite?: Electronic Brick

Re: Grove Starter Kit Serial LCD v 1.1b - I Can't Get It To

Post by california-ken » Sat Jan 28, 2012 8:49 am

Thank you Scehmron,

I have multiple "HelloWorld" files in folders and subfolers under libraries. Will you provide me a listing of the correct one? I've tried several with no luck.

It must be beautiful in Austria this time of year!!!

schmron
Elementary-1
Elementary-1
Posts: 145
Joined: Mon Dec 05, 2011 6:12 am

Re: Grove Starter Kit Serial LCD v 1.1b - I Can't Get It To

Post by schmron » Sun Jan 29, 2012 8:54 pm

california-ken wrote:Thank you Scehmron,

I have multiple "HelloWorld" files in folders and subfolers under libraries. Will you provide me a listing of the correct one? I've tried several with no luck.
Put your "addon" librarys in your sketch folder (in your user folder).
I have added a file with original content of the library folder (in the arduino installation path).
It must be beautiful in Austria this time of year!!!
Yes, but not here in vienna :(
Best regards from Vienna/Austria
Rony

california-ken
Pre-kindergarten
Pre-kindergarten
Posts: 5
Joined: Sun Jan 01, 2012 3:18 am
Are you a staff member of seeedstudio?: no
Which products/projects are your favorite?: Electronic Brick

Re: Grove Starter Kit Serial LCD v 1.1b - I Can't Get It To

Post by california-ken » Mon Jan 30, 2012 4:41 am

Schmron,

I'm sorry to bother you again but now I'm reaaly confused. Are you saying that any supplemental libraries I download and extract should be extracted to my sketch folder and not the Ardunio/libraries/liquidcrystal folder?

I have multiple sketch folders to segregate the sketches by type, hardware and function. Here is a text listing of my folder structure.

FOLDER D:\Arduino Programming\
FOLDER D:\Arduino Programming\arduino-1.0\
FOLDER D:\Arduino Programming\Brick Cookbook Sketches\
FOLDER D:\Arduino Programming\examples\
FOLDER D:\Arduino Programming\Ken's Sketches\

Should I put all my sketches in one folder and add the supplemental libraries to it?
How do I tell Ardunio where to find the supplemental sketches? Does it assume that they will be in same folder as the sketch?

Should I clean out my Ardunio/Libraries/LiquidCrystal folder? The easiest way to that would be to delete the entire Adrino 1.0 folder and reinstall the software. Should I do it?

Using the LCD with the electronic brick was so easy. I wish I could say the same for the Grove. I want to get the Grove working since there are many moe sensors for the Grove.

Thank you so much for the time your taking to help me!!!

Ken

california-ken
Pre-kindergarten
Pre-kindergarten
Posts: 5
Joined: Sun Jan 01, 2012 3:18 am
Are you a staff member of seeedstudio?: no
Which products/projects are your favorite?: Electronic Brick

Re: Grove Starter Kit Serial LCD v 1.1b - I Can't Get It To

Post by california-ken » Mon Jan 30, 2012 9:37 am

Hoo Ray!!!! I got it to work!!!

I stripped everything from my Ardunio/Libraries/LiquidCrystal folder except for 6 files. These are the "'h" and ".cpp" files for LiquidCrystal, SerialLCD and SoftwareSerial. My Ardunio code only calls for the SerialLCD library. It must call for the others.

This is my code that works:

// #include <LiquidCrystal.h>
// #include <NewSoftSerial.h>
#include <SerialLCD.h>
// #include <SoftwareSerial.h>

/*

Although not explicitly referenced in this code, the ".h" and ".cpp" files for LiquidCrystal,
SoftwareSerial and serialLCD must be in the Ardunio/Libraries/LiquidCrystal folder.

SerialLCD Library - Hello World

Demonstrates the use a 16x2 LCD SerialLCD driver from Seeedstudio.

This sketch prints "Hello, Seeeduino!" to the LCD
and shows the time.

Library originally added 16 Dec. 2010
by Jimbo.we
http://www.seeedstudio.com
*/


// initialize the library
// The Grove ditial socket 11 uses digital pins 11 and 12; see the next line.
SerialLCD slcd(11,12);//this is a must, assign soft serial pins

void setup() {
// set up
slcd.begin();
// Print a message to the LCD.
slcd.print("hello, world!");
}

void loop() {
// set the cursor to column 0, line 1
// (note: line 1 is the second row, since counting begins with 0):
slcd.setCursor(0, 1);
// print the number of seconds since reset:
slcd.print(millis()/1000,DEC);
}

This code is a slightly modified version of the "Hello World" eaample in the SerialLCD_ardunio_1.0_20120107.zip file.

Thanks again Schmron.

Ken

schmron
Elementary-1
Elementary-1
Posts: 145
Joined: Mon Dec 05, 2011 6:12 am

Re: Grove Starter Kit Serial LCD v 1.1b - I Can't Get It To

Post by schmron » Mon Jan 30, 2012 10:38 am

california-ken wrote:Schmron,

I'm sorry to bother you again but now I'm reaaly confused. Are you saying that any supplemental libraries I download and extract should be extracted to my sketch folder and not the Ardunio/libraries/liquidcrystal folder?
Yes, use the sketch folder.
Add folder "libraries" to your sketch folder and put your library folders into it.
If you take it clean you can prevent issues.
I have multiple sketch folders to segregate the sketches by type, hardware and function. Here is a text listing of my folder structure.

FOLDER D:\Arduino Programming\
FOLDER D:\Arduino Programming\arduino-1.0\
FOLDER D:\Arduino Programming\Brick Cookbook Sketches\
FOLDER D:\Arduino Programming\examples\
FOLDER D:\Arduino Programming\Ken's Sketches\

Should I put all my sketches in one folder and add the supplemental libraries to it?
How do I tell Ardunio where to find the supplemental sketches? Does it assume that they will be in same folder as the sketch?
All sketches in the sketch folder.
All additional librarys in subfolder libraries.
*edit*
i give you a example:
If you use windows xp in english...
arduino-1.0\libraries <--- no changes in this folder, except you want to share the library with other users on your computer
C:\Documents and Settings\USERNAME\...\arduino\sketches <--- your user sketch folder (choosen in arduino settings). Put your sketches into it
C:\Documents and Settings\USERNAME\...\arduino\sketches\libraries <--- the user librarys folder. Put your library folder into it

a library needs this structure:
LibraryFolder\
LibraryFolder\library.cpp
LibraryFolder\library.h
LibraryFolder\examples\
LibraryFolder\examples\LibraryExample\
LibraryFolder\examples\LibraryExample\LibraryExample.pde (or .ino with arduino 1.0)

You can read this on http://arduino.cc/en/Hacking/LibraryTutorial
Should I clean out my Ardunio/Libraries/LiquidCrystal folder? The easiest way to that would be to delete the entire Adrino 1.0 folder and reinstall the software. Should I do it?
If you would a clean install delete arduino... yes.
Using the LCD with the electronic brick was so easy. I wish I could say the same for the Grove. I want to get the Grove working since there are many moe sensors for the Grove.
The problem is not Grove, the problem is arduino 1.0 ;)
Thank you so much for the time your taking to help me!!!

Ken
Best regards from Vienna/Austria
Rony

Post Reply