USB switch hacked for IR remote control

Keep a log of a project build here. Be sure to include pictures and as much documentation as possible.

USB switch hacked for IR remote control

Postby UAirLtd » September 24th, 2011, 11:56 pm

TLDR: USB Switch hacked to include IR remote control, video: http://www.youtube.com/watch?v=2SHXNDUEl_E

Hey all, I took on this commission from [beerninja]: viewtopic.php?f=10&t=1144

[beerninja] wanted a USB switch that was controllable by IR remote, the existing hotkey functionality on USB switches that are currently available could not be used.

My plan is to add a microcontroller, and a Forebrain dev board, into the body of the USB switch to read IR inputs and control the switch via the button inputs. This should be a relatively straightforward project.

The Forebrain dev board is a small but powerful dev board, and certainly far overpowered for this project (it is a 32-bit ARM Cortex-M3 microcontroller clocked at 72MHz), but its small size is essential in fitting it inside the switch. Also because we manufacture the things (http://www.universalair.co.uk), there wasn't an issue of cost or delivery times!

I received the USB switch today, so I've wired up the microcontroller and tested that everything works, and I'm now just waiting for the IR module, a Vishay TSOP34138 to arrive from Farnell.

Image

When done, Forebrain fits perfectly into the space in the case, with holes drilled out for the IR receiver and Forebrain's USB port (for any future reprogramming).
Image

Wired in:
Image

Video: http://www.youtube.com/watch?v=hmv8p4juVNk
Blog page: http://blog.meseta.co.uk/2011/09/ir-con ... witch.html

The video linked above shows the thing in action so far, and I'll be able to add the IR receiver once I receive it sometime next week.
Last edited by UAirLtd on September 28th, 2011, 9:20 am, edited 3 times in total.
User avatar
UAirLtd
 
Posts: 629
Joined: July 19th, 2011, 10:32 pm

Part2

Postby UAirLtd » September 24th, 2011, 11:57 pm

I hooked up the IR receiver and wrote some code to decode the IR signal

Image

I'm using a UK Sky remote since these are pretty common, and so [beerninja] should be able to easily find the codes for his universal remote. Buttons 1, 2, 3, and 4 on the remote are mapped to the USB switch.

Image

The final result fits everything into the original case, with the only exterior indication of a modification is the hole for the IR receiver.

Image

Blog: http://blog.meseta.co.uk/2011/09/ir-con ... witch.html
Video: http://www.youtube.com/watch?v=2SHXNDUEl_E
User avatar
UAirLtd
 
Posts: 629
Joined: July 19th, 2011, 10:32 pm

Re: USB switch hacked for IR remote control

Postby f00barbob » October 1st, 2011, 9:51 am

A surplus of processing power, for sure! Your hub is much smarter than mine... (gutted from the base of a Compaq monitor)
f00barbob
 
Posts: 19
Joined: January 31st, 2011, 9:57 am


Return to Project Logs

Who is online

Users browsing this forum: No registered users and 1 guest