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 3879

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

5 votes

UNO analog input voltage reading not accurate

Your question contains a number of errors and misconceptions. Firstly the maximum output of a successive approximation ADC (here 0x3ff) corresponds to Vref - 1 LSB The voltage will thus be sensorValu …
Milliways's user avatar
  • 1,645
5 votes

Can I connect a PWM pin on one Arduino to an analog input on another?

It is possible, but not the best idea. The analog inputs require a reasonably stable input - this can be achieved with a RC filter to smooth the PWM output. This would work for reasonably slow data ra …
Milliways's user avatar
  • 1,645
2 votes

Is it wise to use analog input pins to read digital buttons?

If you have no use for analog pins there is no problem. A5/A6 are used for I²C (on the Uno).
Milliways's user avatar
  • 1,645