Arduino Mega 0 - 10V analog input?

Is it possible to configure the Arduino to give me 0-10V analog input?

I realize that I can use a voltage divider. I was just wondering if I can use a larger range for the analog input.

Replay

Input voltages can be "scaled" down to suit the Arduino's ADC input voltage range.
As Oli says, a 10V input can be scaled down with a potential divider.
In its most basic form this can be two resistors.

As shown below, the input current flows through R1 and through R2.
Voltage drop across a resistor = V = I x R
As both resistors carry identical current (= input current)
the voltage drop across each resistor is proportional to the resistor value

Arduino Mega 0 - 10V analog input?

So, if R1 = R2 then the the voltage across each is equal so they each drop half the input voltage.

In the general case - input voltage is across R1+R2. Output voltage is across R2 only. So Vout = Vin x R2 / (R1 + R2)

ie the division ratio = R2 / (R1 + R2)

When R1 = R2 the division ratio is 1/2 so
a 0-10V input will be reduced to o-5 volts.

R1 and R2 can be typically 10k ohms each in this case.

Much larger values can be used but they can affect the conversion accuracy. eg 100k + 100k.
Usually it is wise to limit R2 to not more than about 20k ohm.

I believe the analogue pins natively take 0-5V. In which case, you simply need to use a potential divider to halve your input voltage.

You can modify the Arduino (ie, the assembly/pcb) with resistive dividers, op-amps, or whatever to change the input range (though it may be easier to mount these off board) by prescaling the signal before it reaches the AVR chip.

You cannot however increase the actual input range of the AVR chip itself that is on the board.

The resistor divider example is the easiest. If you arrange two resistors of equal value (say 1K ohm & 1k ohm), with one end attached to Ground (0v) and the other furthest end to your input, at the midpoint (ie where they are connected to each other) the voltage will equal half of the input votage. Can't do a very goo diagram here bu esserntially:-

Vinput ---///--- Voutput ---///--- Ground. Where ---///--- is each resistor.

The equation given above is correct.

Think of it as two springs where voltage is how far they are extended; If you pull on the top of both springs, the midpoint will be half the height of the top. Hence half the voltage. An easy pictorial analogy.

Mr.H.

Category: input Time: 2011-11-08 Views: 2

