Questions tagged [adc]

Analog Digital converter

Analog Digital converter is a converter that convert analog voltages to digits

183 questions
13
votes
4 answers

Does ADC conversion to a voltage rely on the actual value of the +5 V pin?

Questions: Does the conversion of the ADC count to voltage depend on the actual voltage of the +5 V pin? If yes, what is the accepted method of getting that voltage from the board? Background/Detail: I have a circuit in which I have an Arduino…
Caribou
  • 233
  • 3
  • 10
8
votes
2 answers

Why analogue pins affect each other?

I have a sensor and it generates an analogue signal. I am reading all analogue data and sending it to my computer. uint8_t sensors[] = { A0,A1,A2,A3,A4,A5,A6 }; const int len = sizeof(sensors) / sizeof(sensors[0]); void loop(void) { for (size_t…
erow
  • 215
  • 3
  • 5
6
votes
2 answers

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 receive any. The MOSI pin is therefore not required in…
Fulcrum
  • 61
  • 4
5
votes
2 answers

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?
Etwus
  • 153
  • 4
5
votes
4 answers

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. With the standard number of CPU cycles needed for the…
FarO
  • 339
  • 1
  • 4
  • 14
4
votes
2 answers

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 of measuring 0V? Would it ever result in a…
Gerben
  • 11,156
  • 3
  • 19
  • 33
3
votes
1 answer

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 there any way to measure or look for that
3
votes
1 answer

What is the maximum "wattage" can be pushed into an ATMega328 ADC pins?

I was doing some Ohm's Law calculations to calculate the voltage output from a 2-resistor voltage divider, the input will be with a maximum of 12 volts, I want the ATMega328 to measure that voltage, so I simply thought of putting two resistors in…
Shams M.Monem
  • 206
  • 2
  • 9
3
votes
1 answer

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 print out the values stored in adc_addr, I always…
Ashish Ranjan
  • 435
  • 1
  • 5
  • 15
3
votes
1 answer

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 of this. system_adc_read() gets called in…
Ashish Ranjan
  • 435
  • 1
  • 5
  • 15
3
votes
4 answers

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!
Eyal Givon
3
votes
2 answers

ADC with better performance

I need to sample voltage at a very high rate (say for like 10000 Hz) and with a very good precision(at least 10-12 bit ADC will do). So I am in need of an Analog-to-Digital Converter(ADC) which has a very high sampling rate (sampling rate has to be…
3
votes
2 answers

ATtiny88 ADC reference voltage setting

I'm writing a simple application that reads voltage from analog input 0. Here is the code: #define OUT 5 #define ADC 0 void setup() { ADMUX &= (0<
Em Ka
  • 151
  • 1
  • 11
3
votes
1 answer

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 problem can be to use an external ADC (16bit, I…
ANUPAM BISHT
  • 63
  • 1
  • 1
  • 6
3
votes
1 answer

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: #define SAMPLE_BUFFER_SIZE 800 volatile int…
Alex
  • 129
  • 1
  • 8
1
2 3
12 13