A simple - easy to make - DIY Toggle Switch Circuit .
Comments
Suggestions
Practical Guides Choosing Parts Circuit Description More Switching Circuits Firefox Optimised

Toggle Switch No.1 - Testing Your Circuit

Free Circuit

Simulation
Do not use the "on-board" relay to switch mains voltage. The board's layout does not offer sufficient isolation between the relay contacts and the low-voltage components. If you want to switch mains voltage - mount a suitably rated relay somewhere safe - Away From The Board.

Introduction


The prototype of Toggle Switch No.1 was built using only the Stripboard Layouts as a guide. So - if you have faithfully reproduced that layout - you should have a working circuit.

Once you're satisfied that your layout is correct - and you have made a careful and thorough check of the underside of the board - it's time to power-up the circuit and test its operation. This is always an anxious moment. If you construct a lot of circuits - you might consider building the Current Limiting Power Supply - or alternatively - you could add the Simple Current Limiter to your existing PSU. Both will let you set an upper limit on the amount of current supplied to your circuit - and so protect it from any serious damage.

Setup




If You've Followed The Construction Guide

This circuit uses tried and tested components and techniques. When it's assembled as described - it should work first time. If you've built your circuit using the specified components - and you've followed the step-by-step construction guide described on the Support Page - then the chances are that any bug will be caused by something minor - a component connected the wrong way round - a missing or unwanted solder bridge - an incomplete cut in the track etc. If an LED is not lighting - check it's connected the right way round.

If you've cut the board to size - examine the edges where the copper tracks end. Look for loose particles of metal - left hanging by the saw. These particles can short pairs of adjacent tracks together. Remove them with emery paper - or a small file.

Next - double-check that all of the cuts in the tracks have been made - that they're In The Right Place - and that they sever the tracks completely. Use a magnifying glass - and backlight the board. It only takes the smallest strand of copper to cause a problem.

When you're satisfied that the tracks have been severed in all the right places - check that you have made - and correctly placed - all eight (blue) solder links. These are just small blobs of solder - used to connect adjacent tracks. Mark each blob with a felt-tip pen - or something similar - so that it can be easily identified later.

Next - carefully examine the full length of each track. Look for any unwanted solder connections between adjacent tracks. Your felt-tip marks will tell you which ones should be there - and help you to identify any that shouldn't be there. If you backlight the board during the examination - it makes potential problem areas easier to spot.

If all else fails - and you still haven't found the cause of the problem - work your way through the assembly instructions on the Support Page. Check each individual component and link - to make sure that it's present and correctly positioned.

Print out the drawings and mark off the components as you go. Take your time and examine each individual component carefully. If you do it right - you'll only have to do it once. Pay particular attention to the orientation of the diode and transistor.

If You Haven't Followed The Construction Guide


You may want to try the circuit out on a Breadboard first. Or you may want to design your own PCB - rather than use the stripboard layout I've provided. Perhaps you've had to use components that are different from those I've specified. If you're having problems and need my help - please tell me exactly what you're trying to do. Otherwise I'll assume that you're following my construction guide. And that may cause confusion.

A common fault with breadboards is an error in the power connections. Your breadboard is likely to have several separate power strips (positive and negative). And you may be using more than one of each. So make sure that all of the power strips you're using - are actually connected to the supply.

The circuit uses tried and tested components and techniques. It should work perfectly every time. If it's not working - the most likely cause is an error in your layout and/or your connections. The most common error is caused by pin configuration. Are you really certain that you've connected your relay and transistor correctly?

Fault-Finding Guide


  • Begin by making absolutely certain that pin 14 of the 4013 is connected to the positive power terminal. And that pins 4, 6, 7, 8 9, 10 & 11 are all connected to the negative power terminal.
  • At power-up - make sure that pin 3 is high. It should be held high by R1. If pin 3 is not high - then either R1 is not connecting it to the positive line - or the pin is somehow shorted to ground. Check the C1, R2 & Push-Switch connections.
  • Again - at power-up - pin 1 should be low - and pins 2 & 5 should be high. When you push the button - pin 1 should go high - and pins 2 & 5 should go low.
  • When pin 1 goes high the relay should energize - and the green LED should light. If the relay energizes - but the LED does not light - check that the LED is connected the right way round.
  • If pin 1 goes high - but your relay does not energize - there's something wrong with the (Q1) transistor switch. To test the relay section separately - begin by disconnecting the end of R4 that goes to pin 1. You should be able to energize the relay by touching the loose end of R4 to the positive power terminal.
  • If you haven't used the specified transistor - make sure that the one you have used is an NPN transistor. And - check its Pin Configuration. Just because it looks the same as a BC547 - don't assume that its pins are arranged in the same order.
  • If you haven't used the specified relay - make sure that your relay has the same Pin Configuration. Just because it looks the same - and fits into the layout - don't assume that its connections are arranged in the same pattern.
  • Below are some (approximate) voltage readings. The figures in red are what you should get when the relay is energized. The figures in blue are what you should get when the relay is de-energized. And the figures in black should remain the same - regardless of the state of the relay.



  • Free Web Hosting