Page 1 of 1

Not all buttons working with arduino Yun

Posted: Sat Apr 18, 2015 10:41 pm
by dalef
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?

Re: Not all buttons working with arduino Yun

Posted: Sat Apr 18, 2015 10:54 pm
by andrew
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.

Re: Not all buttons working with arduino Yun

Posted: Sun Apr 19, 2015 12:28 am
by dalef
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