Single switch input

Step 2: Assembling the Project

The 18X developer board comes with terminal blocks on either side of the PCB, the left hand side for inputs and the right hand side for outputs. In this tutorial I have used wires to be able to use the inputs and outputs on a prototyping board (bread board) instead of directly to the PICAXE developer board to simply the demonstration.for ease of use.

The first thing we have to do to make this circuit is decide which input pin we are going to use as the input for this circuit. For the purposes of this tutorial I have used the second input pin (addressed as input 1 because the labels start from 0). Secondly we need to decide which pins to use for the LED outputs, in this tutorial I have chosen to use output 4, 5, 6 and 7.
NOTE: An important point to remember is that when using discrete inputs (i.e. switches etc), the input pin must be grounded via a resistor when applying a high egde trigger or tagged high through a resistor when applying a low egde trigger. This is because the input pin will start floating when it is not tagged down giving errorous triggering of the system. The PICAXE developer board has 10K resistor preinstalled which ground input pins 2 and above.

As we are using input 1 we will have to insert a grounding resistor into the circuit. Below is a picture of the developer board with the grounding resistor inserted













Previous Step Next Step