This page keeps an up to date record of the miscellaneous projects that I work on for fun.
This server is hosted on a Raspberry Pi, live information on the status of the Pi Server (which is kept at a desired temperature by a custom cooling system) is shown below:
To see more datalogging, click HERE for the weather station's live data feed.
Here are some graphs investigating the effectiveness of the Raspberry Pi's thermal control system:
Here is a picture of the Raspberry pi server setup, this is the server hosting the page you are viewing right now!
To further my Java skills I jumped into the world of Android development, currently I have two apps published, (number 3 is in alpha, coming very soon!) one simple stopwatch game and another more complicated N-Body simulator, which was an extension of my school final year Computing Science project.
My first android app - "timestop" - can be found here.
My second android app - "Orbital Gravity Simulator" - can be found here.
The core Newtonian physics code from the Orbital Gravity Simulator is shown here running on a computer, the following video is a recording of coalescene of groups of masses collapsing into one under their own gravitational force, as can be simulated with the Android app.
For my crash Advanced Higher Computing Science project I decided to program an orbital mechanics simulation based game. The player must fly around and avoid gravitational entities, passing through certain regions to complete each level. The game can be downloaded here.
One of the most interesting aspects of this program was the analysis that could be done on the simulation afterwards. By recording the simulated velocity at each frame as the object orbited in a stable orbit around around the entity, a graph of how the velocity changed with time could be plotted. The results were as follows:
The results clearly showed the player orbiting with a velocity that oscillates periodically (as, although more accurately than, expected). The stable and consistent oscillation observed (no drag or similar such forces were programmed) meant Fourier analysis of the results were possible, which returned the following results:
As can be seen, with only a reasonably slight deviation, the orbital oscillation was composed of a frequency of just under 3 Hz, as expected and as was observed on the screen.
Made using: Khan Academy Computer Science.
From spare disc readers (and one floppy disc reader) that were being thrown away, I salvaged the stepper motor controlled linear drives and resoldered and programmed them to move back and forth. By mounting three drives mutually perpendicular to each other, accurate control was acheived. I attached a pen to one axis, and thus was able to start drawing shapes.
By devising my own control script for the Raspberry Pi, which reads a file format that encodes data for each of the directions of the axes, and then programming some very (very) basic CAD software using Java to run on my PC, I was able to turn this into a reasonably accurate CNC drawing machine.
I later added in to the java software the ability to import monochrome bitmap images and convert them into the axes data (.TARA) files to be read by the control script. This allowed the printing of complex images, and I tested this by printing off various crests. In the near future I plan on replacing the pen with a burning (300 mW) laser, such that this CNC can become a precise laser engraver.
All code for this project can be found here
I eventually turned my plotter into a laser engraver, using a 200mW 650nm laser module powered by a scavenged ATX power supply (from the same old PCs as I got the disc drives!). Managed to get some awesome footage of it burning away into some old cardboard, although it has no problem burning into wood either.
The final step of this project was modulating the laser and varying tray speed to allow different shades to be engraved. Here is the Mona Lisa engraved onto a piece of cardboard...
I have been building hybrid rocket engines for a while now, here are some of my earliest burns. I recently completed my first burn of a much larger motor, however regression rate of the paraffin wax used a fuel proves to be rather low for any serious thrust - I am awaiting a polyethylene pelleted fuel and will keep this section updated as I burn more tests. Here are some pictures of the second iteration of the motor, now made of a steel tube, steel funnels and exhaust paste. The entire construction should be able withstand temperatures of over 1000'C.
Here is a compilation of several burns using my earliest design of motor - which was almost completely nozzleness. This proved invaluable in terms of learning about the pitfalls of small hybrid rocket engines.
This engine used gaseous Oxygen as an oxidizer and polyethylene / rubber as fuels.
One of my latest projects: a machine learning AI chatbot thing. (The AI is called Ariel.) Here is an early prototype of Ariel demonstrating her learning capabilities:
Ariel is currently in version 3.0, the very complicated and not understandable nodejs script can be found here. (note this won't actually run, as database credentials have been omitted)
Ariel learns by storing any responses you make to her and using a custom devised string comparison algorithms works out the most suitable response to any message you send, based off how you responded when she sent a similar message to you.
I recently built - and now testing - a small solar powered arduino-based weather station, to transmit temperature, humidity, and air pressure back to this server and provide a live feed on the internet.
LIVE WEATHER FEED IS HERE.
Here is an image of the first iteration, about to begin testing:
The components onboard are:
Here are some miscellaneous projects. I programmed a stepper motor to play music by stepping with certain microsecond delays (and so different frequencies allowing notes to be played). This project was more or less useless, and simply was for fun while I waited for parts to arrive. :D
Code for this project here.
This next project was far more useful - I programmed an Arduino as a remote control for my monitor, although I did not go very far with it as the Infrared LED proved to be weak. I may continue more work on this in the future
Arduino code for this project here. (not including java code that converts the hex signals available on the internet into raw microsecond pause time data)
Here are some Java sort algorithms! (bubble / selection)
Although reasonably inefficient, these sort algorithms were great fun to code! To view the source code, and/or to download the .jar with 3 sort algorithms including your own animation generation, click here.
Run the executable .jar file with java -jar Sort.jar with java installed from cmd/terminal/bash.
My version of these periodic wave generating things that have been going around the internet:
The source code and the downloadble .jar file are available here here.
Infinite series that converges (somewhat slowly, relative to other series eg Ramanujan's for 1 / pi) to value of pi - here are the first 100 terms.
The source code and the downloadble .jar file are available here here.