Virtual bike – HOW TO

25 Sep 2012 Posted by: Comments: 0 In: Uncategorized Tags: , , , ,

Here it is a brief description of the workflow we followed to build up the installation.

STEP ONE – Shoot the path.

Use a good camera (we used a GOPRO cam that allows a beautiful wide angle video), a steadycam if you want your videos to be more stable, and bring with you a lot of  patience. 🙂 Once you have one or more videos with your path you have to stabilize them (we used After Effects CS6 warp stabilizer) and create a single long video.

For a good video you must take into account:

  • The speed must be constant throughout the path.
  • The vanishing point of the street must be at the center of the frame.
  • The horizon must be at the same level.

STEP TWO – Build up the bike

Ok, let’s start the fun! We used:

The bike speedometer is actually a simple button: usually there are two wires, one for power and the other one attached to the other end of the switch. You would use them with the Arduino in the same way “simple button tutorial” shows.
We need the IR sensor to know if you are steering left/right: just put it on a distance of about 60 cm on the side of the bike, parallel to the ground, pointing the wheel: it’ll return the distance from the sensor to the wheel (be careful to fill-in the gaps between the rays of the wheel, otherwise the IR will pass the wheel!). Here you can find a tutorial on how to do that.

STEP THREE – Turn your bike into a virtual bike

The Arduino program will:

  • receive the speedometer signal every time the wheel will make a whole turn.
  • calculate the instant speed.
  • process the IR signal.
  • send an OSC message with speed and turn infos trough Ethernet to the Mac. We used ArdOSC library to send OSC messages from Arduino, and qcOSC receiver to process them in Quartz Composer.

The OSC message will be processed in Quartz Composer in this way:

  • the speed will be the increment of the timeline associated with the path-video (the faster you run, the faster the video will play).
  • the turn info will offset the video on the left or the right (the video was recorded with a wide angle: we show only a portion of that to simulate a steering).

STEP FOUR – Enjoy the fun!

We start to think about this project considering a funny way to approach people to the story of the neighborhood Saint Lowrence in Rome. It is only one of hundreds of project you can discover on internet about Arduino and Quartz Composer programming.
We choose Arduino for the hardware side because of its huge opensource community: you can search for every kind of tutorial, even the strangest one.. you’ll always find someone crazy like you, and you’ll find a lot of help to start with Arduino everywhere! 🙂
From the software side, we choose Quartz Composer mainly because of its immediate use. It is mainly a software for VJ artists, but it allow to do a lot of funny things with little effort: if you have a Mac, give it a try! 🙂

Leave a Comment!

Your email address will not be published. Required fields are marked *