Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

little confusion in analog stuffs

Status
Not open for further replies.

Bhuvanesh123

Advanced Member level 4
Joined
Aug 29, 2013
Messages
113
Helped
0
Reputation
0
Reaction score
0
Trophy points
16
Location
Singrauli, India, India
Activity points
814
Code:
void setup()
{
  Serial.begin(9600);
 }
void loop()
{
  int a= analogRead(3);
  Serial.println(a);
  delay(1000);
}

but i have not connected anything to that analog pin but i am getting values around 500.whats the reason for that
 

My mind-reading skills have failed me, I am unable to determine what you are talking about. Perhaps a microprocessor? Maybe a spaceship? And your circuit? Maybe it's a modulated neutrino-beam device or an automatic tomato picker?

If you expect someone to help you, show a minimum amount of effort by posting an intelligent question. Don't throw up 5 lines of code and expect the world to know what you're talking about.
 

but i have not connected anything to that analog pin but i am getting values around 500.whats the reason for that
If there's nothing connected to the input pin, then it's voltage is random/undefined.

If you want the voltage on that pin to be 0V, then connect it to 0V.
 

seems to me as you are working on arduino.... if analog pin is floating then it will pick interference, feed known voltage into this pin and verify values.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top