Arduino UNO coding

Thread Starter


Joined Jan 23, 2020
Hello, I am doing a project of current measurement using the LEM LA 55-P ( hall effect sensor ) transducer which senses the strength of magnetic field produced by a current carrying conductor traveling through the hole of the sensor and outputs a linear milliamp output. I want to interface this sensor with an Arduino UNO but am not to certain about the code required. A little bit about the sensor, it can measure a primary current up to 50 Amps which will output 50 milliamps; I am going to have the output going to a 100ohm precision resistor so that 50mA max output will equal 5 volts; 50mA x 100 ohms = 5 volts. I want to then send this output to the Arduinos analog to digital converter, and have an LCD display wired to the Arduino, with a code stating that 5 volts input will display 50 Amps to the LCD, 1 volt will display 10 amps etc. basically every 0.1 Volt = 1 Amp. if anyone has any insight on how to go about writing this code it would be much appreciated, I don’t think it will be an overly complicated code but I have next to no experience with C++, Thanks for your help.
I want the curcuit befor arduino please. and code.//Do you offset voltage?

Mod: Link to old thread.E
Last edited by a moderator:


Joined Mar 10, 2018
Consider using one of the block programming languages, to do this.

scratch for arduino

These do drag and drop functional blocks then tool generates Arduino C code, which you can look at
as you are learning. Lots of videos on youtube, and their websites, and you will be blinking and
controlling an led in 10's of minutes as a first example.

Believe it or not once you learn one of them, you know the rest, for the most part. Each have their own strengths
and weaknesses. But operations all very similar.

Here, snap4Arduino, if the Arduino is tethered to a PC, you can convert current measured into
speech spoken by PC fed by Arduino, and its just a couple of code blocks to do it.

Regards, Dana.
Last edited: