Hi, I have made a schematics for some MCU based board that I will use as an alarm central. Now I would like you to examin and correct if there are any mistakes, especialy for resistors and capacitors values and for power supply and osilator.
Please do examine/correct optocoupler and darlington NPN array connection.
I also want to ask if I need to add a small capacitor between the optocoupler photo diode input and sensor, switch and lock/unlock signal. Both sensors operate under 12V, but the signal output is a short pulse, the same is for lock/unlock signal from central locking module.
This is forum sized pic, to see a full resolution, please open the attachment.
At a glance, it looks okay. However, I would add a connector for in-circuit programming of the PIC.
You have optocouplers, but the external sensors and PIC share the same +5V supply. So, there's no galvanic isolation.
Which vibration sensor are you going to use?
Which ultrasonic motion sensor are you planning to use?
You´ll need to add snubbers or free wheel diodes to the relay´s coils. I don´t think the relays can damage the ULN2803 driver but they can cause erratic behaviour of the mcu.
Regards
You´ll need to add snubbers or free wheel diodes to the relay´s coils. I don´t think the relays can damage the ULN2803 driver but they can cause erratic behaviour of the mcu.
Regards
Dear CMOS: it is not that simple. The voltage regulator can´t sink current, only source. When the relays are switched off the free whell diodes carry their current directly to the power supply, but it can´t sink this current. This means a voltage spike will happen that can affect the mcu operation.
Regards
The purpose of free-wheeling diode is not to sink current to ground but to discharge the residual high voltage generated inside the inductive load when current flowing through it is turned off by creating a resistive electrical path between ends of the inductor. Energy is dissipated in the form of heat from diode. This way it does not go into the power rails.
Have a look at the attached schematic showing internal driver stage of ULN2803 with internal and external free wheeling diodes. Can you explain how external free-wheeling diode is different from internal? They both are meant to serve the same purpose.