|
Intellecta Technologies Pty Ltd |
||||||||||||
|
for PICAXE education, Roland CAM, Techsoft CAD, Intellecta control, Atmel, Arm and Microchip education |
||||||||||||
|
|
||||||||||||
![]() |
|
Summary of HARDWARE connections Switch on J3 - use the if PIN3 command Led on J4 - use the High 4 command Led on J5 - use the High 0 command Sound is on OUTPUT 2 Light sensor is read with the READADC , 1 command TASK 1 : Use the Flowchart. 1. Open the Programming Editor and set up a flowchart.
2. Set up the correct part names. This makes it easier to refer to specific parts on the boards. You can give your own names that make sense. Select the Flowchart symbol table.
3. Enter appropriate names
4. Flash the lights for a test Use the output commands to make lines 0 and 4 high and low. This will make your leds flash on and off.
5. Set up the following flowchart. You will see that the default value if zero, you can select the appropriate symbol name.
6. Run the simulation Click on simulate window to test your program.
You will the lights flash as you step through the program.
7. Download to your controller. Make sure that the LEDS are connected to the connectors with the anode and cathode in the appropriate side of the socket. Select the CONVERT TO BASIC option. You will see your program in text mode.
Select the download option on the tool bar. You should see a progress bar and the leds will flash when the download is complete.
Task 2. Reading a switch You have a switch input on the board that is part of the security system. Your program must test if this switch is ON or OFF. The usual electronics lingo for this is HIGH or LOW. You need to use the IF icon in the flowchart. Return to your original flow chart and remove the icons. Start with a clean sheet. NOTE: MAKE SURE YOU CHANGE THE SWITCH WORD IN THE SYMBOL TABLE BECAUSE THAT GENERATES AN ERROR. Set up the following icons. You can run the simulation and click on input 3 to see the program change directions.
Convert to BASIC Select the conversion option. You should see the following program.
Download the program and you should see the light stay off until you press the switch. You can play a tune at this point with the sound or tune command.
|
| [Home] [About] [News] [Events] [Products] [CAD] [CAM] [Control] [Mechatronics] [Science] [Materials] [Support] [Map] [Contact] |
|
PICMicro & Microchip, Picaxe logo are registered trademarks of Microchip Technology Inc. AZ. Atmel AVR & Atmel logo are registered trademarks of Atmel Corporation. CA. Philips Logo is a registered trademark of Philips Semiconductor Inc & Philips SA, Netherlands. Picaxe is a registered Trade mark of Microchip. Intellecta is a registered trademark of Intellecta Technologies. All other logos and trademarks are the property of their respective owners. Revision Date June2006 © 1997- 2006 Intellecta Technologies - All rights reserved - email: supportatintellectadotnet |