StarterPLATFORM

This PLATFORM is the most basic in the range and is designed to be assembled with basic components and used as a starting point for students to being introduced to programming. The board has three colored LED’s, a Piezo Transducer (speaker), a push button switch, a Light Dependent Resistor (LDR), and an analogue temperature sensor. Each of the components are already joined to predetermined pins and can be used with 8, 14, and 20 pin PICAXE chips (only one LED will work with 8 Pin Chips).

Tutorial Booklet – http://www.teaching-innovation.com/wp-content/uploads/2012/06/StarterPLATFORM-Tutorial.pdf

Tutorial Booklet code –  http://www.teaching-innovation.com/14m2code/

For assembly video and programming / testing video please see the Getting Started page.

Kit Includes
Part # QTY Name
H10 2 10 Way Male Header
H6 2 6 Way Male Header
TMP36 1 TMP 36 Temperature Sensor
LDR 1 Light Dependent Resistor (Small)
R1 1 1K 0.25W Resistor
R2/R3 2 10K 0.25W Resistor
R4/R5/R6 3 330R 0.25W Resistor
PZ1 1 Transducer Magnetic (PIEZO)
S1 1 6mm PCB Push Button Switch
LED1 1 GREEN LED 5mm
LED2 1 YELLOW LED 5mm
LED3 1 RED LED 5mm
PCB 1 StarterPLATFORM

Example Code – PP StarterPLATFORM Test Program 14M2

' ProtoPlatform by Joel Phillips, www.teaching-innovation.com
' After downloading program to your board open the terminal window under the PICAXE file menu or press F8
' Ensure the selected baud rate in the terminal window is 4800
 
' Pinout for PicaxeProtoPlatform using PICAXE 14M2 Microcontroller.
' "P#" can be replaced with a descriptive word for the input/output pin.
' For example P19 Could be replaced with "GLED" to represent the connected Green LED
 
'SYMBOL P1	= +V		SYMBOL P20 = 0V
 SYMBOL P2	= C.5		SYMBOL RLED= B.0
 SYMBOL LDR	= C.4		SYMBOL TMP = B.1
 SYMBOL PUSH= pinC.3	SYMBOL BUZ = B.2
 SYMBOL P5	= C.2		SYMBOL GLED= B.3
 SYMBOL P6	= C.1		SYMBOL YLED= B.4
 SYMBOL P7	= C.0		SYMBOL P14 = B.5
 
 #Terminal 4800		'Start terminal window when download finishes
 
main:
	if PUSH = on then trail			'wait for push button to be pressed. once pressed trail program will start
	if PUSH = off then main			'if pust button is not pressed loop back to main
 
trail:
	high GLED					'turn green LED on
	pause 500					'pause for 500ms
	low GLED					'turn green LED off
	pause 500					'pause for 500ms
 
	high YLED					'flash yellow LED
	pause 500
	low YLED
	pause 500
 
	high RLED					'flash red LED
	pause 500
	low RLED
	pause 500
 
	adcconfig %000 		; set ADC Vref+ = Supply, 0V Vref-
 
	ReadADC10 LDR, W0		'Read the analoge value of LDR to determine light level and store in memory byte 0
 
	fvrsetup FVR2048		; set FVR as 2.048V to prepare for TMP36 Temprature read
	adcconfig %011 		; set ADC Vref+ = 2.048, 0V Vref-
 
	ReadADC10 TMP, W1 	' read voltage level from TMP36 10mV per degree
	LET W1 = W1 * 2		' voltage in mV (2048 / 1023 = 2.002)
	LET W1 = W1 - 500 / 10	' temp in Degrees Celsius
 
	sertxd ("Light level = ", #W0)	'send light level via download cable to terminal
	sertxd (13,10)				'line break
	sertxd ("Room Temperature = ", #W1) 'send room temperature via downlaod cable to terminal
	sertxd (13,10)				'line break
 
	sound 2,(90,30,110,30)			'make a low sound for (30x4)ms then a high sound for (30x4)ms
 
goto main						'repeat program
Order StarterPLATFORM