We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [analogread]

A standard Arduino function for detecting the voltage on an analog pin via ADC.

Filter by
Sorted by
Tagged with
0
votes
2answers
490 views

Is there a away to transmit sensor signal over RF without Arduino?

I would like to place analog sensor in a place, that is impractical to reach with a wire. But it looks like an overkill to use a separate small Arduino board to read and transmit sensor signal to main ...
2
votes
1answer
346 views

Arduino as voltage monitor shorts to ground

I need to monitor voltages of several DC circuits in a generator's contact box. Whenever the generator has an alarm, a LED is lit in the box and voltage on the line drops to zero. I successfully get ...
5
votes
3answers
19k views

Sending a value from one arduino to another

I wonder if it is possible to send a value from one arduino to another. Basically, I have one arduino measuring let's say weight, but I want to display that value using an lcd in another arduino. ...
0
votes
1answer
181 views

AVR+Arduino ADC problem

I have connected a circuit to analog pin 0 in the Arduino.I have this code ,which I understand partially(online resources).The problem is that it prints nothing neither on Tera Term nor on Cool Term ....
1
vote
3answers
1k views

How to Store 2 analogRead values and read using EEPROM for Arduino Uno?

Trying to write 2 values coming from analogread(A0) and analogread(A1) by EEPROM.write and retrieve the values by EEPROM.read. I tried the following sketch for each write and read. However, could not ...
2
votes
2answers
94 views

Are there any Analog pins on the mega that can not be used as Digital?

I am using both Arduino nano and Arduino mega boards in my projects. I got a nasty surprise the other day when I learned that, on the nano, Analog pins 6 and 7 can not be used as digital pins. Are ...
1
vote
1answer
1k views

Issue with CD74HC4067 MUX on high values

I'm having a small issue with the CD74HC4067 multiplexer/demultiplexer: I am using it to receive data from an array of sensors (at the moment I have only 2, but in a near future they will grow). ...
2
votes
2answers
1k views

Hall Effect Current Sensor Wiring

I need help with wiring this current sensor so that I can read the output voltage as an analogue input. - http://www.tamuracorp.com/clientuploads/pdfs/engineeringdocs/L03SXXXD15.pdf This is how I ...
1
vote
2answers
2k views

Arduino nano getting powered through analog input?

I noticed something today. I am powering the Arduino Nano from a battery and a 5v step up converter. That works just fine and I'm getting a stable 5v output. I have a second cable coming out from the ...
0
votes
3answers
101 views

Arduino ,How I can see the value (0 or 5) on my screen, where I connected my sensors output to analog input A0,A1.. pins

I am working in my project and I want to see the output of my sensors as (0 or 5). The maximum read was 770 and the minimum read was 0. So, how can I see the value (0 or 5) on my screen, where I ...
4
votes
2answers
142 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
6k views

Can I supply the board's 3.3V directly to the AREF pin?

Short dumb question: can I connect the 3.3V pin and the analog reference pin (AREF) directly? I've heard mentions of a 32K internal resistor but I'm not willing to risk a short circuit without ...
1
vote
2answers
806 views

XL335B accelerometer reports false readings

I'm using an XL335B accelerometer in a GY-61 breakout board. I'm powering the device using the UNO's built-in 3.3V power supply. The following code should convert the readings to m/s² (SI); however, ...
0
votes
2answers
5k 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 ...
5
votes
1answer
8k views

Can I use analogRead to read a digital pin?

analogRead(nGPIO_max + lockerVal) were nGPIO_max(maximum digital pins in Arduino Uno is 13) and lockerval is 2. Which pin is it reading?
0
votes
1answer
205 views

Signal sampling: losing data every 103 points when it is recorded in SD

I'm working on a system of acquisition and ECG datalogging with the Arduino, and I'm having the following problem: I'm losing data every 103 points (just 103). No matter the sampling frequency to use, ...
1
vote
1answer
277 views

Read an analog signal without changing it? Or should I start over?

Hi! I'm still working on my kettle project. I want to obtain the kettle temp from the existing thermometer. I'm able to do this, but much like trying to look at an electron my circuits all reduce the ...
0
votes
2answers
2k views

Reading a photoresistor

