warrenf

hi guy and girls. im new to the arduino.i have theuno rev 3im having an issue with using the anolg input for my project.i have 3 push buttons and two switchesthey each run threw a 10k pull down resister. but only two push button read on the arduino. and neather of the switches. what could the issue be?

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.Do not send technical questions via personal messaging - they will be ignored.I speak for myself, not Arduino.

warrenf

other thing you should probly know is that i made a boo boo and stuck 9v threw the 5 inputs this is y im trying to use the analog input. silly me. and the transistor i changed to a relay and also tried to add in a wake up funtion for the camera with a second relay.

//interval settingslong interval = 10; //secondslong oldInterval; long intervalCounter = 0; //this variable and the next allow for incrementation of the intervallong intervalStep = 10; //so that the timelapse can be interrupted at any time.

//miscellaneous variablesboolean sleeping = false;long activityTime = 0;long sleepTime= 300000; //ms, time to wait before sleeping. (300000 ms = 5 min)int waitTime;int safetyDelay = 50; //ms, wait period when camera pin is HIGH to give the camera time to respondint HDRsafetyDelay = 1500; //ms, time the camera pin is HIGH for fast-fire HDR pictures to be taken

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.Do not send technical questions via personal messaging - they will be ignored.I speak for myself, not Arduino.

For now, all you need to show is whether or not a number of inputs work.So, write a small sketch that does just that, using known I/O mechanisms, like Serial.print.

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.Do not send technical questions via personal messaging - they will be ignored.I speak for myself, not Arduino.

warrenf

PeterH

other thing you should probly know is that i made a boo boo and stuck 9v threw the 5 inputs this is y im trying to use the analog input. silly me. and the transistor i changed to a relay and also tried to add in a wake up funtion for the camera with a second relay.

so i may well have messed this whole thing up.

Quite possibly. A relay and a transistor are not usually interchangeable. What you're trying to do does not sound especially hard, but the picture you posted shows a fairly complex circuit, and I don't know whether you're getting even the basics right let alone wiring up things like that correctly.