The adc tag has no usage guidance.
0
votes
1answer
25 views
Implementing an external ADC in Arduino
I'm planning to use a ADS1220 4-channel 24 bit adc but I really have no experience with SPI. I have found this library but I can't really understand the code that much and also this is measuring the ...
0
votes
0answers
14 views
Arduino Due: ADC gain adjustment problem
I want to increase gain of the ADC channel. To achieve this I'm using adc_set_channel_input_gain function from adc.h. Here is the entire sketch:
const byte aPin = A6;
void setup() {
...
0
votes
0answers
14 views
Getting PWM output from non-PWM pin with IR obstacle sensor
I was testing the IR obstacle sensor with my pro Micro board yesterday.
So, I was expecting a digital output, I learned later that IR obstacle sensor gives analog output, but the microcontroller is ...
0
votes
2answers
36 views
Is the analogread function averaging the samples taken by the ADC?
In many development boards the analog voltage data which is sampled by the ADC can be sent to the serial port. But the data speed I see on the serial port by HyperTerminal or Serial monitor is much ...
3
votes
1answer
25 views
Read signal from co-ax cable with ADC
I have an Arduino Uno and I'd like to read a signal from a co-ax cable with it. The cable carries 12VDC (power for other components) along with a signal (of about 1 Ghz frequency). How do I go about ...
6
votes
1answer
87 views
Using SPI without driving MISO
I am developing an application where an Arduino Pro Mini communicates with a 12-bit ADC over SPI. The communication is one-way, meaning that the ADC will only send data back to the Arduino, not ...
1
vote
1answer
24 views
ADC port manipulation
I was modifying this ADC Touch implementation, namely switching analogRead and pinMode to what I thought would be port manipulation equivalents.
I get very different readings (better and more stable ...
1
vote
3answers
93 views
AC meter By ADC timer interrupt from Nick Gammon
I want to read ADC from the pin A0 and A1. I have written in this code, however.
I took this code came from Nick Gammon
Thank You
///////////////////////////////////////////////////////////////////...
5
votes
4answers
235 views
How to keep accurate millis() while using ADC_sleep mode?
millis() uses timer0 (linked to CPU clock) to count time, but ADC_sleep mode stops the CPU clock, therefore millis() will drift (lag behind) after each ADC conversion performed in ADC_sleep mode.
...
1
vote
1answer
32 views
An audio jack modem
I'm looking at controlling Arduino by reading audio commands sent from a raspberry pi (through javascript). I've found the SoftModem code and wonder how it works. It claims that "It uses the phone's ...
0
votes
1answer
51 views
Advanced ADC setup on Due (SAM3X8E) to increase precision
I want to make some precise measurements with Arduino Due. Although I'm using very good external voltage reference (LTC6655) measured data is still jumping around, especially significant when I'm ...
0
votes
2answers
92 views
Cheapest and easiest Arduino board for 12 bit ADC, thinking of M0
I need an Arduino board for simple ADC, but 10 bits of resolution is sadly not enough. I am going to buy a board with 12 bits of resolution, but really couldnt decide on the exact model. It needs to ...
0
votes
1answer
66 views
AnalogRead from voltage divider ladder
I'm building a MIDI guitar, using an Arduino, sound synthesising and wood.
To properly know which note I'm pressing, I built a voltage divider with 12 equal resistors (10K). One side is connected at +...
0
votes
1answer
44 views
analogRead values all over the place, while measuring light
I'm trying to detect light using an led that's already attached to the circuit. I have a flashlight shining on the led.
Minimal sketch:
while( true )
{
int photoValue = 0;
analogReference(...
0
votes
1answer
192 views
analogRead() takes >400 us on Arduino Zero but ~100 us on Uno, why?
I've been trying to figure out why the analogRead() function takes about four times as long on an Arduino Zero than on an Uno, when the Zero has a faster clock than the Uno. Arduinos website says ...
0
votes
2answers
115 views
Using micros() to measure analogRead() time varies based on Serial.print location?
I'm trying to use micros() to measure the time it takes to execute an analogRead() cycle, but am having some issues. Originally, I just printed out the measured time for the analogRead() right after ...
0
votes
1answer
156 views
How can you speed up the ADC on an ATtiny85?
I'm reading input from a camera and trying to reach a fast frame rate. Problem is my ATtiny85 has a pretty slow conversion time (65 - 260 µs Conversion Time). Is there any way to make this faster? I ...
1
vote
1answer
162 views
Arduino ADS1115 PGA settings
I am trying to use an external ADC with my UNO for very precise measurement of my signal.
The ADC which I am using is ADS1115.
http://henrysbench.capnfatz.com/henrys-bench/arduino-voltage-...
0
votes
0answers
44 views
Analog instability while switching outputs, including I2C bus
Arduino ADC I2C Issue
Brief
Arduino reading analog 0-10VDC as fast as possible, and switching/flashing outputs at various set-points.
Method 1
Tried using standard analog in with a voltage ...
3
votes
1answer
607 views
Using an External ADC with Arduino
For my project I have to measure a signal of the order of few microvolts.
As we know the least an Arduino can measure is ~5mV, due to its 10bit ADC and 5V reference voltage.
A solution to this ...
0
votes
2answers
75 views
ADC timer interrupt when ready
I have a microphone and I need as precise values as possible. I have been told by my teacher, that it is somehow possible to make a ADC timer interrupt, which would interrupt always when the value is ...
0
votes
1answer
196 views
Measure different Vcc using 1.1V bandgap
When I power my ATmega328P chip from 5.16V and 3.3V, there doesn't seem to be a single bandgap voltage compensation figure that works for both.
I'm using the following sketch, and I need the ...
0
votes
1answer
644 views
Arduino/ESP8266 no SPI data coming from MCP3008
I'm using an ESP8266 (NodeMCU Dev Kit v1) to read analog data via an MCP3008 ADC chip.
However I'm receiving only zeros when I know non-zero data should be present. I'm using the following code, ...
-2
votes
2answers
63 views
Pi3 + ATmega644P: How do I establish a data connection with 1 analog input and 1 digital output left on the AT?
I have no UARTs left on the ATmega and need to deliver 1 Byte of information from the pi using 1 analog input. I2C is no option either.
I planned using the digital output to request an analog signal ...
1
vote
1answer
153 views
Using a SPI based ADC (ADE7912) with Arduino
I'm trying to use Analog Devices' isolated ADC ADE7912 to build a native product for voltage and current sensing, using an Arduino as a microcontroller. The IC communicates with the Arduino using SPI (...
1
vote
2answers
197 views
Multiplexing potentiometers
Is it possible to have two rotary potentiometers read from a single analog input pin?
The analog input is 10 bits (0-1023), so each pot would have 5 bit precision (0-15).
Least significant bits for ...
3
votes
1answer
41 views
Comparison of a bit vs. setting a bit
Simple question really, I just want to be sure that I understand it correctly. I understand this isn't necessarily Arduino specific.
With regards to the ATmega2560 I'm doing 3 back-to-back A/D ...
1
vote
1answer
58 views
What will happen if I supply greater than 1.1V to analogue inputs if analogReference set to INTERNAL?
I am reading a 50Hz AC voltage using the analogue inputs.
If I set the analogReference() to INTERNAL, meaning 1.1V on the Arduino Uno, what will happen if a voltage greater than 1.1V is supplied to ...
0
votes
2answers
206 views
Expanding analog inputs to the Arduino
I need the Arduino to read about 100 analog inputs. Is this even doable? If not what is the maximum analog inputs I can read into the Arduino (The maximum non trivially would be to use the analog pins ...
1
vote
3answers
104 views
Integration of signal
In my house, I have a low voltage AC signal (0-10V) that is proportional to the amount of current that is drawn at any moment (or as it is presented: kW) (europe, 50Hz). Presently, it is just shown as ...
1
vote
0answers
50 views
How to generate Analog Signal (Voice) to the microphone
I have question about microphone and generating sound signal. I have microphone in my intercom at home. It is simple analog microphone, not digital.
What I want is to connect arduino analog ...
3
votes
1answer
653 views
Arduino Due: Interrupt-based ADC hangs processing
I am trying to build an oscilloscope using an Arduino Due and an LCD. I have the LCD running perfectly and started working on using the ADC peripheral to sample signals. Here's what I have so far:
#...
3
votes
2answers
124 views
Is it possible to directly set the registers that control the ADC clock on the Arduino?
Is it possible to directly set the registers that control the ADC in an Arduino Yun (micro-controller side is essentially a Arduino Leonardo) from a sketch or is there a specific file somewhere you ...
2
votes
1answer
388 views
Arduino Uno ADC behavior in free running mode
I'm using my ATmega328P to sample an analog signal in free running mode. The ADC clock frequency is set to ÷128. I've read that a single analog conversion lasts 13 clock cycles. I would like to know ...
0
votes
1answer
430 views
Arduino Mega 2560 ADC sampling instant and other timings
Hello Everyone (I might be making some mistake in asking this "question", bear with me as I am new to these sites... I honestly think this is the best way to frame my inquiry because it's rather ...
1
vote
0answers
131 views
Using a Hot Wheels Radar Gun with FreqPeriod library
I want to make a clone of those radar enforcement signs that look like this:
I bought a Hot Wheels Radar gun that can send an analog signal to determine speed. See this thread: http://forum.arduino....
2
votes
1answer
2k views
Speed of built in DAC/ADC in Arduino Due
Can someone tell me how fast the built in DAC (and ADC) in an Arduino Due can be written or read? I currently don't have the equipment to measure but need the information to plan my next steps.
I ...
2
votes
3answers
187 views
Read Voltage at PWM off time, and Current at PWM on time
For a battery charging project, i am using an ARDUINO UNO which is driving a buck converter to provide the battery with the charging current. I am using external ADCs to measure the battery's charging ...
1
vote
1answer
378 views
HX711 Load Cell application strange behaviour
I have an application where an HX711 ADC is used with 4 load cells. (in wheatstone bridge configuration, rated at 50kg each).
The thing is that I am trying to sense 30~ish gram changes with it ...
0
votes
1answer
344 views
Interfacing ADS8319 with Arduino UNO
I am using Arduino UNO and trying to interface 2 16-bit ADS8319 ADCs with it via the SPI interface.
I have interfaced the 2 ADCs with the micro-controller using the "4 Wire CS Mode Without Busy ...
2
votes
2answers
2k views
Arduino constant clock output
I am controlling an ADC with my Arduino Uno. I would like the clock of the ADC to be the same frequency of the Arduino.
Is there any way that I can have a constant clock output from one of the Arduino ...
2
votes
3answers
333 views
Algorithms to reduce measurement error from analogue sensors
When reading analogue sensors - e.g. load cells, accelerometers - via a microcontroller's Analogue to Digital Converter, there are many sources of potential measurement error including:
a) Warm-up ...
0
votes
2answers
122 views
How to capture good sound with Arduino?
Is it possible to capture good sound with Aduino? I need to record street / birds / nature sounds.
As I found, maximal sample rate, achievable with built-in ADC is 9kHz, which is to low.
So, I ...
1
vote
2answers
69 views
Measure Vcc using 1.1V bandgap
For an battery driven application I want to measure the Vcc (using an Atmega 32u4). That is my code:
int readBandGap() {
ADMUX = (B01 << REFS0) // VCC
| (0 << ADLAR) // ...
1
vote
1answer
212 views
ACS712 inacurrate reading. Wild jumping
I'm trying to use my 30A ACS712 on my OSD (it has ATMEGA16L).
But it is very unstable, 0 amps goes from 450 to 445, but that isn't that bad, but when I put 10A of current through it jumps from 440 ...
0
votes
2answers
612 views
Hi-speed external ADC
I would like to detect signals in nanosecond scale. For that, an ADC with at least 500 MSPS is required.
My question is if its possible to use an external ADC with 500 MSPS with a 16MHz Arduino Mega? ...
4
votes
2answers
87 views
Usefulness of measuring 0v using ADC
I'm looking at the datasheet of the ATMega328, and I see the different channels you can select for AD conversion. ADC0..7, ADC8 (temperature), 1.1V (VBG), and lastly 0V (GND).
What would be the use ...
0
votes
2answers
1k views
Can I use analogReadResolution() on an Uno or Leonardo?
I am trying to get a spectrum analyser up and running. I found the following code on Galileo GEN2 Project - Real-Time Audio Spectrum Analyzer1:
/*
*
* Galileo GEN2 Project - Real-Time Audio ...