Hi all.
I have a project to make HVAC system analog control panel smart using arduino Mega 2560 and blynk apps.
my method is to use the current sensor and tap at Pilot Lamp at control panel. because at control panel have a Green and red pilot lamp. each pilot lamp indicates system running (green) or down (red).
So each pair of the pilot lamps will connect to every protection system in the control panel. By using IOT to the control panel, we can monitor specific devices that down far from the site.
The method is - if device A down, the current will supply to Red Pilot Lamp and current sensor detects current will sent signal to Mega 2560. end of signal, Blynk will show the device down from the current detect at pilot lamp.
My coding: apps at blynk will show downtime and total running time. If the current sensor not install at the board, it will detect system down. Unless current sensor connected to Mega and detect current at red pilot lamp, so the system really down.
My problem:
- I have 3unit 3rd party arduino Mega 2560. when using each of the board, different faulty will found.
-
1st unit will run perfectly (with all sensor connected to Mega) BUT after a few minutes, it will detect system down(which is detect current at the sensor, but it actually no current detected at all).
-
2nd unit directly detect some system down( because i set 8 sensor to detect 8 device in the system) and it keep showing device down and change down and running each of the device during run the board.
-
3rd unit, when u run it, directly detect all device down even though it is actually no current detected at the sensor.
so i will share my coding, my connection and my blynk for u to help me detect why it cannot run.
My suspect is, i have to purchase original Mega 2560 board instead buying 3rd party Board. Maybe 3rd party board faulty during purchase and cannot test it during purchase.
arduinoblynkesp01-full.ino (25.1 KB)