For this High School Project we were tasked to create a robot that would drive forward and launch a ping-pong ball into the hoop using a bluetooth remote and arduino boards.
Materials:
We were given a bluetooth remote kit that two wheels and motors, and a rotating wheel
Arduino board and servos
Wood materials
Screws
Mouse Trap
Ball attachment to trap bar
String
Having done this project there was not much research into the type of release mechanism I would use. I had already planned to use a mousetrap to launch the ping-pong ball with the attached 3-D part from our class instructor.
The research I did involved trigger mechanisms and different coding for the catapult.
I also began with a code made for a Bluetooth robot and extracted what I needed from there to build my car.
As previously stated I began with a long code for a Bluetooth robot to drive. My annotated code is provided, while there is for multiple buttons on the remote receiver, I only programmed a servo to work off of the forward moving code. This was used to trigger the mouse trap after the car is done moving.
Coding took the majority of time for my project, the code and robots had never been used before in this class. We took a long code that used the Bluetooth receiver for a different purpose. I used this code to piece together the necessary components that would benefit my own project
Building the robot was done after figuring out the code. We stacked Arduino boards and attached a 9V battery with a switch. This what the motors, servo and IR receiver were wired into. The mousetrap was placed on top to fire the ping-pong ball.
I would make a better trigger system and take more time to code the different buttons on the remote to different uses. I would also take more time in the general design and aesthetic of the car. After spending a large amount of time coding the actual construction was slightly rushed and not to its highest capability.