Engineering Design Camp
Robotics
Print 32
Code.
But you don’t need the remote control to drive your robot. Learn how to code your robot to make it drive exactly the way you want.
Improve Your Code.
Learn how to control turn angles and velocity to get your robot to master any course.
Code Your Arduino
-
#include "Arduino_LED_Matrix.h"
ArduinoLEDMatrix matrix;
void setup() {
Serial.begin(115200);
matrix.begin();
byte frame[8][12] = {
{ 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0 },
{ 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0 },
{ 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0 },
{ 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0 },
{ 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
};
matrix.renderBitmap(frame, 8, 12);
}
void loop() {
}
-
#include "Arduino_LED_Matrix.h" //Include the LED_Matrix library
#include “myLEDsequence.h”
// Create an instance of the ArduinoLEDMatrix class
ArduinoLEDMatrix matrix;
void setup() {
Serial.begin(115200);
// you can also load frames at runtime, without stopping the refresh
matrix.loadSequence(myLEDsequence);
matrix.begin();
matrix.play(true);
}
void loop() {
}
Go the Distance.
Learn how to use the distance sensor with your robot.
Push It Off Practice
Can you code your robot to push all the balls off the playing field?
Castle Crasher Competition
Can you knock all the balls off the field as quickly as possible?