-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
Here is the following scenario
Setup:
We are using Atmega644 PA-AU and trying to drive AC Contactors via relays. The relays are based on Johnny-five Relay Class through StandardFirmataEthernetPlus.
ATMega644 (StandardFirmataEhternetPlus + UIPEthernet) ==> ENC28J60 ==> network ==> PC ( J5 + NodeJs + Electorn)
Problem:
Please refer the attached schematic as the basis of our setup

When we are driving just the relay without AC Loads mentioned at the end of the schematic it works fine with out any issues. As soon as we connect this relay to drive an AC contactor the behavior is erratic meaning the relay works for a few times and stops working with the corresponding leds (led1 and led2 ) hanging up. This also is leading to a MCU freeze.
Observations:
H/w and S/w disconnect: We are sending an on()/off() via console of Electron to the Relays. When AC is NOT connected the Relays status and the corresponding leds status is in sync. Now with AC Contactor connected to the Relays, the whole setup goes out of sync randomly after any number of ons/offs. Any action via browser does not affect the MCUs status. This is leading us to assume that the MCU is freezing.
As long as the AC load is not connected the system works flawlessly forever. When ever the AC load is connected malfunction occurs. Not sure why.
Questions:
- Is there any thing abnormal in the schematic or connectivity that we have used?
- Do you think the AC load is causing the MCU freeze up?
- How do we know/test if J5 is alive?
- Are we missing some thing here?
NOTE:
The same setup is working perfectly with Arduino UNO+Ehternet shield.