Category Archives: project

Two Rocket Canada Day – Part 2

After lunch, the girls and I hopped on the subway and headed to the Canada Day events hosted at Queen’s Park.  We ended up having a  great time – there were free bouncy castles, live music, hula hoops, and more.

But I thought the coolest activity was the build and test your own air rocket, hosted by Makerkids.

The children were given pipe insulation for the rocket’s body, and duck tape, scissors, cardboard, streamers, and everything else you would need to complete an air rocket.

With occasional help from Rachel, Tegan built her rocket.

Fueling the Air Rocket
Fueling the Air Rocket

The Makerkids team had several launching stations setup on University Avenue, which appeared to be similar to the Make design.

As scotch tape was used for some of the cosmetic touches, I warned Tegan that the rocket may not survive its first test flight intact.  She decided to launch it anyway.

See the video for the test flight results.

Two Rocket Canada Day – Part 1

Shortly after breakfast on July 1st, Tegan picked up a recently discarded brown cardboard box sitting beside our recycle bin.  She had a vision in mind: she wanted to build a rocket ship.  She needed some assistance – the cardboard box was too thick to cut with her scissors.  So she created a design.

Technical Design Documented Prior to Implementation
Technical Design Documented Prior to Implementation

First, I was assigned the window.  With a utility knife, I cut a circle out of the box. A clear plastic lid, also sourced from the recycle bin, was installed.  Tegan then made the fins from the box’s former flaps, and installed them using packing tape.

Next came the nose cone.  Rachel was a proponent of using the two remaining box flaps, and building an A-frame, triangular nose cone.  Tegan had her heart set on a true conical design, but couldn’t quite figure out how to achieve it with the materials at hand.  In the end, we taped 9 sheets of construction paper together, and rolled the now super-sized sheet into a cone, and installed it on the top of the rocket.

Together, the girls painted the rocket red.  To this day, it sits in a corner of their room.

Testing, Quality Assurance
Testing, Quality Assurance

Who connects to random WiFi hotspots?

I do.  Even in an era of smartphones and data plans, every once in a while, I find myself searching for open WiFi hotspots.

Who else does?  I set out to find out.  I built a WiFi hotspot that served up an open-to-everyone community wall.

Community Wall Bulletin Board
Community Wall Bulletin Board

To build it, I set up my Raspberry Pi with a WiFi USB dongle, and configured it as a WiFi hotspot (with WPA security disabled).  I needed a name that would encourage people to choose my hotspot over the others in the area – “CommunityWiFi” seemed like a suitable name.

I chose to use my Raspberry Pi because:

  • its cheap enough I could leave it anywhere without worrying about it getting stolen
  • its small
  • it can run off a USB battery pack, so it can be taken anywhere

But there’s nothing special about this hardware setup – you could set this up with any laptop, a hacked Android phone, or home router.

The system is setup with a DHCP server, a DNS server (dnsmasq) configured to redirect all dns requests to the Pi, and a webserver  configured to send all requests to the Community Wall page.  The Community Wall consists of a couple PHP pages backed by SQLite.

Once the user attempts to visit any web page while connected to the hotspot,  the system will direct them to the Community Wall, where they can read and post messages.

I took the system to our local library one morning.  I tested it out with my smartphone, and everything worked great, but I received no posts over the hour or so I had it running.  This is likely because most library users will have already saved the connection to the library’s own WiFi.  I will be trying this out in other busy areas, without free wifi, and report back.

Some people have taken this idea much further than myself – check out PirateBox by David Darts.  A PirateBox is a mobile WiFi hotspot that allows any user to connect, chat with other connected users, and share files.

Download Community Wall Project Files

 

Homemade Dance Dance Revolution Mat

It’s been a long winter.  I love taking the kids outdoors, even when it’s cold, but sometimes, it can be fun to play indoors too.  I haven’t acquired a game machine, the kids haven’t expressed much interest in playing video games, but we DID have fun playing a Dance Dance Revolution (DDR) type game at an arcade in hotel we stayed at once.  What would it take to play at home?

Searching around, I came across StepMania, an open-source, DDR type game.  I thought I’d look for a used mat on Craigslist, but when I started researching dance mats, I was surprised to see that many people actually preferred homemade mats over the cheap roll-up mats.

The simplest designs I came across measured the capacitance of the body on aluminium foil to detect steps.  I took a cardboard box from our closet, some sheets of aluminium foil, connected the foil to some resistors, connected to an Arduino.  I covered the aluminium foil with packing tape.  What’s cool with this design is I had everything in the house already, except suitably sized resistors, so the whole thing cost me $1 (plus tax).

