Hello. I've built a USB device which enumerates and is recognised by windows. I want to send a sequence of bytes to turn on up to 4 separate relays. Coding isn't an issue, but I'm struggling to understand why, if I have an output signal from the microcontroller to an LED connected to a transistor in parallel, the LED lights up but the relay (connected to the emitter pin3 of a BC517 transistor) does not switch over.
In the schematic, 5v has been added as a label to aid with PCB layout. There is no separate power supply, it is all from the diode connected to USB pin 1.
(I have double-checked that all diodes are connected the right way around!)
**broken link removed**
For example, when I send 5v output on RB3 (to turn on relay 4) the LED comes on but nothing happens with the relay. If I manually put 5v onto pin3 of the transistor, the relay does switch on with an audible click, so I know that the diode is connected the right way around!
Here is the PCB layout. The connector labelled "0" is simply a jumper connecting all of the transistors pin1 to 5v.
**broken link removed**
Can anyone offer any advice?
In the schematic, 5v has been added as a label to aid with PCB layout. There is no separate power supply, it is all from the diode connected to USB pin 1.
(I have double-checked that all diodes are connected the right way around!)
**broken link removed**
For example, when I send 5v output on RB3 (to turn on relay 4) the LED comes on but nothing happens with the relay. If I manually put 5v onto pin3 of the transistor, the relay does switch on with an audible click, so I know that the diode is connected the right way around!
Here is the PCB layout. The connector labelled "0" is simply a jumper connecting all of the transistors pin1 to 5v.
**broken link removed**
Can anyone offer any advice?