Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Nokia 3110/LCD4884 JoyStick


  • Please log in to reply
3 replies to this topic

#1 bx_bob

bx_bob

    New Member

  • Members
  • Pip
  • 2 posts

Posted 28 October 2012 - 05:02 PM

Hello everyone!
I'v got a board like this:
http://www.nuelectro...ia_3310_lcd.pdf
and the arduino code... acording to the difference of voltage(arduino 5v -> netduino 3.3v),
i still stuck in using the joystick.
public static readonly int[] adc_key_val = new int[] { 50, 200, 400, 600, 800 };
the numbers are from arduino.
so all i need is recalculate these 5 value, from 5v to 3.3v? am i right?

thanks.

#2 NooM

NooM

    Advanced Member

  • Members
  • PipPipPip
  • 490 posts
  • LocationAustria

Posted 29 October 2012 - 12:19 PM

i suggest not putting 5v into the 3.3v analog pins.

#3 bx_bob

bx_bob

    New Member

  • Members
  • Pip
  • 2 posts

Posted 02 November 2012 - 11:23 PM

After a lot of test. i found the up key can't be detected. weird. Is it means 3.3v not enough to drive it?

#4 teo

teo

    Member

  • Members
  • PipPip
  • 12 posts
  • LocationEdmonton, AB

Posted 09 December 2012 - 09:52 PM

The joystick output is an analog output that ranges from 0 to 5V, depending on direction (the Vcc for the resistor ladder is tied to 5V). If you compute the analog values for SW1 positions 1,2,3,4,6, the outputs will be 0.000 0.235 0.720 1.434 3.573 volts, respectively, or 0 73 223 445 1109 bits > maxed out, try 1023 Hence, there is a chance that you will slightly exceed the 3.3V limit of the Netduino ADC. You might be able to get away with it, but this is not recommended. Also, note that the joystick feeds AD0 with 5V when nothing is pushed. If I am not wrong, the digital pins are 5V tolerant, but not so for the analog pins.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.