I have a wire with a 0-5v current. I want to detect if the current is there or not (HIGH/LOW.) I'm using an optocoupler to avoid putting too much current into my micro, as it is only a 3.3V micro. I'...
2
votes
0answers
169 views

Uno Ethernet shield and TMP36 reading

I am just getting started with my Uno via the Vilros Ultimate Starter Kit. I've done all of the sample circuits and played around with a few other things. Today I connected the Ethernet shield with ...
0
votes
2answers
2k views

Arduino Micro + Max4466 - Noise on A0

I've got an Arduino Micro, and a MAX4466 ECM / AMP breakout board (https://www.adafruit.com/product/1063). I'm powering the Arduino Micro from the USB port. On the MAX4466 (to the Arduino), I've ...
1
vote
1answer
1k views

how does an 8-bit AVR do 10-bit analog read?

I am building a pH meter and having a real close look into the analog components, and reading the Arduino documentation for analogRead(). https://www.arduino.cc/en/Reference/AnalogRead I see it says ...
2
votes
1answer
625 views

Analog INPUT_PULLUP for resistive sensors?

Can you use the internal pull-up on an ADC pin? Is it correct usage? Example of hardware usage would be a cadmium photocell between Ax and GND. Software is the same, except declaring Ax as ...
3
votes
4answers
4k views

Increasing ADC resolution

At this moment I am using oversampling to increase my analogread resolution. This in combination with increasing the frequency of the ADC. Is someone able to take a look at it? #define FASTADC 1 // ...
1
vote
3answers
781 views

Can do I make an Arduino program that can decipher telephone touch tones?

I have an old land line phone that I want to connect to my Arduino. Then I would like to write a program that can decipher the touch-tone button presses (which are a combination of two tones) so that ...
-1
votes
1answer
631 views

0-1 V input to 0-5 V Output

We have an instrument that has analog output of 0-1 volts and we need to convert this to 0-5 volts. What is the best op amp to use for this and how should the resistors be set up? Any help would be ...
4
votes
2answers
4k views

How to increment and decrement an output voltage by using two buttons?

I'm trying to create a code using an Arduino Uno board to increment and decrement the output voltage of the Arduino Uno which is 5 volts and I need to step it up to 10 volts which I have done below. ...
0
votes
1answer
516 views

Analog pins all reading same value

I'm trying to read 5 analog inputs, but all the pins are reading the same as pin A0, plus or minus a couple points. I tried using pulldown resistors on all 5 pins and it made no difference. The board ...
0
votes
1answer
217 views

changing analog pins data logging using sdFat library

Background: My goal is to use sdFat library, more precisely AnalogBinLogger example. I want to log data from changing analog pins for example, I want to log from pin 0 to pin 3 for 5 minutes and ...
1
vote
1answer
42 views

Trouble reading V_BG

I would like to read MUX 14 with the ADC. On page 263 of the Atmega328 data sheet it shows 1110b on the MUX corresponding with reading V_BG. I need to read this so I can calibrate my sensor ...
0
votes
1answer
87 views

Arduino AD-converter tolerance

