I feel like a retard because I can't figure this out. I want to generate an infrared signal on this little guy. Nothing fancy, basically like a TV remote but the data in the signal changes each time it fires.
I don't really understand how you would do this without using a library. Can someone try to explain how this is done in English?
I managed to get PWM working but I don't really understand how to modulate the signal on top of the carrier wave.
>>59260637
why would you use analogue?
Just use digital with a bit sequence to signal the start and the end of the data. Might also want to add some error checking.
>>59262053
We're talking kilohertz/megahertz here, bitbanging with a shitty arm cpu from a linux distro might not cut it
>>59262053 doesn't know what he's taking about. PWM in this case doesn't mean analog, it's just a way to get a square wave on a pin.
The traditional way is to use PWM for the carrier and then modulate the signal with the pin mask register, or whatever the equivalent is for that board. In other words, the PWM is constantly running but the pin is enabled/disabled to modulate the carrier with data. This has some problems regarding ambient noise.
Another way would be to use FM instead of AM to encode the data. Keep the pin enabled all the time but change the PWM period. Some uc's let you do this on the fly, some don't.
Look up the Phillip's standard for remote control data encoding to see an example.
Page 10 last thread SAVED
Spieß voran
Drauf und draun
>>59264936
Oh shit woops I have a lot of tabs open
>>59264936
Setzt aufs Kloster Dach den roten hahn
>>59262414
>PWM is constantly running but the pin is enabled/disabled to modulate the carrier with data
This actually makes sense, thanks anon