The source code for Running Marisa can be found here.

Included with the Arduino GLCD library is a Processing program by Michael Margolis that converts an image into a header file that you can include in your Arduino sketch to display bitmaps using GLCD.DrawBitmap(). It’s pretty convenient, but what if I wanted to include lots of bitmaps, to be used as frames of an animation? I’d have to generate the header files one by one and include all of them, then define some arrays to point to the different frames.

I decided to modify the program to accept a folder as an input, and the output would be a single file containing the headers for all of the files in the array. In addition, at the very end of the file, a pointer array is declared, with each entry in the array pointing to the address of each image. The length of the array is also stored as a variable.

Bitmap header file

The lines appended to the end of the file.

You can download the Processing file and java applet here.

Continue reading »

Tagged with:
 
Image mirror

Mirrored images

I made a program for @bitmapchaos that takes an image and creates two mirrored image files (images are mirrored across the horizontal center of the original image) in the same folder. You can download a java app here, and the Processing source code is in the full post.

Continue reading »

Tagged with:
 


Made a cave-navigation game using a Spectra Symbol softpot. The resistance of the softpot changes depending on where you press it, so you can do an Arduino analogRead() on the voltage output to determine where the circle goes on the screen. You have to make sure to add a resistor (I think I used a 100k resistor) going from the middle pin to ground (or power), or else the output floats.

Code available in the full post.

Continue reading »

Tagged with:
 

One of the microcontrollers assignments we had was to create a program in Processing that plotted the data from a sensor. In this video, it’s plotting data from a Maxbotix EZ1 distance sensor.

Tagged with: