Today we learned that we are starting the semester with a robot project.
Above is the briefing for the prototype.
This is a continuation of the project.
Above is the briefing for the final sumobot.
Today we took our next steps in the project and made a servo move using Arduino. We wired and coded everything ourselves with the help of a diagram.
In class today we took it to the next level and made two servos function. They alternate moving back and forth.
Using the digital software TinkerCad, we made a diagram to show how we wired everything to make two servos move.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
In class we wired the battery packs into our circuit, and installed the batteries so that our circuit would function without being plugged into the computers.
To the left is an image showing how we wired the circuit to be powered via batteries.
Today we started our prototype and assembled the base of our robot by hot gluing all of the Arduino circuits to a chassis. We also programmed it to move forwards and backwards.
I added to the forward and backward programming by coding my robot so that it also turns left and right.
Today we practiced coding so that our robot would stay within a path. Tape on the floor created a 'road', and I coded my robot to follow the path using forward, backwards, left, and right coding.
#include <Servo.h>
#include <Servo.h>
Servo Left; // create servo object to control a servo
// twelve servo objects can be created onServo Left; most boards
Servo Right; // create servo object to control a servo
// twelve servo objects can be created onServo Left; most boards
int pos = 0; // variable to store the servo position
void setup() {
Left.attach(9); // attaches the servo on pin 9 to the servo object
Right.attach(11);
}
void Forward() {
Left.write(0); // tell servo to go to position in variable 'pos'
Right.write(180);
}
void Backwards() {
Left.write(180); // tell servo to go to position in variable 'pos'
Right.write(0);
}
void TurnLeft() {
Left.write(180); // tell servo to go to position in variable 'pos'
Right.write(180);
}
void TurnRight() {
Left.write(0); // tell servo to go to position in variable 'pos'
Right.write(0);
}
void Stop() {
Left.write(90); // tell servo to go to position in variable 'pos'
Right.write(90);
}
void loop() {
Forward();
delay(4000); // waits 15ms for the servo to reach the position
Backwards();
delay(5000); // waits 15ms for the servo to reach the position
TurnLeft();
delay(5000); // waits 15ms for the servo to reach the position
TurnRight();
delay(5000); // waits 15ms for the servo to reach the position
Stop();
delay(5000); // waits 15ms for the servo to reach the position
}
3D Drawing Steps:
Draw horizon line
Make vanishing point
Draw front of shape
Add diagonal lines going to the VP
Draw back of shape (parallel)
Add more diagonals
Erase construction lines
Add shading
We used the digital software Onshape to create a sketch that we could transfer to Glowforge.
This is a photo of the final product after using the Glowforge.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
We started working with hobby motors to move our wheels, that way we have two different options for how our wheels can move for our sumo-bot.
We built the second base for the Hobby Motors. We also added on to this base to enclose our electronics.
This is when we got the hobby motors and the base to go all directions through Arduino coding.
We were introduced to a new electronic piece, one that can detect objects in front of it. We are going to use this to make our robots autonomous.
We used an app called 'Dabble' to control the brightness of an LED from our phones.
Using the Dabble app, we connected our robots to bluetooth so that we could control them via a controller on our phones.
Plan:
My plan was to create a very clean and professional looking robot that represented the Christmas holiday. To accomplish this I decided on red and green as my complementary colors.
I also made sure to digitally fabricate all parts to make sure my robot was very clean cut.
I decided to go with a present design for a wow factor that will catch the crowd's eyes.
This is the video of my robot functioning. In the video I am using BitBlue to control my robot through my mobile device, making it go fowrads, backwards, right, left, and motionless.
My Sumo Bot is advanced because all parts were fabricated using OnShape and Glowforge. Meaning all parts were designed digitally and then laser printed from cardboard. This ensures precision and perfectly lined up sides and measurements.
Today we worked on getting the Adafruit feather to work. We determined it was working when the flashing red light was visible.
After getting the Adafruit feather working, we had to get a new set of code and connect a LED board to the feather. Once the new code was run, the board should have about two LEDs light up.
In class today we learned about matrixes and how they are used to show images. We then took what we learned and coded the LED boards to display the image of a smiley face using python.