The Shop > Electronics & IC Programing

Arduino help

<< < (2/3) > >>

RodW:
It is good you know the environment is good and you can compile and upload a sketch.

This stuff is not plug and play. You have not told us which LCD you purchased. Is there a demo program for it? Did you get it from the same guys you bought the LCD shield from? That would be my next program to get going and note the pin assignments and the #include files before deviating to,other code.

If you are getting compile errors then the code is wrong. Also treat warnings as errors as they usually are. Look at the error messages and check the line numbers reported. Start at the first line and work through.  If you get a flood of errors maybe including variable not in scope or variable not defined, then you probably are missing some #includes or need to add a library.

Are there instructions on their web site? Do they have a forum? If so, ask there.  Also maybe ask on the Arduino forum.

John Rudd:
Rod,

I got the Mega 2560 from one supplier and the lcd shield from another...The sample code for the lcd is in the link in my previous post...

Looking at the lcd shield, the data pins appear to plug into the analogue pins on the Mega board rather than the digital pins...I'm wondering if the analog pins can be changed to digitals? I am thinking that this is not possible unlike pic micros...

I shall continue to play.. :)

Swarfing:
Give this library a try as i had similar issue setting mine up yonks ago. A lot of the cheap LCD's are compatible with this, do a google on the display number LCD4884 and you will see what i mean. Hope it helps?

John Rudd:
Oh...Deep Joy..........

Got it working... :D

The s/w I originally dowloaded was duff....
Went to the website of the lcd shield supplier and found a demo file..Copied that to wordpad then copied that as a sketch into the IDE..It compiled with no errors and when uploaded to the Mega worked first time....Yeeehaaa......  :clap: :clap:

I was beginning to think that pic micros were bad enough trying to learn ASM ( and BBC basic from all those years ago)...but AVR's....omg! even worse...

So, now I know my hardware is good I can go further..... :thumbup:

(All I wanted was to build a digital counter that will count wire turns for me when I rewind a rotor for a generator I'm sorting....Should have just bought a digital counter.. :Doh: but where's the fun in that?...)

RodW:
Great news even if I had to were wire a post I was half way through!

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version