Can you tell that it's home made?
Can you tell that it’s home made?
There’s an Arduino library (CapSense) that makes measuring capacitance really easy, and I found firmware called “Big Joystick”  that makes the Arduino UNO appear as a regular, USB, HID joystick.  Detecting steps works really well, and the whole thing works flawlessly with Stepmania.

What I didn’t get right was the positioning of the pads – it seems harder to get the steps/combinations right than I remember it being at the arcade.  Lisa thinks they are too far apart. But other than that, the sensors work really well.

Lisa and Rachel playing StepMania
Lisa and Rachel playing StepMania

I’m trying to think of other applications where a large “switch” like this one would be useful.  With the right configuration, these sensors will also sense proximity – not just touch.

Dance Mat Interface
Dance Mat Interface

Download Dance Mat Project Files

Robotics Projects for Kids

When I go to the library with the kids, I end up coming across books I wouldn’t ordinarily see.  I recently stumbled on Robotics: DISCOVER THE SCIENCE AND TECHNOLOGY OF THE FUTURE in the kids section.

Robotics book for kids
Robotics book for kids

Although this book is targeted at older children, and my children aren’t particularly interested in robotics, we still had fun completing a couple of the simpler projects at home.

First, we built a mechanical hand with cardboard, drinking straws, string, and a glue gun.  This was a great craft, because my six year old could complete all the assembly steps (given guidance) and the completed project was unanticipated, functional and fun.

Next, we built a drawing robot, which consisted of a plastic cup, tape, an electric motor with an added weight (like a mobile phone or pager vibrator), batteries, and markers.  This craft required more assistance – I connected the batteries, and the weight to the motor.  My six year old assembled the cup and the markers, and shot video footage.

Here’s what the output looked like:

Can your robot draw this?
Can your robot draw this?

 

WiFi Sailboat Passes Bathtub Test

Last summer, I built a pop-bottle sailboat with my (then) four year old.  After trying a couple of designs with keels in our bathtub, we settled on a catamaran style design with two pop bottles.  We tied a string to it, threw it into the pond, let the wind carry it away, and then pulled it back to shore.

And I thought, wouldn’t it be cool to add remote control functionality?

So I did.  I finished my smartphone controlled, WiFi sailboat on Saturday.
Field test on a rainy, windless day.  The bane of any sailor.
Field test on a rainy, windless day. The bane of any sailor.
The sailboat consists of:
  • 2 x 2L pop bottles
  • Rubbermaid body
  • Plastic shopping bag sail
  • Dowel mast, plywood rudder
  • 2 servos
  • Raspberry Pi with USB WiFi adapter
  • Arduino Uno
  • AA Battery pack with a 5V regulator
I configured the Raspberry Pi to act as a WiFi hot spot.  Using any smart phone, you can connect to the boat, and visit its web page.
The page has two jQuery slider controls.
Web Interface - jQuery sliders control the sail and rudder
Web Interface – jQuery sliders control the sail and rudder

When re-positioned, the slider controls drive a PHP page which sends commands over the USB interface to the Arduino, which then controls the servos.

It seems like overkill – an Arduino AND a Raspberry Pi for such a simple task?  I’d considered alternatives – using only an Arduino with Bluetooth or another wireless interface, or using the Raspberry Pi to directly control the servos – but in then end, I just used the parts I had on hand.

My initial design used a 7805 IC to supply the 5V for power – that didn’t work…  Everything would boot, the 7805 would get super-hot, and the Raspberry Pi would crash after moving a servo a few times.  A little reading lead me to pick up a switching regulator (I happened to pick up one from Castle Creations at my local hobby store).

I tested the design out with my assistant in our bathtub, and everything worked!

But, by the time everything was built, the city drained the reflecting pool I had intended to use for trials for the fall – I had to try it out in a nearby pond.  And, of course, there was no wind.  I’ll post more photos following a windy day test.

Check out these far grander projects – these individuals are trying to build autonomous boats that can cross the Atlantic:
http://gotransat.com/
http://www.gpss.force9.co.uk/autop.htm

With a little more money, and a little more time, I think it would be fun to build a boat I could launch in lake Ontario, at the foot of Yonge St., to sail autonomously down the St. Lawrence to Brockville, where friends in Ottawa could retrieve it.

Download Sailboat Project Files

