Questions tagged [adc]

Analog Digital converter

Filter by
Sorted by
Tagged with
0
votes
1answer
54 views

How do I convert this program to assembly from c++

I am trying to implement a program in assembly code for an Arduino UNO. A potentiometer is used on an ADC pin for variable time (t). LED1 flashes for t seconds, then stays on for t seconds, then goes ...
0
votes
1answer
36 views

Using Arduino to Record analog signals with SPI ADC + Sampling Rate Issue

I am using Arduino UNO to Read 8-channel, 24-bits resolution Analog signals using ADS1299 Analog-fornt-end. ADS1299 use SPI interface to talk with Arduino. Currently, I can record the analog signal ...
0
votes
0answers
31 views

Attiny ADC at voltages less than 5v

So, this is peculiar. I am using an ATTINY84 chip as an i2c ADC converter (there are reasons why I'm using this rather than a dedicated chip, but that's not really relevant), and I've noticed that I ...
1
vote
2answers
46 views

Sampling stereo audio at greater than 40 Hertz using arduino

I am working on a project to make a speaker with reactive lighting. I need to be able to sample stereo audio at a decent rate for songs. The audioRead () function can do about 8 kHz and I have heard ...
0
votes
0answers
30 views

Combining ADC IRQ with SPI peripherals results in SPI not working

I'm working on a pet project that requires ADC, SD card (SPI interface, SdFat library) and a display in the future (also SPI). I have put together a piece of code that initializes ADC at the highest ...
1
vote
1answer
78 views

analogRead() output oscillates even though the pin is grounded

I'm using Arduino Micro to read from 5 flex sensors and display the corresponding angles to the Serial monitor. I am currently having quite some problems with the oscillating values I am getting from ...
-1
votes
1answer
22 views

Controller freezes

I am using atmega 2560 as main(master) controller and other 5 salve 2 atmega 8 and 3 atmega 328p, there is two device with analogue output connected to main controller atmega 2560 through ads1115 ...
1
vote
1answer
19 views

How does use an arduino like a A/D converter for convert 3 analogue signal from 3 poteciometer to a raspberry?

I am developing a control system in my raspberry, but i have the problem that it doesn't have any analogue port, so if i use an arduino to convert de signal from analogue to digital and after send ...
0
votes
2answers
40 views

the code and the actual output didn't match

i want to make the stuff, which the output is written from the analogread, but when the A3 == HIGH, the output pin 9 is used, but when the A3 == LOW, the output pin 10 is used, and when i simulate it ...
0
votes
2answers
67 views

How to get average of 16bit ADC readings?

I have an Adafruit ADS1115 analog-to-digital converter, configured in single ended mode. I want to average over 3 sensor readings to increase the reading stability. //initialize variables int16_t ...
2
votes
1answer
85 views

Ardunio Mega/ATmega2560: Using Port F or K for both analog inputs and digital outputs

On an ATmega2560, can ports have some pins used for analog inputs but others as digtial i/o? Specifically, I only need to use 3-5 analog inputs but have many digital inputs. I would like to use the ...
3
votes
1answer
156 views

SPI Connections to DAC [closed]

I'm hoping to construct a feedback loop for a laser using an Chipkit UC32 and an analog-digitial converter ( the one of I have is an AD5780 evaluation board). I've been reading through Digilint's SPI ...
0
votes
0answers
118 views

AD7606 DAQ and datalogging

I'm making a Data Acquisition System for force impact usign an AD7606 from Analog Devices, an Arduino DUE and a load cell. I already tested it following this guide an making the proper changes for ...
0
votes
0answers
206 views

Arduino Mega and ADS1256 board

I found code for a Teensy board and now I added just digitalwriteFast library to code and changed port to SPI for Arduino Mega. And now I get just one number out: #include <SPI.h> #include <...
0
votes
0answers
91 views

Using TCA9548A to read 30 ADCs

I want to read 30 differential ended analog sensors. Using ADS1115 16 bit this is possible, but we end up having only 4 address on I2C, so i chose TCA9548A breakout board with 8 I2C multiplex channels,...
0
votes
0answers
23 views

AK4524 with Arduino

I have some AK4524 ADC/DAC chips from an old M-Audio Delta 10/10 sound card in my hand. I would like to use them for precision sensor reading and voltage generating with a arduino nano. My ...
0
votes
1answer
53 views

Voltage meter ADC + serial: Bytes lost during communication

