Activity Stream

@ijl10a to DCPS_Fall17_Training

We will be having a 6 hour meeting (9 AM to 3PM) on December 2, 9, and 17. It is best for students to come to at least 2 Saturday dates; however if they want to come to all 3 they are more than welcome to!

If you have any questions please email me at LozanoI1@duvalschools.org.

@wbyu2006 to DCPS_Fall17_Training

The NOTES about commands are here https://cloud.sumorobotleague.com/robot/o4zy

@wbyu2006 to DCPS_Fall17_Training

5)Can you extract code from the robot to the computer for editing? Unfortunately, you cannot even if you had the tools to get the code from the robot it would be meaningless machine language (zero's and one's). I think our next generation robot should use a platform with a well-developed simulator like the BBC MicroBit (see http://microbit.org/) and have the ability to extract your code from the robot and go back to work on it (which the MicroBit does not have). Anybody know an investor willing to put down half a million to fund the development of this platform? I've identified the pieces needed (ARM processors, Microsoft MakeCode) and watched as innovators in the field jump onboard (the BBC, Adafruit, recently Wonder Workshop).

@wbyu2006 to DCPS_Fall17_Training

4) Adding value to people's lives depends on what they value. The creativity and fun of sumo robot competitions (and the preparation for such) add value to my life. I've often thought that children in hospitals should have people bring sumo robots to them to teach them enough that they could then do a series of activities with them as much or as little as they wanted until theyr'e better. I'll share more ideas on this tomorrow. How do you all think they could add value?

@wbyu2006 to DCPS_Fall17_Training

3) It's pretty hard to break away from a robot that is pushing your robot. The best bet is to have weight and clean tracks on your side. You could scuff up the tracks with a sander or grinder and then clean them off with alcohol wipes. I haven't tried this though.

@wbyu2006 to DCPS_Fall17_Training

2) The HC-06 Bluetooth module we have tested with the robot. Others like the more versatile HC-05 should work but we have not tested. Personally, I haven't felt the need for the added ability that the HC-05 offers. To find the code visit https://github.com/SumoRobotLeague/MRK-1_Misc/tree/master/Demo%20Sketches/RC_v20

@wbyu2006 to DCPS_Fall17_Training

Questions Answered. 1) Can anyone join your team? Currently, yes. You can turn off activity posts by team members. Only you the captain would be able to post.

@wbyu2006 to DCPS_Fall17_Training

Here is the Code to make Notes. Copy it. Make a New Robot and make your own notes. https://cloud.sumorobotleague.com/robot/o4zy

@MrHolcomb to DCPS_Fall17_Training

Do you have a recommendation for the bluetooth module we would use with this board?

@ijl10a to DCPS_Fall17_Training

What are the physics of treads? As in a strategy for when two robots are pushing against each other. How do we get pass that? I have an idea of using booleans and while loops to break out.

@MrLuna to DCPS_Fall17_Training

How could simple robots add value to people's lives?

@MrHolcomb to DCPS_Fall17_Training

Can you extract code from the robot to the computer for editing? We couldn't figure out how to do this last year.

@Pariseau to DCPS_Fall17_Training

Good morning all!! My name is Doug, I work at Sandalwood and I'm looking forward to an exciting year of bots!! My email is pariseaud@duvalschools.org

@wbyu2006 to DCPS_Fall17_Training

Note that we have a public webpage currently dedicated to the jumpstart! There is a link on it to my training slides. Hopefully it will be a helpful resource for you. https://www.sumorobotleague.com/teacher-activity/

@wbyu2006 to DCPS_Fall17_Training

WELCOME!! Now that you've signed please do the following: 1) Post an introductory note include your email if you'd like to share it because the cloud does NOT push activity feeds to email addresses which means that if you aren't in the cloud looking at things posts made to the cloud won't reach you, and 2) take a look around. This is where we will share and save code (aka My Robots) and post notes to teach other. The way to share code is to make it visible to the team or public and then copy the URL address and post it. For example, here is the code that will help you jumpstart sumo robot programming https://cloud.sumorobotleague.com/robot/033J

@wbyu2006 to Clubhou.se DaltonGA Test

The final pieces are to wait until the pushbutton is pressed before competing, and to calibrate black and white, and then use the sensors to detect the edge of the sumo border. Here is the code for blacknwhite calibration and detection https://cloud.sumorobotleague.com/robot/oGvv

@wbyu2006 to Clubhou.se DaltonGA Test

