Questions tagged [adc]
Analog Digital converter
197 questions
1
vote
1
answer
92
views
Arduino Nano ADC input selection
The maximum ADC sample rate for the '328p, using the default prescaler of 128, is given as roughly 10000 samples per second. Maybe I've missed it, but I can't see whether that is the total rate for ...
1
vote
3
answers
162
views
How can I create a short (0.5us) electrical pulse (50mV amplitude)
I'm working on a charged particle detector consisting of a plastic scintillator and a SiPM to create an electrical signal and I'm using an arduino with an ADC to detect these pulses.
I'd like to ...
2
votes
1
answer
187
views
Custom (external) reference voltage for ADC: is there a lower limit?
I'm reading an analogue oxygen sensor (SGX-4OX) with a Nano Every (ATmega4809-based). We're seeing up to about 60mV* in ambient air (it will reduce as we purge with nitrogen), and the ADC is 10-bit. ...
0
votes
1
answer
117
views
ESP32 pressure sensor readings (RFP602)
I have two RFP602 sensors that I use.
One connected to GPIO2, the other to GPIO4, each connected to a 1Mohm resistance.
The sensor connected to GPIO2 reads the data how I want it, I have to press a ...
1
vote
3
answers
217
views
AREF pin on Arduino Uno R3
edit
So then, AREF can only output a voltage when used by the ADC, but not when used by the AC.
That is what I sense all your answers are pointing at, yet none has it black on white. My questions ...
1
vote
0
answers
1k
views
ESP32 WROOM32E w/ Arduino IDE 2axis joystick - how do I get a good reading?
How do I get the full range of motion from an analog joystick and the ESP32 WROOM32E using the Arduino IDE with esp-idf installed?
Using a 2 axis analog joystick, the 5v/3.3v pin, ground pin and the ...
0
votes
1
answer
2k
views
How to properly read ADC on an ATtiny85? [closed]
What I want to do: attach six buttons to a single input. Each button triggers a different action.
How I want to do it: Use an AD conversion and add a resistor with different values to each button so ...
1
vote
0
answers
141
views
Deciphering AD7730 outputs
I am currently working with a AD7730 chip for analog-digital conversion. The chip is programmable, and I have been pulling code from GitHub as well as other links.
I am unfamiliar with SPI (the ...
1
vote
0
answers
84
views
Reading from Analog Mic and Transmitting over BLE (Nano 33 BLE)
I'm trying to read from an analog mic with a sampling frequency of 10 kHz and transmitting the data over BLE on Arduino Nano 33 BLE Sense Rev 2. The MCU reaches that sampling rate with no problem but ...
0
votes
1
answer
73
views
Why does the ADC report 0 in this sketch?
This sketch always reports 0 for the ADC reading.
I think this is going to turn out to be something silly, but I cannot find the source. I've reviewed the sketch ADC lines carefully and they seem ...
3
votes
1
answer
2k
views
ESP32 ADC <-> WiFi issue
I'm using the ESP32's ADC1 (not ADC2, which conflicts with WiFi functionality) to capture some analog data received at IO36 (an ADC1 port).
As soon as I uncomment the WiFi.mode(WIFI_AP_STA) line (even ...
1
vote
1
answer
297
views
Microcontroller freezes when triggering the gate of an N-channel MOSFET
Disclaimer: I have asked questions about this project before but this is yet another issue I'm facing.
What I really want to do: Build a battery powered device with 6 colored buttons. When you press ...
1
vote
1
answer
219
views
Avoid 1-LSB noise on ADC readings
I have a potentiometer connected to an ADC input of an Arduino Leonardo.
The ADC resolution is 10-bit (0..1024), while I need just 7-bit (0..127).
I use a simple filter to reduce the noise and then a ...
1
vote
1
answer
783
views
AD7768-1 library " Arduino "
I am working on a project and I need an AD7768-1 library to make this analog-digital-converter talk to my Arduino using SPI.
" The AD7768-1" doesn't exist in Arduino's library.
Thanks in ...
2
votes
1
answer
278
views
Hysteresis and scaling range
Here I asked about how to add an hysteresis on ADC readings. The answer received was very good and it worked out of the box.
Still I'm having troubles trying to generalize the resample function in ...