๐Ÿ“ฆ fredsa / tvremote

โ˜… 0 stars โ‘‚ 0 forks ๐Ÿ‘ 0 watching โš–๏ธ Apache License 2.0
๐Ÿ“ฅ Clone https://github.com/fredsa/tvremote.git
HTTPS git clone https://github.com/fredsa/tvremote.git
SSH git clone git@github.com:fredsa/tvremote.git
CLI gh repo clone fredsa/tvremote
Fred Sauer Fred Sauer comments, typo d2fb260 1 months ago ๐Ÿ“ History
๐Ÿ“‚ main View all commits โ†’
๐Ÿ“„ admiral_sharp.h
๐Ÿ“„ LICENSE
๐Ÿ“„ README.md
๐Ÿ“„ sony.h
๐Ÿ“„ tvremote.ino
๐Ÿ“„ tvremote.png
๐Ÿ“„ README.md

IR TV Remote

Basic example using a microcontroller as an IR blaster. Mine are from Adafruit.

Getting started

specific library for your microcontroller.

  • Connect an IR LED to one of the output pins, with an appropriate in-series
resistor wire to GND. Using 3.3V output voltage, 1.2V drop over the IR LED, and 20mA current: V=I*R => R=V/I = (3.3-1.2)/(20/1000) = 105ฮฉ ~= 100ฮฉ.

  • Update the project for your TV:
  • Define IR_SEND_PIN to be the output pin you're using.
  • Define IR_ADDRESS for the TV you are using.
  • Define IR_REPEATS if needed for your TV.
  • Define IR_REPEATS if needed for your TV.
  • Define IR_NUMBER_OF_BITS as appropriate for your TV.
  • Define IR_MIN_DELAY_MS as appropriate for your TV.
  • Build and flash to the device.
  • Open the serial monitor and type one or more two-digit hex codes to send.
For example, type 20 to send hex code 0x20 (menu, see admiral.h), or 121212 to send 0x12 (channel down) three times.