The objectWithin() function is here https://cloud.sumorobotleague.com/robot/wkyq

@wbyu2006 to Clubhou.se DaltonGA Test

Add these below the #define lines of code https://cloud.sumorobotleague.com/robot/0Yln

@wbyu2006 to Clubhou.se DaltonGA Test

The turnDegrees function https://cloud.sumorobotleague.com/robot/wVYB

@wbyu2006 to Clubhou.se DaltonGA Test

Pin definitions for the Red Board are here https://cloud.sumorobotleague.com/robot/wxDg

@destructor to Clubhou.se DaltonGA Test

woooo!!

@wbyu2006 to 2017Tournament_M

Sumo2 competition code cloud.sumorobotleague.com/robot/wDMq

@madden to Paul Knox North Augusta, SC

Is anybody else here?

@madden to Paul Knox North Augusta, SC

Is that supposed to have "#"'s before the "define"? Also, do we add this to our code?

@jgore5 to Paul Knox North Augusta, SC

include <Motor.h>

define leftSensor A1

define rightSensor A2

define IREmitter 6

define echoPin A0

define pingPin 3

define IRthreshold 990

define USthreshold_cm 35 //attack if an object is within 35cm

define maxSpeed 255

define minSpeed -255

define buzzer 5

Motor motor; void setup() { Serial.begin(9600); pinMode(leftSensor, INPUT); pinMode(rightSensor, INPUT); pinMode(IREmitter, OUTPUT); pinMode(echoPin, INPUT); pinMode(pingPin, OUTPUT); pinMode(buzzer, OUTPUT); motor.setupRight (10 , 8); motor.setupLeft (9 , 4); }

