This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//***************************************************************************************// | |
// e-BOT // | |
// e-BOT SUMO INVERTED // | |
// // | |
// This enables a bot to avoid obstacles and // | |
// may also solve mazes. // | |
// Codes by: // | |
// e-Gizmo Mechatronix Central // | |
// Taft, Manila, Philippines // | |
// http://goo.gl/mNcAUu // |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//***************************************************************************************// | |
// e-BOT // | |
// e-BOT SUMO // | |
// // | |
// This enables a bot to avoid obstacles and // | |
// may also solve mazes. // | |
// Codes by: // | |
// e-Gizmo Mechatronix Central // | |
// Taft, Manila, Philippines // | |
// http://goo.gl/mNcAUu // |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int SPEED_MOTOR = 150; | |
int state = 0; | |
void setup() { | |
//MOTOR PINS | |
pinMode(8, OUTPUT); //dirmotor1 | |
pinMode(9, OUTPUT); //spdmotor1 | |
pinMode(10, OUTPUT); //spdmotor2 | |
pinMode(11, OUTPUT); //dirmotor2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
e-Gizmo RPI-1031 4-Direction Sensor | |
This is a sample sketch for Tilt direction sensor | |
to display the sensor output positions. | |
For the RPI-1031 - http://www.sparkfun.com/products/10621 | |
Modified by e-Gizmo Mechatronix Central | |
http://www.e-gizmo.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int seq = 0; | |
int DCMOTOR = 4; | |
int PWM_SPEED = 100; | |
int SPEED_MOTOR = 100; | |
int state = 0; | |
int d2 = 400; | |
boolean fire = false; | |
boolean search = false; | |
int DELAY = 100; | |
void setup() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int DCMOTOR = 4; | |
int PWM_SPEED = 100; | |
int SPEED_MOTOR = 150; | |
boolean fire = false; | |
boolean search = false; | |
int DELAY = 100; | |
void setup() { | |
// put your setup code here, to run once: | |
pinMode(DCMOTOR, OUTPUT); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int DCMOTOR = 4; | |
int PWM_SPEED = 100; | |
int SPEED_MOTOR = 150; | |
boolean fire = false; | |
void setup() { | |
// put your setup code here, to run once: | |
Serial.begin(9600); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Servo.h> | |
// Servo pins | |
#define servoApin 5 | |
#define servoBpin 6 | |
// Thumb Joystick pins | |
#define thumbYpin A5 | |
#define thumbXpin A4 | |
#define thumbBpin A3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define pwm 9 | |
#define in1 6 | |
#define in2 7 | |
#define button 4 | |
int rotDirection = 0; | |
int pressed = false; | |
void setup() { | |
pinMode(enA, OUTPUT); | |
pinMode(in1, OUTPUT); | |
pinMode(in2, OUTPUT); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int sensor=A0; | |
int sensorVal=0; | |
void setup() { | |
Serial.begin(9600); | |
} |
NewerOlder