Not all buttons working with arduino Yun
Not all buttons working with arduino Yun
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?
-
- Freetronics Staff
- Posts: 978
- Joined: Sun Jul 14, 2013 7:06 am
- Location: Melbourne, Australia
- Contact:
Re: Not all buttons working with arduino Yun
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.
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
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