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
1answer
261 views

How to interpret analog values sent to Arduino from line scanner?

So I have a line scan camera attached to my Arduino Mega and I'm trying to send it a digital clock impulse and get an analog output back. The line scan camera is supposed to return 128 pixels. So far ...
0
votes
2answers
2k views

IF, ELSE IF functions not working with analogRead

not sure what is going wrong in the code below, but it's a simplified code of a larger piece I'm trying to debug. I notice that the code seems to skip to the else statement even though the if ...
2
votes
2answers
4k views

Why is my potentiometer giving strange reading?

I have a 10kOhm linear Potentiometer. I connected it to analog 0, as in https://www.arduino.cc/en/Tutorial/Potentiometer. The analogRead() gives a value between 0 and 1023, so I was expecting 0 if ...
0
votes
2answers
398 views

Driving numerous chips from 2 separate SPI connectors w/ Arduino Micro

I want to drive numerous chips (L9823, TLC5925, ADG1414, MCP23S08) from an Arduino Micro as well as read input from analog pins connected to momentary buttons, toggles, potentiometers and such. The ...
3
votes
1answer
461 views

Erratic readings on Analogread with low voltages

I am using Arduino Uno for measuring sensor voltages. I am using multiplexer to switch between different sensors. The readings measured in the range of 800-900 mv are accurate, but at low millivolts (...
1
vote
2answers
1k views

When should you worry about interference affecting the analog input?

I made something that uploads the measured current to Thingspeak. Everything works, but i did not place the DC to DC converter on the board because i was worried that it would interfere with the ...
5
votes
2answers
150 views

Practicality of recording speech

Is it practical to record speech with the Leonardo? I want to record speech via a MEMS microphone and stream it over a serial connection to a Raspberry Pi for speech-to-text processing. This article ...
2
votes
1answer
2k views

Maximum potentiometer resistance

I want to hook up a potentiometer to my arduino (Leonardo) as a voltage divider with the middle pin to an analog pin. I want to use the highest resistance to save power. I looked on the datasheet and ...
3
votes
1answer
568 views

LM335Z temperature sensor gives very varying values

I'm trying to get consistent values from the LM335Z temperature sensor. But it behaves very strange. I'm using an arduino nano and it's powered via USB from a Raspberry Pi. The circuit also has two ...
0
votes
3answers
2k views

Getting the average of sound in last minute

I am reading sound input every 60 seconds and I would like to calculate the average of sound during that period using non-blocking code; what should I do to change the way that I calculate it in ...
1
vote
2answers
924 views

Accelerometer axis inputs driving three RGB LED strips - Trinket Pro 5V

I am looking to take the analogRead Value of the x, y and z axis (at pins 0, 2 and 4) and if it's a motion state, perform a rainbow, cylone and cascade LED sequences using Adafruit Neopixel library. ...
1
vote
1answer
81 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
1answer
184 views

Arduino Mimicking Voltage Dividing Keypad / Matrix

Still very new to Arduino, so bare with me. I've been all over Google looking for ways to hack my alarm keypad. This is my first time using the Arduino to hack something :smiley-confuse: The keypad ...
0
votes
1answer
256 views

Why does analog sensor “hum” when plugged into common ground?

I have the ground for an SD card module, LED, and piezo sensor all plugged into the same ground rail. When doing this I get a low "hum" in the piezo readings where instead of reading ground voltage (0)...
1
vote
1answer
463 views

How to wire and use a B10K linear LED potentiometer?

I've bought some nice looking LED potentiometers from Ebay. They look like this. I'm very new to low level electronics/hardware and I don't know how to wire it. It has 4+2 pins. Also, how to use it in ...
2
votes
2answers
22k views

Arduino: Read frequency of input from audio jack

I want to trigger an arduino from a sound from an audio jack from a mobile phone. The audio is a 1 Khz sound that the mobile will play. I want to avoid accidental triggering of the audio by testing ...
3
votes
2answers
4k views

Help Understanding FFT Analysis and analogRead()?

Here's the deal, I'm attempting to learn how to use an FFT (Fast Fourier Transformation) Library for sound analysis (link is here). My issue is that this comes with included C++ code to show users how ...
3
votes
2answers
837 views

Does lowering arduino analog reference increase precision in measuring low voltage?

The definition for Analog Reference is as follows: The reference voltage used for analog input (i.e. the value used as the top of the input range). By default you have analog reference of 5V. So the ...
1
vote
0answers
325 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 ...
1
vote
2answers
1k views

Analog Pins are sensing Values

I used the example code AnalogReadSerial and tried it on all analog pins from A0 to A7. None of the analog pins were connected to anything so I expectedy to get 0 in the serial monitor. But as it ...
4
votes
1answer
4k views

Precision voltmeter using Arduino

I am newbie, I need to measure precise voltage in range 0.00-0.80V, two digits precision. The voltage will not be greater than 1V-1.2V. I wonder if I need divider or not, I am sure that voltage ...
2
votes
1answer
3k 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
141 views

Measuring voltage on an analog pin - What do I need to know about amperage?

I'd like to measure the voltage at a test point on a stepper motor driver chip with an arduino. The voltage at this point controls the amperages to the phase coils and is adjusted to trim the driver. ...
3
votes
2answers
2k views

How to wire an analog IR sensor for digital input?

How do you wire a phototransistor so that it outputs a clean digital signal in response to certain light levels? I've wired a QRD1114 to an Arduino analog pin to detect a white or black surface. ...
0
votes
1answer
3k 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 ...
0
votes
1answer
3k views

MQ135 output on Arduino Uno

I bought an FC-22 (MQ135) gas sensor module which I plugged into my Arduino Uno. I connected it to the A0 analog port. Then created a code that reads the raw data from A0 (code below). When I run the ...
12
votes
1answer
2k views

Update Dynamically Tkinter Widget Scale from Arduino Ports using python and firmata

I'm having trouble trying to get Arduino digital ports values and set these values into a Python Tkinter Widget Scale. I'm using Python and Arduino with Firmata. I'm able to access my arduino board ...
0
votes
1answer
514 views

Math with analog input values coming out wrong

Im getting stuck in a while loop because Im having trouble running a calculation on some sensor values. When I read my four sensors values and compare the ratio of the first two to the second two, I ...
1
vote
1answer
235 views

Using digital weighing scales with INA125p

Complete electronics beginner here. I'm attempting to build a weighing scale with an Arduino. I'm attempting to follow this tutorial, with the shield that they use. I've arranged my load cells on ...
3
votes
2answers
3k views

Safely enabling voltage divider on a 12V battery

I'm planning to monitor voltage of a 12V battery with an Arduino's ADC pin connected via a voltage divider. Since I don't want the circuit itself to drain the battery when not in use, I want to use a ...
0
votes
1answer
459 views

Why does my analogRead work on Teensy but not Arduino Uno?

I have successfully made a voltage measurement circuit on my Teensy 3.1 that reads a voltage coming out of digital pin 0 set high and coming back into an analog pin A0 to read voltage. Basically: ...
3
votes
2answers
2k views

Reading analog signal from digital pin #6

Is it possible to use digital pin 6 (PD6_PCINT22/AIN0) to read an analog voltage with analogRead()? According to the ATMega datasheet, this should be possible. If yes how is it done ? (pin ...
0
votes
1answer
1k views

Wrong analog reading

I am making a simple Li-Ion battery Tester. Basically its two 5R1 resistor in series and a relay (used to cut off the battery when it reaches cutoff voltage). Arduino is connected with ground to the ...
0
votes
1answer
297 views

Bluetooth distorts analog read?

I'm working to make a simple pedometer with Arduino, and after managing to find an algorithm that correctly finds the steps, I added a bluetooth extension (the overly popular and cheap JY-MCU) to ...
1
vote
1answer
7k views

Arduino Pro Micro Analog Pinouts

I have the Arduino Pro Micro and I would like to use all the analog pins that I can on it. It currently looks like it has a total of 9 Analog pins that can be used. A0, A1, A2, A3, A6, A7, A8, A9 ...
0
votes
2answers
83 views

Identical statements, different outcome

First a little background on me and my project. Most of my programming experience is with PHP and javascript. I have just recently started looking at C and C++ for this Arduino project. My project is ...
0
votes
2answers
594 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
399 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
22k 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
244 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
2k 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
103 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
105 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
147 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
7k 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 ...
2
votes
2answers
905 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, ...
-1
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 ...

1
3 4
5
6 7