Engineering Concepts
Video of Servo
This is a visual model of my servo going back and forth.
Video of servo
We worked on our code for our servo going and forth.
Two Servos Back and Forth
We worked on programming two servo to go back and forth.
Two independently functioning servos
We worked on creating a code to have two individual servos functioning.
Code
#include <Servo.h>
Servo myservo;
Servo secondservo;
// create servo object to control a servo
// twelve servo objects can be created on most boards
void setup() {
myservo.attach(9);
secondservo.attach(10); // attaches the servo on pin 9 to the servo object
}
void loop() {
myservo.write(180); // tell servo to go to position in variable 'pos'
delay(1000); // waits 15ms for the servo to reach the position
// goes from 180 degrees to 0 degrees
myservo.write(0); // tell servo to go to position in variable 'pos'
delay(1000);
secondservo.write(180); // tell servo to go to position in variable 'pos'
delay(1000); // waits 15ms for the servo to reach the position
// goes from 180 degrees to 0 degrees
secondservo.write(0); // tell servo to go to position in variable 'pos'
delay(1000); // waits 15ms for the servo to reach the position
}
Servos powered by batteries only!
I had learned how to wire a servos powered by batteries.
This is a circuit diagram that I built in tinkercad.
prototype of Cardboard Robot
I built my prototype robot that go front and back.
Forward,Backwards,
Left,Right
I created a code for my robot to go forward,backward,left then right.
Path
Code
#include <Servo.h> // this is a preprogrammed library that helps control servos
Servo leftservo; // this defines the servo and names it myservo
Servo rightservo; // this defines the servo and names it myservo
// twelve servo objects can be created on most boards
int pos = 0; // variable to store the servo position
void setup() {
leftservo.attach(9); // attaches the servo on pin 9 to the servo object
rightservo.attach(10); // attaches the servo on pin 9 to the servo object
}
void loop() {
for (pos = 0; pos <= 180; pos += 1) { // goes from 0 degrees to 180 degrees
// in steps of 1 degree
leftservo.write(0); // tell servo to go to position in variable 'pos'
rightservo.write(180);
delay(5000); // waits 15ms for the servo to reach the position
leftservo.write(180); // tell servo to go to position in variable 'pos'
rightservo.write(180); // tell servo to go to position in variable 'pos'
delay(1350); // waits 15ms for the servo to reach the position
leftservo.write(180); // tell servo to go to position in variable 'pos'
rightservo.write(0); // tell servo to go to position in variable 'pos'
delay(4500);
leftservo.write(0); // tell servo to go to position in variable 'pos'
rightservo.write(0); // tell servo to go to position in variable 'pos'
delay(1650);
leftservo.write(180); // tell servo to go to position in variable 'pos'
rightservo.write(0); // tell servo to go to position in variable 'pos'
delay(4500);
leftservo.write(180); // tell servo to go to position in variable 'pos'
rightservo.write(180); // tell servo to go to position in variable 'pos'
delay(1350);
leftservo.write(180); // tell servo to go to position in variable 'pos'
rightservo.write(0); // tell servo to go to position in variable 'pos'
delay(2500);
leftservo.write(0); // tell servo to go to position in variable 'pos'
rightservo.write(0); // tell servo to go to position in variable 'pos'
delay(1000);
leftservo.write(180); // tell servo to go to position in variable 'pos'
rightservo.write(0); // tell servo to go to position in variable 'pos'
delay(7000);}
for (pos = 180; pos >= 0; pos -= 1) { // goes= from 180 degrees to 0 degrees
leftservo.write(pos); // tell servo to go to position in variable 'pos'
delay(15); // waits 15ms for the servo to reach the position
}
Code
// defines pins numbers
const int trigPin = 9;
const int echoPin = 10;
// defines variables
long duration;
int distance;
void setup() {
pinMode(trigPin, OUTPUT); // Sets the trigPin as an Output
pinMode(echoPin, INPUT); // Sets the echoPin as an Input
Serial.begin(9600); // Starts the serial communication
}
void loop() {
// Clears the trigPin
digitalWrite(trigPin, LOW);
delayMicroseconds(2);
// Sets the trigPin on HIGH state for 10 micro seconds
digitalWrite(trigPin, HIGH);
delayMicroseconds(10);
digitalWrite(trigPin, LOW);
// Reads the echoPin, returns the sound wave travel time in microseconds
duration = pulseIn(echoPin, HIGH);
// Calculating the distance
distance= duration*0.034/2;
// Prints the distance on the Serial Monitor
Serial.print("Distance: ");
Serial.println(distance);
}
Code
/* Sweep
by BARRAGAN <http://barraganstudio.com>
This example code is in the public domain.
modified 8 Nov 2013
by Scott Fitzgerald
http://www.arduino.cc/en/Tutorial/Sweep
*/
#include <Servo.h>
Servo myservo; // create servo object to control a servo
// twelve servo objects can be created on most boards
int pos = 0; // variable to store the servo position
void setup() {
myservo.attach(9); // attaches the servo on pin 9 to the servo object
}
void loop() {
for (pos = 0; pos <= 180; pos += 1) { // goes from 0 degrees to 180 degrees
// in steps of 1 degree
myservo.write(pos); // tell servo to go to position in variable 'pos'
delay(15); // waits 15ms for the servo to reach the position
}
for (pos = 180; pos >= 0; pos -= 1) { // goes from 180 degrees to 0 degrees
myservo.write(pos); // tell servo to go to position in variable 'pos'
delay(15); // waits 15ms for the servo to reach the position
}
}
Today, We are starting our lock box project. 11/10/21
Lock
Lock-Box Constraints
Box
Table Saw
The table saw cuts wood primarily cut length of the wood (rip cut).
Wearing safety glasses
Nothing hanging loose
Never get your hand 6 in within the blade
What We Made
We cut the saw in half and we learned how to use the table saw
Planer
scrap material off the top of an object.
use earplugs
wear safety glasses
always unplug it when you are finish
What We made
We cut small pieces of wood of the top of the wood.
Miter SAw
The miter saw cut across the wood.
Wear safety glasses
firmly secure the material with your hand
(don't) touch or manually move the blade
measure while using the material
What we Made
We cut our dimensions for our lock box.
Biscuit Jointer
Clamp a block in front a material
Wear safety googles
Don't put your fingers near the blade
What we made
I made my sides of my box. I put wood glue and biscuits together to connect the wood.
CNC Machine
Is used to develop simple designs for cutting engraving.
Onshape files is more complex
Shopbox software actually the controls the machine and runs the CAD files
This is my name that was made from the CNC machine for my box.
Orbital Sander
Wear safety glasses
Smooth edges of rough wood surfaces
you have to ask the teacher first
what We made
The sander made our wood smoother and the edges wasn't rough anymore. Also we put wood putty in the crack to let us not have any spaces.
DeadBolt Lock
The key turns the cylinder and turns attached cam. When the plugs is pulled a certain way the cam pull the bold and opens. No this isn't easy to make inside in class because the lock would not be have the proper materials. This lock meet the constraints because it could be built for the box.
PadLock
When a key is inserted they press against the pin which turns the chamber pins. This lock is feasible to make in class because you can 3d print the model and the key of the lock. Yes, this lock is feels the constraints because it is reliable and capable to keep your box safe.
Combination Lock
The drive pin spins the first pin which would adjust the adjacent lock. This process will continue until all the wheels are unlock. No, this isn't easy to make in class because this design of the lock and technology of the lock wouldn't last without the proper materials. No, Because you can't build it with the materials in the classroom.
Cam Lock
The male groove adapter and the female coupler to connect and disconnect. Closing the handle insure that the grooved is is pulled down and transfer of safe liquid. No, This lock isn't easy to make because you will need to make an exact key for this lock. This lock does meet the constraints because it is durable.
Wood Staning
Wear gloves
Always stain over a drop cloth
Put a small amount
Use cotton cloth to apply
Do not mix stains
leave stain materials out
waste gloves
What we made
Cam lock Video
This video show how to make a cam lock.
Idea Development of Lock
I made a cam lock. This is a small lock the is very reliable on making my box secured. This lock is usually for cabinets but i want to make an experiment on my box with it. I would need a nylon, a brass, aluminum joy.
Prototype 1
This is my prototype from day 1.
Prototype 2
I made the outline for my lock.
Front Dial
I created a opening lever for the lock so the actuator can move at ease. First I created a circle and added 2 equal lines on both side. (4.2cm) I had to redo the opening lever because I kept trim the circle. The area of the opening lever is 23.223cm
Actuator
I created the actuator for my class lock. First i made the outline of the actuator. I started to trim areas. I added the dimensions of the actuator. The circle is 1.6cm. The area of the actuator is 30.856 cm.
Back plane
I created the back plane for my box on onshape. First I created an rectangle. I added 2 circles that was 1.6cm long. The circle are 5.7 cm and 7.3cm away from the sides. The area of the back plane is 223.497 cm.
Video of the lock
This video show how the lock function. The movement of the actuator needs some improvement and the nail was a little long. I did do some revising to the lock and it was working smoothly after the video was recorded.
Glowforge
Create your file in google site
Right click on file
Open inkscape software
Open your file in inkscape
Save your file to another filename
Login to glowforge
Click new
Click upload
Select your file
For cardboard select 1/8 corrugated cardboard
Under proofgrade Cut, Speed should be set to 440
Make sure your drawing is on top of the material
Click Print
Push the blinking button
Monitor it
Remove your material with cuts
what i made
I cut out a rectangle by using the glowforge.
Video of prototype
I presented my prototype of my cam lock for my lockbox.
We have been learning about machine learning. A georgia tech professor is teaching us how to know the basic of machine learning. This poster is for space is the new place.
The goal of my model?
The goal of this project was to make a code that can accurately decode images. My four images was a hammer, screwdriver, ruler, and hot glue gun. This is a picture of my screwdriver in pixels because that is the unit that's used when making images.
The data collection Process
I have 200 images of the items I have chosen. The data collection was easy but the comments was hard because i had to show what do i know about every single line. I chose those items because they was right in my face not going to lie.
My model
My model is helping decode tools by an image software that we used. My model as import files from my google drive to help build an idea of what images it is decode. I also used the error message to help my get the check.
Building Your model
This screenshot shows the decoding of images and the imports of folders and files form google sites.
Screwdriver
Gluegun
Ruler
These are accurate images of a screwdriver, gluegun, ruler because they were free to error and the provide a color
These are images of something else but the computer will let you believe that you are seeing someing else.