Growing Popping Corn on a Balcony

The apartment we live in faces east, and in the morning, we get a lot of sun.  This year, I thought, wouldn’t it be cool to have a little natural shade?  As corn grows tall, it seemed like a good candidate.

We successfully grew 8 popping corn plants in two large pots.  It was pretty easy – plant the seeds, water daily, fertilize.  This was not organic corn.  The plants did grow tall, but 8 was not enough to provide us with any significant natural shade.

Popcorn, ready to harvest
Popcorn, ready to harvest

This year, we also grew pole beans, carrots, tomatoes, sun flowers and some other potted flowers.  It was a pretty good reminder of how dependant we are on big agriculture, farms, transportation systems, food terminals, and grocery stores to economically feed ourselves.  Given the start up costs of the containers and soil, these were not economically viable crops – it was vastly more expensive to grow than to buy.

Would your condo board allow this garden?
Would your condo board allow this garden?

The corn did pop.  We’ll likely do this again next year.

 

 

 

Electricity from a Toy Windmill

Electricity and energy are such abstract concepts.  We just plug things in and they work.  One day, my daughter brought home a toy windmill from school, and I guess I thought I could take that understanding a little bit further.  So I told her: “We can make electricity with that”.

I did a little reading beforehand, and found a few people who had made wind generators online, so I had a rough idea of what I was going to build, and what parts I needed.  We took the subway to Active Surplus, picked up a couple of electric motors, some flashlight-sized light bulbs, some LED lights, and some diodes.

Toy Windmill with Generator
Toy Windmill with Generator

First, I connected the windmill to the motor, and the motor to a flashlight bulb.  I didn’t do any math.  It may come as no surprise to some of you that we couldn’t get enough power from the windmill to drive the bulb.

Toy Windmill Generator Circuit
Toy Windmill Generator Circuit

Plan B.  I built a bridge rectifier with the diodes I picked up, to get DC power from the motor, and connected it to an LED light.  It worked!  I was able to illustrate that we could convert wind energy to light: harness energy from the wind, make a little electricity, and generate light.  Every toy windmill needs this built in!

Fun with Kites

I’ve been wanting to take aerial photos for a while now.  Suspending a camera from a kite seemed like the best way of doing this.

I picked up an inexpensive camera on craigslist.  I modified it with custom firmware from http://chdk.wikia.com/wiki/CHDK , which allowed me to trigger the shutter at pre-programmed intervals.  I picked up a kite that was recommended for this sort of task, a “Sutton Flow Form”, which has a parachute-like design and has 16 square feet of surface area for plenty of lift.  Finally, I cobbled together a mounting bracket with some screws and random stationary supplies from Staples.

Camera Rig
Camera Rig

We spent our Canada Day weekend in Guelph with our friends Craig and Jan, whom have a farm just north of the city, which seemed like a great opportunity to fly a kite.

Google Satellite View Of Areas Photographed
Google Satellite View Of Areas Photographed

I am really, really glad I attempted to do this in a wide open space first for my first attempt – there were a few times I was concerned the rig was going to smash into the ground, and there’s a much greater probability of this hitting someone in my neighbourhood.  Together with Craig and his son Ben, we managed to get some great photos.

My kite, in stock form, is a little unstable in gusty winds (the instructions recommend adding tails to address this), and did not provide great photos on our first attempt.  This was addressed on our 2nd attempt with the addition of another kite. Craig happened to have a super-stable delta-style kite with a 6 ft wingspan.  We launched my kite into the air about 30 ft, and then tied the rope
to his delta kite, launched the delta kite, and then once it was 20 ft in the air, suspended the camera rig to the line.

Camera Rig With Both Kites
Camera Rig With Both Kites

The amount of lift was incredible.  We had to wear gloves to prevent rope burn.  The camera periodically took photos for about 10 minutes.  We stopped for lunch.

Richard, Ben And Craig
Richard, Ben And Craig
Kite Photo 3
Kite Photo 3
Kite Photo 2
Kite Photo 2
Kite Photo 1
Kite Photo 1

We tried again after lunch.  I only had 300 ft of kite line, but Craig had a huge bag of hay bale twine – an essentially unlimited supply of rope.  We programmed the camera to take photos every 20 seconds for 30 minutes.  We took a photo from the ground early on, and an airplane passed by.

Plane Passing By
Plane Passing By

We continued to let the line out for about half an hour.  The kites and camera rig were impossibly high – it was unbelievable.

