So I'm pretty new to arduino, but have gone through all the tutorials. And also spent a lot of time researching before asking this.
I bought a IR remote for arduino package off ebay from a hong kong seller. It came with a NEC protocol remote, reciever, 2 10K resistors, and some arduino code. Unfortunatly the instructions aren't very good, and are half in japanese characters or something. And the code seems to be designed for displaying the remote signal on an LCD, which isn't what I'm going for.
I've searched all over for instructions, and have about 25 tabs open right now, but there are 3 main problems.
None of the many many pages I've looked at showed how to properly hook up the IR sensor. I've searched the web for the correct pinouts, however I seem to find all different sorts of pinouts for all different IR recievers. The IR reciever I have here is a 9744S. The instructions that came from the seller list show VOUT on the left, GND in middle, and VCC on the right. However the picture in those instructions are for an IRM_3638 reciever. So I don't know how to figure out the correct pinout. Will I fry the thing f I hook it up wrong?
Also, I seem to have been unable to find info on where these 2 10K resistors are supposed to go. I have no idea, and have been too afraid to hook the thing up without them for fear of frying it.
3.They all seem to have very different code, plus some seem outdated. One mentioned an actual IR library, but my software doesn't seem to have any sort of IR library in the menu.
If I knew how to correctly hook up the IR remote, I could just experiment with all those codes, but so far I've been worried about frying the thing with the wrong polarity, or having the resistors wrong.
Can anyone help point me in the right direction on getting this NEC protocol remote to work? All I'm trying to do is a very simple project controlling a servo. I want to be able to simply press buttons on the remote to make the servo move to specific positions. I've done some servo tutorials already and think i mostly understand the servo part. Just need to get this remote part working first.
I bought a IR remote for arduino package off ebay from a hong kong seller.
good luck with that.
...the instructions aren't very good, and are half in japanese characters or something.
Have dinner at local sushi house, ask if anyone can translate.
.... The instructions that came from the seller list show VOUT on the left, GND in middle, and VCC on the right.
Thats the best info you got, go for it.
....Will I fry the thing f I hook it up wrong?
Likely. Go ahead and get it over with. If you fail its a desk ornament.
Also, I seem to have been unable to find info on where these 2 10K resistors are supposed to go. I have no idea, and have been too afraid to hook the thing up without them for fear of frying it.
see first 2 answers, if no joy then go for it.
3.They all seem to have very different code, plus some seem outdated. One mentioned an actual IR library, but my software doesn't seem to have any sort of IR library in the menu.
They all seem? how many did you buy?
If I knew how to correctly hook up the IR remote, I could just experiment with all those codes,
this may be your best choice
but so far I've been worried about frying the thing with the wrong polarity, or having the resistors wrong.
Risk All, Win Everything. Or not.
All I'm trying to do is a very simple project controlling a servo. I want to be able to simply press buttons on the remote to make the servo move to specific positions. I've done some servo tutorials already and think i mostly understand the servo part. Just need to get this remote part working first.
The best of luck with that, let us know how it works out for ya.
The one I have uses a 220 ohm resistor, you put it between VOUT and the arduino input pin you are using. Yours might be different.
I did the servo/remote project, but not using NEC, though you can use that with the IR library. There is a link to the library from the tutorial page below. http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1279084882
Without a specific link to the applicable device datasheet it is kind of hard to determine correct pin out for it. Best I can do is the below link, it has IR receivers listed by remote type compatibility, NEC, SONY, etc. Perhaps one of the NEC devices 'looks' identical to your device? You might always just buy a IR receiver device that has known pinouts as they are pretty generic in nature, ground, +5vdc, and signal output to a arduino digital input pin. I think I've seen them for a dollar or two each.
Thanks for the help, I downloaded that library that Big Oil linked to.
As far as the wiring of the IR reciever, I'll just assume the pinout listed for the similar model in the hong kong instructions is right, and if I fry it I'll buy another.
I did find a picture in those hong kong instructions where it shows Right pin going to VCC, middle pin ground, and left pin VOUT going to the arduino board, but it also has one of the 10K resistors going from VCC to VOUT. Does doing it that way make any sense? Basically always having current flowing through a 10K resistor into the arduino input pin?
... although, of course, not guaranteed to work with your sensor.
(Start work with that with just a voltmeter reading what you think is the output. Or a simple Arduino program saying "some 1s seen" (when it does!)
For about $3 plus some p&p, why not buy an IR receiver that you will know works, get everything ELSE working, and then see if your bargain receivers can be substituted for the known-good one?