
2
Table of Contents
Introduction: Before You Begin ............................................................................................................................4
Chapter 1: Introduction to Electronics .................................................................................................................5
Electricity ..........................................................................................................................................................5
Resistors............................................................................................................................................................6
Understanding Voltage, Current, and Resistance.............................................................................................7
Circuit Symbols .................................................................................................................................................7
Breadboards .....................................................................................................................................................8
Building a Basic Circuit......................................................................................................................................9
Chapter 2: Basic Hardware Programming...........................................................................................................10
The Arduino Board..........................................................................................................................................10
Digital Input/Output .......................................................................................................................................11
The Light Emitting Diode (LED).......................................................................................................................13
Breadboarding to Prototype...........................................................................................................................14
Chapter 3: Introduction to C Programming ........................................................................................................15
The Basic Arduino Program ............................................................................................................................15
Constants and Variables .................................................................................................................................16
Control Statements.........................................................................................................................................19
Chapter 4: Assembling Your Gearbox.................................................................................................................25
Identification of the Gearbox Parts ................................................................................................................25
Assembly of the Gearbox................................................................................................................................30
Chapter 5: Building Your Basic Pi-Bot .................................................................................................................43
Mounting the Gearbox ...................................................................................................................................44
Installing Your Switch .....................................................................................................................................45
Setting Up Your Caster Wheel ........................................................................................................................47
Assembling Your Tires.....................................................................................................................................49
Mounting the STEM Board Microcontroller...................................................................................................51
Setting Up Your Battery Pack Slide.................................................................................................................54
Chapter 6: Wiring and Programming Your Basic Pi-Bot......................................................................................58
Basic Motor Wiring Schematic........................................................................................................................60
Wiring the H-Bridge........................................................................................................................................61
Making Your Pi-Bot Move...............................................................................................................................66
Chapter 7: Distance Sensor.................................................................................................................................70