Author Topic: EEVblog #505 - IR Learning Remote Control Hack  (Read 28120 times)

0 Members and 2 Guests are viewing this topic.

Offline EEVblogTopic starter

  • Administrator
  • *****
  • Posts: 37661
  • Country: au
    • EEVblog
EEVblog #505 - IR Learning Remote Control Hack
« on: August 08, 2013, 12:41:00 pm »
Dave wires up an Arduino (Freetronics Eleven) to control his video camera via a learning IR remote control matrix keypad.
NOTE: this is NOT an optimised solution, nor a tutorial on the best way to do this, it's a quick rudimentary hack while showing a few traps.

« Last Edit: August 08, 2013, 01:12:21 pm by EEVblog »
 

Offline EEVblogTopic starter

  • Administrator
  • *****
  • Posts: 37661
  • Country: au
    • EEVblog
Re: EEVblog #505 - IR Learning Remote Control Hack
« Reply #1 on: August 08, 2013, 12:42:08 pm »
This one will of course bring out the "you should have done this", "you could have done this", "why didn't you do this" crowd.  :blah:
 

Offline mickpah

  • Regular Contributor
  • *
  • Posts: 148
  • Country: au
    • Yeti Hacks
Re: EEVblog #505 - IR Learning Remote Control Hack
« Reply #2 on: August 08, 2013, 12:57:00 pm »
This one will of course bring out the "you should have done this", "you could have done this", "why didn't you do this" crowd.  :blah:
all ways does,
I often use quick and dirty scripting languages to automate repetitive boring jobs that might only have to be done a few times - a favorite is autoit.
It's guaranteed I'll get bagged that it should have been done in a "real programming language" - Why? it gets the job done and it's disposable.

I did something simlar last year with an arduino and these remote power points to control christmas lights , http://www.bunnings.com.au/products_product_homeauto-pwr-pt-cntrl-kambrook-4pce-indoor-inc-remote-rf3672_P7030054.aspx
30 mins working hacking and moved on to more important things - worked a treat better & cheaper than 3 timers spread around the house
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 7693
  • Country: de
  • A qualified hobbyist ;)
Re: EEVblog #505 - IR Learning Remote Control Hack
« Reply #3 on: August 08, 2013, 01:17:31 pm »
This one will of course bring out the "you should have done this", "you could have done this", "why didn't you do this" crowd.  :blah:

Since you're asking for it so politely ... :-)

I guess, I would record the RC signal with a DSO, add an IR LED to the Arduino and let the Arduino send the RC directly.
 
 

Offline nitro2k01

  • Frequent Contributor
  • **
  • Posts: 843
  • Country: 00
Re: EEVblog #505 - IR Learning Remote Control Hack
« Reply #4 on: August 08, 2013, 02:13:55 pm »
This one will of course bring out the "you should have done this", "you could have done this", "why didn't you do this" crowd.  :blah:
M-hm, signing in. This should still be easy to do with a bipolar transistor and common ground. If you figure out the polarity of the output side of the matrix, you can choose an NPN or PNP and hook it up so that the base emitter junction doesn't allow the transistor to turn when that row isn't being scanned.
The base would go to the external control, the emitter would go to the matrix output in question and the collector would go the matrix input in question. The type of the transistor would be decided by the polarity of scanning.

No, not complaining about the video, but hopefully we can still discuss better solutions here. :)
Whoa! How the hell did Dave know that Bob is my uncle? Amazing!
 

Offline Alana

  • Frequent Contributor
  • **
  • Posts: 297
  • Country: pl
Re: EEVblog #505 - IR Learning Remote Control Hack
« Reply #5 on: August 08, 2013, 02:37:55 pm »
MiniDCC command station has the same kind of matrix keyboard as this pilot. This guy uses 4066 to short out keys in matrix keyboard controlled from RC reciever chip. Schematics: http://www3.telus.net/HarrisFamily/MiniDCC.html
 

Offline Mikey

  • Regular Contributor
  • *
  • Posts: 77
  • Country: dk
  • Just hit 3rd!
    • captain-slow.dk
Re: EEVblog #505 - IR Learning Remote Control Hack
« Reply #6 on: August 08, 2013, 03:02:38 pm »
This one will of course bring out the "you should have done this", "you could have done this", "why didn't you do this" crowd.  :blah:
Indeed, I have done exactly this thing too... But all I needed was a resistor and an IR led, besides the arduino itself. ;)
captain-slow.dk | 3D printing | CNC machining | Mechanical designs | Simple electronics
 

Offline lgbeno

  • Frequent Contributor
  • **
  • Posts: 349
  • Country: 00
EEVblog #505 - IR Learning Remote Control Hack
« Reply #7 on: August 08, 2013, 03:10:47 pm »
Thought provoking video, I'll throw my idea out there.

