Questions tagged [analogread]
A standard Arduino function for measuring the voltage on an analog pin via ADC.
349 questions
0 votes
1 answer
98 views
Arduino DUE - I Have enabled A14, will this break anything?
I developed a quick custom PCB using the ATSAM3X8EA-AU as I wanted to use Arduino to program it as an Arduino DUE, I kept most of the schematic the same, however I used pin A14 pin 52 as an analog ...
-1 votes
1 answer
79 views
Pop-Up Headlight Management
I have a 90s car with pop-up headlights but I don't have the original headlight module. So I am trying to make one myself. The idea is simple 1- I have a Master switch that keeps headlights UP ...
0 votes
1 answer
176 views
Arduino seems to be reading incorrect analog I/O. Am I doing something wrong?
I am using an ATTiny88 to measure temperature using a 470 ohm thermistor attached to port A3 on the Arduino. The thermistor is attached in series with an 1870 ohm resistor connected to Vcc. At room ...
2 votes
0 answers
120 views
Non-blocking analogRead for Arduino Nano 33 BLE sense
I need an alternative to analogRead() that doesn't block the processor. I've managed to find a lot of solutions for this for other boards, but not something that's compatible with nrf5240 like the one ...
0 votes
1 answer
163 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 ...
1 vote
0 answers
293 views
ESP32 Shows Incorrect Input Voltage From Analog Pin
I have an esp32 WROOM-32 connected to a MQ9 gas sensor to GPIO35. Both are powered separately. measuring the output from the sensor directly using a multi-meter shows a constant reading of 0.145 V but ...
0 votes
2 answers
146 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 ...
3 votes
2 answers
402 views
How to turn LEDs based on voltage readings?
I am trying to turn LEDs in an LED bridge based on the voltage reading from a power source. when the Voltage is zero nothing is ON and then the LEDs gradually turn ON as increase the voltage connected ...
1 vote
1 answer
181 views
Inconsistent results when reading input looking for spike patterns
I'm writing a library that will interface with a control unit on a refrigerator compressor pump (QDZH35G). One of the features of the control unit is that it can detect what problems it's encountering ...
0 votes
2 answers
85 views
Why does analogRead(A0) deliver different Values when called in a library file vs calling it in the sketch directly
I wanted to write a library representing a sensor to later on have an array of sensors. I generated a file MoistureSensor.h: #ifndef MoistureSensor_h #define MoistureSensor_h #include <Arduino.h&...
4 votes
1 answer
80 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
94 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 ...
4 votes
1 answer
194 views
Analogue input spikes
i have a project where i read two analogue inputs from two sensors and a pro Mini. I have some spikes in my readings that are present when i'm powering the system using a powerbank step-up module. ...
1 vote
1 answer
683 views
50% duty cycle PWM signal with calculated frequency
#include <PWM.h> int led = 9; void setup() { InitTimersSafe(); Serial.begin(115200); Serial.println(); variable_freq(); pinMode(A0,INPUT); } void variable_freq() { while(true) { ...
-2 votes
1 answer
326 views
Using 1.1Vf to read stable battery voltage and sensor voltage
After several tries, i was successful with reading stable battery voltage using internal voltage reference of 1.1v, now the issue i face is that i cannot read stable sensor voltage, could you please ...