Am I writing the transistor base high/low at 38 khz, maybe like
I wanted to use a npn-transistor which can handle 1 A and a capacitor, which can provide 1 A.
Which informations (and how) would I get on the reciever side with a 38 khz reciever
I read something aboud pulseIn().
I would change the PWM frequency to 38KHz and use an analogue write to turn it on. Then use code like you put to pulse it. Do you want the pulses to carry any information? [...] You will see a signal on the digital pin you connect to the receiver, this will match the pulses you send, not the 38KHz modulation.
You need to provide a power supply that will supply that current. One problem with a capacitor is that the voltage drops as it discharges. The other is that you will need a physically very large capacitor.
Given your basic state of knowledge would you not be better off copying some one elses design rather than trying to design your own system?
I could use this code:
I wanted to use something like a 9 V battery as power source.
Best of luck with this.
But there are so many wheels to invent out there, that in some cases it just isn't worth re-inventing one that is already "done".
There must be modules with a simple single digital input which causes a beam of modulated IR to shine when the input is taken high?
Look here for some help. It's very good link:http://www.ladyada.net/learn/sensors/ir.html#testing_your_ir_detector
There must be modules with a simple single digital input which causes a beam of modulated IR to shine when the input is taken high?If an "expert" can point us to the right part numbers/ supplier, I for one would be grateful.
I only mention it to save you the 30 seconds it took me to check out whether using "analogWrite()" would be an option. I suspect that if you want to delve into the internals of the Atmega chip (and risk upsetting things the Arduino system software expects) you could get the Atmega to generate the 38kHz... but that's not a route I would advocate!