Musical Handrail using the MUX Shield 07/22/2010
This video pretty much explains everything. SnakeStomp 5.5 05/20/2010
Added a bit more to the game and Rob from IT helped debug a few things! Added a bunch of music from 8bitcollective.com Hope it's all ready for Maker Faire this weekend. Here is the source code. I wrote this game in Processing, it's controlled via an Arduino connected to a few accelerometers in stomp pads so when you stomp on a pad it moves the snake and lights up the LEDs. This game will be part of the SparkFun.com booth at MakerFaire in San Mateo. Projection Mapping with Ultrasonic Sensors 04/28/2010
Did a last minute installation at SparkFun before the Autonomous Vehicle Competition. It is fairly straight forward installation, it has a bunch of boxes stacked in the corner of the room and an ultra short throw projector on the other side, then in photoshop I mapped out where the boxes were and in Processing I wrote a little sketch to take the Arduino inputs from two ultrasonic rangefinders to scale up the brightness of each side of the boxes. Here is what the projector was projecting... I'll post video later. I also tried using the Zoom H4n stereo recorder to try audio inputs instead of ultrasonic sensors, it kinda worked, but I didn't want to have music playing during the AVC, so maybe I'll bring that back into it later. A gift for CP+B 04/01/2010
Decided to make a little gift for Crispin Porter and Bogusky. It's an RGB LED matrix that scrolls "SparkFun Was Here!". It's also got an on/off missile switch and is running an Arduino Mini Pro powered off 4 AA batteries..simple yet effective. Practical Arduino Cover Photo 03/15/2010
Just realized I shot the image being using on the cover of a book called Practical Arduino. I forgot all about it until I saw the book in SparkFun's break room. RFID + RFID Reader + Processing 03/09/2010
I wrote this simple Processing sketch to illustrate how simple SparkFun's USB RFID Reader is to use. ![]() The USB RFID Reader works with the ID-2, ID-12 and ID-20 RFID readers depending on how much range you need. ![]() When an RFID is placed next to the reader it beeps and send the RFID's number via serial. If you have the Arduino software installed you can simply open up the serial monitor and see the RFID number. This Processing sketch displays the product photo of the RFID being scanned...obviously this only works if you put the RFID number into the program, since every RFID number is different.
Snake in Processing 03/07/2010
I've been working on a little snake game for Maker Faire. It's made in Processing using MSAFluid, Minim, OpenGL and is controllable via a Simon board or WiiMote. Here is the source code for anyone who wants to check it out. ![]() Connect an FTDI to the Simon board, reprogram it to send serial "1-4" for each of the buttons and use as a controller for Snake.
UPDATE: Work a bit more on this today, made it a bit more 3d looking.
The serial side of things is commented out in this version. but you can use wasd and ijkl to control the players with your keyboard.
Drunk-O-Meter using the MQ-3 alcohol sensor 03/05/2010
My little sister turned 21 recently, so I started working with the MQ-3 alcohol sensor from SparkFun to see if I could make a portable breathalyzer that runs off a 9v battery, can plug into to a computer via usb and that has some sort of indicator lights to show how drunk one might be. <insert photo here> It has 6 LEDs which fade up in order depending on the level of alcohol it senses. I also can be plugged into a computer running a processing sketch that shows a more accurate fullscreen readout and displays 170 different images from the internet also depending on the drunk level. Parts list: Arduino Mini Pro (5v 16mhz version) MQ-3 Alcohol Sensor (2) Red LEDs (2) Yellow LEDs (2) Green LEDs SPST switch 9v battery 9v battery connector (3) 330k resistors 10k resistor Right angle headers FTDI USB->Arduino (5v version) USB cord The MQ-3 is a little strange, it definitely needs 5volts, much less and it won't function correctly. Because the sensor has a heating element it's values are easily skewed with hot or cold temperatures blowing on it. The MQ-3 has a burn in period of about 24 hours to give you accurate readings. Also I noticed that the MQ-3 alcohol sensor responds to a few other things like Rock Star energy drinks! Other than the redundant pins the MQ-3 is pretty straight forward and easy to use. Simply hook up 5v to all 3 of the pins on one side, then hook up a ground (middle pin) and a 10k resistor to ground and finally the last pin goes to the Arduino's analog input. The pin with the 10k resistor to ground can be swapped with the pin going to the Arduino analog input. The LEDs are taking up all of the PWM lines so they can be faded in sequence. Since the input from the MQ-3 sensor ranges from 0-1023, each LED covers a different range for example green1 covers 0-170 and green2 covers 170-340 and so on adding 170 each time. There are also 170 images that are cycled through in the Processing sketch. I just finished installing some hardware for SparkFun's robot tracking system. It's sort of a mixed reality system combining home made robots and hacked together control systems, IR tracking and sweet high res projections from above. It uses a modded PS3 eye, an ultra-short throw projector mounted above the ceiling, Community Core Vision and Processing running MSAFluid. The robots can consist of pretty much anything, all that the robots need to be tracked is a simple IR LED pointing upward towards the modded PS3 webcam which now only sees infrared. In this case Tim has attached a small throwy style cell battery, resistor, switch and IR LED together and literally just taped it to his robot. Tim's sumo robot recently competed and placed at Robothon in Seattle, but now is controlled via a hacked Wiichuck connected to an Arduino and xbee for wireless control. The InfraRed tracking is done by the PS3 eye with the IR blocking filter removed and an IR filter that ONLY allows infrared light. The result is an all black image with only the IR LED showing up in the webcam. The webcam is directly above projected image hidden in the ceiling. Community Core Vision is a great piece of free software with a calibration system which has mainly been used for multi-touch screen, but it can also be used for other types of tracking. CCV can output the tracked points via Open Sound Control to Processing...just like TouchOSC in my last project. Or it can output to Flash, which is also really cool, but I don't know much Flash. Processing can read the OSC signals and interpret them in any number of ways. My favorite easy to tweak demo is Memo's MegaSuperAwesomeFluid TUIO particle system. I just barely modded Memo's code to fit the size of the projection and the speed of the particles emitted from the front of the robot. That's about it for now, there is definitely more to come. Also if anyone wants to come check out this project or just hack some electronics with us...SparkFun is having a free electronics hacking meetup tomorrow, Dec 5th from 9:30am-2pm in Boulder, CO. Hope to see you there! | |||||||||||












RSS Feed