Marcus Young

Software. Microcontrollers. Beer.

UDOO and an Arduino LCD

| Comments

I have continued to want more out of my UDOO, so I decided to make use of a cracked LCD I had sitting around from Adafruit, by having the UDOO display system information to it. A side note: the linux distro I’m using is Ubuntu 12.04 LTS for ARM, and by a cracked LCD I mean the digitizer doesn’t work. You can modify this code to use the touchscreen functionality of the screen if you wish.

Here’s the parts list:

Here’s a short version of the steps:

  • Wire up the button exactly the same as the arduino tutorial to digital 2.
  • Modify your LCD to use Digital 3 to control the backlight.
  • Set up the ttymxc3 device in linux for Serial on 9600 baud

     sudo stty -F /dev/ttymxc3 cs8 9600 ignbrk -brkint -icrnl -imaxbel \
     -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echoke noflsh -ixon -crtscts
    • Add that command to /etc/rc.local to make it permanent.
  • Add this bash script to /usr/local/bin

    • Set it for startup by adding sh /usr/local/bin/ | cat > /dev/ttymxc3 to /etc/rc.local
    • Add a cron to update it every minute by adding this to /etc/crontab

        * * * * * root sh /usr/local/bin/ | cat > /dev/ttymxc3
  • Load this sketch to your Arduino.

  • Reboot the arduino via the RST switch, or by a full power reboot, ensuring you replace the J18 jumper so that the chips can communicate.

If everything went well, your UDOO should look and act like the pictures below. Good luck!

UPDATED 7/26/2014: Pics attached of the 3d printed case