Not all buttons working with arduino Yun

The LCD and Keypad Shield gives you a handy 16-character by 2-line display, 5 buttons and a controllable backlight.
Post Reply
dalef
Posts: 2
Joined: Sat Apr 18, 2015 10:24 pm

Not all buttons working with arduino Yun

Post by dalef » Sat Apr 18, 2015 10:41 pm

LCD shield works fine on a Freetronics Eleven but if I run the same sketch (I'm just using the complex example) on an Arduino Yun the left, down and select buttons don't respond. The up and right are fine. Any suggestions as to what makes it behave differently on the Yun?

andrew
Freetronics Staff
Freetronics Staff
Posts: 978
Joined: Sun Jul 14, 2013 7:06 am
Location: Melbourne, Australia
Contact:

Re: Not all buttons working with arduino Yun

Post by andrew » Sat Apr 18, 2015 10:54 pm

The Yun is a 3.3V board so the voltages returned to A0 will differ to those expected when we wrote the demonstration sketch.
Have a look at the "reading the buttons" part of:
http://www.freetronics.com.au/pages/16x ... tart-guide

If you run a sketch that reads A0 and reports the value - you can then press each button in turn and use the values returned in your sketches that read the buttons.

dalef
Posts: 2
Joined: Sat Apr 18, 2015 10:24 pm

Re: Not all buttons working with arduino Yun

Post by dalef » Sun Apr 19, 2015 12:28 am

Thanks very much for the tip. It's working now. If anyone needs it, here are the adjusted voltages:

Code: Select all

RIGHT:  0.00V :    0 @ 10 bit
UP:     0.67V :  136 @ 10 bit
DOWN:   1.53V :  314 @ 10 bit
LEFT:   2.36V :  483 @ 10 bit
SELECT: 3.47V :  710 @ 10 bit

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests