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.2 - 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.2 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 that it's 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 with the 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 16 of the 4017 is connected to the positive power terminal. And that pins 8 & 13 are both connected to the negative power terminal.
  • At power-up - make sure that pin 14 is low. It should be held low by R4. If pin 14 is not low - check the C3, R4 & Push-Switch connections.
  • Again - at power-up - pin 15 should be low. It should be held low by R3. If pin 15 is not low - check the C2, R3 & D2 connections.
  • While you press and hold the push-button - pin 14 should remain high. And it should go low again - the moment you release the button.
  • At power-up - pin 3 should be high - and pin 2 should be low. And when you push the button - pin 3 should go low - and pin 2 should go high.
  • If pin 2 goes high - but your relay does not energize - there's something wrong with the relay/transistor switch. To test the relay section separately - begin by disconnecting the end of R2 that goes to pin 2. You should be able to energize the relay by touching the loose end of R2 to the positive power terminal.
  • If you haven't used a BC547 - make sure that the transistor you have used is NPN. 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.