Intellecta Technologies Pty Ltd

for PICAXE education, Roland CAM, Techsoft CAD, Intellecta control, Atmel, Arm and Microchip education

Switch Test

There are three switches on the SERVO board and these are connected via screw terminal connectors, SW3, SW2, and SW1.

Screw terminals were chosen so that the board can connect to external switches such as lever, push button or microswitches.

The switches must be selected with links on J6, J5 and J1 and the switches are shared between the LDR, Infrain and Servo J4.

Note that all the switches can be operational and Servo J2 and J3 can be programmed for motion.

 

 

hb 2 rev e03
HB 08M 2 switch test

Switch Test program

The flowchart program is a very useful environment for the programming of the servo board because the Symbol table defines the various connections.

Then it is easy to refer to the components and know that the connections are handled in the correct manner in the program.

You will find it easier to use these higher level terms like SW1 rather than IF PIN3 = 1.

The flowchart program and the susequent export to the BASIC code is enhanced with the symbol definition.

The flowchart is simple with three IF comparison of the switch status.

If SW1 is pressed then the variable b0 is set to 1.

If SW2 is pressed then variable B0 is set to 2 and If SW3 is pressed the variable is set to 3.

The debug command will display the values as the program cycles through.

 Note that the program must be downloaded to see this value.

.

HB 2 switch test symbol table
HB 2 switch test
HB 2 switch test basic code
[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