PiperCode: Security Zone

PiperCode: Security Zone

class="studioengine-wrapper">

PiperCode: Security Zone

Introduction

Students will use the range finder sensor in combination with PiperCode: Security Zone to create their own sensor alarm and learn to graph results.

Concepts

Students will develop programs with sequences and simple loops, to express ideas or address a problem. They will graph, compare, and predict proportional relationships while interpreting the unit rate as the slope of graphs. 

PiperCode: Security Zone

Electronic Parts

1 Piper Computer Kit, 1 Range Finder (from Sensor Explorer), 2 Mini Breadboards, 5 Jumper Cables (2 yellow, 1 green, 1 red, 1 black), 1 4-Pin Diode Jumper Cable

GPIO Setup

PiperCode: Security Zone

Range Finder: 7, 6, 4

PiperCode: Security Zone

Buzzer: 24, 22

Troubleshooting Tips

Be sure to check wiring against the diagram. 

Be sure to connect the print chip above if, do, else when adding the repeat forever loop. 

Make sure the the positive side of the buzzer is pointed towards the right (edge of the breadboard). 

PiperCode: Security Zone