Skip to content

Commit d021713

Browse files
committed
Add robot project
1 parent 2a4dc6a commit d021713

File tree

1 file changed

+45
-1
lines changed

1 file changed

+45
-1
lines changed

docs/week-5/project-week-5.md

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,48 @@ sidebar_position: 5
55
import Tabs from '@theme/Tabs';
66
import TabItem from '@theme/TabItem';
77

8-
# Project: Placeholder
8+
# Project: Obstacle Avoiding Robot
9+
10+
Projects are intended to consolidate the knowledge you have absorbed in previous lessons. This one will help you apply what you've learned about motors and the ultrasonic sensor.
11+
12+
In this project, you will build your very own obstacle avoiding robot.
13+
14+
Requirements:
15+
- Build a circuit with four DC motors, motor drivers and an ultrasonic sensor. The motors will be used to power the wheels for your robot-car.
16+
- Program the robot to move forward when there is no obstacle and to turn left or right when it detects an obstacle in its path.
17+
- Ensure the robot avoids collisions and operates autonomously.
18+
- Create a robot chassis using cardboard, or by 3D-printing it, if you prefer.
19+
20+
## Assignment
21+
22+
:::info Project
23+
24+
**Step 1: Planning**
25+
26+
1. Think about the components you will need for this project and start planning how these components will fit together in a circuit. How many motor drivers will you need?
27+
3. Draw a simple sketch using pen and paper of your robot and plan what it will look like. Have fun!
28+
2. Create a schematic using a tool like [`Fritzing`](https://fritzing.org/) or by hand, if you prefer.
29+
30+
**Step 2: Building your circuit**
31+
32+
1. Gather all the components you will need for this project.
33+
2. Build the circuit using your breadboard, jumper wires and the components you would have prepared earlier.
34+
3. Attach the motors, wheels and ultrasonic sensor to the chassis.
35+
36+
**Step 3: Programming**
37+
38+
1. Declare all the variables you will need to use in this program. Try to use variables whenever it's possible.
39+
2. Write your program using the requirements above. Remember to use the libraries you will need.
40+
3. Upload your code, debug, and repeat until you have a functional robot!
41+
:::
42+
43+
## Stuck?
44+
45+
If you get stuck, don't worry! There are a few helpful ways to troubleshoot and understand the problem.
46+
47+
- Use your serial monitor to debug - it's a very helpful tool!
48+
- Refer to official documentation or guides such as the [Arduino Docs](https://docs.arduino.cc/).
49+
- Search the problem online. If your console reports an error, simply copy paste it online. It's likely someone else had the same issue as you.
50+
- Ask in forums and online communities. Good places to ask for help are:
51+
- [Arduino Forum](https://forum.arduino.cc/)
52+
- [Arduino Discord Server](https://support.arduino.cc/hc/en-us/articles/4405329164178-Join-the-official-Arduino-Discord-server)

0 commit comments

Comments
 (0)