Questions tagged [voltage-divider]

25 questions
7
votes
3 answers

Measuring li-ion that arduino is running from

I am using a 5v Arduino pro mini (with regulator and power led removed). I have been reading how to accurately measure Li-ion batteries when powering from the same battery you are trying to measure from. Using the 1.1V internal analog reference to…
7
votes
2 answers

How to read high voltage (40-65v) from a Solar Battery bank

I would like to monitor the battery voltage of a 48v solar battery system. The expected voltage range is 40-65v. I have tried creating a voltage divider with 2 resistors but with all values I have tried one resistor almost melts as soon as you…
Joelm
  • 73
  • 1
  • 4
4
votes
6 answers

What is the most efficient voltage divider for Arduino?

I need to make voltage divider, so I could read a battery voltage up to 14.4 V. Could I use very high resistance resistors for that, so the current would be very low (to not to discharge battery)? On the Internet there are examples with 500 - 2000…
Name
  • 135
  • 2
  • 6
4
votes
1 answer

Measuring 12 V via voltage divider: choosing the right resistors

I want to measure a 9 V battery via one of the analog input ports of my Arduino Nano. From all the schemes of this great answer, I choose the simplest one, the voltage divider. Assuming the maximum input voltage to be 12 V (just to be safe) and…
madhead
  • 143
  • 4
3
votes
1 answer

Common Ground Between Arduino and ESP32 - Can I Re-use the ESP32 GND Pin for a Potential Divider

I am trying to connect an ESP32 to an Arduino Mega via Serial Communication using the UART 2 ports on both microcontroller boards. There needs to be a common ground between the ESP32 and Arduino. Hence I have connected the ESP32 GND and Arduino GND…
timmy george
  • 131
  • 2
2
votes
1 answer

Inaccurate and non-precise voltage reading from Arduino Analog pin

float get_volt() { rawVolt = analogRead(voltageSensor); vOUT = (rawVolt * 4.6) / 1024.0; vIN = vOUT / (R2/(R1+R2)); //if(vIN>12.0){vIN=12;} //if(vIN<11.12){vIN=11.12;} //return (vIN - 10.18) * (100 - 0) / (12.0 - 10.18) + 0; return…
2
votes
1 answer

Thermocouple and multimeter

I've put together this script that should allow my Arduino Mega to be show thermocouple readings on the serial monitor, whilst also showing readings of voltage and ohms across a given component. I'd be grateful for any advice on how it can be…
1
vote
1 answer

adc arduino using reference voltage to read stable/constant lithium battery voltage

I want to read my lithium battery voltage. I WANT TO CREATE A FUNCTION TO READ MY 3.7~4.2V,1200mAH BATTERY VOLTAGE THROUGH A MICROCONTROLLER (ARDUINO OR ATTINY44). THEN I WANT TO CALL THE CREATED BATTERY FUNCTION IN THE FORMULA TO READ PRECISE…
1
vote
2 answers

Arduino Nano: HUGE voltage drop on VIN

I am building a small automated indoor greenhouse. I want to use an Arduino Nano to control some LEDs und a fan (both through relays) and a water Grove Water Atomization module. Everything works fine, as long as I power the LEDs and the fan with a…
1
vote
1 answer

Battery voltage measurement with voltage divider

I am using the following circuit to measure the Li-ion 3.7V battery capacity. Figure 1 – Schematic for 3.7 V batteries. This setup works fine for the 3.7V batteries. To be able to measure 9V batteries, I modified the circuit with a voltage divider…
Zaffresky
  • 183
  • 3
  • 17
1
vote
1 answer

esp8266 analogRead of 5.5V soil moisture sensor input using voltage divider

On an ESP8266 I try to analogRead(A0) my soil moisture sensor using a voltage divider but I get unexpected low values. The MT3608 increases the esp's output voltage from 3.3V to 5.5V which is the recommended voltage for my capacitive soil moisture…
mika
  • 113
  • 6
1
vote
1 answer

HC-05 Module not receiving commands and not pairing

I'm working on a project where I'll need to establish a connection between two HC-05 modules, each connected to an Arduino, but for now I'm just trying to get one to work and connect to my phone, but I'm not sure if I'm doing anything right... I'm…
The Riser
  • 123
  • 1
  • 6
1
vote
1 answer

How can I measure maximum range of my ohm meter?

Hello everyone I am working on a project that will measure ohm value of a resistor . Schematic / article link https://create.arduino.cc/projecthub/iasonas-christoulakis/how-to-make-an-arduino-ohm-meter-90fda8 And Here is the code below int…
1
vote
1 answer

esp32 voltage divider readings off

Trying to read from a voltage divider circuit using two 240 Ohm resistors. Getting a reading of 6.0, when it should be 1.65. Circuit is powered by a bench 3.3V and both the Huzzah32 and circuit are grounded. Using USB for the Huzzah32. Any…
1
vote
1 answer

How to read voltage using ADS1115

I'm very new to this. I found this tutorial. But it don't explain how to read voltages higher than Arduino 5V. I have connected a 100K ohm resistor to positive and 10K ohm to negative of my 24V power supply. I need some guidance for writing the code…
BIGsmall
  • 25
  • 1
  • 7
1
2