Skip to content

Instantly share code, notes, and snippets.

@timlambrecht
timlambrecht / UltrasonicSensorEnMotorForMaze_Speed100.ino
Created May 2, 2019 11:16
UltrasonicSensorEnMotorForMaze_Speed100
#include "MeOrion.h"
MeDCMotor motor1(PORT_1);
MeDCMotor motor2(PORT_2);
MeDCMotor motor3(M1);
MeDCMotor motor4(M2);
MeUltrasonicSensor SensorL(PORT_7);
MeUltrasonicSensor SensorM(PORT_8);
MeUltrasonicSensor SensorR(PORT_3);
@timlambrecht
timlambrecht / UltrasonicSensorEnMotorForMaze_Speed80.ino
Created May 2, 2019 11:14
UltrasonicSensorEnMotorForMaze_Speed80
#include "MeOrion.h"
MeDCMotor motor1(PORT_1);
MeDCMotor motor2(PORT_2);
MeDCMotor motor3(M1);
MeDCMotor motor4(M2);
MeUltrasonicSensor SensorL(PORT_7);
MeUltrasonicSensor SensorM(PORT_8);
MeUltrasonicSensor SensorR(PORT_3);
@timlambrecht
timlambrecht / UltrasonicSensorEnMotorForMaze_Speed80.ino
Last active April 25, 2019 13:07
UltrasonicSensorEnMotorForMaze_Speed80
#include "MeOrion.h"
MeDCMotor motor1(PORT_1);
MeDCMotor motor2(PORT_2);
MeDCMotor motor3(M1);
MeDCMotor motor4(M2);
MeUltrasonicSensor SensorL(PORT_7);
MeUltrasonicSensor SensorM(PORT_8);
MeUltrasonicSensor SensorR(PORT_3);
@timlambrecht
timlambrecht / UltrasonicSensorEnMotorForMaze_Speed120.ino
Last active April 25, 2019 13:06
UltrasonicSensorEnMotorForMaze_Speed120
#include "MeOrion.h"
MeDCMotor motor1(PORT_1);
MeDCMotor motor2(PORT_2);
MeDCMotor motor3(M1);
MeDCMotor motor4(M2);
MeUltrasonicSensor SensorL(PORT_7);
MeUltrasonicSensor SensorM(PORT_8);
MeUltrasonicSensor SensorR(PORT_3);
@timlambrecht
timlambrecht / UltrasonicSensorEnMotorForMaze
Created April 19, 2019 15:02
Code for 3 Me Ultrasonic Sensors and DC 4 motors
#include "MeOrion.h"
MeDCMotor motor1(PORT_1);
MeDCMotor motor2(PORT_2);
MeDCMotor motor3(M1);
MeDCMotor motor4(M2);
MeUltrasonicSensor SensorL(PORT_7);
MeUltrasonicSensor SensorM(PORT_8);
@timlambrecht
timlambrecht / ForwardInMaze
Last active April 25, 2019 06:44
Code for forward in maze
#include "MeOrion.h"
MeDCMotor motor1(PORT_1);
MeDCMotor motor2(PORT_2);
MeDCMotor motor3(M1);
MeDCMotor motor4(M2);
MeUltrasonicSensor SensorL(PORT_3);
MeUltrasonicSensor SensorM(PORT_7); /* Ultrasonic module can ONLY be connected to port 3, 4, 6, 7, 8 of base shield. */
@timlambrecht
timlambrecht / MeSensorThree
Last active April 25, 2019 06:42
Code for three sensors
#include "MeOrion.h"
MeUltrasonicSensor SensorL(PORT_3);
MeUltrasonicSensor SensorM(PORT_7); /* Ultrasonic module can ONLY be connected to port 3, 4, 6, 7, 8 of base shield. */
MeUltrasonicSensor SensorR(PORT_8);
void setup()
{
Serial.begin(9600);
@timlambrecht
timlambrecht / MeSensor
Created March 15, 2019 09:27
Code for one sensor
#include "MeOrion.h"
MeUltrasonicSensor SensorM(PORT_7); /* Ultrasonic module can ONLY be connected to port 3, 4, 6, 7, 8 of base shield. */
void setup()
{
Serial.begin(9600);
}
@timlambrecht
timlambrecht / MeSensorAndDCMotor
Created March 15, 2019 09:23
Code for Me Sensor and DCMotor
#include "MeOrion.h"
MeDCMotor motor1(PORT_1);
MeDCMotor motor2(PORT_2);
MeDCMotor motor3(M1);
MeDCMotor motor4(M2);
MeUltrasonicSensor SensorL(PORT_6);
MeUltrasonicSensor SensorM(PORT_7); /* Ultrasonic module can ONLY be connected to port 3, 4, 6, 7, 8 of base shield. */
@timlambrecht
timlambrecht / DCMotorVooruit
Last active April 25, 2019 06:38
Code for dc motors
#include "MeOrion.h"
MeDCMotor motor1(PORT_1);
MeDCMotor motor2(PORT_2);
MeDCMotor motor3(M1);
MeDCMotor motor4(M2);