Pets, Plants, and Computer Vision
Header

DRAGON BOT IS GO!

July 1st, 2013 | Posted by admin in audio | demo | Detroit | Electronics | FIRST | Fun! | Maker Faire | pics or it didn't happen | RaspberryPi | robots - (Comments Off on DRAGON BOT IS GO!)
Dragon Bot Scale Model

Dragon Bot Scale Model

FRC 830 has been collaborating with FRC 3322 to build a giant dragon robot for Maker Faire Detroit. I just got back from my trip and a chance to check in with the kids. The goal is to have a giant robot that plays sounds, shoots smoke rings, drives, lights up, and has animatronic eyes and eye brows. The students have prototyped an eye assembly using some servos controlled by the PWM ports on the cRIO side car. The eyes are controlled using the analog joy sticks on the gamepad. After a little bit of debugging we were able to get the animatronic eye assembly running this afternoon.

Another one of the students was able to build a small GPIO driven relay system to control the smoke machine which we plan to power using a second battery and a car inverter. In my spare time this week I was able to cook up a client-server system using RabbitMQ and get it running on the RaspberryPi. The only real trick was setting up the RabbitMQ conf file to run on the space constrained RaspberryPi. This is a little bit outside the scope of the kids ability, but now that I have a sketch working they should be able to take over. The hope is that we can use PyGame and ServervoBlaster to control the lights and sounds on the robot. I want to roll a GUI front end for this using pyGTK. The result looks like this (I now have the GTK gui running).


Mwaaaaahahahha. by @kscottz

Transcontinental Express

May 31st, 2013 | Posted by admin in Education | Fun! | Ideas | Inspiration | Michigan | New York | RaspberryPi - (Comments Off on Transcontinental Express)

Recently I found myself with a couple months of time off. I decided to use it in the most productive manner I could think of so I booked a one month rail pass on Amtrak. I already had plans to go to Ada Camp in San Francisco and my sister’s high school graduation in Mechanicsville, Virginia. At $670 the rail pass was cheaper than plane tickets and I got to see most of the country. Tentatively I plan to visit Portland, San Francisco/Silicon Valley/Oakland, Iowa City, Richmond Virginia, and New York City. I was able to schedule my trip so I could take the Empire Builder line, the California Zephyr, and a good chunk of the Coast Starlight. My tentative schedule is below.


View Transcontinental Express in a larger map

My exact schedule for the first leg of the trip can be found here. Packing for this trip has been a little crazy. I want to squeeze everything I need into a back pack, but train travel is tough as traveling in coach requires that you bring a lot of necessities (and entertainment).

Try squeezing a month's worth of clothes, electronics, supplies, and food into a backpack!

Try squeezing a month’s worth of clothes, electronics, supplies, and food into a backpack!

I purchased a Nexus 7 tablet for the journey and I have a tupperware container with a raspberry pi, arduino, makey-makey, breadboard, and various component to keep me entertained on the train. The transcontinental trips are almost three whole days so I should have lots of time to read, code, and build cool stuff with my fellow travelers. Hopefully I will post some cool stuff from the road, and have 4G coverage for most of the trip.

My home for the next month.

My home for the next month.

Controlling an LED Light Strip with a RaspberryPi.

April 4th, 2013 | Posted by admin in demo | Electronics | Fun! | Open Source | pics or it didn't happen | RaspberryPi - (Comments Off on Controlling an LED Light Strip with a RaspberryPi.)

IMAG0296

I got a RaspberryPi at PyCon and I had a LED light strip laying around. I wanted to see if I could make the two play nice together. The GPIO pins on the Pi can talk pulse width modulation (PWM) and so did the LED light strip I had, so I figured I could get the two to talk. I found this really awesome tutorial that walked me through the process. The gist of the tutorial is that you use low current signals from the RaspberryPi to control high current signals coming from some wires plugged into an AC adapter (in this case a 12V/1A switchable AC adapter I picked up at Radio Shack). You do this by using a Darlington transistor, specifically a TIP120 transistor, which you can pick up at your local Radio Shack for $1.69. The transistor is basically a voltage controlled current source. To control the transistors you use the ServoBlaster C library. This library basically does the PWM and tells the RaspberryPi to set a particular pin high or low. You call the ServoBlaster module via the command line. The author of the original tutorial uses a swell little python script to repeatedly make command line calls and then sleep the python program.

You can see the results below. The track playing in the background is Marijuana by Chrome Sparks.

The next step is to use SimpleCV to acquire images from a USB camera and peg the LED colors to the average image color. I would also like to use a few buttons to start and stop the lights as well as some MP3s (think instant dance party).

If you are curious I am using a $25 LCD for the screen of the RaspberryPi. It didn’t come with an AC Adapter or a composite video cable so I had to buy those separate. I also picked up a USB wireless card and a powered USB hub which come in really handy. I was really pleased when the wireless card worked out of the box with the Raspbian OS Wheezy release. My mini panvice is great for holding the pi. I also picked up a set of male/female jumper cables that made wiring everything a snap.

ROBOTS FIGHT!

March 26th, 2013 | Posted by admin in Ann Arbor | automation | Automation Alley | demo | Education | FIRST | Fun! | robots - (Comments Off on ROBOTS FIGHT!)

FRC830 has our second competition of the season in Livonia this weekend. We had the competition bot unbagged for a few hours today and decided to give our drivers some time to practice.