How Too Peripherals Python Tutorials

Remote control with RPi Zero and LIRC

Post Reply
raspberrypi / howtoo     Views: 75Prev .. Next
Remote control with RPi Zero and LIRCPosted: Wednesday, August 7, 2019 [15:32:27] - 1
rootPosted by:rootMember Since:
June 16 2010
Posts: 217
Idea of having a master Remote Control was on my mind for quite a while.
Finally ordered components from Adafruit and some prototyping boards to put it all together.

- IR (Infrared) Receiver Sensor - TSOP38238
- Super-bright 5mm IR LED - 940nmIR333C
- NPN Transistor PN2222

Many conflicting schematics were found online where it was unclear weather to feed IR receiver with 3.3V or 5V from Raspberry.
Decided to feed IR receiver with 3.3V and IR LEDs with 5V and use 220oHm resistor for IR LEDs.


and this is how it looks in real life soldered on prototyping board:








Looks quite ugly but it works. When finished and all bugs worked-out professionally done PCBs will be ordered.There's no place like ~
Ford Service Manuals
Automotive Service Manuals
RPi Zero, LIRC and new Linux KernelPosted: Wednesday, August 7, 2019 [15:55:42] - 2
rootPosted by:rootMember Since:
June 16 2010
Posts: 217
New Linux Kernel would not work with LIRC out of the box. Following old tutorials did not help getting project going.
GitHub post helped a lot to make my project work:
github.com/AnaviTechnolog..

my /boot/config.txt GPIO assignment looks like this:
View Codedtoverlay=gpio-ir-tx,gpio_pin=17
dtoverlay=gpio-ir,gpio_pin=27


After reboot there are two devices in /dev
View Codell /dev | grep lirc*
crw-rw---- 1 root video 252, 0 Aug 7 03:32 lirc0
crw-rw---- 1 root video 252, 1 Aug 7 03:32 lirc1

and checking IR receiver invoked by:
View Codemode2 -d /dev/lirc1

and it worked!

At this time recording codes from my remotes did not work as I can't figure out the last part of crating actual config file. Work in-progressThere's no place like ~
RE: Remote control with RPi Zero and LIRCPosted: Thursday, August 8, 2019 [09:32:47] - 3
rootPosted by:rootMember Since:
June 16 2010
Posts: 217
As it was pointed by one of the visitors, 20 oHm resistor was added to the IR LED circuit.



Resistance calculated as:
View Code5V - (2*1.5V)) / 0.1A = 20 oHm


Only 10 oHm resistors were available, so two 10 oHm resistors added to the circuit.




more updates on LIRC coming soonThere's no place like ~
raspberrypi / howtooPrev .. Next
 
Post Reply
Home - Raspberrypi: How Too Peripherals Python Tutorials
Our Telegram Group