When using the attached code with my Arduino Uno, the code works as expected I can look at the IR LED through camera and see it pulsing, but when i try to use the same code with an attiny85 with my IRLED connected to Pin 1 as stated in the documentation, there is no pulsating. When i look at the LED through a camera it is just continuously lit, with no pulsing. Could someone please help me to figure this out.
I can get the IR LED to light up and blink the light on the receiver, but it will only do it momentarily, and when the IR LED is connected to the Uno. I can see the IR LED pulsing. When it is connected to the Attiny85, It is steady, no pulsing.
I am by no means a 'Guru' on this matter, and the info you provided from 'IRsend' is scarce, but maybe, and i mean maybe. your use of the clk-pin for the LED is causing the issue. How about you change the 'ledPin' to 'PB3' ?
I'm not sure how this code works, but it is sending some kind of pulsed data to the receiver. As the LED on the receiver blinks continuously now instead of just one blink then nothing unless i release and re trigger the transmitter switch. Again i'm not sure how i'm going to use this as i don't really understand what the code is doing, but it seems to be sending continual data to the receiver, so i guess that's a start. I have posted the website below, Hopefully someone can help me figure out what the program is doing, so i know how to get it to work for my needs. I'm not a great programmer so any help is greatly appreciated.
How do i electronically short out a wire to ground? I believe the Transmitter circuit is doing what i want it to do. The problem i'm having now is in the receiver circuit. Currently I'm trying to do it with an Attiny85 and an TSOP4838. When the receiver sees a signal coming from the TSOP4838, Then send pin high else it is in a low state or when it sees signal send the pin low. I have tried it both ways. In reality all i'm trying to do is connect a signal wire that reads 5V to a ground wire and short out the signal wire, but everything i have tried doesn't work. The only way i got it to work is using an Arduino Uno, as i have stated earlier.
Below i made a diagram that, hopefully gives a better explanation of what I'm trying to do. The Probe pin is connected to 5V with a 220 Ohm resistor. So there is only two wires. Probe pin and ground. I need to have probe pin touch ground, when it sees a signal from the TSOP4838.