Questions tagged [adc]
Analog Digital converter
197 questions
1
vote
1
answer
91
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 ...
0
votes
1
answer
114
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
216
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
83
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 ...
1
vote
1
answer
295
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 ...
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 ...
-1
votes
1
answer
429
views
If I reduce ADC sample rate, do I get an average over the time period?
I am working with a ESP32-C3 devkit. I am using the internal ADC on that chip to read from an analog microphone. I initialize the ADC like this:
adc_continuous_config_t dig_cfg = {
.sample_freq_hz ...
1
vote
1
answer
779
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
301
views
Mildly accurate oscilloscope using Arduino Uno R3
I'm trying to make a mildly accurate oscilloscope using Arduino Uno R3 and I've done some research on the best method to do so. First of all I need to measure the voltage with a rather high sampling ...
-1
votes
1
answer
374
views
What is the minimum sampling rate in ADC in Arduino due?
I am looking for a very low frequency application like below 300Hz. What is the minimum sampling rate in Arduino due? I am very new to this. I see in the datasheet that max sampling rate is 20MHz.
1
vote
0
answers
174
views
how to set the arduino due adc automatic trigger
How do I trigger automatic conversion on the ADC on the DUE? If this was the uno, I could just do
sbi(ADCSRA,ADATE); sbi(ADCSRA,ADSC);
but for the due, I seem to have to use
adc_configure_trigger(ADC,...
1
vote
1
answer
126
views
Arduino pro mini sampling rate
what are the possible sampling rate the user can set in Arduino pro mini using ADCSRA registers.
I want to set my desired sampling rate through registers, is it possible?
0
votes
1
answer
265
views
How many ADS1115 ADCs can I connect to a single Arduino Mega 2560
I know we can connect 4 ADS1115s to an Arduino Mega 2560.
Is there any limit on the number of ADS1115s we can connect to the Mega giving each a different address? I have to connect at least 36 ...
1
vote
1
answer
611
views
How to send data from one Arduino to another isolated?
I have no experience about serial communications, with that being said; I have two circuits isolated from each other and each have a ATMEGA8 reading a voltage on their ADC.
I want one of them to send ...
1
vote
0
answers
2k
views
Fastest external High Speed ADC?
I am in a situation close to:
Hi-speed external ADC
But with 100,000 ~ 500,000 samples per second, I don't need more.
I only want to detect changes in 2 sensors, so each loop is only an "...
1
vote
1
answer
2k
views
DC Motor Acceleration with PWM
I'm not sure why this has been so difficult for me, but I'm trying to control the acceleration of a 10v DC motor with an Arduino UNO and an L298n H-Bridge. Using a 12v regulated power supply to power ...
1
vote
1
answer
153
views
Arduino ADC converter calculation
I am trying to choose a wire encoder for my project. So far, I found this wire encoder (see link). Assuming the measurement range of my cylinder is 1 m. Then, with a 10 bit ADC converter of my Arduino ...
3
votes
1
answer
374
views
micros() resolution for Portenta H7
Is there any way to know the resolution of micros() for the Arduino Portenta H7. I have checked for other boards e.g. Nano which is mentioned as 4 uS. However, I couldn't find one for Portenta H7.
Is ...
0
votes
2
answers
2k
views
Portenta pinouts for ADC
I wanted to have your comments about one of my questions.
I am currently working on the sketch for the Arduino Portenta H7. However, due to my poor electrical background, I would like to ask your ...
2
votes
1
answer
2k
views
Storing data in Arduino Portenta H7's SDRAM
I am working on storing data from Portenta H7's ADC through a high sample rate (>100kSa/sec) per channel. I am using 2 ADC channel for my work. Through the forum, I learned that the serial. print ...
0
votes
1
answer
689
views
Library ADC MCP33121
I'm looking for the Library of the ADC MCP33121 for Arduino UNO or functional code, I don't have enough tools for testing so I'd like to get some code already tested.
I appreciate any help.
Thanks... ...
1
vote
1
answer
358
views
Why do I get different results when compiling the same code with different ide?
I have a basic code about reading true rms.I compiled the same code with arduino ide and atmel studio, then ran it in a proteus simulation.I'm trying to measure how long the read_rms() function takes.
...
2
votes
1
answer
2k
views
Any way to use DMA to transfer data to SD Card in ESP8266
I'm using ESP8266 at speed of 160 MHz to record ADC results into SD card, I need to do this at rate of 8 KHz. Means that i should save it on the SD Card or i'll run out of memory before 4 Sec passes.
...
2
votes
1
answer
1k
views
Inaccurate and non-precise voltage reading from Arduino Analog pin
float get_volt() {
rawVolt = analogRead(voltageSensor);
vOUT = (rawVolt * 4.6) / 1024.0;
vIN = vOUT / (R2/(R1+R2));
//if(vIN>12.0){vIN=12;}
//if(vIN<11.12){vIN=11.12;}
//return (vIN -...
2
votes
2
answers
1k
views
Arduino binary LED 10 bit display
I'm working on a simple ADC project, the goal is to adjust the on/off of the LEDs according to the binary reading (1-on,0-off). I've tried this with 8 bit, and it works as intended. But on 10 bit, two ...