I'm trying to get an Arduino Uno to output the IR code to turn on an old sound bar, but without using an IR transmitter/receiver. I've removed the IR receiver from the sound bar board as I'd like to wire the Uno right into the sound bar receiver pads bypassing the remote all together.
Attached is a wiring sketch of what I'm thinking.
Am I out in left field here or can this be done? It didn't work when I tried it, but my oscope shows a signal output from the Arduino pin (uninterpretable signal, but something of a pattern).
Here is the code that would otherwise output to a IR transmitter.
Attached is a wiring sketch of what I'm thinking.
Am I out in left field here or can this be done? It didn't work when I tried it, but my oscope shows a signal output from the Arduino pin (uninterpretable signal, but something of a pattern).
Here is the code that would otherwise output to a IR transmitter.
Code:
#include <Arduino.h>
#include <IRremote.h>
// Define switch pin
const int switchPin = 7;
// Define a variable for the button state
int buttonState = 0;
// Create IR Send Object
IRsend irsend;
void setup()
{
// Set Switch pin as Input
pinMode(switchPin, INPUT);
}
void loop() {
// Set button state depending upon switch position
buttonState = digitalRead(switchPin);
// If button is pressed send power code command
if (buttonState == HIGH) {
irsend.sendRC6(0x150C, 20); // power code
}
// Add a small delay before repeating
delay(200);
}