Related post

  • SCT sensor to 0-10v analog input 2012-11-05

    I'm trying to read values from a SCT-013-030 sensor that gives 0-1vac readings . My board analog inputs are 0-10vdc,giving me a value from 0 to 65500 . I need to know what is the best method of amplify this signal to be more accurate possible. I read

  • Arduino: two more analog input! 2012-07-23

    i'm dealing with analog sensors. I have an Arduino Lilypad Simple Board with only 4 analog input. Now, i need two more sensors and i've found on the net this schematics: But i don't understand if it could add delays on my project because i'm controll

  • Analog Inputs on Arduino 2012-05-17

    Something that is confusing me on the Arduino is the Analog Inputs. Can they be used as normal I/O Digital or only I Analog? --------------Solutions------------- On most microcontrollers that have special functions for their I/O, like analog in, but

  • Arduino Mega 2560 - Stepping down voltage as input 2013-04-05

    Maddy from Little Bird Electronics suggested I go direct to the experts so here goes.. My requirement is:- 20 Rooms temperature to monitor In Place:- We currently monitor these rooms back to a patch panel that displays this info. Using TP2000 Probes.

  • Arduino Analog Input example clarification 2012-07-24

    First of all I'm total nub in electronics. Recently I got an Arduino Nano. Now I'm trying to understand why there is no potentiometer nominal at http://arduino.cc/en/Tutorial/ReadAnalogVoltage example and how variation of this nominal would affect An

  • Arduino Mega 2560 - Ghost Values on Analog pins 2013-05-14

    Yet again in need of your help... I have the Arduino up and running reading 2 external temperature probes. I'm using a common ground (tried separate ground same result) and Analog Pin 0 (A0) with 1 probe and the second probe connected to Analog Pin 1

  • Use the same pin as digital output and analog input with an ARM (sam3x / Arduino Due) 2013-10-29

    I have an application where I need to use one pin as a digital output and analog input. I switch between input and output at a "high" frequency (>1 kHz) and it takes to much time to disable and enable the ADC-Channel all the time. When the AD

  • Arduino - Voltage ladder and analog input pins 2014-02-12

    I have two questions: 1. Does the analog pin on the arduino board get the voltage or the amperage from the circuit I connect it to? (of course it's scaled to a value from 0 to 1023) .2. I have this circuit: Assuming you can only turn on one switch at

  • 3.3V digital signal as input to Arduino mega 2560 2014-04-07

    I am using arduino mega 2560. I know it reads digital input signal of 5V as high but could any one tell me whether it takes 3.3V digital input as high or not? And what is the minimum value it guarantees to read as high? --------------Solutions-------

  • Isolate two Arduino analog inputs 2014-05-15

    I have a stereo VU meter. (Audio in on Arduino pins A0 and A1 and GND to common GND also 32ohm resistors going to GND on A0 and A1 to simulate coming speakers) Now my problem is software architecture makes each channel very sensitive to voltage chang

  • Detect alternating current using one contact only and arduino analog input 2014-09-29

    I am trying to setup an arduino so it can detect an AC where it only has access to one pole. (kind of like these "electricians screwdrivers" that you put in one of the connections of an electric outlet, and then it lights up by completing the ci

  • Sensing analog voltage on Arduino without loading the input circuit 2014-12-16

    I want to design a voltage divider for my Arduino Analog input pin, to be able to sense the change in voltage in a 9V, 250mA circuit (without loading it). Ive programmed the Arduino so that as soon as a drop in voltage is sensed, my Arduino will perf

  • Need to get more analog inputs Arduino Uno 2015-06-04

    Im making BattleShip on the Arduino: 2 x grid ((10x10 push buttons) + (10x10 led 5mm)) 2 x grid ((10x10 reed switches) + (10x10 led 5mm)) I made a 10x10 grid of push buttons by setting 10 buttons in a row with resistors on each button. By putting it

  • Arduino's Resolution with Multiple Analog Inputs 2015-12-30

    Resolution of an analog to digital conversion means the ratio between the maximum value of the measured signal to the number of data point that it can resolve(0-1023). So for Arduino(10-bit) my resolution is 5V/1024=4.88mV. Now I wonder if this value

  • Simulating digital and analog inputs on a PLC 2012-04-18

    What would be the simplest way to interface digital and and analog inputs from a PLC to outputs on an AVR ATmega328? All I need to do is simulate different analog values and digital states. --------------Solutions------------- First off, your ATMega3

  • Does the Arduino wireless shield mate with an arduino mega? 2013-08-05

    I have an arduino mega and I was wondering if this arduino xbee wireless shield (http://arduino.cc/en/Main/ArduinoXbeeShield) would work with it? I've only seen people using it with the uno.. --------------Solutions------------- The answer appears to

  • Using Arduino Mega With lots of strain gauges 2015-02-16

    I was looking for a strain gauge shield for an Arduino Mega. I found this link which I found really useful: http://www.osengr.org/Projects/Load-Cell-Shield/Load-Cell-Shield.html At the bottom of the web page linked above, the details regarding the ci

  • Algorithm for mixing 2 axis analog input to control a differential motor drive 2011-09-19

    I am looking for information about how to implement proper mixing of 2 analog joystick signals (X an Y axis) to control a dual differential motor drive ("tank like" drive) using a uC (ATMega328p in my case, but same should apply to any uC with A

  • What waterproof temperature sensor do I need to measure water temp using an arduino mega? 2012-05-14

    I consider myself a complete novice when it comes to electronics. My current project consists of measuring water temperature using an arduino mega. What parts will I need to complete this project? So far I searched sparkfun and arrived at this: http:

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development

search

Front-end development

Database

development tools

Open Platform

Javascript development

.NET development

cloud computing

server

Copyright (C) avrocks.com, All Rights Reserved.

processed in 0.283 (s). 13 q(s)