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-GRA SG-90 SAMPLE CODES
THIS IS A COMPLETE CODE FOR CONTROLLING THE
ROBOTIC ARM (GRIPPER, ELBOW, SHOULDER, BASE)
INTERFACE TO GIZDUINO 328 UNO AND KEYPAD.
OPEN THE SERIAL MONITOR TO SEE THE POSITIONS
OR DEGREES.
LIBRARY USED:
/*
"GizDuino Starter kit"
Temperature sensor (LM35) Sample code
STEP 1: Construct the circuit of GizDuino Temperature sensor.
STEP 2: Connect the USB Cable to your computer.
STEP 3: Open the Arduino IDE.
STEP 4: Open the Temperature sensor (LM35) Sample code from GizDuino Starter kit code.
STEP 5: Then, click Upload.
/*
"GizDuino Starter kit"
Buzzer Sample code
STEP 1: Construct the circuit of GizDuino Buzzer.
STEP 2: Connect the USB Cable to your computer.
STEP 3: Open the Arduino IDE.
STEP 4: Open the Buzzer Sample code from GizDuino Starter kit code.
STEP 5: Then, click Upload.
/*
"GizDuino Starter kit"
LDR Sample code
STEP 1: Construct the circuit of GizDuino LDR.
STEP 2: Connect the USB Cable to your computer.
STEP 3: Open the Arduino IDE.
STEP 4: Open the LDR Sample code from GizDuino Starter kit code.
STEP 5: Then, click Upload.
/*
"GizDuino Starter kit"
Potentiometer Sample code
STEP 1: Construct the circuit of GizDuino Potentiometer.
STEP 2: Connect the USB Cable to your computer.
STEP 3: Open the Arduino IDE.
STEP 4: Open the Potentiometer Sample code from GizDuino Starter kit code.
STEP 5: Then, click Upload.
/*
"GizDuino Starter Kit"
LATCH AND SWITCH BUTTON sample codes
STEP 1: Construct the circuit of GizDuino Latch and Switch button.
STEP 2: Connect the USB Cable to your computer.
STEP 3: Open the Arduino IDE.
STEP 4: Open the Latch and Switch Button Sample code from GizDuino Starter kit code.
STEP 5: Then, click Upload.
/*
"GizDuino Starter kit"
Blinking 8 LEDs
STEP 1: Construct the circuit of GizDuino Blinking 8 LEDs.
STEP 2: Connect the USB Cable to your computer.
STEP 3: Open the Arduino IDE.
STEP 4: Open the BLINKING 8 LEDS Sample code from GizDuino Starter kit code.
STEP 5: Then, click Upload.
@e-Gizmo
e-Gizmo / JR_EGRA_PS2_CONTROLLED.ino
Created October 10, 2017 10:09
PBOT JUNIOR WITH EGRA (ROBOTIC ARM) PS2 CONTROLLED
//********************************************//
// JUNIOR WITH EGRA //
// PS2 CONTROLLED //
// //
// A complete code to make you controls //
// the robot wirelessly using PS2 controller //
// with built-in UHF STD transmitter paired //
// to UHF STD RX only (Receiver) place on the //
// PBOT JR board. //
// //
// Paint example specifically for the TFTLCD breakout board.
// If using the Arduino shield, use the tftpaint_shield.pde sketch instead!
// DOES NOT CURRENTLY WORK ON ARDUINO LEONARDO
// Modified for SPFD5408 Library by Joao Lopes
// Version 0.9.2 - Rotation for Mega
// *** SPFD5408 change -- Begin
#include <SPFD5408_Adafruit_GFX.h> // Core graphics library
#include <SPFD5408_Adafruit_TFTLCD.h> // Hardware-specific library