element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Arduino Forum Have a question on Arduino? Ask our expert Simon Monk
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 437 replies
  • Subscribers 430 subscribers
  • Views 15087 views
  • Users 0 members are here
Related

Have a question on Arduino? Ask our expert Simon Monk

patkelly
patkelly over 13 years ago

This thread has been closed to new questions.

However, we welcome you to Post Your Question about Arduino in the element14 Community Arduino group.  You'll find many fellow members and experts who have just the answer you're looking to find! 

 

Thank You, Your Friends at element14 Community

 

 

 

Expertise: imageArduino, .NET Gadgeteer, IOIO, embedded computing, open source hardware


About Simon: Simon is an author, writing books for TAB/McGraw-Hill and O'Reilly. He is best known for his Arduino books: 'Programming Arduino' and '30 Arduino Projects for the Evil Genius'.

 

Simon has a BSc. in Cybernetics and Computer Science and a PhD. in Software Engineering. He spent several years as an academic before he returned to industry, co-founding the mobile software company Momote Ltd.

 

If you need help on anything about Arduino, please post your question here!


 

If your not already, you'll need to login or register to ask your question - just click reply

 

The specified item was not found.

  • Sign in to reply
  • Cancel

Top Replies

  • mcb1
    mcb1 over 12 years ago in reply to aml +2
    Aml I presume you have set the board to UNO under tools, along with the Com port. Have you tried at least the first 10 bullet point s under the link see http:// (You can also select it under hlep on the…
  • simon.monk
    simon.monk over 13 years ago in reply to Former Member +1
    @ jagadeshwaran http://arduino.cc/en/Hacking/Bootloader?from=Main.Bootloader
  • simon.monk
    simon.monk over 13 years ago in reply to Former Member +1
    @ang. This isn't really a task for an Arduino. It does not have nearly enough memory to store a whole image and manipulate it like that. I would not be surprised to find some PC application that would…