"Hack" is a good name for this but that's the spirit, quick and dirty.  Optos would work, relays would work but I was thinking that perhaps you could also use a logic buffer with an output enable.  Figure out what pin is being driven by the scan controller, attach that to the OE pin.  Output to the other pin and input to the MCU.




Sent from my iPhone using Tapatalk 2
 

Offline free_electron

  • Super Contributor
  • ***
  • Posts: 8515
  • Country: us
    • SiliconValleyGarage
Re: EEVblog #505 - IR Learning Remote Control Hack
« Reply #8 on: August 08, 2013, 03:45:01 pm »
You should have recorded the pulse stream using that 200k$ agilent scope , loaded it in that PFANG and played it back from there... Arduino .. Pfoeh ..

Camera doesnt have LANC ? It's a canon, it should have one... Get a cheap lanc controller , you will have much finer control over the camera.
Professional Electron Wrangler.
Any comments, or points of view expressed, are my own and not endorsed , induced or compensated by my employer(s).
 

Citizen

  • Guest
Re: EEVblog #505 - IR Learning Remote Control Hack
« Reply #9 on: August 08, 2013, 05:41:58 pm »


Ehm, i dont understand it.

Say i have a dev. Board connected to the USB port, and a second board is connected to the floating voltage.How can both? boards communicate without having common GND reference? So logic '1' of the dev Doard wouldn't be logic '1' for the other...or am i wrong somewhere?
 

Offline synapsis

  • Regular Contributor
  • *
  • Posts: 140
  • Country: us
    • Blackcow
Re: EEVblog #505 - IR Learning Remote Control Hack
« Reply #10 on: August 08, 2013, 05:52:00 pm »
I've done this same type of thing with just an Arduino using this library.

http://www.righto.com/2009/08/multi-protocol-infrared-remote-library.html

All the remotes in my house have the IR protocol they use written on the back in Sharpie. ;) I need to find a cheap remote like Dave's. My learning remote is from 1998 and is a pain to teach.


I would like a little more explanation about the ground connection issue. I've run into similar issues with other projects, but I'm so new that I'm not entirely sure what's going on. Which also makes it hard to know what to type into Google.
 

Offline DavidDLC

  • Frequent Contributor
  • **
  • Posts: 755
  • Country: us
Re: EEVblog #505 - IR Learning Remote Control Hack
« Reply #11 on: August 08, 2013, 05:53:07 pm »
This one will of course bring out the "you should have done this", "you could have done this", "why didn't you do this" crowd.  :blah:

Which is a good learning experience for people, I can learn from this type of feedback.
 

Online SeanB

  • Super Contributor
  • ***
  • Posts: 16272
  • Country: za
Re: EEVblog #505 - IR Learning Remote Control Hack
« Reply #12 on: August 08, 2013, 05:56:06 pm »
I think I must post a few photos of one I did a few years ago ( last century actually) of a computer controlled remote control.
 

Offline filip_cro

  • Regular Contributor
  • *
  • Posts: 71
  • Country: hr
Re: EEVblog #505 - IR Learning Remote Control Hack
« Reply #13 on: August 08, 2013, 10:27:21 pm »
Why are there small holes on wide traces?
You can see them on PCB at 11:30.
 

Offline Smokey

  • Super Contributor
  • ***
  • Posts: 2536
  • Country: us
  • Not An Expert
 

Offline EEVblogTopic starter

  • Administrator
  • *****
  • Posts: 37661
  • Country: au
    • EEVblog
Re: EEVblog #505 - IR Learning Remote Control Hack
« Reply #15 on: August 08, 2013, 10:55:06 pm »
Sometimes I don't think people actually listen to my videos...
I mentioned IR direct with a library, I mentioned cmos switches, optos, relays, and external transistors, yet people will still comment on those as if I missed the obvious  ::)

LANC is not an option, I want wireless. And before someone tells me, yes I know you can do LANC wirelessly too if you really want, but that would be silly when IR is available.
 

Offline NickS

  • Supporter
  • ****
  • Posts: 55
  • Country: au
Re: EEVblog #505 - IR Learning Remote Control Hack
« Reply #16 on: August 09, 2013, 12:47:56 am »
Sometimes I don't think people actually listen to my videos...
Clearly you aren't a Slashdot reader. Don't you know that people start commenting as soon as they the title?
Some don't even bother with the description text. :D
 

Offline EEVblogTopic starter

  • Administrator
  • *****
  • Posts: 37661
  • Country: au
    • EEVblog
Re: EEVblog #505 - IR Learning Remote Control Hack
« Reply #17 on: August 09, 2013, 12:55:08 am »
Some don't even bother with the description text. :D

Yeah, description test is almost pointless it seems, just for SEO  ;D
 

Offline TerminalJack505

  • Super Contributor
  • ***
  • Posts: 1310
  • Country: 00