It came time to reel the kites back in.  It was impossible.  It took incredible strength to pull the kites in.  After about 10 minutes of pulling, the line snapped, and we watched the kites drift away.  Jan and I hopped into my car to chase them down.  Fortunately, the crops were still only about a foot high, and we actually saw the kites land in a neighbouring field about 3 km away.  We recovered the kites and camera, intact.

First Kite Recovery
First Kite Recovery

Unfortunately, my craigslist-special camera didn’t capture any photos of this round.

The kites, and cameras, were subsequently re-launched.  However, they ended up caught in a very tall tree.  We are all anxiously awaiting a strong wind to pull them down…

Great times were had by all –

Fragile Media

Am I the only one who worries about data?

Wordperfect-5.1-dos-300x225

In grade 5 (this was in the 80s), I was one of perhaps two kids that typed up my projects in a word processor.  Night before a project was due, WordPerfect 4.2 froze on me, and the 286 I was running it on wouldn’t boot again, and my work was lost.  I had actually printed it, and handed in a marked up draft.  But an important lesson was learned, very early – keep backups.  Note here how resilient the daisy-wheel printed draft was, and how fragile the PC was.

Flash forward to current day.  Most of the work I produce belongs to my employer – I see that data as their responsibility – what they lose costs them, they can back up the work I produce as they choose.

But of interest to me in my personal life is MY data.  And I have lots.  I have lost my fair share of hard drives, floppies, and CD/DVDs over the years.  But I’ve been lucky – apart from:
1) MS Basic 2 games written as a primary school student on a C64
2) email from pre-2001, lost due to silly University data retention policies (and they were silly – I bet that Alumni department wishes they could reach me by email now)
I haven’t lost anything due to reasonable backups.  But I’ve never dealt with fire, loss, or theft.

I have little use for physical media.  I live in an apartment and have little use or physical storage space for prints.  So I’ve prioritized – I have little work or correspondence to back up – all of the physical stuff sits in the top drawer of a small filing cabinet.  I hope for the best for important documents.

Photos of events are shared online – not much use for prints.  Or is there?  I had been copying camera flash cards to a hard drive and optical media.  The optical media is brand name and stored in a dark place, but I still don’t trust it.  I’ve seen photos of myself as a child – I think my daughter deserves the same.  “Oh, Nameless Manufacturer put out a bunch of drives with buggy firmware in 2009 which ate your first step photos” isn’t going to cut it for me as an excuse.

What about music?  I’m still pretty old school – the indie record store across the street shut its doors last year – but I still buy CDs.  Prior to a 2009 hard drive crash, I never backed up my MP3s thinking, “I’ve got the original on CD”.  But I don’t have the time I did as a student – ripping 100s of CDs takes A LOT OF TIME.  As for iTunes – I had fun as a teen flipping thru my dad’s LPs – I don’t think any child born in 2010 will get the chance to hear the music of their parent’s youth (I can imagine “I bought that album BEFORE Apple removed DRM” or “the Avril Lavigne hard drive must have crashed in 2005”).

Hard drives are pretty cheap these days – the last time I bought a drive, I bought two, and set one up to copy over to the other once a week.  The stuff on the 2nd drive never gets deleted – so if I accidentally delete a folder on my working drive, I can get it back on the the 2nd (point in time back ups).  I run Linux at home, and use a little app called Back In Time to accomplish this task.  The last time I looked at this from the Windows side, there was an application called “Dantz Retrospect” that seemed to get a lot of these things right – it seemed like the perfect solution for a small office (I think they’ve since been bought out by EMC).

Of course, as important as making backups is making sure you can restore them.  I have to say, I’m not that forward thinking.  I think I need my own IT employee at home to think this thru.

Backups is actually something I think Apple does best for home users (but, perhaps, still not well) – I think Time Machine is probably the best thing to happen to the masses who don’t really have the time or interest in worrying about this stuff.

This still doesn’t cover loss due to fire or theft.  Fortunately, online storage is pretty inexpensive these days – cheap enough for the data I create, still too expensive and slow for the music and video I consume.  With Linux, I use s3fs to backup my work to Amazon’s S3 online storage service – it costs me a couple dollars a month.  On the Windows side, I haven’t tried either of these solutions but did come across JungleDisk for Amazon S3 backups and mozy.com in previous searches.

What I don’t understand is why this is still a problem?  Thirty years of personal computing and no one has fixed this.  We’ve got a long way to go.  Anyone think the “cloud” will solve this 🙂