Presentation is loading. Please wait.

Presentation is loading. Please wait.

The Electronic Die Using the PICAXE 08

Similar presentations


Presentation on theme: "The Electronic Die Using the PICAXE 08"— Presentation transcript:

1 The Electronic Die Using the PICAXE 08
Mr Rooks The Electronic Die Using the PICAXE 08 For our circuit we will use: 1 Input (In 3) (the switch) & 4 Outputs Out 0 Out1 Out 2 Out 4 (the LEDS) The Diagram above shows the PIN NUMBERS and the INPUTS/OUTPUTS of the PICAXE 08 Microchip.

2 The Electronic Die Using the PICAXE 08
How come we only use 4 OUTPUTS of the PIC Chip & there are 7 LEDs? Some OUTPUTS are linked to more than 1 LED

3 The Electronic Die Using the PICAXE 08
The left diagonal LEDS are connected to OUTPUT 4. The middle LED is connected to OUTPUT 2 The right diagonal LEDS are connected to OUTPUT 1 The centre LEDs are connected to OUTPUT 0

4 The Electronic Die Using the PICAXE 08
We can PROGRAMME the PIC Chip so that 1, 2, 3 or even 4 OUTPUTS are switched on at once. What number will the LEDs represent when OUTPUTS 1, 2, & 4 are switched on. How to set the outputs. Example of a PROGRAMME

5 The Electronic Die Using the PICAXE 08
The LED arrangements for numbers 1 - 6

6 Programming your Dice using PIC Logicator 2006
Open up the Programme PIC Logicator 2006 Notice the start command is already in place

7 Programming your Dice using PIC Logicator 2006
The first thing we need to do is tell the programme what PIC we are using and how many INPUTS and OUTPUTS we need. Select the PICAXE 08 and choose 1 INPUT and 4 OUTPUTS

8 Programming your Dice using PIC Logicator 2006
Make sure OUTPUT 2 is ON and the other OUTPUTs are OFF Drag the OUTPUT command into position and double click on it. The OUTPUT box will appear. Change the name in the Cell Label box from OUTPUTS to LED 1

9 Programming your Dice using PIC Logicator 2006
Drag the wait decision into position Set the time for 1 second

10 Programming your Dice using PIC Logicator 2006
Drag another OUTPUT command into position. Turn output 2 off. Put in another wait command for 1 Second.

11 Programming your Dice using PIC Logicator 2006
Using the Ctrl & Arrow Keys on the keyboard. Draw in the direction arrows for your FLOWCHART.

12 Programming your Dice using PIC Logicator 2006
Download your programme/flowchart to your circuit using the FLASH icon

13 What Happened? What Happened?
Programming your Dice using PIC Logicator 2006 What Happened? What Happened? The LEDS should be flashing on/off every second The LEDS should be flashing on/off every second

14 Programming your Dice using PIC Logicator 2006
Congratulations!!!! Can you now programme the PIC Chip so all the LEDS flash on and off every 0.5Second? Need a Clue?

15 Any Questions? Mr. Rooks


Download ppt "The Electronic Die Using the PICAXE 08"

Similar presentations


Ads by Google