A bar graph is a horizontal graphical representation of an analog value, where the length of the graph is proportional to its full scale value. I recently needed to display a bar chart on a LCD character display module, but searching the web for code I didn’t find what I needed, so I wrote my own. In case it is useful to someone else, here it is.
I recently obtained a couple of these sensors for a project and have been exploring how they can be used to detected both DC and AC currents. I also wanted to understand what was needed for proper calibration of the ADC readings at the Arduino.
The ACS712 hall effect current sensor is commonly available from generic suppliers incorporated onto GY712 sensor boards shown in picture.