#include <Servo.h>
Servo baseservo;Â // create servo object to control a servo
Servo rightservo;Â // create servo object to control a servo
Servo leftservo;
Servo clawservo;
// twelve servo objects can be created on most boards
void setup() {
  baseservo.attach(9); // attaches the servo on pin 9 to the servo object
  leftservo.attach(6);
  rightservo.attach(11)Â
;Â clawservo.attach(10)Â Â
;}
void loop() {
    baseservo.write(90);       // tell servo to go to position in variable 'pos'
    delay(1000);
    rightservo.write(0);       // tell servo to go to position in variable 'pos'
    delay(2000);
    leftservo.write(80);       // tell servo to go to position in variable 'pos'
    delay(2000);
    rightservo.write(90);       // tell servo to go to position in variable 'pos'
    delay(4000);
 clawservo.write(0);       // tell servo to go to position in variable 'pos'
     delay(1000);
 clawservo.write(0);       // tell servo to go to position in variable 'pos'
     delay(1000);
  leftservo.write(110);       // tell servo to go to position in variable 'pos'
     delay(3000);Â
   rightservo.write(0);       // tell servo to go to position in variable 'pos'
     delay(3000);Â
   baseservo.write(0);       // tell servo to go to position in variable 'pos'
     delay(3000); Â
   rightservo.write(0);       // tell servo to go to position in variable 'pos'
    delay(2000);
    leftservo.write(110);       // tell servo to go to position in variable 'pos'
    delay(2000);
       rightservo.write(90);       // tell servo to go to position in variable 'pos'
    delay(4000);
 clawservo.write(180);       // tell servo to go to position in variable 'pos'
     delay(2000);
 rightservo.write(0);       // tell servo to go to position in variable 'pos'
     delay(1000);
  baseservo.write(90);       // tell servo to go to position in variable 'pos'
     delay(1000);
  leftservo.write(90);       // tell servo to go to position in variable 'pos'
     delay(10000);
//
// leftservo.write();Â Â Â Â Â Â Â // tell servo to go to position in variable 'pos'
//Â Â delay(1000);
// leftservo.write(0);Â Â Â Â Â Â Â // tell servo to go to position in variable 'pos'
// Â Â delay(3000);
//Â
; Â Â Â Â Â Â Â Â Â Â Â // waits 15ms for the servo to reach the position
  }
Today in class we in installed our RGB sensor into our Arduino's because we are going to be working on color sorting in the near future.
In this sorter it uses magnets to separate the aluminum from the steel.Â
This one I found interesting because it had a presort function where humans picked it out first.
In this robot the robotic arms quickly pick out materials that can be used for recycling.
This one is very similiar to the 3rd but the guy explains it to make it make sense. This robot also uses machine learning to do certain task and wrap up production.
Ben
Kaden
Olivia
Byron
Ben
Kaden
Olivia
Byron