Skip to content

Instantly share code, notes, and snippets.

View e-Gizmo's full-sized avatar
👩‍🏫
Conducting FREE Seminar and Workshop for Educators https://bit.ly/2XAGOvb

e-Gizmo Mechatronix Central e-Gizmo

👩‍🏫
Conducting FREE Seminar and Workshop for Educators https://bit.ly/2XAGOvb
  • e-Gizmo Mechatronix Central
  • 2/F VSC Building, 2313 Corner Castro St. Taft Ave., Malate, 1004 Manila, Philippines
View GitHub Profile
@e-Gizmo
e-Gizmo / E-BOT_4x4_SUMO_INVERTED.ino
Last active February 26, 2020 08:45
Latest version of eBOT SUMO (NEW INVERTED ARENA), you need to include the eGizmo_PBOT2018 library and Wire (if necessary)
//***************************************************************************************//
// 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 //
@e-Gizmo
e-Gizmo / E-BOT_4x4_SUMO.ino
Created February 26, 2020 08:34
Latest version of eBOT SUMO, you need to include the eGizmo_PBOT2018 library and Wire (if necessary)
//***************************************************************************************//
// 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 //
@e-Gizmo
e-Gizmo / Receiver.ino
Created June 10, 2019 09:37
Sample Codes for Direction Tilt Robot with Bluetooth Receiver.
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
@e-Gizmo
e-Gizmo / Master.ino
Created June 10, 2019 09:36
Sample Codes for Direction Tilt Robot with Bluetooth Master.
/*
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
@e-Gizmo
e-Gizmo / SearchStraight.ino
Created June 10, 2019 08:59
Example for FireFighter Fan to Search Straight.
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() {
@e-Gizmo
e-Gizmo / SearchFire.ino
Created June 10, 2019 08:58
Another example for FireFighterFan to SearchFire.
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);
@e-Gizmo
e-Gizmo / DetecsandGo.ino
Created June 10, 2019 08:56
This is one of the example codes for FireFighterFan.
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);
@e-Gizmo
e-Gizmo / PanTilt_ThumbJS.ino
Created May 28, 2019 09:15
This a Sample Sketch for Controlling PanTilt Sg-90 servos with Thumb Joystick, programmed with gizDuino UNO-SE.
#include <Servo.h>
// Servo pins
#define servoApin 5
#define servoBpin 6
// Thumb Joystick pins
#define thumbYpin A5
#define thumbXpin A4
#define thumbBpin A3
@e-Gizmo
e-Gizmo / TrialHulkster.ino
Created May 17, 2019 03:27
This is an example code for Hulkster Motor Driver.
#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);
@e-Gizmo
e-Gizmo / AnalogLineSensor.ino
Created May 17, 2019 02:47
This is an example codes for Line Sensor - Single Analog Output.
int sensor=A0;
int sensorVal=0;
void setup() {
Serial.begin(9600);
}