Wednesday, November 29, 2017

Module 13

Demo Notes

Charlie's Link

Marlon's Link

Nick's Link

David's Link

LED Demo Tutorial

Charlie and Marlon:
  1. Get the arduino, an LED, a 220 resistor, and an alligator clip
  2. Attach the clip to the long end of the LED and any end of the resistor
  3. Put the other end of the resistor into pin 10 on the arduino
  4. Put the other end of the LED into the ground pin
  5. In the blink code, change the "LED_BUILTIN" parts to "10"
  6. Plug the arduino in and run the code
Nick and David:
  1. Acquire the Arduino board, an led light, an alligator clip and one 220 resistor.
  2. Put an end of the resistor into pin 10
  3. Put the shorter end of the led into the port labeled "GND", this stands for ground
  4. Take the alligator clip and attach the ends of the led light and the resistor sticking out.
  5. Go into your code and change the output from "LED_BUILTIN" to "10" on  all functions
  6. Plug into computer and run code

Blinking LED Videos

Nick and David's Videos and Tree:







Charlie and Marlon's Videos and Tree:





Wednesday, November 15, 2017

Module 12

Module 12:


We believe we will win because we have all of the bases covered. Our attack is a scoop action, using a lift on the front to flip the other robot. We also have defenses for our robot, including forks on the front so that its able to deflect the other robots attack, we also have added weight on the back so its not front heavy.

Our SHUmo Bot did not do very well. We won a few rounds but only 1 or 2 matches. We finished in third place, but we were predicting our Bot to win. Our goal was to have have Bot start off facing backwards, and when we hit go it would turn around and attack. When we finally began the match, when we hit the start button our Bot turned around way to slow than expected. Almost every other Bot would t-bone our Bot and push us right off. I think if our Bot started off face head on with the other Bot and only went straight, we definitely would have won. If we went straight, we would have gotten under the other Bot and had it vertical against our Bot, pushing it off the platform. 

Tuesday, November 14, 2017

Module 11

Google Docs:

Nick:

https://docs.google.com/document/d/1ZP_R_GL6SBQs7kwvQo82SayEn7mNsTCHINMRf8AvCyQ/edit?usp=sharing

Charlie:

https://docs.google.com/document/d/1zgpNH0SF6dn-irOm2r72D5QG5DD8ZAUj-2pWsKvuYjg/edit?usp=sharing

David:

https://docs.google.com/document/d/1lYoljTasdxwgLQ9HQY3LMlcKqu7U0e28oze9fz3uNog/edit

Marlon:

https://docs.google.com/document/d/1i1FIrJP93EXfV4aB8WMsRhk7WnvNDtAs9zXSlTX3LE0/edit?usp=sharing




This is a final snapshot of our code for our SHUmo bot.

The code works like this:

When the program starts, there are four independent processes that begin. One lowers the arm and raises/lowers it whenever the touch sensor is triggered. Another just makes some sounds and sets the mindstorm image to be dizzy eyes. The third makes the light flash on and off in the red color. The last actually does the movement.

The actual thread starts by turning to the side to avoid anything that charges straight-on. Then, it checks to see if it's on a white line. If it is, then it backs up and continues. Otherwise, it checks to see if it's charging at a robot (boolean value "forward"). If yes, it continues charging. If no, it checks to see if it sees something on its IR sensor. If it does, then it turns around, starts charging, and sets "forward" to true. If it doesn't, it rotates. Then the loop restarts.

This should make it so that the bot starts by sidestepping, then rotates until it sees its opponent. Then it charges until it reaches a white line, and if it hits its opponent, it attempts to lift it using the arm installed.

Wednesday, November 1, 2017

Module 10

Module 10


Touch Sensor:

Charlie programmed the touch sensor so it spun the main motor whenever it was activated. This program was very simple and include a loop. At the start the button would activate the loop and at the end of each cycle the robot would ask itself if the button was still activated, if it was it would keep looping, if it wasn't the program would end.








Move Steering with Touch Sensor:


We programmed the steering into the previous code so that during the loop the robot also told itself to move, turning left and then turning back to the right. Like before, the robot continues the loop if the button is pressed and held but if the button isn't held then it only cycles through once.









Color Sensor:


In the same programming as before we added a switch that the color sensor would activate and depending on the color that it sensed it would create an output. So for our color we picked red, and when the progam saw it was red then the robot made a hissing noise.







IR Sensor:


We created an independent code including a switch and a loop that determines if there is something in the way of the sensor. If there is something detected in front of the sensor the robot makes a noise.













Module 9: Lego Mindstorms

Potential Strategies

A good strategy to use concerning the rules and objectives of the robot sumo wrestling is the same as the successful one from the video we watched, which is to have a sort of plow that's intended to push/flip over the other robot. The robot will have to keep a relatively low center of mass, and the plow mechanism will need to extend when it starts up (in order to maintain the area requirements).

Building Strategy

To build the robot and the parts, we split into one group of two and two individuals, where the group of two focused on the main robot (assembling everything together and making the center parts), while the individuals made the add-ons (like the treads, tools, etc.). Once the main robot was finished, we all staggered the weapons in order to finish the challenges as quickly as possible.

Challenges

Mission 1

Mission 2

Mission 3

Mission 4

Mission 5

Code Explorations