void loop() {

//tone(buzzer, 1000, 250); // delay(500); // tone(buzzer,500 , 250); // delay(500); // tone(buzzer, 800, 250); // delay(500); // tone(buzzer,1000 , 250); // delay(500); // tone(buzzer,850 , 250); // delay(500); // tone(buzzer, 999, 250); // delay(500); // tone(buzzer, 500, 500);

IsCloseToOpponent(); if (IsWhite() ) { //backup and turn motor.right (-200); motor.left (-200); delay(1000); motor.right (200); delay(400); } else { //search motor.right (250); motor.left (100); if (IsCloseToOpponent() > 0) { //attack or push or full speed ahead motor.right(maxSpeed); motor.left(maxSpeed); } /else { move forward } / } }

boolean IsCloseToOpponent() { int distance = ping() / 29 / 2; Serial.println(distance); boolean closeToOpponent = distance < USthreshold_cm;

return closeToOpponent; }

boolean IsWhite() { digitalWrite(IREmitter, HIGH); int rightInput = analogRead(rightSensor); int leftInput = analogRead(leftSensor); Serial.print("Left/"); Serial.println(leftInput); Serial.print(" - Right/"); Serial.println(rightInput); delay(5); boolean whiteBoolean = rightInput < IRthreshold; return whiteBoolean; }

long ping() { long duration; digitalWrite(pingPin, LOW); delayMicroseconds(2); digitalWrite(pingPin, HIGH); delayMicroseconds(10); digitalWrite(pingPin, LOW); duration = pulseIn(echoPin, HIGH); return duration; }

@KnightC3 to Paul Knox North Augusta, SC

Hey

@madden to Paul Knox North Augusta, SC

helloooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo

@madden to Paul Knox North Augusta, SC

That's my code.

@madden to Paul Knox North Augusta, SC

Your welcome

@madden to Paul Knox North Augusta, SC

include <Motor.h>

define button 2

boolean pressed; int lastRead;

define leftSensor A1 //left ir sensor

define rightSensor A2 //right ir sensor

define IREmitter 6

//Ultasonic

define pongPin A0 //Listen for distance

define pingPin 3 //Emit signal

Motor motor;

void setup() { // put your setup code here, to run once:

Serial.begin(9600);

pinMode(button, INPUT_PULLUP);

//load left and right color sensors pinMode(leftSensor, INPUT); pinMode(rightSensor, INPUT); pinMode(IREmitter, OUTPUT);

motor.setupRight(10, 8); motor.setupLeft(9, 4); }

const int FAST = 255, SLOW = 220; int step = 0;

void loop() { lastRead = digitalRead(button);

if (pressed && lastRead == 0) { stopMotors(); pressed = false; return; }else if (!pressed) { return; }

if (!pressed && lastRead == 1) { pressed = true; delay(3000); driveStraight(-FAST); delay(1321); stopMotors();

turnLeft(-FAST); delay(144); stopMotors();

turnRight(-FAST); delay(233); stopMotors(); } if (isWhiteRight() && isWhiteLeft()) { stopMotors();

//Backup for 2 secobds at full speed
driveStraight(-FAST);
delay(2000);
stopMotors();

//Turn left in reverse for half a second
turnLeft(-FAST);
delay(500);
stopMotors();

//Turn right forwards for 3/4's of a second
turnRight(FAST);
delay(750);
stopMotors();

//  driving straight and waiting 2 seconds and turning

} else if (isWhiteRight () && !isWhiteLeft()) { stopMotors();

//Turn left in reverse for half a second
turnLeft(-FAST);
delay(500);
stopMotors();

//Turn right forwards for 3/4's of a second
turnRight(FAST);
delay(100);
stopMotors();

} else if (!isWhiteRight () && isWhiteLeft()) { stopMotors();

//Turn left in reverse for half a second
turnLeft(-FAST);
delay(500);
stopMotors();

//Turn right forwards for 3/4's of a second
turnLeft(FAST);
delay(100);
stopMotors();

} else { //There is an object in front of us if (distanceInCentimeters() <= 12) { driveStraight(FAST); } else { driveStraight(SLOW); } }

}

void stopMotors() { driveStraight(0); }

void driveStraight(int speed) { if (speed >= -255 && speed <= 255) { motor.right(speed); motor.left(speed); } }

void driveStraight(int speed, long timeInMillis) { driveStraight(speed); delay(timeInMillis); stopMotors(); }

void turnLeft(int speed) { if (speed >= -255 && speed <= 255) { motor.right(speed); } }

void turnRight(int speed) { if (speed >= -255 && speed <= 255) { motor.left(speed); } }

//TODO boolean isWhiteRight() { digitalWrite(IREmitter, HIGH); int rightInput = analogRead(rightSensor); return (rightInput < 1000); }

//TODO boolean isWhiteLeft() { digitalWrite(IREmitter, HIGH); int leftInput = analogRead(leftSensor); return (leftInput < 1000); }

long checkPing() { digitalWrite(pingPin, LOW); delayMicroseconds(2); digitalWrite(pingPin, HIGH); delayMicroseconds(10); digitalWrite(pingPin, LOW); return pulseIn(pongPin, HIGH); } long distanceInCentimeters() { return checkPing() / 58; }

@madden to Paul Knox North Augusta, SC

Hi

@Eridan to Paul Knox North Augusta, SC

Yooooooo what up guys

@botbuster1 to Lake Forest Hills Elementary Augusta GA

I hope y'all come next yearπŸ˜€

@botbuster1 to Lake Forest Hills Elementary Augusta GA

Hey guys, awesome representing LFH. Next year we will win it for sure. His was our first time and we saw how the weighted people won. See you on Monday! Quick as the 🐺. Strong as the πŸ‚. Working without a 😠. To make robots rumble.

@stitch632 to 2017Tournament_L

@stitch632 to 2017Tournament_L

Recently Created Teams

DCPS_Fall17_Training

Created on 12 October 2017 with 15 members.
Team Captain: @wbyu2006

Duval County Public Schools training in Jacksonville, FL October 12-13th, 2017.

Clubhou.se DaltonGA Test

Created on 29 September 2017 with 5 members.
Team Captain: @wbyu2006

Brave souls who volunteered to be the testers prior to teaching 100 students in Dalton, GA

TechLabs_Summer2017

Created on 27 June 2017 with 5 members.
Team Captain: @KRAKEN

The fiercest Sumo Robot League in all of Switzerland!

2017Tournament_M

Created on 6 May 2017 with 6 members.
Team Captain: @wbyu2006

M - the 13th bracket

2017Tournament_L

Created on 5 May 2017 with 5 members.
Team Captain: @wbyu2006

tournament preliminary

2017Tournament_K

Created on 5 May 2017 with 6 members.
Team Captain: @wbyu2006

tournament preliminary

2017Tournament_J

Created on 5 May 2017 with 6 members.
Team Captain: @wbyu2006

tournament preliminary

2017Tournament_I

Created on 5 May 2017 with 5 members.
Team Captain: @wbyu2006

tournament preliminary

2017Tournament_H

Created on 5 May 2017 with 7 members.
Team Captain: @wbyu2006

tournament preliminary

2017Tournament_G

Created on 5 May 2017 with 6 members.
Team Captain: @wbyu2006

tournament preliminary