Hi,i got my arduino starter kit and it is not working correct.I can not get a HIGH (5volts) on outputs only 2.4volts,i checked all inputs and diffent programs but no good.Other people had this problem and said it must be a bad board.Yes i do have a high on digital and tried A0 inputs set to digitalRead >260 put no full high .
thanks for your help> tom
2.4volts on output
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_bill
- Posts: 88092
- Joined: Sat Feb 07, 2009 10:11 am
Re: 2.4volts on output
Can you be more specific please. Which output are you talking about?
- adafruit_support_bill
- Posts: 88092
- Joined: Sat Feb 07, 2009 10:11 am
Re: 2.4volts on output
We need more information to diagnose the problem:
What do you measure on the VIn pin?
What do you measure on the 5v pin?
What program are you running?
Can you provide a photo or a diagram of your wiring?
What do you measure on the VIn pin?
What do you measure on the 5v pin?
What program are you running?
Can you provide a photo or a diagram of your wiring?
-
- Posts: 5
- Joined: Thu Feb 10, 2011 7:19 pm
Re: 2.4volts on output
Vin is 4.60volts
the 5volt pin is 5volt
this is one of the codes i used.Voltage on input pin is 4.60volts, it is a 4 input from drive wheels of a rovio robot.I tested the voltage right at the input and voltage right at the output with meter
the 5volt pin is 5volt
this is one of the codes i used.Voltage on input pin is 4.60volts, it is a 4 input from drive wheels of a rovio robot.I tested the voltage right at the input and voltage right at the output with meter
Code: Select all
program 2
/*
4 inputs with with (and &&) and 2 outputs
*/
// set pin numbers:
int redpin = A3; // 2red come in from rovio
int bluepin = A2; // 3blue
int blackpin = A1; // 4black
int greenpin = A0; // 5green
int fwheelpin = 2; // out to wheels
int rwheelpin = 4;
int lturn = 7;
int rturn = 8;
// variables will change:
int redState = 0; // variable for reading rovio status
int blueState = 0;
int blackState = 0;
int greenState = 0;
void setup() {
// initialize the pin as an output and input
pinMode(8, OUTPUT);
pinMode(4,OUTPUT);
pinMode(7, OUTPUT);
pinMode(2,OUTPUT);
pinMode(A3, INPUT);
pinMode(A2, INPUT);
pinMode(A1, INPUT);
pinMode(A0, INPUT);
}
void loop(){
// read rovio input
redState = analogRead(redpin);
blueState = analogRead(bluepin);
blackState = analogRead(blackpin);
greenState = analogRead(greenpin);
// forward, then it is high
if (redState >100 && greenState >100){
// turn LED on:
digitalWrite(fwheelpin, HIGH);
}
else {
// turn LED off:
digitalWrite(fwheelpin, LOW);
}
// revers high
if (blueState >350 && greenState >350){
//turn on
digitalWrite(rwheelpin,HIGH);
}
else{
//turn off
digitalWrite(rwheelpin,LOW);
}
//turn left
if (redState >350 && blackState >350){
digitalWrite(rwheelpin,HIGH);
digitalWrite(lturn,HIGH);
}
else{
digitalWrite(rwheelpin,LOW);
digitalWrite(lturn,LOW);
}
//turn right
if(blueState >200 && greenState >200){
digitalWrite(fwheelpin,HIGH);
digitalWrite(rturn,HIGH);
}
else{
digitalWrite(fwheelpin,LOW);
digitalWrite(rturn,LOW);
}
}
- adafruit_support_bill
- Posts: 88092
- Joined: Sat Feb 07, 2009 10:11 am
Re: 2.4volts on output
How are you powering the Arduino? Do you have a power supply> Or just the USB cable?
What are you trying to drive with the output pins? You can't drive a motor directly with an Arduino digital output.
What are you trying to drive with the output pins? You can't drive a motor directly with an Arduino digital output.
-
- Posts: 5
- Joined: Thu Feb 10, 2011 7:19 pm
Re: 2.4volts on output
I tried power both way
the output can not drive the motors,it goes to a rc 4x4 truck board where the single from rc chip (it is removed) is befor it goes into the H-bridge to run the wheels.
but that does not matter because with a HIGH (5volts right off the arduino tested it with meter) on input of arduino and my volt meter on the output i should get a HIGH 5volts but am only getting 2.4volts.
the output can not drive the motors,it goes to a rc 4x4 truck board where the single from rc chip (it is removed) is befor it goes into the H-bridge to run the wheels.
but that does not matter because with a HIGH (5volts right off the arduino tested it with meter) on input of arduino and my volt meter on the output i should get a HIGH 5volts but am only getting 2.4volts.
- adafruit_support_bill
- Posts: 88092
- Joined: Sat Feb 07, 2009 10:11 am
Re: 2.4volts on output
We are trying to help here. You have to be more specific in your answers.
What are the states of all your input pins?
Are you running the code that you posted?
It would help if you added some Serial.println() statements to your code so we could verify that it was actually running and know what value it was writing to the output pins.
How was it powered when you made the measurements that you reported? (Vin is 4.60volts, 5volt pin is 5volt)I tried power both way
What pin are you measuring?i should get a HIGH 5volts but am only getting 2.4volts.
What are the states of all your input pins?
Are you running the code that you posted?
It would help if you added some Serial.println() statements to your code so we could verify that it was actually running and know what value it was writing to the output pins.
-
- Posts: 5
- Joined: Thu Feb 10, 2011 7:19 pm
Re: 2.4volts on output
i don't know how to explane it any better but i will try
i am running the code posted(and tried code with digital inputs to)i have 5volts from board checked it with meter and it is 5volts, 5volts on input pins checked with meter,but only get 2.4volts on all outputs (changed inputs and outputs to try outer pins).i can't be more clear then that,i just got the board and other forms said the board is bad,e-mailed company and was told post here for help first.I have a nother arduino board runing also the same code and all ok(no i can not swap boards to try i am in Pa and board is in WA (in robot)
i am running the code posted(and tried code with digital inputs to)i have 5volts from board checked it with meter and it is 5volts, 5volts on input pins checked with meter,but only get 2.4volts on all outputs (changed inputs and outputs to try outer pins).i can't be more clear then that,i just got the board and other forms said the board is bad,e-mailed company and was told post here for help first.I have a nother arduino board runing also the same code and all ok(no i can not swap boards to try i am in Pa and board is in WA (in robot)
-
- Posts: 12151
- Joined: Thu Apr 06, 2006 4:21 pm
Re: 2.4volts on output
having 2.4V output on the pins is very unlikely unless they were damaged by, say, connecting a motor directly into a digital pin
check your multimeter
disconnect ALL items
check your meter against the 5V pin
run a single line piece of code that pulls pin 13 high and measure that
check your multimeter
disconnect ALL items
check your meter against the 5V pin
run a single line piece of code that pulls pin 13 high and measure that
Please be positive and constructive with your questions and comments.