At the First, I wasn't sure what is the suitable project idea for me to implement.
And after 2 tries with my instructors to get a possible idea, I found the controlling of things wirelessly is very interesting idea, and I wanted to integrate this idea in my project, especially the hand gesture controlling.
After I Tell my Instructors the idea, they helped me to reforming it in my head to a simple project inspired of the main idea on wireless controlling.
For the design Part, at first I was thinking of something really simple like any regular 4WD RC CAR, But my colleague Marwa Showed me the laser Cut London Bus. I wasn't sure yet if this will be the design for my car. After search a little I found the Cybertruck From Tesla and immediately fall in love with the design, so I decided to make Mini Tesla Cybertruck. :D
For Design
Before the Fabrication, I made a Cardboard base to mount and test the first code on it
At the early beginnings of the fabrication process, I laser cut the standard Arduino RC Car Base from the internet.
But the T-Slot Support for the motors wasn't fit, so I redesign the dimensions.
It takes two days to design and test the fittings of every thing in fusion 360 before laser cut it in 3d printer.
And My goal was to create an obtuse angle for both sides of the car and also for the front.
At First, I Add A reference photo of the Tesla Cybertruck side view.
This make it easy to draw the sketches of the body parts for the car, and focus in both the design and the fittings of the parts with each other.
After finished the body parts, I begin to design the supports for the body components to assemble all the body together.
So I made this support with 5 degrees in clockwise with side and 15 degree in anticlockwise with window.
Also, I do the same in supports for front and back of the car
Base
Back
Roof
Side
Front p.1
Hood
Front p.2
Window
Support for side and window with base
Support for side with base
Support For Front p.1,2 with side
Support For side with Back
All The Sketches of the Design in Fusion 360
The complete Design and Assembly in Fusion software:
For Cut On Laser Machine
Morn MT3050D CO2 Laser Cutter
Ply wood sheet 50×30 cm
Before I Start to Laser cut the Parts for my design Mr. Ahmed Ibrahim, one of my Instructors told me test the laser Kerf before the cut the design.
Then I found out that if the female part and male in slots was both 3.0 mm this will make the body of the car loose.
And that the perfect slot is to make the female slot equal to 2.8/2.9 mm and male slot equal to 3 mm to ensure that the body will be tied
First I Import All the Components Laser Work software For Preparing to laser cutting.
Parts From the Final Design
Then head to laser work machine to start cutting
For Circuit Design
1x Arduino UNO.
1x hc-05 (Bluetooth module).
1x L298N (Motor Driver).
4x Yellow Motor with four wheels.
1x mini breadboard.
3x 1k resistors. (or 1x 2k and 1x 1k resistors)
Wires (Male — Male & Female — Male).
A Battery with 7.4v is enough to power the circuit, but I prefer to use a 9v battery to make sure all the motors have enough juice to perform.
For Controlling The Car
For Programming
First, I opened the Remote XY website and to configure the graphical user-interface for controlling the Car.
Then download the generated source code and library to modify it with the car.
After That I Opened the Arduino IDE and install the library and paste the app code on it.
First, we include the software serial library to make choose other pins in the Arduino for the connection with Bluetooth module. And Include the Remote XY Library then define the serial connection between the Remote XY app on the mobile and the Arduino code, the Arduino and Bluetooth module.
Second, We the usage of Function #paragma in Remote XY configuration to ignore any error in compiling about this part of code. Then use the function unit8_t to make sure that the data the mobile will receive is in bytes and the serial code after it for the graphical position for every thing in the mobile screen.
After We define the X&Y Parameters for the joy stick in the app, we make two arrays to define the motors' pins and the speed for both.
Make A Void setup Function and sit the I/O Pins, then in the void loop we put code to control the right and left motors.
In this Part Of code we set the Motor Speed and put it in Void Wheel Function.
After I Tested Every part in the circuit alone first with the Arduino, I begin to add the Bluetooth module with the motor driver Module.
I did ask my Instructors and peers for their opinion in the car design, and they seem to like it :D
Problem: In the first beginning of the project the wheels' movements wasn't uniform in the same side of the car. Which make the car moves in random places or don't move at all.
Solution: for this is simply to reverse them to wires of the motor in the wheel with the connectors until you get uniform moves on the same side of the car.
I would definitely use the MPU6050 to make it moves with my hand getsure :-)