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 / DigitalProgLineSensor.ino
Created May 17, 2019 02:40
This is an example code for Line sensor-Single Digital Output.
void setup() {
Serial.begin(9600);
pinMode(8, INPUT_PULLUP);
}
void loop() {
int Val = digitalRead(8);
@e-Gizmo
e-Gizmo / ServoSweep.ino
Created November 16, 2018 07:25
This is one of an examples code from16Channel servo controller library. Add the eGizmo_16ChannelServo libary.
/*
ServoSweep Sample sketch
An example code for ServoSweep.
Use SoftwareSerial pin 2 (RX) and 3 (TX).
ServoDriver to gizDuino
TX --> pin2 (RX)
RX --> pin3 (TX)
GND --> GND
@e-Gizmo
e-Gizmo / HelloWorld_I2C_LCD_sample.ino
Last active November 16, 2018 06:19
Sample codes for JM162B I2C LCD module
/*
I2C Serial Interface LCD Module Display
Sample code
*/
#include <Wire.h>
// Get the LCD I2C Library here:
// https://bitbucket.org/fmalpartida/new-liquidcrystal/downloads
// Move any other LCD libraries to another folder or delete them
// See Library "Docs" folder for possible commands etc.
@e-Gizmo
e-Gizmo / LED_Blinking.vhd
Created November 14, 2018 09:18
Sample blink test for FPGA LCMXO2 Breakout Board , Reference: http://www.elab.ph/forum/index.php?topic=51920.0
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
--use IEEE.STD_LOGIC_ARITH.ALL;
--use IEEE.STD_LOGIC_UNSIGNED.ALL;
library machxo2;
use machxo2.all;
entity blinky is
Port ( led_out : out std_logic);
end blinky;
@e-Gizmo
e-Gizmo / LED_Blinking.vhd
Created November 14, 2018 09:16
Sample Blink Test for e-Gizmo FPGA
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
--use IEEE.STD_LOGIC_ARITH.ALL;
--use IEEE.STD_LOGIC_UNSIGNED.ALL;
library machxo2;
use machxo2.all;
entity blinky is
Port ( led_out : out std_logic);
end blinky;
@e-Gizmo
e-Gizmo / pitches.h
Created October 27, 2018 10:01
Add this file for Christmas Song piezo notes
/*************************************************
* Public Constants
*************************************************/
#define NOTE_B0 31
#define NOTE_C1 33
#define NOTE_CS1 35
#define NOTE_D1 37
#define NOTE_DS1 39
#define NOTE_E1 41
/*
DIY Christmas Song Sketch
Using gizDuino LIN-UNO (Arduino UNO).
*/
#include <eGizmo_SerialLCD.h>
#include "pitches.h"
@e-Gizmo
e-Gizmo / HELLO_WORLD.ino
Created October 26, 2018 06:40
Serial LCD II Library example.
/*
Hello World Sketch
On this sample, we will display a simple
message on the lcd, to print, printOver,
clear and scrolling.
Using gizDuino LIN-UNO (Arduino UNO).
See the Keyword.txt for more syntax.
@e-Gizmo
e-Gizmo / SerialLCD_Greetings.ino
Created October 24, 2018 09:53
Serial LCD II demo & other features
/*
Digital Pins Sketch
On this sample, we will use the digital pins of
Serial LCD II at the same time with display message on it.
Using gizDuino LIN-UNO (Arduino UNO).
See the Keyword.txt for more syntax.
@e-Gizmo
e-Gizmo / Radar_Processing2.pde
Created October 15, 2018 10:28
Version of the codes that will fit into any resolution of the screen:
/*Radar Project
*
* Updated version. Fits any screen resolution!
* Just change the values in the size() function,
* with your screen resolution.
*
* by Dejan Nedelkovski,
* www.HowToMechatronics.com
*
*/