We have been working on code that will have the tank drive and use the ultrasonic sensor to see things in front of it so it makes a turn until there ins't anything in front.
This is a piece of our code:
void stopm(void);
void forward(void);
void inputs(void);
void sharpright(void);
int duration;
float distance;
void setup(void)
{
Serial.begin (9600);
pinMode(trigger, OUTPUT);
pinMode(echo, INPUT);
pinMode(IN1 ,OUTPUT);
pinMode(IN2,OUTPUT);
pinMode(IN3,OUTPUT);
pinMode(IN4,OUTPUT);
pinMode(ENA,OUTPUT);
pinMode(ENB,OUTPUT);
digitalWrite(ENA,HIGH);
digitalWrite(ENB,HIGH);
}
DIY Robo Tank #1
Friday, March 29, 2019
Thursday, March 14, 2019
Design for Tank Robot.
We where thinking on our tanked robot design such as where are we going to put the sensors on the root because we taped down the ultrasonic sensor and we want to get something else to hold it down that looks better. Also our battery keeps falling out and it isn't secured so we thought we could tape it underneath. Our next step is getting some code where our root can sense a edge of a table and not roll off.
Tuesday, March 12, 2019
Fixing code
We fixed the code we got off of GitHub, by changing the pins so they match with our pins. Also running the code on our Tank robot
const int leftDirControl1 = 2;
const int leftDirControl2 = 3;
const int leftSpeedControlPin = 9; // Needs to be a PWM pin to be able to control motor speed
// Right Motor
const int rightDirControl1 = 4;
const int rightDirControl2 = 5;
const int rightSpeedControlPin = 10; // Needs to be a PWM pin to be able to control motor speed
const int leftDirControl1 = 2;
const int leftDirControl2 = 3;
const int leftSpeedControlPin = 9; // Needs to be a PWM pin to be able to control motor speed
// Right Motor
const int rightDirControl1 = 4;
const int rightDirControl2 = 5;
const int rightSpeedControlPin = 10; // Needs to be a PWM pin to be able to control motor speed
Monday, March 11, 2019
Monday, February 25, 2019
Sunday, February 24, 2019
Assignment: Update Your Project Cover Image
Mr.Burnham's Assignment/Request:
If you want to update your DIY Robo Tank #1 cover image, post it here on the blog and I'll update the Robot Club link page.
If you want to update your DIY Robo Tank #1 cover image, post it here on the blog and I'll update the Robot Club link page.
- Edit this post title to say "DIY Robo Tank #1 Project Cover Image"
- Add Image here that is a square, with your cover art and logo inside
DIY Robo Tank #1- Historical 2019-2019 AM Team
Historical Team Members:
2018-2019 - AM Team - Dulce, Demitrius
Subscribe to:
Posts (Atom)