Part 4, Wiring up the electronics
This is a series of videos showing you how to build your own robot, from start to finish, step by step.
- Week 4 - Wiring up the electronics
- What you’ll need for week 4
- Arduino Pinouts
- Range finder
- Connecting wires to the official Arduino motorshield
- Connecting wires to the Fundumoto motorshield
- Motorshield pin outs
- Bluetooth
Week 4 - Wiring up the electronics
Connecting wires to the motorshield Range Finder Connecting the motors Connecting the battery Pinouts Other options (Line follow, bluetooth, gyros)
Here is a link to the Keynote presentation as shown in the video.
What you’ll need for week 4
For this week’s Wiring up the electronics session you will need:
- The assembled robot with motors
- The range finder module
- 4x Dupont wires
- 9v Battery Connector
- 9v Battery
- Motorshield
Arduino Pinouts
ATmega328P Pinouts For reference the ATMega chip (which is used by the Arduino) are detailed in the diagram below. You can build your own Arduino - you will need a couple of parts:
- The ATMega328p chip itself
- a breadboard
- A 16mhz crystal
- 2 x 22nf capacitors
- An led
- Some jumper wires
Range finder
Measure Distance
The HC-SR04 has 4 pins:
- Echo
- Trigger
- Vcc
- And
Connecting wires to the official Arduino motorshield
See the diagram below for wiring instructions.
Connecting wires to the Fundumoto motorshield
See the diagram below for wiring instructions.
- 9v Battery to Motorshield (also powers the Arduino)
- Motor A to Motorshield Motor A
- Motor B to Motorshield Motor B
- Range Finder Trig to Motorshield Pin
Motorshield pin outs
Each motor shield manufacturer uses different pinouts:
FunduMoto | Motor Shield | |
---|---|---|
Name | Pin | Pin |
Echo Pin | 8 | - |
Trigger Pin | 7 | - |
Buzzer | 4 | - |
Motor A | 12 | 12 |
Motor B | 13 | 13 |
Motor A Speed | 10 | 3 |
Motor B Speed | 11 | 11 |
Bluetooth
You can complete the wiring by adding a bluetooth module.
For more information about adding bluetooth modules to SMARS - see this video