Re: EEVblog #505 - IR Learning Remote Control Hack
« Reply #18 on: August 09, 2013, 01:06:49 am »
Yes, a lot of people really just want to hear themselves talk.  I'm sure there are certain personality types where a person's primary satisfaction comes from engaging with the community--as opposed to watching the video and learning.

For some of these people the video is just an excuse to spout off.  "Look at me!"  "Look what I know."  "You're an idiot and I'm smarter than you!"  "I know something you don't."

Note that I'm not suggesting that this is the only reason that a person engages with the community.  Obviously, there are less selfish reasons.
 

Offline EEVblogTopic starter

  • Administrator
  • *****
  • Posts: 37661
  • Country: au
    • EEVblog
Re: EEVblog #505 - IR Learning Remote Control Hack
« Reply #19 on: August 09, 2013, 01:36:57 am »
"I know something you don't."

I see that a lot, and I don't mind it at all, in fact I like when they point out stuff I didn't know (which is a lot BTW ;D).
But as a content producer it does grate a lot when I've mentioned something in the video, so clearly I'm aware of that and have considered it, yet they will comment on it anyway. Or worse, call me blah blah for not doing that or discussing that etc Ok, the first few times, but when you get it day after day...
Oh the joys of producing content for the masses  ;D
 

Offline ptricks

  • Frequent Contributor
  • **
  • Posts: 671
  • Country: us
Re: EEVblog #505 - IR Learning Remote Control Hack
« Reply #20 on: August 09, 2013, 01:46:31 am »
Dave, of course the IRToy can send IR commands, it is one of its major functions.
http://dangerousprototypes.com/docs/USB_IR_Toy:_IRIO_raw_receive/transmit_mode

oops, forgot they did away with the above in a firmware update in favor of something better:
http://dangerousprototypes.com/docs/USB_IR_Toy:_Sampling_mode
« Last Edit: August 09, 2013, 01:50:11 am by ptricks »
 

Offline EEVblogTopic starter

  • Administrator
  • *****
  • Posts: 37661
  • Country: au
    • EEVblog
Re: EEVblog #505 - IR Learning Remote Control Hack
« Reply #21 on: August 09, 2013, 02:24:32 am »
Dave, of course the IRToy can send IR commands, it is one of its major functions.
http://dangerousprototypes.com/docs/USB_IR_Toy:_IRIO_raw_receive/transmit_mode

Yes, but only when it's hooked up to the PC, not standalone. Unless I'm mistaken?

 

Offline ptricks

  • Frequent Contributor
  • **
  • Posts: 671
  • Country: us
Re: EEVblog #505 - IR Learning Remote Control Hack
« Reply #22 on: August 09, 2013, 02:41:02 am »
The IRtoy has 95% of the hardware , the other 5% would be buttons or keypad  to trigger what you want sent. There are about 5 unused pins on the board that could be used for buttons . The eeprom also has plenty of space for commands. Someone just  needs to take the time to write the code, the source is easy to read and add to. I may do that myself when I get time.
 

Offline EEVblogTopic starter

  • Administrator
  • *****
  • Posts: 37661
  • Country: au
    • EEVblog
Re: EEVblog #505 - IR Learning Remote Control Hack
« Reply #23 on: August 09, 2013, 03:34:47 am »
The IRtoy has 95% of the hardware , the other 5% would be buttons or keypad  to trigger what you want sent. There are about 5 unused pins on the board that could be used for buttons . The eeprom also has plenty of space for commands. Someone just  needs to take the time to write the code, the source is easy to read and add to. I may do that myself when I get time.

Yeah, I was sure the IRtoy could do that, but I searched and could not find a ready made and easy solution to automatically program in and replay the received command with the button. It's a bit of a shame, but as you say, just needs some more code. I contemplated doing it, but it would have taken the same time to do it directly on the Arduino itself I guess. Then I found the learning IR remote.
« Last Edit: August 09, 2013, 03:36:29 am by EEVblog »
 

Offline free_electron

  • Super Contributor
  • ***
  • Posts: 8515
  • Country: us
    • SiliconValleyGarage
Re: EEVblog #505 - IR Learning Remote Control Hack
« Reply #24 on: August 09, 2013, 04:14:18 am »
LANC is not an option, I want wireless. And before someone tells me, yes I know you can do LANC wirelessly too if you really want, but that would be silly when IR is available.

ah, didn't catch that requirement. sorry.

With lanc you can actually control things like zoom speed. My underwater housing uses an IR led in the grips. this sends commands through a lightpipe into the housing where it is received by a custom board. that then sends the appropriate lanc commands to the camera using a cable.
Professional Electron Wrangler.
Any comments, or points of view expressed, are my own and not endorsed , induced or compensated by my employer(s).
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf