Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 20245

A standard Arduino function for measuring the voltage on an analog pin via ADC.

0 votes
Accepted

How to drive Arduino UNO as a counter triggered by 555 timer's output (astable mode)

You need to create a finite state machine with 2 states: Waiting for input from 555 to go high. When this happens increment the counter & advance to the next state. Waiting for the input from the 5 …
st2000's user avatar
  • 7,470
3 votes

Arduino Uno Analog pot values are not smooth

There will always be noise in the output an Analog to Digital Converter (ADC). An ADC converts a continuous-time and continuous-amplitude analog signal to a discrete-time and discrete-amplitude digit …
st2000's user avatar
  • 7,470
0 votes

When should you worry about interference affecting the analog input?

Noise reduction involving Analog to Digital Conversions can be done in many ways. Common software solutions involve averaging multiple conversions. Exponential smoothing is one such method. One adv …
st2000's user avatar
  • 7,470
1 vote

Mixing analog reads with raw port reads

In general, most embedded processors multiplex external pins into specialized internal circuits. Circuits which check standard fixed threshold crossings (digital inputs), circuits which check variabl …
st2000's user avatar
  • 7,470
1 vote

Mapping values from analog input giving unexpected values?

Note that the Arduino function "map" is really this: long map(long x, long in_min, long in_max, long out_min, long out_max) { return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min …
st2000's user avatar
  • 7,470
3 votes
Accepted

In the AnalogRead example, would the thing work if I remove or short the A0 and the ground pin?

I think you are confused because the ADC input measures voltage, not resistance. To convert from resistance to voltage you need to pull in the opposite direction on the variable resistance with a f …
st2000's user avatar
  • 7,470
0 votes

LCD TFT 2.4"" changes the values of analog read of Arduino Mega

The short answer is to beef up your power supply: Don't use small batteries or power supplies. For instance use D Size Cells instead of 9 Volt Cells. Or use a 3 Amp power supply instead of a 100mA …
st2000's user avatar
  • 7,470