I have been spending the past month on a new Internet of Things set of experiments, this time with a focus on the Leap Motion controller. It’s a neat little device that detects hand motion.

I made three demos:

  1. Switching on different 8 LED lights on an Arduino with hand motions
  2. Muting an incoming phone call by circling my finger in the air as it rung, then nicely sending a busy message 😉
  3. Playing music in the air using hand movements and a MIDI Arduino shield

The demos were made to present specifically for the monthly IoT Sydney meetup which was held last night. It was a bunch of fun and if you’re into the Internet of Things, definitely try to get a spot in sometime.

I’m hoping to make videos showing the demos in action for anyone who couldn’t make it last night. Stay tuned!

For those that attended and anyone else who might be interested, my slides can be found here:
http://androidcontroller.herokuapp.com/

I’ve got the Call Controller code here:
https://github.com/patcat/Leap-Motion-Call-Controller

I’ve got the MIDI Controller code here***:
https://github.com/patcat/MIDILeap

I’ll be writing a proper tutorial regarding the LED lights soon, so haven’t put that up on Github just yet. A lot of the code is in the slides though for that one.

Special thanks go to Justin Mclean for organising a great event and allowing me to do a few demos, and to Andrew Fisher for giving me a hand with a few mind explosion moments with the MIDI Controller. They are both brilliant people!

*** Fun fact, that MIDI code actually can do something I forgot to mention in the presentation. If you hold your hand outstretched with all five fingers, find an instrument you like and then close your fist – you capture that instrument and it will stick to playing that one instrument until you open your hand once more.

After my recent obsession with new technologies and the Internet of Things, the team at Leap Motion was interested to know my thoughts on how their technology would fit in this new Internet enabled technology world. I thought it’d be a fun topic to explore and so wrote a guest post for them on that very topic!

If you’re interested in taking a look, it’s right here:
http://labs.leapmotion.com/where-will-motion-control-live-in-the-smart-environments-of-the-future/.

It was an absolute pleasure to work with the team at Leap Motion on this, I want to extend a huge thank you to them for the honour of a guest post on their site 🙂

I’m currently expanding a website I built last year to include custom post types (CPT) and a custom permalink structure for these post types. I was finding this a bit tough as a few CPT plugins I tried require customising the functions.php file to achieve this. I didn’t want that. I wanted to be able to set this stuff up in the admin area to keep things simple.

I ended up sticking with CPT-onomies. It is a plugin that lets you create CPTs but also provides enough additional settings to really customise things without needing to change that functions.php file for this stuff.

I already had set up a custom permalink structure on the site like this:

/blog/%year%/%monthnum%/%postname%/

This was because previously posts were only used for blogs on the site. Everything else on the site was a page. No longer the case with my CPTs!

I needed to override this permalink. To do this, here are the steps I followed to make the CPT:

  1. Go to Settings > CPT-onomies and click “Add a new custom post type”.
  2. Add in your label and name as you usually would. The most important bit is next.
  3. Click to view the Advanced Settings and scroll down to the “Rewrite” section.
  4. Make sure that “Enable Permalinks” is set to true.
  5. Add in the slug you’d like (e.g. “monkey” if you want www.mysite.com/monkey/the-monkey-post)
  6. Change “With Front” to be false. This takes away the blog (or whatever your custom permalink structure already includes) part of your permalinks for these. e.g. www.mysite.com/blog/monkey/the-monkey-post becomes www.mysite.com/monkey/the-monkey-post
  7. Click “Save changes” and create a new post of that type. If all goes well, you’ll have a custom permalink appear that is just what you’re looking for!

Totally simple when you know where to look!