leorickings
Junior Member level 1
- Joined
- Oct 18, 2013
- Messages
- 17
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 197
Hi all, I have come across a really weird phenomena... I am working with a project with PIC16F877A,
which sounds a buzzer, lights up two LEDs (different output ports), lights up a 24V pilot lamp (optocoupled) and energizes a relay (transistor) when it detects a signal.
The power supply is a 24Vdc power supply, sourced from office mains (230Vac), and i built a switching regulator (24Vdc to 5Vdc, 3A) for the system.
It was all working fine until I found out that, whenever someone randomly switches on or off anything in the office (lights, aircond, fans, anything), the system will malfunction. The buzzer will sound, the pilot lamp will turn on, but only one of the LED lights up. Which means, something meddled the microcontroller, not the microcontroller picking up a false signal input.
Anyone has similar experience? Please help!
- - - Updated - - -
btw i had tried powering the circuit with a UPS, not plugged into the office mains. The problem still occurs. So it's not any current backflowing/inrush/spike/sag/ whatever to do with instataneous over current. I suspect it's something to do with magnetic field which disturbs the microcontroller. Please advice...
which sounds a buzzer, lights up two LEDs (different output ports), lights up a 24V pilot lamp (optocoupled) and energizes a relay (transistor) when it detects a signal.
The power supply is a 24Vdc power supply, sourced from office mains (230Vac), and i built a switching regulator (24Vdc to 5Vdc, 3A) for the system.
It was all working fine until I found out that, whenever someone randomly switches on or off anything in the office (lights, aircond, fans, anything), the system will malfunction. The buzzer will sound, the pilot lamp will turn on, but only one of the LED lights up. Which means, something meddled the microcontroller, not the microcontroller picking up a false signal input.
Anyone has similar experience? Please help!
- - - Updated - - -
btw i had tried powering the circuit with a UPS, not plugged into the office mains. The problem still occurs. So it's not any current backflowing/inrush/spike/sag/ whatever to do with instataneous over current. I suspect it's something to do with magnetic field which disturbs the microcontroller. Please advice...