I want to make a simple digital voltage monitor. So I have a sketch: void setup() { Serial.begin(115200); } void loop() { int val = analogRead(A4); // read the input pin val = 1; byte ...
0
votes
1answer
35 views

How to check whether my arduino-mega ADC is sampling correctly?

I have a code which samples the given input signals with sampling rate 256hz. I plotted the graph of FFT and was able to see the peaks at the expected frequencies.But I would like to know whether my ...
0
votes
1answer
120 views

Getting incorrect output from ADC over SPI in Arduino Uno

I am trying to read data from an ADC ADCS7476 (datasheet) using SPI on Arduino Uno. I am using the following code to read the data from the ADC and printing it on serial monitor. However, the code is ...
1
vote
1answer
55 views

Anomalous behaviour of ADC, digitalWrite and floating point operations

I'm trying to analyse mic (A0) input, calculate certain spectral lines with Goertzel algorithm to detect a number encoded by DTFM and display it with 8x8 matrix display (max7219 driver). The code ...
0
votes
1answer
107 views

Running ADC triggered by TIMER1_COMPB

I'm trying to run ADC on channel 0 triggered by TIMER1_COMPB. Everything seem to work ok but basic arithmetics is not working and variables inside ISR and even main loop don't get updated (x == 2 all ...
1
vote
1answer
220 views

Trouble configuring Arduino Due SPI to ADC

I am having trouble configuring Arduino Due SPI to an AD7490 ADC. Here is how I have the pins connected: +3.3V > 7490 pin 22 Vin +3.3V > 7490 Vref DUE CS (8) > 7490 pin 20 SS - slave select) DUE ...
0
votes
1answer
87 views

ADC noise when sharing ground from external supplies

i have resistor based sensor, when i test it using arduino connect to PC using serial monitor without sharing ground to other circuit it has a nice value between 300-650 in adc range and the error/ ...
1
vote
1answer
98 views

Arduino Uno ADCH register stuck at 255 when read from ISR

I'm working on a project that will essentially become an oscilloscope in the long run. I am following this guide. My code is uploaded here for more reference. In my .ino file I have called functions ...
0
votes
2answers
62 views

Stacking adc's when making an midi controller ( lots of potmeters)

I'm making a midi controller with the Arduino uno. It contains approximately 50 analog inputs with potentiometers. I have enough MCP3008 adc's here but I have no idea how I connect 2 or more adc's to ...
0
votes
1answer
105 views

Due: Write to digital pin when ADC is running

I have a problem writing to a digital pin on Arduino Due while my ADC is running. I have the following code: #undef HID_ENABLED // Arduino Due ADC->DMA->USB 1MSPS // by stimmer // from ...
0
votes
1answer
184 views

Waterlevel sensor disrupts PH reading

I have a water level sensor and a PH sensor connected to my nodemcu via an ADS1115 . When I insert only the PH sensor into the water then everything works fine. But when I insert the waterlevel sensor ...
0
votes
1answer
84 views

If I use a biasing circuit for a signal going into an analog input pin, will it affect the ADC operation?

If I have a single 100Hz AC signal biased by two 1 M-ohm resistors (as per schematic below), and then output to an Arduino UNO analog input pin, with the UNO sampling at around 1 kHz using delays, ...
5
votes
2answers
601 views

What will happen if I set ARef to 3.3V and try to use adc connected to 5V

What will happen, if I try to measure voltage higher than ARef? For example, my ref is 3.3V, and I try to measure 4.5V. Will it damage adc?
1
vote
2answers
141 views

How to set sampling rate for digital pin input? [closed]

I have an ADC that have sampling rate up to 40 MSPS, but i use 8 MHz clock so it will be 8 MSPS. The board used is arduino nano. The problem is i have to sampling it just 2 MHz (because the capacity ...
0
votes
1answer
76 views

How to decrease adc accuracy?

I read in this atmega328p datasheet the following on page 308: From sect. 28.4: By default, the successive approximation circuitry requires an input clock frequency between 50kHz and 200kHz to ...
0
votes
1answer
350 views

Interaction between Analog Pins when measuring a DC voltage- a common issue? [duplicate]

Just set up a replacement "Piduino" - a RPi3 connected by USB to an Arduino Uno. The previous one was the victim of a Diet Big Gulp - spilled on the voltage divider breadboard. Whoops. The tiny ...
0
votes
1answer
162 views

Repairing Analogue Inputs on Uno?

After a long afternoon, chasing a fault on my project, I've come to find that I've damaged 2 out of the 6 Analogue Inputs. Their ADC reading doesn't display 0 when grounded, nor a known ADC value from ...
0
votes
2answers
2k views

Measuring Lithium ion cell voltage used to power Arduino via a boost module

Can I measure lithium ion cell voltage with Arduino ADC which is used to power the same Arduino through a boost module (XL6009)? The output voltage of boost module is 9 volts.
0
votes
0answers
822 views

ESP8266 ADC read analog

I have a 24CL256 external EEPROM, to which I wish to write 30,000 bytes of 8-bit data, reading from the built-in ADC of an ESP8266. Here is my code: void setup() { Serial.begin(115200); Wire....
2
votes
1answer
2k views

ESP8266: system_adc_read_fast() always give 1024 as output

I need to use system_adc_read_fast (uint16 *adc_addr, uint16 adc_num, uint8 adc_clk_div) to get a sampling rate close to 100ksps. And I am able to achieve that using adc_clk_div = 32. However, when I ...
1
vote
0answers
752 views

Where is the definition of system_adc_read() in the esp8266 Arduino code?

Where is the definition of uint16 system_adc_read(void) in the esp8266 Arduino code? I can see it being declared in Arduino/tools/sdk/include/user_interface.h, however there seems to be no definition ...
1
vote
1answer
1k views

Read analog signal over the SPI bus using MCP3201 ADC and Arduino Uno

It is possible to use the SPI bus when the Vref of MCP3201 ADC is 2.5V? On the setup i just finished, I used two linear regulators: 5V -> 3.3V to power the MCP602 op-amps and MCP3201 ADC, and another ...
2
votes
4answers
6k views

what is arduino adc reference?

I'm using arduino for the first time and don't really understand what am I suppose to plug to the ADC refernce PIN... or if I even have to use it while plugging analog sensor to the arduino, thanks!
2
votes
2answers
392 views

Lowest voltage applicable on AREF pin on Uno and Mega

I need to measure an Analog signal in the range of 5-30 mV. Naturally, using the internal default 5V reference leads to very poor measurement resolution. I would like to use the capability to use an ...
0
votes
1answer
126 views

External ADC reference when using MATLAB support package for Arduino

I am using the MATLAB support package for Arduino. However, I need to configure the ADC reference to external. MATLAB documentation doesn't really explain how to do this? Is there any way I can use ...
1
vote
1answer
47 views

Using Li-Poly battery to run UNO + Adafruit data logger

I want to power Arduino UNO+Adafruit data logger (https://www.adafruit.com/product/1141) with a 3.7V 2000mAh Li-Poly battery. I am providing an excitation voltage of 3V, through one of the digital ...
1
vote
0answers
69 views

ADC pin shutting off on its own under certain condition

A0 pin not working when full PV system in use I am using the DFRobot Leonardo with Xbee R3. I am using the A0 pin to read a 0-5V voltage from my voltage sensor, which samples and steps down 130VDC ...
0
votes
1answer
81 views

Where to remove an ADC bias?

I'm using several ACS712-based 5A current sensors. They're non-polar and so (I gather) the output is biased to Vcc/2 to allow a swing in either direction. The sensor outputs +/- 185mV/A, plus the bias....
0
votes
1answer
44 views

How do i fill the second byte?

I am using I2C communications to control a AD5694RBRUZ (http://www.analog.com/media/en/technical-documentation/data-sheets/AD5696R_5695R_5694R.pdf) with my Arduino Nano. If i enter two bytes it wil ...
1
vote
2answers
1k views

Arduino protecting analog input with internal voltage reference

Usually a common way to protect an analog input consists on reducing voltage and current in the following way: Current limiting components, as Resistors or inductors and voltage limiting components ...
0
votes
2answers
632 views

How do I calculate sampling rate of external ADC?

I am wondering if someone could explain this to me. I want to calculate sampling rate of external ADC. I am using ADS8320 which has max sampling rate of 100kHz, with Arduino MEGA 2560. SPI divider is ...
2
votes
1answer
368 views

Attiny85 - Method to discard glitched ADC values?

I have a problem i need to solve so i will simply it as much as possible. Basically there is a system with a micro-controller where it reads 2 sensors. These 2 sensors are of variable resistance type,...
3
votes
1answer
234 views

Can I connect a voltage, higher that the 1.1V bandgap voltage, to an ADC pin

Can I (attempt to) measure a voltage that is higher that the ADCs Vref, without damaging my IC? I'm trying to measure the battery voltage using a resistive divider, and using the internal 1.1V ...
-1
votes
1answer
362 views

Start I2C communication at an external event

I'm working on a Arduino Uno and a ADC ADS1115. Devices communicate by I2C where Arduino is the master. I would like to use the ADC to the maximum of his possibility. So i configure the ADC to set a ...