A repository of some of the code I've experimented with/written for projects including, but not limited to, Arduino, Raspberry Pi, Kinect etc.
Line-Following Car built for the finals of 'Ambitions', a competition organized by The Hong Kong Institute of Engineers. The Car, Linus, uses two infrared sensors at the front to detect the line and two servo motors attached to a motor controller board for autonomous control. Linus made a place for itself amongst the finalists.
The code for a Rube Goldberg machine built for the final project of my Intro to Electrical and Electronics Engineering course at The University of Hong Kong.
A very basic Arduino sketch for a Calculator using DTMF as input and four 7-Segment LED displays as output.
Custom Batman Logo programmed on Arduino Uno. It creates custom characters using 8 byte arrays to display the design on the 20x4 LCD screen.
Arduino version of the classic game Snake.
Arduino version of the classic game 'Pong' using 16x2 LCD. Input from DTMF, a small buzzer in use for random 8-bit sound effects.
A script for [lazy] students from HKU to enroll in the pre-selected courses (from the temporary course list) during the add/drop period. Since I didn't have access to the internet during the latest add/drop period, I wrote this code and scheduled it to run on a server.
A web scraping program to plot the growth of LTP (Last Trade Price) over time for given Strike Prices of NIFTY on The National Stock Exchange of India's website.
It takes data (Strike Price and its Expiry) from two Excel sheets (CALL.xlsx and PUT.xlsx), finds the corresponding table on the website and appends the multiple LTPs and the present day's NIFTY value in those excel sheets. Lastly, it outputs two graphs inside CALLchart.xlsx and PUTchart.xlsx which outlines the growth of LTPs of the various Strike Prices over time.
Uses BeautifulSoup and Openpyxl.
This is an experiment which combines the Depth Image captured from a Kinect Sensor with a Convolutional Neural Network, made for the purpose of recreating artistic styles of paintings.
Processing code for a simple application which detects the closest object in front of the Kinect Sensor and tracks the object, thus drawing a line on screen. The closer the object is, the thicker the line would be.
For communication between Arduino and Rpi.
Various misc. Python programs on Rpi.
SimpleCV is a Python library for Image Processing. This folder contains code which utilize it to manipulate images and for motion sensing.
Python library for Twitter API. Folder contains code for Twitter keyword search and update.