Arduino UNO coding

Thread Starter

koraaek

Joined Jan 23, 2020
1
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
https://forum.allaboutcircuits.com/threads/arduino-uno-unsure-about-coding.133382/post-1110925
 
Last edited by a moderator:

danadak

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

visuino https://www.visuino.com/
flowcode https://www.elektormagazine.com/news/flowcode-8-visual-programming-for-pic-arduino-and-arm
scratch for arduino https://forum.allaboutcircuits.com/threads/timer-design-project.165548/#post-1458667
mBlock https://forum.allaboutcircuits.com/...en-two-pwm-signals.164987/page-3#post-1454464
https://forum.allaboutcircuits.com/...entiometer-understanding.163196/#post-1433007

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.

https://forum.allaboutcircuits.com/threads/talking-arduino.161537/

https://forum.allaboutcircuits.com/...n-temperature-drop.164384/page-2#post-1446017.


Regards, Dana.
 
Last edited:
Top