goranv
Published © GPL3+

Infrared Remote in a USB Cable

Sleek and simple infrared remote that turns on your audio receiver / home teatre when TV is powered on.

IntermediateFull instructions provided4,748
Infrared Remote in a USB Cable

Things used in this project

Hardware components

ATtiny85
Microchip ATtiny85
Barebone chip
×1
IC & Component Socket, 8 Contacts
IC & Component Socket, 8 Contacts
×1
USB-A to B Cable
USB-A to B Cable
You can use any USB-A cable with decent lenght
×1
Arduino UNO
Arduino UNO
Used to program ATtiny85 via ISP method
×1
Resistor 100 ohm
Resistor 100 ohm
×1
Infrared Emitter, 10 °
Infrared Emitter, 10 °
×1
Male/Female Jumper Wires
Male/Female Jumper Wires
×1
Jumper wires (generic)
Jumper wires (generic)
×1
Breadboard (generic)
Breadboard (generic)
×1
Ceramic Disc Capacitor, 0.1 µF
Ceramic Disc Capacitor, 0.1 µF
×1
Capacitor 10 µF
Capacitor 10 µF
×1
infrared receiver TSOP31238
×1

Software apps and online services

Arduino IDE
Arduino IDE

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)
Solder Wire, Lead Free
Solder Wire, Lead Free
Plier, Side Cutting
Plier, Side Cutting
Tape, Electrical Insulation
Tape, Electrical Insulation

Story

Read more

Schematics

Wiring diagram

color coded diagram

Code

RAW ir code sender

Arduino
Infrared raw code sender for Marantz PM6006 audio amplifier
#include <IRremote.h>

IRsend IrSender;

void setup() {
  int khz = 36;
  unsigned int irSignal[] = {900, 900, 850, 900, 850, 900, 1750, 900, 850, 950, 850, 900, 850, 900, 850, 900, 900, 1750, 850, 950, 1700, 950, 850};
  IrSender.sendRaw(irSignal, sizeof(irSignal) / sizeof(irSignal[0]), khz);
  delay(1000);
  IrSender.sendRaw(irSignal, sizeof(irSignal) / sizeof(irSignal[0]), khz);
}

void loop() {
}

ATTinyCore - support for ATtiny chips

install ATTinyCore in your additional boards manager by pasting this line: http://drazzy.com/package_drazzy.com_index.json

IRremote library

Install IRremote library: https://www.ardu-badge.com/IRremote

Credits

goranv

goranv

0 projects • 2 followers

Comments