Author
: Alajl
Date:
2011-4-15
Title:
Arduino third lab
-Automatic garbage removal
-Accessory assembly
Original article:
Http://blog.csdn.net/alajl
Preparations:
1. Arduino 328 Control Panel
1
2. Four-wheel car
3.
Dual DC Motor Drive
4.
Sensor expansion Board
V5
5.
Digital obstacle avoidance Sensor
6. Wire tracing Sensor
7. Power supply
8. Several small accessories (screws, copper bars, etc)
Assembly:
1,
Connect
3 circuit boards
In the following order:
Sensor expansion Board
V5
|
Dual DC Motor Drive
|
Arduino 328 Control Panel
|
2,
Connection
The digital obstacle avoidance sensor goes to the corresponding Digital Port of the extended version. What I use is
D8, why?
8.
4567 of them are occupied by the Boards driving the motor, and
23 is left with interruption, so we start from
8 is started
3,
Connect the tracing sensor
D2, because we need to use
Attachinterrupt () function, so connect
D2
4,
Connect the sensor and board to the car
5,
Set
9 V power supply connected to the board
After assembly:
Next, we can compile the code to adjust it.