All Questions
Tagged with arduino-uno analogread
118 questions
0
votes
1
answer
157
views
Arduino Uno, does a lower Aref voltage work well for measuring current? without increasing ADC integral non-linearity
I want to measure current using a Arduino Uno and use a very low resistance of 0.1Ohm or lower for the shunt resistor to measure the current(to reduce power waste and heat generation),
as a result ...
0
votes
2
answers
145
views
How does actually arduino measure voltage?
I am not interested into the AnalogRead() part, but rather on how he converts 5 or 2 V into a number between 0 and 1023. How does it practically do it to convert the voltage level into a number or ...
4
votes
1
answer
74
views
Issues using mini microphone module off AliExpress
I have been trying to get a mini microphone module with an inbuilt microphone module I got from AliExpress to my Arduino to confirm if it is working. It was a four pin microphone with pins labeled V, ...
0
votes
1
answer
92
views
Copy Uno Analog Input Configuration To ESP32
I started a project using the arduino uno and as a challenge I'm attempting to make it work with the esp32 but I've run into a roadblock. I may not describe it in proper terms, but I noticed that the ...
-3
votes
1
answer
274
views
Reading constant battery voltage and using the obtained value in sensor formula
there i am working on a project in which my system is connected to 3.7v~4.2V lithium battery, I have to read constant battery voltage irrespective of the current battery voltage and to do that I am ...
0
votes
1
answer
248
views
Arduino Uno Analog pot values are not smooth
I have tired Arduino smoothing example but mine analog value are not staying constant even when I don't rotate the potentiometer. I am mapping the values from 0 -> 1024 to 0-> 100. I have tried ...
1
vote
2
answers
393
views
Why analogRead's value decreases when I decrease the value of resistor?(I use digitalWrite(high) to positive terminal of resistor)
Basically, my circuit contains only 1 resistor(like the basic LED circuit).
I tried to know what is the actual voltage of digitalWrite(High). I don't understand why the value of analogRead does not ...
0
votes
1
answer
164
views
Why do I get different times when using analogRead() inside while loop?
I have the following code which checks the latency of another board.
int triggerPin = 13;
int dataPin = 9;
int ejectorPin = A0;
unsigned long t_start = 0;
unsigned long t_end = 0;
...
1
vote
0
answers
426
views
Analog UV sensor displaying incorrect values in serial monitor (GUVA-S12SD)
Using Arduino Uno and a GUVA-S12SD sensor (https://www.adafruit.com/product/1918).
Here's my circuit. 5V into sensor+, GND into sensor-, A0 to sensor out.
Here's my code:
void setup()
{
Serial....
2
votes
1
answer
64
views
Arduino Multiplexer Input voltage per pin not decoupled
I am very new to electronics (software engineer background).
I want to send an analog signal (5V) to one/many input wires. The input wires are connected to a 16 channel mutiplexer.
My arduino then ...
1
vote
0
answers
492
views
Problem with floating of AnalogRead
For a university Lab course i have to realize a UPS unit with a internal LiPo battery . The unit uses as battery charger a buck converter
I have only a problem with the battery charger (buck converter)...
0
votes
2
answers
114
views
Is defining a function improves speed rather computing average for each analog input separately
My Arduino controller reads data coming from four different sensors. After the data is read, I individually compute four input average values. I understood that I am having the same lines of code ...
1
vote
0
answers
64
views
Phantom reading
my project is to control led diode and dc motor, test shield buttons, and check system run time.
Testing buttons and run time i have done.
Deal is with led and dc motor control.
I'm getting phantom ...
1
vote
1
answer
44
views
always detects same pin as HIGH even when its not connected
Im practicing with an arduino UNO board (I'm a begginer) and I'm trying to turn some LED's on depending on which analog pin is connected to 5V.
Here's my code:
int statusLed = 11;
int out1 = 2;
int ...
1
vote
1
answer
268
views
ADC value changing after changing Timer1 value in program
I'm writing a code where analogRead() reads ADC value from load. After reading ADC value, if it is not in range, I need to manipulate Timer1 value. Which is also getting changed.
But, after changing ...