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
/*Output Expander Module
This program converts a serial into a parallel output with 8 output ports per board.
Each output ports has LED state indicators.
+3.3V or +5V of the microcontroller may be used.
This module is usually used with an input expander module.
JP2 pin assignments:
Din on digital pin 8
Str on digital pin 9
/*
e-Gizmo SD/MMC Card Shield test
Sample codes
Note: if you are using Arduino Mega
Schematic: https://www.arduino.cc/en/uploads/Main/arduino-mega2560-schematic.pdf
Please connect the ff. SPI connection:
SD/MMC Card Shield--->SPI--->ArduinoMEGA
D10--->SS ---> D53
D11--->MOSI---> D51
/* Demonstration Sketch for e-Gizmo Serial LCD *
* by e-Gizmo Mechatronix Central
*
* This sketch contains simple communications
* interface functions you can adopt and improve
* according to your requirements
*/
/* How to Connect */
/* Serial LCD TXD ---> gizDuino/Arduino RXD
/////////////////////////////////////
// Analog voltage source //
// eGizmo Universal MCU Trainer //
// //
// Reads analog voltage from //
// three voltage sources provided //
// in the trainer. Max of 5V //
// //
// Simply connect VR1, VR2 and VR3 //
// to A0, A1 and A2 respectively //
/* Demonstration Sketch for e-Gizmo Voice Recognition Module *
* by e-Gizmo Mechatronix Central
*
*/
// connection guide
/*
This Demo requires a LED Shield
/*
Example: Control a WTV020-SD-16P module to play voices from an Arduino board.
Created by Diego J. Arevalo, August 6th, 2012.
Released into the public domain.
*/
#include <Wtv020sd16p.h>
int resetPin = 2; // The pin number of the reset pin.
int clockPin = 3; // The pin number of the clock pin.
/* Sketch for e-Gizmo DDS Function Generated Breakout Board */
/* Pin assignment
Change accordingly if you have your own pin allotment preference
*/
const int latchPin = 10; // Connected to Function Gen SYNC pin
const int clockPin = 13; // Connected to Function Gen CLK pin
const int dataPin = 11; // Connected to Function Gen DATA pin
/*
GSM Send Sketch for Arduino
Initializes GSM Module and sends an SMS to recipient
The circuit:
*Arduino pin 0 (RX) - GSM Module (TX)
*Arduino pin 1 (TX) - GSM Module (RX)
Created 2010
// Library by Dan, e-Gizmo Mechatronix Central
// The library is made to simplify HBridge control
// and pwm frequency setting
/*
Available commands:
HBridge variable(wd_pin,pwm_pin,dir_pin); // Assigns pin
variable.begin(); // Sets wd pin
variable.Forward(speed); // Forward
variable.Backward(speed); // Backward
//Demo sketch
//This sketch will output distance into via the UART port
//port assignment
//change as may be necessary
const int trigger = 6;
const int echo = 7;
float distance;