kelliott121 / roboraptor

A simple Arduino library to send IR signals to control a Wowwee RoboRaptor
1 stars 0 forks source link

Does this code work? #1

Open elasticdotventures opened 3 years ago

elasticdotventures commented 3 years ago

My nephew just got one of these GREEN roboraptors at a yard sale but it didn't come with a remote. I plugged in an arduino with IR transmitter,

Uploaded code, but the unit doesn't seem to respond. Never used the IR shield before, so I can't verify if it's functional. Will try setting up a photodiode test.

elasticdotventures commented 3 years ago

Found this reference - https://keithwelliott.com/tag/toy-hacking/

"I don’t have the circuit around any more but if I remember correctly I had the IROut pin connected to the collector of an NPN transistor and the freqOut pin connected to the base."

in this document you also say: "I then proceeded to create an Arduino program to control an IR LED. Using the AVR built in PWM I managed to modulate the frequency to 40KHz. I then set up two NPN transistors in an AND gate format with the two inputs being the 40KHz signal and the bit logic signal which is manually timed using the delayMicroseconds function and some bit logic"

elasticdotventures commented 3 years ago

Hey, so I got this code working (although the toy's internal mechanisms were in poor shape!)

I used a 2N3904 NPN transistor with the Freqout pin 11 on arduino connected to the Collector, IRout pin 3 connected to the Base, and the emitter connected to the sensor side of the IR transmitter.

That works. next step, using a ps3 remote.

kelliott121 commented 3 years ago

I'm glad that worked! Let me know how it goes, using a PS3 remote sounds awesome!