display: block; } The microcontroller has 8 analog pins with a 10-bit analog-to-digital converter (ADC). Input and Output Each of the 14 digital pins on the Nano can be used as an input or output, using pinMode (), digitalWrite (), and digitalRead () functions. Maximum current draw is 50mA. Input Voltage: 7V â 12V. Bring this line LOW to reset the microcontroller. At ModMyPi we offer a range of different micro-development boards, which all require slightly different power sources! width: 100%; The techniques here apply to any microcontroller, in fact devices like the ESP-32 or Seeeduino XIAO can actually perform better DC voltage measurements as they have analog to digital converters with a higher resolution. The power source is automatically chosen to the highest voltage source. } Building the Voltage Divider. freotech. The ⦠This means that it will map input voltages between 0 and the operating voltage (5V or 3.3V) into integer values between 0 and 1023. The ADC converts the input ⦠Learn how to use an Arduino to measure voltage, current, and resistance. His project uses an Arduino Nano, along with a separate IC and a voltage divider, to measure both current and voltage input from the power source. In this article, I will show you how to measure DC voltage and current using an Arduino. How to power up the Arduino Nano? The ATmega328 has 32 KB, (also with 2 KB used for the bootloader. It then employs this data to properly adjust a MOSFET, dissipating the correct amount of voltage and power as required. In this state it can source current, e.g. If youâre tired of having to replug or find two meters, then look no further than Karl Kristian Torpâs palm-sized Tiny V/A.. His Arduino Nano-based unit takes input from a power supply via a female barrel jack connector.This supplies ⦠Check out more of my other projects on my website. display: inline-block; PCBWay Is a cheap reliable service where you can get your PCBs manufactured. Arduino Hookup 1 â Basic DC Voltage Measurement. Arduino Nano has 14 digital pins and each of them can be used both ways: as input and output. The Arduino Nano has a number of facilities for communicating with a computer, another Arduino, or other microcontrollers. What is the max current of the Arduino Nano's Vin (30) and 5V (27) pins? LED: 13. #wikitext .productspage .boxproduct.boards:hover { With over 150, 000 parts in stock they should have the components you need for your next project. Acs712 is available in market in three ratings. font-size: 16px; Now to build this voltage divider, we first need to find out the values of … All you have to do is connect vcc of the module to 5v of the Arduino GND to ground of the Arduino and vout to analogue pin 0 of the Arduino. 2 KB: EEPROM: 1 KB. margin-left: 40px; -webkit-transition: background-color 200ms ease-out; Sign up today and get a $5 welcome bonus. This could be a voltage, current, resistance, temperature, light, and so on. The detailed specification of the Arduino Nano board is as follows: Microcontroller ATmega328 Operating Voltage (logic level): 5 V Input ⦠AREF. Vin = Vout * (R2/(R1+R2)) Here R1 = 30000, R2 = 7500 and Vout can be calculated from Analog Input of Arduino by using Vout = (analogvalue * 5 / 1024). We will display the current value on the serial monitor and later we will modify the code and circuit connections to display … Provide 8-bit PWM output with the analogWrite() function. Interface is handled via a rotary encoder and a 16×2 I2C LCD display, and the electronics are housed in a ⦠I have implemented the same in the code. .header-image { a0, A1, A2, A3, A4. Coding in the Arduino language will control your circuit. Module size is small, easy to apply in different places. Features:Using single chip embedded technologyEasy to operate, can be fine ⦠background-color: #7fcbcd; background-color: #9E846D; 22 (of which 6 can produce PWM) Analog Input Pins: 8. Arduino Nano Specifications: Microcontroller: ATmega328: Operating voltage: 5 V: Input voltage (VIN): 6-20 V: Power consumption: 19 mA: Flash memory: 32 KB (of which 2 KB is taken by bootloader) SRAM: 2 KB: Clock speed: 16 MHz: EEPROM: 1 KB: Current per I/O pin: 40 mA (20 mA recommended) PCB size: 18 x 45 mm: Weight: 7 g . The hookup for our first experiment is very simple: The ATmega328p has an operation voltage of 5V, a minimum voltage of 2.7V and a maximum voltage of 6V. background-color:#95a5a6; box-shadow: 0 6px #767C7C;*/ max-height: 78px; } >>Product Name: Arduino Nano >>Specification : Microcontroller: Atmel ATmega328 Operating Voltage (logic level): 5 V Input Voltage (recommended): 7-12 V Input Voltage (limits): 6-20 V Digital I/O Pins: 14 (of which 6 provide PWM output) Analog Input Pins: 8 DC Current per I/O Pin: 40 mA Flash Memory: 32 KB (of which 2KB used by bootloader) SRAM: 2 KB EEPROM: 1 KB ⦠I2C: A4 (SDA) and A5 (SCL). } Read Similar Article: | ⦠a.container-link { Hardware components: Arduino uno × 1: zmpt101b module × 1: ACS712 module × 1: 1K Resistor × 1: 100k Resistor × 1: 1M Resistor × 1: PCBWay Custom PCB × 1: Story . div.description { LOW. } Please assist me by telling me the maximum amount of voltage an arduino uno can handle. It has more or less the same functionality of the Arduino Duemilanove, but in a different package. All the PCBs are high quality and the engineers are very helpful and will resolve any problems you may have quickly. Another key component is an I2C LCD panel, which is easier to wire up as the microcontroller can talk to the display over a single pair of wires. div.titolo { The analog sensor on the Nano board ⦠Arduino MKR WiFi 1010: the Pro version of the Nano 33 IoT, lacks the accelerometer, but includes a battery charger, and the Arduino Eslov connector for external I2C boards. left: 20px; Consider switching to a LDO regulator, or switching the system to 3.3v if this ⦠you have to be caretul that external loads on the Arduino don't pull too much current, because the heatsinking of the regulator iis inadequate. Input and Output. There are a couple of ways in which you can power the Nano board. /*background-color: #95A5A6; reference page. Electronics enthusiast/hobbyist. Shorting I/O Pins to Ground. Memory. text-transform: uppercase; 5V: Regulated power supply used to power microcontroller and other components on the board. Product details of Arduino Nano R3Operating Microcontroller: ATmega328Operating Voltage (logic level): 5V.Input Voltage (recommended): 7-12V.Input Voltage (limits): 6-20V.Digital I / O Pins: 14 (of which 6 provide PWM output).Analog Input Pins: 8DC Current per I / O Pin: 40mA.Flash Memory: 32KB (ATmega328) of which 2 KB used by bootloader.SRAM: 2KB ⦠All three power pins provide a maximum currency of 50 mA. But If you want to use more channels, you can ⦠When the pin is HIGH value, the LED is on, when the pin is LOW, it's off. The first one has four pins ground and VCC pin for powering the module and two input pins in one end into the second set of pins has twist pins with a jumper between the GD, VCC and VCC. The main microprocessor for the Arduino Nano 3 is the ATmega328p. Check Out PCBWay Hackster page. Since the Voltage Sensor module is basically a voltage divider circuit, you can calculate input voltage using the formula. Vin: Input voltage to Arduino when using an external power source (6-12V). Input and Output. box-shadow: 0 6px #7A614E; } This could be a voltage, current, resistance, temperature, light, and so on. The readvcc() function is arduino secret voltmeter it measures the internal voltage on which the arduino is working. February 10, 2021. arduino jumper wires. Then, input the voltage of the pin with the value of 0 to 1023. content: ''; They operate at 5 volts. Open a new sketch File by clicking New. } margin-right: 15px; 3.3V: 3.3V supply generated by on-board voltage regulator. Reference voltage for the analog inputs. Now i am going to interface the arduino acs712 current sensor with arduino uno. Once all the connections are made you just need to upload the code to the Arduino and open the serial monitor and the voltage will be displayed. The ATmega328 provide UART TTL (5V) serial communication, which is available on digital pins 0 (RX) and 1 (TX). We use an AC-AC transformer to reduce de AC mains voltage, to 9 Vac (could be other voltage similar, like 6 or 10 Vac) additionally the transformer provides galvanic insulation. This output will be sensed by the Arduino nano analog input pin and the current will be calculated. white-space: normal; Check Out. SPI: 10 (SS), 11 (MOSI), 12 (MISO), 13 (SCK). today and get a $5 welcome bonus. lcd.print("Digital Load"); lcd.setCursor(0, 1); lcd.print("Circuit Digest"); ⦠Any Arduino based on the 328 or 168 chips has this facility. display: inline-block; margin-bottom: 20px; Arduino Nano Input and Output. Arduino (Brand) | arduino high voltage ... arduino nano i2c. } To measure AV voltage you will need to have a zmpt101b module. Make sure your voltage regulators have enough input voltage to keep working even when the battery is near dead and heavily loaded. div.product-page div.container-buttons { With these resistor values you can measure up to 50v. It then employs this data to properly adjust a MOSFET, dissipating the correct amount of voltage and power as required. 5V. margin: 0; External Interrupts: 2 and 3. Check out PCBWay's new online Gerber viewer. 16 MHz: Flash Memory: 32 KB (2 KB of this used by bootloader) SRAM. Connection Diagram. background-color: rgba(0,0,0,.1); Once the two readings match the input voltage would then reveal the true Arduino reference voltage (of course only to 1LSB accuracy). This Module can convert PWM digital signal into 0 to 10V analog signals. [Table of Contents] ã»Converting analog values to digital values ã»Analog input in Arduino ã»âVolumeâ that can be used to adjust voltage ã»Analog input with volume . float Voltage_Value = analogRead(Read_Voltage); float Current_Value = analogRead(Read_Current); Voltage_Value = Voltage_Value * (5.0/1023.0) * 6.46; Current_Value = Current_Value * (5.0/1023.0) * 0.239; How to measure with more accuracy? div.buttons .blue-button { -moz-transition: background-color 200ms ease-out; background-color: #d35400; float: left; To measure DC voltage you will need to have a 100k resistor and connect it between ground and analogue pin 0 and then you will want to connect the 1m resistor to analogue pin 0 and then connect the other side of this resistor the voltage you would like to test. Arduino boards contain a multichannel, 10-bit analog to digital converter. Discover some Arduino Nano Serial: 0 (RX) and 1 (TX). Once all the connections are made you just need to upload the code to the Arduino and open the serial monitor and the resistance will be displayed. When I connected a 12V external supply as ⦠To measure resistance you will need to have a 1k resistor and connect it between ground and analogue pin 0 and then you will want to connect the resistor you would like to test to analogue pin 0 and 5v. } These pins support SPI communication, which, although provided by the underlying hardware, is not currently included in the Arduino language. Short the pin to … } The above way of calculating the value of Actual Voltage and current will work just fine. The Arduino Software is an Integrated Development Environment that is common to all Arduino boards and runs both online and offline. Each pin can provide or receive a current of 40mA, and has a pull-up resistance of about 20-50k ohms. }, The Arduino Nano is a compact board similar to the UNO. Vin:- The input voltage to the Arduino board when itâs using an external power source you can supply voltage through this pin.If the supplying voltage via USB connection or the power jack, you can access it through this pin. } Each of the 14 digital pins on the Nano pinout can be used as an input or ⦠⦠cursor: pointer; That means it has 5 built-in analogs to digital converter channels. This article is the last in the series. #wikitext .productspage .boxproduct.kits:hover { The power source is automatically selected to the highest voltage source. Out of these 8 are analog input pins and 14 digital input/output pins (of which 6 can be used as PWM outputs). Support I2C (TWI) communication using the Wire library (documentation on the Wiring website). Arduino Code /* ReadAnalogVoltage Reads an analog input on pin 0, converts it to voltage, and prints the result to the serial monitor. .orange-button.grey-btn { margin-top: 30px; If the Acs712 is working on 5v(Vcc=5v) and their is no current flowing from input the Viout will be 2.5v. If you’re tired of having to replug or find two meters, then look no further than Karl Kristian Torp’s palm-sized Tiny V/A.. His Arduino Nano-based unit takes input from a power supply via a female barrel jack connector. height: 187px; position: relative; You can close the circuit with two ground pins. As mentioned earlier, Arduino Nano has 14 digital I/O pins that can be used either as digital input or output. Once all the connections are made you just need to upload the code to the Arduino and open the serial monitor and the voltage will be displayed. Used to receive (RX) and transmit (TX) TTL serial data. width: 250px; As mentioned earlier, Arduino Nano has 14 digital I/O pins that can be used either as digital input or output. .product-page-header { At Tomson Electronics we provide all your favourite electronic components at the best price online. } } We will begin our experiments by measuring DC voltage. Once all the connections are made you just need to upload the code to the Arduino and open the serial monitor and the voltage will be displayed. Read more here . Key Hardware. projects featured from. } PWM: 3, 5, 6, 9, 10, and 11. Viout decreases when current start flowing through the acs712 pins. Only these analog pins of Arduino can be used to measure analog signals. right: 51px; The Arduino Nano can be powered by means of the Mini-B USB, 6-20V unregulated external power supply (stick 30), or 5V regulated external power supply (stick 27). To interface that voltage with an Arduino analog input we use a circuit similar to the current sensing one with a few variations. Arduino Nano (v3) 16×2 I2C LCD; 1K &10K (1%) Resistors; Wiring Diagram. margin-bottom: 15px; #wikitext .productspage .boxproduct.shields { #wikitext .product-page .textsummary div.imrect, #wikitext .product-page .textsummary div.textrect { A resistor, R1 is connected in series with the Zener diode to limit the amount of current flowing through the diode and the input voltage Vin (Which must be greater than the Zener voltage) is connected across as shown in the image and the output voltage Vout, is taken across the Zener diode with Vout = Vz (Zener Voltage). The Arduino's analog pin acts as a simple voltmeter where the voltage value is retrieved. } } } table tr:nth-child(odd) { background-color: #f6fafa;} background-color: #8D7765; } width: auto; Configure an I/O pin to be an output then set it high. Analog pins in the Arduino board are marked with the letter ‘A’ e.g. The values we convert will display on the LED bar graph where it can project the strength. .photo-description div p span.modulecolor { But ⦠All the PCBs are high quality and the engineers are very helpful and will resolve any problems you may have quickly. background-color: #e67e22; Care must be taken when selecting the value of resistor R1, as a … background-color: #374146; .photo-description div p span.oldercolor { cursor: default; They operate at 5 volts. top: 0; The first and easy way is using the mini-B type USB ⦠.board-grid-list .grid-img { I came across this nice piece of code on the TinkerIt site. } The circuit consists of three parts. This Product can be used in the PLC or other industrial panel switch signal interface by adjusting the PWM duty ratios to adjust output voltage. Arduino Nano has a total of 36 pins. Sign up today and get $8 off on your first order. We will display the current value on the serial monitor and later we will modify the ⦠} Each pin can provide or receive a maximum of 40 mA and has an internal pull-up resistor (disconnected by … With the VIN pin you can supply the Arduino Nano with a voltage between 7V-12V to run the microcontroller on battery for example. Reset. The meaning of LOW also has a different meaning depending on whether a pin is set to INPUT or OUTPUT. #wikitext .product-page .buttons.chinese{ margin-right: 180px;} #wikitext .product-page .buttons { transition: background-color 200ms ease-out; Check Arduino Nano related items and add them to your maker toolbox! Typically used to add a reset button to shields which block the one on the board. INPUT); pinMode(current_sense, INPUT); pinMode(voltage_sense, INPUT); // initialize SPI: SPI.begin(); //set up the LCD's number of columns and rows: lcd.begin(16, 2); // Print a message to the LCD. Vin:- The input voltage to the Arduino board when it’s using an external power source you can supply voltage through this pin.If the supplying voltage via USB connection or the power jack, you can access it through this pin. The Arduino Nano is a small, complete, and breadboard-friendly board based on the ATmega328P released in 2008. To measure AV voltage you will need to have a zmpt101b module. Make sure your voltage regulators have enough input voltage to keep working even when the battery is near dead and heavily loaded. Measuring voltage with a multimeter is easy enough, and current is a bit harder, but reading both values simultaneously can be a challenge. a0, A1, A2, A3, A4. } #wikitext .productspage .boxproduct.modules { min-height: 400px; background-color: #ba4b0d; As pointed out earlier that the Arduino NANO has total 14 ⦠#wikitext .productspage .boxproduct.shields:hover { .over-effect:hover::after { The Arduino Nano 33 BLE Sense is an evolution of the traditional Arduino Nano, but featuring a lot more powerful processor, the nRF52840 from Nordic Semiconductors, a 32-bit ARM® Cortexâ¢-M4 CPU running at 64 MHz. It measures this 1.1V reference voltage, and uses the resultant ADV value to work out what the supply voltage must be. margin: 0; today and get $8 off on your first order. If you want to know the voltage, it is calculated and converted to voltage as in line 13. Arduino Nano Voltage Regulators margin-left: 0; margin-bottom: 0; #wikitext .productspage .boxproduct.boards { } Finding the right project ideas to get you started with the Arduino Nano can become somewhat challenging, and that is why weâve published some suggestions on this page that are sure to keep you occupied without the need for extensive knowledge or experience. An FTDI FT232RL on the board channels this serial communication over USB and the FTDI drivers (included with the ⦠Arduino ATTiny85 ADC Mux block diagram Source: ATTiny85 datasheet Calibrating the Arduino Voltage Reference To calibrate the reference in an Uno or Nano you just turn on the reference and measure the voltage at the reference pin. These pins are connected to the corresponding pins of the FTDI USB-to-TTL Serial chip. Therefore the two voltage regulators have an output voltage of 5V equal to the operation voltage of the microprocessor. Measuring voltage with a multimeter is easy enough, and current is a bit harder, but reading both values simultaneously can be a challenge. } .photo-description div p span.boardcolor { top: 0; The Arduino and Genuino family is so big! .orange-button.grey-btn:hover, #wikitext .orange-button.grey-btn:focus { } Each pin can provide or receive a maximum of 40 mA and has an internal pull-up resistor (disconnected by … To check the state where the analog input pin is connected, specify the target pin in “analogRead()” (line 11). Yes. .product-page-header div.text-column { 5V: â This pin gives the output of 5V.You can use this pin to give a 5V supply to the sensor. line-height: 40px; Is China's leading Electronic Components Distributor. #wikitext .product-page .textsummary div a.container-link .rectdocumentation { The Arduino Nano features 8 analog inputs, and either of which can provide 10 bits of resolution (e.i. Description: Max471 Current Sensor with Arduino and 16×2 LCD-In this tutorial, you will learn how to use the Max741 bidirectional, high-side current-sense amplifier with Arduino for measuring the DC current.We will measure the current of a 12V DC MCPCB LED module. Check out more of my other projects on my, Use an Arduino to Measure Voltage, Current & Resistance. I will interface all the different current rated boards one by one with arduino ⦠This will allow you to make larger programs than with the Arduino Uno (it has 1MB of program memory, 32 times bigger), and with a lot more ⦠Description: Max471 Current Sensor with Arduino and 16×2 LCD-In this tutorial, you will learn how to use the Max741 bidirectional, high-side current-sense amplifier with Arduino for measuring the DC current.We will measure the current of a 12V DC MCPCB LED module. The project is built around an Arduino Nano microcontroller board. } background-color: #9e846d; You can measure up to 300v with this module. It has more or less the same functionality of the Arduino Duemilanove, but in a different package. The first part is the Arduino Nano section, the second part is the digital to analog converter, and the third part is a pure analog circuit where a dual operational amplifier in a single package is used which will control the load section. background-color: #9e846d; These pins can be configured to trigger an interrupt on a low value, a rising or falling edge, or a change in value. display: inline-block; .over-effect:after { Write the program to Arduino and display the serial monitor. Arduino Nano V3.0 Specification The Arduino Software (IDE), is used to program Arduino Nano. position: relative; Learn how to use an Arduino to measure voltage, current, and resistance. box-shadow: 0 6px #767C7C;*/ This pin outputs a regulated 5V from the regulator on the board. .photo-description div p span.newcolor { I thank PCBWay & LCSC Electronics for the partnership. The Arduino Nano is a small, complete, and breadboard-friendly board based on the ATmega328 (Arduino Nano 3.x). Once all the connections are made you just need to upload the code to the Arduino and open the serial monitor and the current will be displayed. box-shadow: 0 6px #7A614E; It lacks only a DC power jack, and works with a Mini ⦠5V: – This pin gives the output of 5V.You can use this pin to give a 5V supply to the sensor. This way, you keep the sum total output from the Arduino analog/digital pins below 200mA, while allowing up ⦠Arduino /* END STYLING COMING NEXT BUTTON */ } You may recall that you can use the Arduino analogRead() function to measure the voltage of an electrical current from sensors and so on using one of the analogue input pins. } The voltage may sag 15% or … With external battery or power supply: total of 500mA~1A (see below for specifics) 5V pin: same as above: 500mA or 500mA~1A. margin-left: -24px; div.titolo span.title-note { background-color: #099386; See the attachInterrupt() function for details. That means it has 5 built-in analogs to digital converter channels. Software (IDE), WiFi101 Library AC ⦠LCSC Electronics Is China's leading Electronic Components Distributor. width: 54%; text-align: center; LCSC sells a wide variety of high quality electronic components at low prices. Then, we can convert the analog value into a digital voltage value by using the ADC conversion formula . You can supply voltage through this pin, or, if supplying voltage via the power jack, access it through this pin. Things used in this project . 2.5v is the base voltage at input of 5v, now any change in the input current will bring change in the output voltage. Moreover, each pin can provide or receive a current of 40 mA maximum and operate at 5V voltage as maximum. width: 445px; The value returned from analogRead() would be between zero an 1023, with zero representing zero volts and 1023 representing the operating voltage of the Arduino board in use. Pinout of Arduino Nano. On an Arduino UNO, for example, this yields a resolution between readings of: 5 volts / 1024 units or, 0.0049 volts (4.9 mV) per unit. padding-right: 1.1em !important; Beginner Protip 1 hour 6,226. All you have to do is connect vcc of the module to 5v of the Arduino GND to ground of the Arduino and vout to analogue pin 0 of the Arduino. Arduino Analog Read Pins. #wikitext .productspage .boxproduct.kits { div.buttons .blue-button, div.buttons .orange-button, div.buttons a { } We will explain analog input using volume. The Arduino Nano 33 IoT is the easiest and cheapest point of entry to enhance existing devices (and creating new ones) to be part of the IoT and designing pico-network applications. When a pin is ⦠We need this function to identify the voltage that we are supplying to ⦠Therefore the current consumption reduces by 84.54% for the Arduino Nano and by 77.13% for the Arduino Mega. padding-left: 1.1em !important; For example, you can use volume to adjust brightness or loudness or a temperature sensor to get the current temperature. With over 150, 000 parts in stock they should have the components you need for your next project. Arduino Nano Arduino Nano Front Arduino Nano Rear Overview The Arduino Nano is a small, complete, and breadboard-friendly board based on the ATmega328 (Arduino Nano 3.0) or ATmega168 (Arduino Nano 2.x). position: relative; Absolute: 6~20V. His project uses an Arduino Nano, along with a separate IC and a voltage divider, to measure both current and voltage input from the power source. ⦠Arduino NANO Digital Input / Output pins. 2.5v is the base voltage at input of 5v, now any change in the input current will bring change in the output voltage. .photo-description div p span.accessoriecolor { top: 13px; Arduino Analog Read Pins. Each pin can provide or receive a current of 40mA, and has a pull-up resistance of about 20-50k ohms. The Arduino Nano and Arduino Mega had only a small reduction by the reduced clock speed with around 16% decrease in current consumption but saw a high reduction after the supply voltage drops to 3.3V. Therefore the current consumption reduces by 84.54% for the Arduino Nano and by 77.13% for the Arduino Mega. background-color:#099386;} Add 1 or more 0.1uF decoupling caps near the arduino, and maybe an additional smaller electrolytic. Used with analogReference(). Use an Arduino to Measure Voltage, Current & Resistance. background-color: #d35400; It offers the same connectivity and specs of the Arduino Uno board in a smaller form factor.. Whether you are looking at building a sensor network connected to your office or home router, or if you want to create a BLE device sending data to a cellphone, the Nano 33 IoT is your one-stop ⦠Some are very stringent in their required input; for example, the latest Raspberry Pi recommends 5V @ 2A as a minimum for stability, but some are more flexible, the Arduino can accept a range of voltage inputs (6 â 20V), and regulates this to desired level ⦠#wikitext .productspage .boxproduct.modules:hover { } } Open the Arduino IDE software on your computer. Vin, 3.3V, 5V, GND. margin-top: 30px; background-color: #f39c12; Only these analog pins of Arduino can be used to measure analog signals. ... A typical arduino acs712 current circuit board looks like the one given below. LCSC sells a wide variety of high quality electronic components at low prices. There is a built-in LED connected to digital pin 13. Digital IO Pins. line-height: 14px; Twitter: @AdamRedfern Website: http://ohmega-electronics.co.uk/, int Input = analogRead(A0); // Read the analog value, double voltage = Input * (5.0 / 1024.0) * 10; //convert the value to volts, const int analogIn = A0; //the pin the sensor is connected to, double ACSoffset = 2500; // ofset for the ACS712, double mVAmp = 100;// mv per amp for your sensor you can find this on its data sheet, Voltage = (Value / 1024) * 5000; // converts the signal in to mA, Serial.print("\t Amps = "); // displays the current measured, Serial.println(Amps,3); // sets the number of digits displayed after the decimal point, delay(2500); // waits 2.5 seconds then repeats the process, const int analogIn= 0; // //the pin the center of the voltage devider is connected to, Serial.print("Resisor value: ");//displays the resistance, Serial.println(Rtest);//displays the value of the resistor.