I created a quite simple Arduino sketch: void setup() { Serial.begin(9600); } void loop() { int sensorValue = analogRead(A0); Serial.println(sensorValue); float voltage = sensorValue * (5 ...
1
vote
1answer
2k views

Arduino Cross Correlation?

How can I write lightweight cross correlation code for arduino? I couldnt find any solution. The measurement system contains an ultrasonic sensor and a servo that turns from 45 to 135 degree and ...
0
votes
2answers
98 views

When and where do I have to worry about accounting for sensor “noise”?

I just watched this excellent video tutorial that shows a simple Arduino program that toggles an LED via a pushbutton. Very cool! Being brand new to electronics/robotics, I was shocked that something ...
2
votes
0answers
459 views

Accuracy reading two analog inputs on Arduino

I need a help with this question. I'm trying to make a Wheatstone Bridge with Arduino, the main idea is read the two legs of the circuit with two analog inputs of Arduino, for the while I'm analyzing ...
5
votes
4answers
13k views

Can I connect a PWM pin on one Arduino to an analog input on another?

I was considering several different ways to send simple data from one Arduino to another when I though, why not connect a PWN pin of one Arduino to the analog pin on another? I could send simple ...
4
votes
4answers
256 views

How exactly is voltage measured on an Arduino?

How do the analog pins on an Arduino measure voltage? Do they either measure current and calculate the voltage with Ohm's law? (If so, why can we only read voltage and not current directly?) Or do ...
1
vote
1answer
578 views

Why does the ADC overflow when using an external Aref?

I'm using an LM35 temperature sensor, and it outputs 190 mV (which agrees with 19°C). I'm using an external reference voltage which I measure as 417mV. (This is set by the pin "aRefCntrl"). So I ...
1
vote
0answers
40 views

Bridge */arduino/analog/2 returns a blank page

Had some start up difficulties. But updated the YUN and IDE to the latest version. Using * "/arduino/digital/13/1" works as supposed (turns on the LED) - it's just a bit slow. But I can't see why ...
1
vote
1answer
2k views

Is it possible to use two encoders with Arduino Uno?

I would like to control 2 motors with the Arduino Uno board, which provides only two interrupt pins on digital 2 and 3. I've set one encoder using these pins, and it works. What do you think about ...
2
votes
1answer
717 views

AVCC and AREF when using a reference voltage lower than 5V?

I'm designing a circuit that will use a 2.5v reference for the AREF. Should AVCC be powered from 5V or 2.5V?
5
votes
2answers
6k views

UNO analog input voltage reading not accurate

My loop code is this: // read the input on analog pin 0: int sensorValue = analogRead(A0); // print out the value you read: Serial.println(float(sensorValue*5000.0/1023)); delay(1); // delay ...
1
vote
0answers
56 views

Analog Input not going zero [duplicate]

Arduino Uno user here I am building a project with 4 analog inputs A0 dose not work. A1 A2 and A3 work perfectly fine! But for last input when I connect to A4 or A5, then they do not go to zero. They ...
1
vote
5answers
8k views

Arduino unstable analog reading when using power supply

As soon as I unplug my Arduino from USB and only use the VIN pin with my 9 V power supply, the analog readings from my Arduino start to get unstable, which means the value fluctuates much more ...
0
votes
1answer
62 views

Do I need to worry about voltage, coming from ground, and effecting an analog input?

I am building a project that includes an analog Input and several digital Inputs and Outputs. All of them connect to ground in some way. Do I need to worry about voltage, coming from the digital ...
5
votes
4answers
20k views

How to add hysteresis to threshold values?

This code compares the analog input value against two thresholds, having three voltage regions. Then it will turn on an LED according to what region the read voltage is in. The problem is that when ...
2
votes
2answers
1k views

SainSmart CO2 sensor module use?

I purchased this CO2 sensor a while back: SainSmart MG811 Gas CO2 Carbon Dioxide Sensor Module Sensor Module for Arduino UNO R3 Raspberry Pi The module has four pins, Vin, GND, Dout and Aout. I ...
0
votes
1answer
538 views

Stabilizing output values of conductive sheet(Velostat) connected to analog pin A0 of Arduino

I am trying to do some experiments with conductive sheet (velostat). When I apply a force on the sheet it should change the value of resistance(output). I taking the output of the sheet by connecting ...
2
votes
1answer
390 views

Arduino ADC read bad value

I have an Arduino device and I'm trying to read two voltages. The first one is the Arduino Vcc by using the bandgap value 1.1V (this requires raw access to registers since it's not implemented in ...
1
vote
1answer
61 views

Plugged in shield off by one, now all analogues read high

I have a prototyping shield for an Arduino Uno. I accidentally plugged the shield into my arduino so that the pins were all "off by one". I didn't think this was possible, but it turns out that the ...
1
vote
1answer
414 views

Is it possible to use FrSky D8R-II Plus 8ch 2.4Ghz ACCST Receiver with an arduino Uno?

I'm in the process of buying a receiver and transmitter for my quad copter project. Would it be possible to use this receiver or a similar one to control the quad. I'm trying to read the signals using ...
5
votes
2answers
3k views

Is it wise to use analog input pins to read digital buttons?

I am thinking about building a circuit that is literally going to take 11 of the 14 digital pins of an UNO to communicate with an SD card and an external EEPROM chip (EEPROM programmer). Using 4 ...