IR receiver/transmitter for ESP8266?

Discuss development of drivers for external hardware and components, such as LCD screens, sensors, motor drivers, etc.
Target audience: Users and developers of drivers.
askvictor
Posts: 22
Joined: Tue Mar 22, 2016 9:08 pm

IR receiver/transmitter for ESP8266?

Postby askvictor » Wed Dec 28, 2016 2:46 am

It seems the ESP8266 has some hardware support for infrared remote control - see chapter 13 of http://www.espressif.com/sites/default/ ... e_en_0.pdf

Has anyone had a go at exposing this in micropython?

User avatar
mcauser
Posts: 104
Joined: Mon Jun 15, 2015 8:03 am

Re: IR receiver/transmitter for ESP8266?

Postby mcauser » Thu Dec 29, 2016 9:02 pm

Interesting :)

For comparison, here's an Arduino flavoured, software only approach: https://github.com/esp8266/Basic/tree/m ... oteESP8266

User avatar
pythoncoder
Posts: 1241
Joined: Fri Jul 18, 2014 8:01 am

Re: IR receiver/transmitter for ESP8266?

Postby pythoncoder » Fri Dec 30, 2016 9:07 am

For IR reception there are demodulator chips e.g. Vishay TSOP4838 http://cpc.farnell.com/vishay/tsop4838/photodiode-ir-receiver-38khz/dp/SC09303. These cost peanuts. They save having to deal with the 38KHz carrier, which presents a number of technical issues including rejecting optical interference signals. The chip gives you a relatively slow pulse waveform which you can decode.

I have some Arduino C code for doing this with the fairly common NEC protocol if anyone's interested - it should be reasonably easy to port to MicroPython.


Return to “Drivers for External Components”

Who is online

Users browsing this forum: No registered users and 7 guests