Wiring
How it works
| Pin | Description |
|---|---|
| B-IA | Motor B Input A (IA) |
| B-IB | Motor B Input B (IB) |
| GND | Ground |
| VCC | Operating Voltage 2.5-12V |
| A-IA | Motor A Input A (IA) |
| A-IB | Motor A Input B (IB) |
| Input | Output | |||
|---|---|---|---|---|
| IA | IB | OA | IB | Description |
| L | L | L | L | Off |
| H | L | H | L | Forward |
| L | H | L | H | Reverse |
| H | H | H | H | Off |
Code
Extensions
- Can you make it go forward, then backward?
- How about turning?
- Can you make it drive forward if the distance sensor reads 'LOW'?
- If you have 2 distance sensors can you make it turn left for one, then right for the other? This is how you follow a line!

No comments:
Post a Comment