Interface and Application Programing
This weeks class of Fab Academy 2015 was about programing a interface and it’s application on a Smartphone or Computer.
To quote Prof Neil Gershenfeld:
Because I’m coming thru a 4G phone it will be dropping every ten minutes or so but that should be enough to get us thru the class.
Goal
My new goal is to make the interface for our machine building week as I was unable to complete the 9DOF.
In the Networking and Communication week I worked with a 9DOF and the ESP8266 wifi board to sense movements on a skateboard. This week I want to build a visualization.
Processing
As Niel said that “if you love arduino, then start with processing”, so start there I did.
On top of processing I installed the saitoobjloader - Processing OBJLoader library to display a 3D shoe and the G4P libraries to help visualize. While I have it working on an arduino I am having problems getting G4P working on my attiny 44. I’ve run out of time.
Second Try
I am following the tutorial Python Web-based Serial Console using WebSockets written by Fiore Basile to finish this assignment.
I ran sudo pip install pyserial tornado multiprocessing to install the needed software on my Mac.
First I created a basic HTML site. M2M Control I don’t remember how attach data in buttons and have to go back and look at that. The Javascript is contained in M2M.js
I followed Fiore’s instructions and enabled the Tornado Server Tornado Web Server.
I attached it to my fabduino and the only difficulty was configuring serialworker.pyc to my fabduino. cu.usbmodem411
It worked, so I created the buttons and made the calls in the javascript. You can see the code on these two page M2M Control and M2M.js
Next I made some small code for the Fabduino and the Stepper motor shields that takes simple commands from serial and breaks them down to their specific motor control board. Nothing special, but it does the job.
Conclusions
I will return to the ESP8266 asap, but for now I am happy to have something working. HTML - JS - PY - Serial - Attiny - Networked Attiny's
You can find all my source files here: Interface and Application.