Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

CLICK HERE FOR INDEX PAGE

ADDING A SENSOR TO A PICAXE-08 CIRCUIT


USING CROCODILE TECHNOLOGY
V. Ryan 2004 - 2010

Adding a Sensor to a PICAXE-08 Circuit http://www.technologystudent.com/pics/picax6.htm
1 of 2 3/12/2011 4:29 PM
2. A decision box, called a Test Input is connected to the
start box. The text in the centre of the box is changed so that
Input 1 is continually tested for activation. If input 1 is
activated the programme moves down to the next line of the
programme (the next process box). If Input 1 is not activated,
the decision box continues to check for any change.
3. This process box (called Set Output) switches on Output 4,
which in the case of the circuit above turns on an LED.
4. The Delay Box is set to 5 seconds and causes the
programme to stay at this point for that time.
5. Output 4 is then switched off. This has the effect of turning
off the LED.
6. Output 0 is then switched on, turning on the LED
controlled by it.
7. Output 0 is kept on for 5 seconds and consequently the
LED stays on.
8. Output 0 is turned off and, as a result, the LED.
9. A Stop box is always placed at the end of a flowchart. The
programme comes to an end.

Crocodile Technology Software allows the translation of the
flowchart into BASIC programming language. This is
extremely useful if the programmer / circuit designer normally
uses BASIC to programme the PICAXE-08 and other
PICAXE ICs.
When the circuit has actually been made, the programme can
be exported to it through the export command. The flow chart
system simplifies programming.



CLICK HERE FOR PIC-MICROCONTROLLER INDEX PAGE


Web www.technologystudent.com


Ads by Google LED Light Alarm Sensor Light Sensor Touch Sensor Sensor IC

Adding a Sensor to a PICAXE-08 Circuit http://www.technologystudent.com/pics/picax6.htm
2 of 2 3/12/2011 4:29 PM

You might also like