Sunday 30 November 2014

All your GoPro are belong to us

One of the things that I really want to do is to remote control at least one GoPro camera mounted somewhere on the Daytona.  Long term I'd like to do more than one, but it turns out that's a lot harder than it seems.

Controlling one is easy enough:

  1. Plug in the USB WiFi adaptor
  2. Enable WiFi on the GoPro (in App mode)
  3. Use wpa_gui/wpa_cli to join the GoPro's WiFi hotspot
  4. Send it commands via HTTP
This is only possible because of the great work by Konrad at http://chernowii.com/!
At the moment I'm testing using wget, but doing this in python is the next step.

The basics:


Power on/off
wget "http://10.5.5.9/bacpac/PW?t=p3nguins&p=%01" -o /dev/null
wget "http://10.5.5.9/bacpac/PW?t=p3nguins&p=" -o /dev/null

Shutter release
wget "http://10.5.5.9/camera/SH?t=p3nguins&p=" -o /dev/null
wget "http://10.5.5.9/camera/SH?t=p3nguins&p=%01" -o /dev/null

FOV (not while recording)
Wide: wget "http://10.5.5.9/camera/FV?t=p3nguins&p=" -o /dev/null
Medium: wget "http://10.5.5.9/camera/FV?t=p3nguins&p=%01" -o /dev/null
Narrow: wget "http://10.5.5.9/camera/FV?t=p3nguins&p=%02" -o /dev/null

Video Resolution (not while recording)
1080/60: wget "http://10.5.5.9/camera/VV?t=p3nguins&p=%03" -o /dev/null
1080/30: wget "http://10.5.5.9/camera/VR?t=p3nguins&p=%05" -o /dev/null
2.7K/30: wget "http://10.5.5.9/camera/VV?t=p3nguins&p=%05" -o /dev/null


The problem with more than one GoPro is that the camera is always 10.5.5.9.  To control more than one, they're going to have to have different WiFi SSIDs, and I'm going to have to write code to hop between the WLANs, or I'm going to have to investigate how to mimic the behaviour of a GoPro remote!  Any ideas welcome...

Friday 28 November 2014

Number 5 alive

After some careful assembly (not including the GPS module as I haven't even bought a soldering iron yet!), it boots!!!


The stork visits...

The sound of the doorbell is always a good one, but it's even better when it's a courier bearing a parcel!

The initial delivery of bits has arrived:
Parts list:

  • Raspberry Pi B+
  • Pi Camera
  • Adafruit GPS breakout (with external antenna kit)
  • T-cobbler and breadboard/wires
  • Mini WiFi dongle
  • Modular case with one spacer
I know that rPi is small, but a sense of scale helps:
That should fit under the rear seat cowl nicely!

All I have to do now is stick Raspbian on an SD card, plug it in and switch it on...

Tuesday 25 November 2014

And so it begins...

I have just pressed the "Complete my order" button on modmypi.com.  A Raspberry Pi with all the bells and whistles should be on its way to me in the next couple of days.  So, what am I going to do with it?

Well, I'm going to attempt to turn it into a fully featured datalogger and video capture device for my Triumph Daytona 675:


It's going to be based on a rPi model B+, with GPS, camera module, accelerometer, wifi control of one (or more) GoPro cameras.  The OS will be Linux (of course), probably Raspbian, but I'm also going to give openSUSE a whirl to see how they compare.   For the datalogger software, Python looks to be the weapon of choice as there are many existing libraries for this kind of hardware on the rPi, but I'm definitely going to have to write come code to glue it all together.  Anything I create will be open source of course!!