Remember when testing the buttons, that they are "on" when connected to Gnd, and "off" when there is voltage. By default in the guino code, the 3 buttons have 5v already because the pullup resistors are activated., so i think when you touch a 5v lead, you aren't affecting anything. Before i had any buttons, i just jumped a wire from Gnd to Analog 3/4/5
The thing that screwed me when testing my buttons was, my ohmeter was set to the low range, so when the defective buttons actually had 1M or 2M ohms, the meter just read "1" which to me meant 'no connection". Doh.
Another thing to try might be some Examples in the arduino library, like "Button.pde"
Are you using the PWM 10/11 for buttons? Without looking at the specs, i assumed the mega had the same pinouts as all other Arduinos, for the base set of pins, and then have the extras off to the side... for backward compatibility purposes. Am i correct?
Last edited by nickdigger; 02-23-2010 at 04:16 AM..
|