The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
1answer
52 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
37 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
92 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
81 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
86 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
57 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
32 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
142 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
44 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
106 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
0answers
294 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
93 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 arduino as a microcontroller. The IC communicates with arduino using SPI (and ...
1
vote
2answers
141 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
39 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
53 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
121 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
77 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
37 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
492 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
96 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
288 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
299 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
97 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....
2
votes
1answer
1k 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
133 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
268 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
240 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
1k 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
252 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
101 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
58 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
144 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
480 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
86 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
887 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 ...