Problems using interrupt - solved! ESP needs ferrite core!
Posted: Tue Jun 14, 2016 2:03 am
Hi;
just some information for the community:
I had endless problems with using interrupts and I was banging my had reg. what I am doing wrong (soft- and hardware wise).
I exchanged powersupplies, adding capacitors to the power supply, grounded the ESP, shielded cables.... nothing helped - my interrupts fired randomly without trigger.
The odd thing, which finally helped me to find the root cause:
When I ran it connected to the PC (via USB), everything was cool.
When I used it offline insitu, it misbehaved.
The solution: A ferrite core wrapping around the power cable!
(The ferrite core from the USB cable helped - even when it was not plugged to the PC!)
Now the noise is gone and I can use interrupts.
I thought this might be good information for other as well.
Heiner
just some information for the community:
I had endless problems with using interrupts and I was banging my had reg. what I am doing wrong (soft- and hardware wise).
I exchanged powersupplies, adding capacitors to the power supply, grounded the ESP, shielded cables.... nothing helped - my interrupts fired randomly without trigger.
The odd thing, which finally helped me to find the root cause:
When I ran it connected to the PC (via USB), everything was cool.
When I used it offline insitu, it misbehaved.
The solution: A ferrite core wrapping around the power cable!
(The ferrite core from the USB cable helped - even when it was not plugged to the PC!)
Now the noise is gone and I can use interrupts.
I thought this might be good information for other as well.
Heiner