Tell us about the idea of your project. Why do you care about this? What were you inspired by? Include images and videos of similar projects
At First, I wanted to make a 2-legged jumping bot but I don’t have much time and focus to do it so I did a 4-Legged bot that can be controlled with a Bluetooth module or run on its own with an ultrasonic sensor to avoid obstacles.
The project Idea I want to a self-moving robot but I failed to make the appendages then I made a self-driving avoiding obstacles car with 4 wheels which indicates the minimum Features with a switch On/Off and an Ultrasonic sensor to avoid obstacles.
Source for Inspiration:
Spot Mini by Boston Dynamics
BioRobotics
Self-Driving Cars
First I used Fusion 360 Software for CAD design
The steps were:
Design A box with relative dimensions
Download Components from GrabCAD
Connect these Components the box
Laser Work software Used to Fabricate the Box and assign slots for Components
Speed adjusted to 25
Power adjusted to 65
Hardware and Software Components used:
1.Arduino IDE
2.MIT App inventor (Similar apps)
………………………………………………….
1.Arduino Uno x1
2.Motor Driver L298n x1
3.Bluetooth Module HC-05 x1
4.Li-Po Battery x1
5.DC motors x2
6.Jumper Wires
7.Ultrasonic Sensor HC-SRO4 x1
8. Servo motor x1
9. LEDS x2
10. Mini Breadboard x1
11. ON/OFF switch
The Mechanism:
Input
1. Switch
2. Ultrasonic Sensor
Action Components
2. DC motors (Wheels)
Brain
Arduino Uno
Power Management
Li-Po Battery and 9V Battery
When the Switch is On The Car Starts to Move
when Hit an Obstacle the Ultrasonic Activated
First Stop
Reverse Motor Direction
Move the Right Motor for a short Period
Stop
Move the 4 Motors Forward
Steps
1. Connect Ultrasonic Sensor
VCC Pin 5V
trig Pin 9
Echo Pin 10
GND GND on Arduino
2. Connect the 4 Motors to the Motor Driver
3. Connect Arduino GND + Ultrasonic GND + Motor Driver GND to GND of the Battery
4. Connect Motor Driver pins with Pins 4, 5, 6, 7
DC motors run on 9v Battery and the are connected in Parallel with the Circuit
The Arduino takes 3.3 - 5v from the Battery
Ultrasonic Sensor 5V / 2mA
The Consumption Rate of the Battery is adequate and can allow the car to run for more than 40 Minutes
Coding was not that Hard
First I told the motors to Run
If hit an Obstacle
Ultrasonic sensor Activated
The Motors stop for mSeconds
Reverse Motor Direction for mSeconds
One motor moves and 3 stops for mSeconds
Then Stops
4 motors start to move Forward
First, we Assign Pin Numbers and Connect Each Component to a Pin Number
Second, in the Void Setup we Assign the Input and the Outputs
Third, the Void loop we put the Action that we want it to always continue till a condition happens
Fourth, Define the Condition of Moving Forward when the Ultrasonic Read that no Object within the assigned distance
Fifth, in case of the ultrasonic detects an object then it retreats backward then one wheel moves forward to change direction then it back to the beginning of the code.
I had problems in driling Holes within the Drawing so I had to use a hand Driller to Make Holes
In a week I had many feedback
I worked on Code First and I had my peers revision on the code as syntax and logic.
I had Mohand's help at the lab he guided me through the Design and Fabrication Process.
Moiz and Haneen gave me much of their time and I had the chance to get less troubles in the code,
Design Challenges
I had many problems in design as I am not a friendly User for Fusion 360
Also I used to work on another project and I used CardBoard to model it working and this Failed and Took much Time
I also couldn't make some limbs as I draw it on paper and imagined it so Fusion needed more time
Electronics Challenges
I had a problem at First integrating the whold code together so I had problems that some parts work and others not
Also I had a problem with connecting them in an energy consumption wise way