Need code help - ACS712 with ESP32 (Solar amps)

Hello Everyone,
I need help on one of my projects. I am need solar panels generated amps in blynk. I have code for arduino uno but that wont work on ESP32.

components i have :-
ESp32
ACs712
Solar panel
Voltage divided (5 to 3.3).

request to help on coding part. let me know if any additional information is required.

Post your code in code tags after using Tools/Autoformat. Once you have done your best we can offer hints.

The ACS712 is a poor match for the ESP32.
Current readout with this combo will also depend on ACS supply voltage variations.

A digital sensor, like the INA260, could be a much better solution. There are several other INA sensors to choose from, depending on current/voltage of your panels.
Leo..

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.