1 / 20

Electronics and Robotics Merit Badges

Electronics and Robotics Merit Badges Class 5 – Programming Robot Controllers for Sumo Competition. The SumoBot Kit. SUMOBOT HARDWARE. 9/9/2014. Electronics and Robotics Merit Badge Class 5. 3. But now we have to program the robots with their instructions for the Sumo ring….

pascal
Download Presentation

Electronics and Robotics Merit Badges

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Electronics and Robotics Merit Badges Class 5 – Programming Robot Controllers for Sumo Competition Electronics and Robotics Merit Badges - Class 5

  2. The SumoBot Kit Electronics and Robotics Merit Badge Class 5

  3. SUMOBOT HARDWARE 9/9/2014 Electronics and Robotics Merit Badge Class 5 3

  4. But now we have to program the robots with their instructions for the Sumo ring… TEAM KIAH-1 TEAM JACOB-2 Remember how we talk with the robots (Hint: 1’s and 0’s)? 01000001 = “A” 0100 Electronics and Robotics Merit Badge Class 5

  5. ' Applied Robotics with the SumoBot - PushbuttonLed.bs2 ' Simple finite state machine example. ' {$STAMP BS2} ' {$PBASIC 2.5} pbSense PIN 6 LedSpeaker PIN 0 PeizoSpeaker PIN 1 LOW LedSpeaker DO IF pbSense = 1 THEN DEBUG HOME, "State = Blink LED" TOGGLE LedSpeaker ELSE DEBUG HOME, "State = Led off", CLREOL LOW LedSpeaker ENDIF PAUSE 100 LOOP SUMOBOT SOFTWARE 9/9/2014 Electronics and Robotics Merit Badge Class 5 5

  6. ASCII Code But first we need to break up into some functional areas… Electronics and Robotics Merit Badge Class 5

  7. SumoBot Rules • The Match: • 1) Flip a coin to determine who positions their robot first in the ring • 2) Place the ‘bot in the ring as directed by the referee • 3) Press the start button on the bot when directed by the referee. • After 5 seconds the bot may begin moving (sound/light indicates robot working). • 4) Move back at least 3 feet from the edge of the ring • 5) Catch any bot that is out of the ring and turn it off • 6) Place the bot back in a holding area between matches. A contestant may • make adjustments between matches, but may not leave the holding area. • Basic Rules: • One match will consist of three rounds, within a total of 3 minutes each. • The team who wins two rounds out of three wins the match. • 2) The match will be stopped and a rematch will ensue when it is apparent • that neither bot is making any progress for duration of about 4 seconds (as • determined by the referee). • 3) If a part on the bot comes off that is less than 5 grams, the round will • continue. • 4) A player has 30 seconds to correct a problem between rounds. • 5) The referee has the final decision in a match. Electronics and Robotics Merit Badge Class 5

  8. SumoBot Competition “Specialists” Competition Leads/Motors/Sensors Teams Electronics and Robotics Merit Badge Class5

  9. SumoBot Competition Code – Wiring LED Electronics and Robotics Merit Badge Class 5

  10. SumoBot Competition Code –State Diagram Electronics and Robotics Merit Badge Class 5

  11. SumoBot Competition Code – Code ' Applied Robotics with the SumoBot - PushbuttonLed.bs2 ' Simple finite state machine example. ' {$STAMP BS2} ' {$PBASIC 2.5} pbSense PIN 6 LedSpeaker PIN 0 PeizoSpeaker PIN 1 LOW LedSpeaker DO IF pbSense = 1 THEN DEBUG HOME, "State = Blink LED" TOGGLE LedSpeaker ELSE DEBUG HOME, "State = Led off", CLREOL LOW LedSpeaker ENDIF PAUSE 100 LOOP Electronics and Robotics Merit Badge Class 5

  12. Sensor Teams: Load and run program 3.1 from handout to test and evaluate the QTI sensors. 9/9/2014 Electronics and Robotics Merit Badge Class 5 12

  13. SumoBot Sensors and Border Detection 9/9/2014 Electronics and Robotics Merit Badge Class 5 13

  14. Sensor Teams: Record Test Program 3.1 results Run the 3.1 test program (using Position 1 of the power switch) and record the values from your SumoBot QTI sensors in your Robot Engineering Notebook. Black White Left QTI _______ _______ Right QTI _______ _______ 9/9/2014 Electronics and Robotics Merit Badge Class 5 14

  15. Motor Team: Load and run program 2.2 from handout to test and evaluate the servo motors are ready 9/9/2014 Electronics and Robotics Merit Badge Class 5 15

  16. Motor Teams: Test Program 2.2 (motors) results Run the 2.2 test program (using Position 2 of the power switch) and you should observe the following behavior by the robot (write this in your Robot Engineers Notebook): 1) Move forward slowly PASS/FAIL__________ 2) Pivot turn 90 degrees on left wheel PASS/FAIL__________ 3) Move forward quickly PASS/FAIL__________ 4) Pivot turn 180 degrees on right wheel PASS/FAIL__________ 5) Move forward quickly PASS/FAIL__________ 6)Spin turn (rotates SumoBot around its own center) 360 degrees PASS/FAIL__________ 7) Stop PASS/FAIL____ 9/9/2014 Electronics and Robotics Merit Badge Class 5 16

  17. Team Leads: Load and run program 3.3 (Simple Mini Sumo) from handout to test and evaluate overall readiness of your robot Run the 3.3 test program (using Position 2 of the power switch) and record the values from your SumoBot QTI sensors in your Robot Engineering Notebook. Pass Fail Motors _______ _______ Edge Sensors _______ _______ 9/9/2014 Electronics and Robotics Merit Badge Class 5 17

  18. Competition Time!!! 9/9/2014 Electronics and Robotics Merit Badge Class 5 18

  19. 9/9/2014 Electronics and Robotics Merit Badge Class 5 19

  20. SumoBot Rules • The Match: • 1) Flip a coin to determine who positions their robot first in the ring • 2) Place the ‘bot in the ring as directed by the referee • 3) Press the start button on the bot when directed by the referee. After 5 seconds the bot • may begin moving (sound/light indicates robot working). • 4) Move back at least 3 feet from the edge of the ring • 5) Catch any bot that is out of the ring and turn it off • 6) Place the bot back in a holding area between matches. A contestant may • make adjustments between matches, but may not leave the holding area. • Basic Rules: • One match will consist of three rounds, within a total of 3 minutes each. • The team who wins two rounds out of three wins the match. • 2) The match will be stopped and a rematch will ensue when it is apparent • that neither bot is making any progress for duration of about 4 seconds (as • determined by the referee). • 3) If a part on the bot comes off that is less than 5 grams, the round will • continue. • 4) A player has 30 seconds to correct a problem between rounds. • 5) The referee has the final decision in a match. Electronics and Robotics Merit Badge Class 5

More Related