Skip to content

Instantly share code, notes, and snippets.

Hayley Hwang hhayley

Block or report user

Report or block hhayley

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
hhayley / MYOC_ArduinoUnity_Multi.ino
Last active Jun 19, 2019
ITP CAMP 2019 - Arduino Code
View MYOC_ArduinoUnity_Multi.ino
Unity <---> Arduino (Serial Communication)
- Send Multiple sensor values to Unity
Tested Unity version 2019.1.6f
For 2019 ITP CAMP Workshop "Make your own controller in Unity"
By Hayeon Hwang. 2019.06.13
const int ledPin = LED_BUILTIN;
const int potPin = A0; // Analog input pin that the potentiometer is attached to
hhayley / ArduinoSerial.cs
Last active Jun 13, 2019
ITP CAMP 2019 - Unity C# scripts for Serial Communication from Arduino
View ArduinoSerial.cs
using UnityEngine;
* To use 'System.IO.Ports;', you should change in Player settings
* Build Settings - Player Settings - 'Player' tab
* Configuration - Api Compatibility Level* ---> change to ‘NET 4.x’
using System.IO.Ports;
public class ArduinoSerial : MonoBehaviour
View PQ12_pot.ino
Actuonix PQ12 Micro Linear actuator with Arduino
H-Bridge(L293NE) / 12v power supply
potentiometer (P+->5V / P->A0 / P-->GND)
M+, M- -> motor pins
~D9 : Enable pin (control speed)
D10,11 : motor control pins
by Hayeon Hwang (03/04/2018)
View sACN_intro_pushbutton.ino
Edited 'sACN intro.ino' for using a push button
It requires 'arduino_secrets.h'file with SSID and password info.
This sketch creates a sACN packet, then uses it to send
fade information to an sACN receiver.
This was originally tested with a DMXKing eDMX1 Pro
and a Coemar LEDko Revlection series spot.
View 1x4_Keypad_library.ino
keypad library
Editing for the Sparkfun 1x4 silicone button pad
#include <Keypad.h>
const byte ROWS = 1; //four rows
View 2x2ButtonPad_withoutLEDs.ino
edited for 2x2 button pad (without RGB leds)
Byron Jacquot @ SparkFun Electronics
Exercise 2 in a series of 3.
View Playground_TI.ino
#include <AcceleroMMA7361.h>
AcceleroMMA7361 accelero;
int x;
int y;
int z;
int accelState = 0;
int lastAccelState = 0;
View AcceleroMMA7361_MKR1000.cpp
// acceleroMMA7361.h - Library for retrieving data from the MMA7361 accelerometer.
// Copyright 2011-2012 Jef Neefs ( and Jeroen Doggen (
// For more information: variable declaration, changelog,... see AcceleroMMA7361.h
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
// This library is distributed in the hope that it will be useful,
View lunarLanderArduinoController.ino
Based on Example/09.USB/KeyboardAndMouseControl example code by Tom Igoe
modified by Hayeon Hwang
- MKR1000
- water level sensor -> A0
- push button -> D4
hhayley / bokehServer.js
Created May 10, 2017
Bokeh light Node Server
View bokehServer.js
Bokeh light Node Server
Original Code :
by Hayeon Hwang
var express = require('express'); // include express.js
var app = express(); // a local instance of it
var bodyParser = require('body-parser'); // include body-parser
var WebSocketServer = require('ws').Server // include Web Socket server
You can’t perform that action at this time.