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
/*
Poor's Man Oscilloscope Arduino Skecth
This is an example code for reading the
analog input and to display the value
signal output on processing.
*/
#define ANALOG_IN 0
@e-Gizmo
e-Gizmo / SERVO_SWEEP.ino
Created July 4, 2018 07:35
For PBOT2018 servo sweep sketch
/**********************************************
* e-Gizmo PBOT2018 Controller - SERVO_SWEEP.ino
*
* This is for SERVO sample sketch
* to sweeps the shaft back and forth
* across 180 degrees.
*
* SERVO Control
* ex. PBOT.SERVO(whichSERVO,pulsewidth);
* where:
@e-Gizmo
e-Gizmo / AVOID_COLLISION.ino
Created July 4, 2018 03:20
For PBOT2018 Avoid collision sketch
/**********************************************
e-Gizmo PBOT Controller - AVOID COLLISION.ino
This is for collsion sample sketch to avoid
crashing on the wall or any objects that blocking
way of the PBOT.
Reading the 3channel Collision sensors:
PBOT.COL1_RIGHT();
@e-Gizmo
e-Gizmo / MOTOR_TEST.ino
Created July 3, 2018 07:41
For PBOT2018 Motor Test sketch
/**********************************************
e-Gizmo PBOT2018 Controller - MOTOR_TEST.ino
This is for motor sample sketch to controls
and move forward, reverse, turning right,
turning left, and stop the motors.
Set motor speed:
PBOT.SPEED(whichmotor, speed);
Note: Forward Speed = 0 Full Stop;255 High, limit 250
@e-Gizmo
e-Gizmo / LINEBOT.ino
Created July 3, 2018 07:37
For PBOT2018 Line Follower sketch
/**********************************************
* e-Gizmo PBOT2018 Controller - LINEBOT.ino
*
* This is for Linesensor sample sketch to
* follows the black line or white line track.
*
* Reading the 3channel Line sensors:
* Calibration Instructions:
* For the new eGizmo PBOT2017 Controller features
* first thing to do is to calibrate the line
/*
LM34 Temperature Sensor Sketch
This sample sketch is for LM34 IC
Temperature Sensor, it can display the
degrees in Fahrenheit and Celcius.
STEP 1: Construct the circuit of GizDuino Temperature sensor.
STEP 2: Connect the USB Cable to your computer.
STEP 3: Open the Arduino IDE.
////////////////////////////////////////////////
// //
// ON OFF SEQUENCE //
// //
// This serves as a sample program for //
// an LED monitor showing a on off sequence. //
// //
// //
// Codes by: //
// eGizmo Mechatronix Central //
////////////////////////////////////////////////
// //
// RUNING LIGHT //
// //
// This serves as a sample program for //
// an LED monitor showing a running light //
// //
// //
// Codes by: //
// eGizmo Mechatronix Central //
String inputString = ""; // a string to hold incoming data
String COMMAND = "";
void setup() {
Serial.begin(9600);
inputString.reserve(200);
}
String inputString = ""; // a string to hold incoming data
String COMMAND = "";
void setup() {
Serial.begin(9600);
inputString.reserve(200);
}
void loop()
{