Abdurraziq / ZMPT101B-arduino

Arduino library for ZMPT101B voltage sensor.
MIT License
66 stars 32 forks source link

Aruidno halts with ZMPT101B #4

Closed qamarhafeez closed 2 years ago

qamarhafeez commented 4 years ago

Whenever there is a surge in electrical components like i turned on or off light of room or some other electric component, Arduino get halts when using ZMPT101B sensor. I am using this library to calculate voltage, please help.

Abdurraziq commented 4 years ago

Hai @qamarhafeez, I can only suggest these two solutions; first keep the electrical equipment away from Arduino and secondly use a stable power supply that has protection against the surge effect. I think the Arduino is hanging/halts due to a power surge that affects the arduino clock so that the program that is supposed to run becomes a hang.

I hope this will solve your problem.

qamarhafeez commented 4 years ago

I have tested, the device halts only when AC power is added ZMPT101B sensor. Otherwise the device is working fine if AC power is disconnected from ZMPT101B. The device halts only when room switched is on or off.

qamarhafeez commented 4 years ago

Can you please suggest me where to add stable power supply and also suggest me the power supply that is stable, i think 5volt power supply added to arduino is stable.