EEVblog Electronics Community Forum

Electronics => Beginners => Topic started by: mrnams on September 15, 2023, 12:41:48 pm

Title: How to replace PIC16F676 with Arduino/ESP32?
Post by: mrnams on September 15, 2023, 12:41:48 pm
Hello All,
I have auto switch for 3 Phase DOL starter with current sensor (using CT) and is working fine, i.e. is sense current and stop motor if it takes more current, it stops motor one phase failure, it working as expected, i just want to control it using ESP32 so that I read values and send it to cloud and based on that values give command to ESP32 to operate particular relay.

(https://forum.allaboutcircuits.com/attachments/1694781259926-jpeg.302831/)
So, I want to remove PIC16F676 and use Arduino/ESP32. I know its hard to understand,what inputs given to PIC16F676, I want give a try.
Title: Re: How to replace PIC16F676 with Arduino/ESP32?
Post by: Ian.M on September 15, 2023, 02:16:56 pm
 :-DD :-DD :-DD :-DD :-DD :-DD :-DD :-DD :-DD :-DD :-DD :-DD :-DD :-DD
I'd bet the PIC16F676 can respond to a severe overload in under a millisecond, certainly in less than one mains half-cycle.  Good luck getting an ESP32 + Arduino framework to do that with concurrent cloud connectivity without diving into assembler to write the ISRs.  :popcorn:

For the sake of your sanity *keep* the PIC16F676 and set its trip current appropriately as a max. limit.  Then at least any unexpected delays in your code wont burn the wiring and are less likely to burn the motor.  You may be able to tap into the same current sensors without affecting the PIC16F676 and can share the same contactor.