Parents
  • Former Member
    Former Member over 13 years ago

    Absolute noobie - please accept my ignorance - looking to learn. Question regarding results of Uno and LCD w/I2C Controlled + Keypad Shield kit (Adafruit PID# 772)

    Assembled LCD assembly w/o any apparent problems. Shield sits well ontop of UNO.  Uploaded the Adafruit specified "Hello World" sketch. Upon applying power (8x1.5 alkaline AA) the LCD screen lights a bright blue for app 0.5 sec then goes dark.  The words "Hello World" display faintly, along with the counter which increments 1 per second.

    Question one:  Is the blue background that initially displayed, supposed to remain lit?

    If I press the "Select" buttion, the blue screen illuminates, the word "Select" is displayed, and the counter continues to increment.

    Question 2:  Is this what is supposed to occur?

     

    I'm sure there are more queries to come, but need to wrap my head around this first.

     

    Thanks.

     

    Ken

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • billabott
    billabott over 13 years ago in reply to Former Member

    Welcome to The 'Duino Zone.  The chances of finding someone to help with experience with your exact equipment or probliem is much greater over at the vendor's forum.

    Even LadyAda endorses this policy when she says: "If you need help getting other LCDs to work, please contact the place you purchased it from, they'll be happy to help!"

     

    PhotoImportant Info
    imageimage

    Never the less, I will endevor to assist you.


    Point number ONE:  Zee little orange pot on zee right hand side is for adjusting zee contrast of zee LCD display screen.  You should gently  adjust it as needed.

     

    Point number TWO:  One or more of your batteries could  be bad, which usually results in diminished voltage level and/or current capacity.

     

    Point number THREE:  According to the data sheet for the HD44780 you are over driving the display voltage wise.  It says: Power supply for LCD drive VCC –V5 = 11 V (max).  That might be confusing but the other way that is said is easy to understand:  Wide range of liquid crystal display driver power is 3.0 to 11V

    Your battery power pack is 8*1.5=12 V.  I would find a way to cut back on the voltage a bit; I think it will help the display to last longer.

     

    Point number FOUR:  The data sheet for the I2C port expander chip makes mention that the chip will function as intended when the circuit design meets these requirements:

    Operating voltage:

    - 1.8V to 5.5V @ -40°C to +85°C

    - 2.7V to 5.5V @ -40°C to +85°C

    - 4.5V to 5.5V @ -40°C to +125°C

    And I don't see any voltage regulator chips installed on that shield.  The user guide should have indicated to you the appropriate input voltage.

     

    Point number FIVE:  IMHO, optimum care and feeding of this shield calls for 4.5 volts.  That is only three 1.5 volt cells and the shield will even function reliably under most conditions with only 3 volts. 


     

    And just so you know:

     

    -=Syntax Matters=-

     


    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • simon.monk
    simon.monk over 13 years ago in reply to billabott

    See that little trimmer above the switch. Turn it with a screw-driver it should adjust the screen contrast.

     

    Did you load a sketch onto your Arduino? What were you expecting it to do?

     

    As to the other questions - Billabot is right - join the Adafruit forum, they are pretty good.

     

    Explore!

     

    image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 13 years ago in reply to simon.monk

    Thank you for the replies.

     

    Point number ONE:  aware of same, can see change in contrast of characters when turned. No blue however.

    Point number TWO:  I understand.  Same results when using USB cable as power

    Point number THREE: See #2

    Point number FOUR: User guide recommended power supply used. It is drawing 5V from the UNO.


    See that little trimmer above the switch. Turn it with a screw-driver it should adjust the screen contrast. See #1


    Did you load a sketch onto your Arduino? What were you expecting it to do?

    1. Yes.  I was expecting the words “Hello World” to display on the LCD, against the blue background (as per the photo).

     

    Sorry I bothered you folks – I’ll go seek a bit of support elsewhere.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • Former Member
    Former Member over 13 years ago in reply to simon.monk

    Thank you for the replies.

     

    Point number ONE:  aware of same, can see change in contrast of characters when turned. No blue however.

    Point number TWO:  I understand.  Same results when using USB cable as power

    Point number THREE: See #2

    Point number FOUR: User guide recommended power supply used. It is drawing 5V from the UNO.


    See that little trimmer above the switch. Turn it with a screw-driver it should adjust the screen contrast. See #1


    Did you load a sketch onto your Arduino? What were you expecting it to do?

    1. Yes.  I was expecting the words “Hello World” to display on the LCD, against the blue background (as per the photo).

     

    Sorry I bothered you folks – I’ll go seek a bit of support elsewhere.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • billabott
    billabott over 13 years ago in reply to Former Member

    It is no bother at all.  So, it appears that the only issue is the voltage going into zee back light circuit. 

    It is a curious challenge and we like challenges - especially curious ones.

     

    One possibility I can think of is a cold solder joint that is intermittant after power on.  Suggest you do the wiggle test on all components.  Otherwise you might try putting the circuit in a sealed bag in the freezer for 30 minutes and then plug it in and see if it takes longer for the thermal expansion of the hypothetical troublesome joint to cause a loss of continuity; UNLESS you have a can of  MULTICOMP DIAGNOSTIC FREEZE AEROSOL on hand then you could use it.  Hope this helps to solve this curious problem.

     

    Another possibility is that your sketch contains code similar to the code in the A.S.S. below and may be the cause of your "problem".  It is very clear that the backlight is being turned OFF via the sketch.  Hey, Ken, here is a little something for you to remember: "Technical problems can only come from one of three sources:  Hardware, Software, or Operator."

    Arduino Sketch Snippet

    mySerial.begin(9600);

      delay(100);

      mySerial.write(12);                             // Clear            

      mySerial.write(17);                                 // Turn backlight on

      delay(5);                                                 // Required delay

      mySerial.print("Welcome to the");    // First line

      mySerial.write(13);                                 // Form feed

      mySerial.print(" 'Duino Zone!");       // Second line

      mySerial.write(212);                                // Quarter note

      mySerial.write(220);                                // A tone

      delay(3000);                                            // Wait 3 seconds

      mySerial.write(18);                                 // Turn backlight off

    Sourced from here.

     

    I would be ever so interested in seeing the sketch, Ken.  Would you provide a link or paste the sketch into your reply here as I could not locate it on the Adafruit site?  An easy test for you to do and could help you learn is put your own sketch together with the above snippet and run it; then comment out the last line with the write(18) so that the backlight stays on.  Good luck.

     

    As always, please remember that:

    -=Syntax Matters=-

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 13 years ago in reply to billabott

    Thank you, Sir, for your reply.  As a new kid to the world or soldering (its been 30 some odd years since I soldered a board!) I wondered if a cold joint might be the culprit.  Especially since the blue screen will illuminate upon the application of power, then extinquish.   The text “Hello World” does display on the screen, albeit in dark grey characters, absent of the bright blue illumination.

     

    I will take another look at the joints and see if the challenge lies there.

     

    Again, this LCD shield is attached directly onto of the Arduino UNO.

     

    For the sketch, here it is, from the Adafruit LCD assembly and wiring website:

     

    /*********************

     

    Example code for the Adafruit RGB Character LCD Shield and Library

     

    This code displays text on the shield, and also reads the buttons on the keypad.

    When a button is pressed, the backlight changes color.

     

    **********************/

     

    // include the library code:

    #include <Wire.h>

    #include <Adafruit_MCP23017.h>

    #include <Adafruit_RGBLCDShield.h>

     

    // The shield uses the I2C SCL and SDA pins. On classic Arduinos

    // this is Analog 4 and 5 so you can't use those for analogRead() anymore

    // However, you can connect other I2C sensors to the I2C bus and share

    // the I2C bus.

    Adafruit_RGBLCDShield lcd = Adafruit_RGBLCDShield();

     

    // These #defines make it easy to set the backlight color

    #define RED 0x1

    #define YELLOW 0x3

    #define GREEN 0x2

    #define TEAL 0x6

    #define BLUE 0x4

    #define VIOLET 0x5

    #define WHITE 0x7

     

    void setup() {

      // Debugging output

      Serial.begin(9600);

      // set up the LCD's number of rows and columns:

      lcd.begin(16, 2);

     

      // Print a message to the LCD. We track how long it takes since

      // this library has been optimized a bit and we're proud of it image

      int time = millis();

    lcd.print("Hello, world!");

      time = millis() - time;

    Serial.print("Took "); Serial.print(time); Serial.println(" ms");

    lcd.setBacklight(BLUE);

    }

     

    uint8_t i=0;

    void loop() {

      // set the cursor to column 0, line 1

      // (note: line 1 is the second row, since counting begins with 0):

      lcd.setCursor(0, 1);

      // print the number of seconds since reset:

    lcd.print(millis()/1000);

     

      uint8_t buttons = lcd.readButtons();

     

      if (buttons) {

        lcd.clear();

    lcd.setCursor(0,0);

        if (buttons & BUTTON_UP) {

    lcd.print("UP ");

    lcd.setBacklight(RED);

        }

        if (buttons & BUTTON_DOWN) {

    lcd.print("DOWN ");

    lcd.setBacklight(YELLOW);

        }

        if (buttons & BUTTON_LEFT) {

    lcd.print("LEFT ");

    lcd.setBacklight(GREEN);

        }

        if (buttons & BUTTON_RIGHT) {

    lcd.print("RIGHT ");

    lcd.setBacklight(TEAL);

        }

        if (buttons & BUTTON_SELECT) {

    lcd.print("SELECT ");

          lcd.setBacklight(VIOLET);

        }

      }

    }

     

     

    Hope this may shed some light on the issue – and my lack of understanding.

     

    But hey, we all have to start somewhere.

     

    Thanks again!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • billabott
    billabott over 13 years ago in reply to Former Member

    That's cool.  The two header files (#include xxxx.h) can be accessed from github.com. 

    The sketch you are attemping to use is really designed to demonstrate the capabilities of the RGB LCD which you do not have.  So go forth and learn or ask LadyAda's team to provide a more appropriate sketch for the product you purchased from AdaFruit.

     

    Some suggestions for Adafruit as to modification of the LCD DEMO SKETCH:

    Query the LCD module (user input) for its Identity and conditionally jump to a code segment to show the new users what it is capable of.  In the case of the blue and white LCD, I would think that the buttons should demo the blinking, left and right scrolling, and custom character capabilities.  Many of these capabilities are demonstrated on youtube and other sites across the internet.

     

    Additionally,  I want to thank Ken Quimby most sincerely for his question, because I believe he has helped me to uncover a veritable Gold Mine of Arduino Sketches at Parallax.com. http://learn.parallax.com/kickstart/27977

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 13 years ago in reply to billabott

    Bill, you are most kind.  I'm glad you perhaps found an additional resource as a result of my inquiry.  As they say here in Arkansas - "Every now and then, even a blind hog finds an acorn."  I feel as though I'm that hog, having stumbled upon this site.

     

    Thanks again.

     

    Ken  (in AR)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • billabott
    billabott over 13 years ago in reply to Former Member

    You're welcome, Ken.  (Go Razorbacks!)

     

    I am so impressed with what Parallax.com has come up with and made availlable beginning in May of 2012 that I want to share it with everyone.  They have a 'Duino shield called Board of Education Shield (for Arduino) and the price is around $30.  But it is not just the hardware, the real added value is the beginner's content that totally fulfills the  STEM (Science, Tech, Engineering, and Math) curriculum needs of our young people.  This is AWESOME!  The complete kit to learn and build a 'Duino BOE-BOT is around $120.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube