[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

GPIO and things

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 10
Thread images: 1

File: 20170305_210645.jpg (48KB, 1040x585px) Image search: [Google]
20170305_210645.jpg
48KB, 1040x585px
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
>>
>>59260637
Try >>>/diy/
>>
>>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
Thread posts: 10
Thread images: 1


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.