I’ve gotten the IR receiver working and the codes pulled out that will be needed to turn on and off my projector. I’m having issues getting the IR LED to emit a signal that works.
I’m working on a project which includes 3 sets of infrared transmitters and receivers. Can I use the IRremote library if it requires an output from 1 pin only? How would I connect three to the same output?
I’m using each one as a beam breakage test to determine the fill of a clothing donation bin. Could I hook them all up to 1 input if required but differentiate each signal perhaps so I can decipher the difference in the response for each receiver/transmitter module?
Sorry if this is a dumb question but I’m quite new to all of this.
To be clear I do need a digitalWrite as well since the particle board will be both outputting via an IR transmitter and receiving via an IR receiver.
The more I looked into the library it stated that it couldn’t do both simultaneously.
Are you saying I can simply digitalWrite the transmitter without specifying a frequency and then simply digitalRead the receiver without the need for such a library?
For a beam break detection you commonly would have the transmitting LED on permanently but if you only want to turn on temporarily I'd go with a common supply pin for all three transmitters and one pin per receiver.
For (considerably) more than three beams you could use one detector pin and use a multiplexer to read all sensors in a round-robin fashion.
To answer that we'd need to know which sensor you use.
As said, you don’t need a IRremote transmission but merely a steady beam.
IRremote is meant for sending or receiving data (e.g. like a TV remote control commands).
Hence the library would either take the role of a receiver or transmitter.
You don’t transmit data you only detect presence or absence of a “steady” beam.
Since your receiver expectes a 38kHz beam, you should be able to use any free PWM pin with analogWrite(pwmPin, 128, 38000); (50% duty cyncle at 38kHz).
Perfect response and extremely helpful. I’m helping a year 12 student along with her project and am a bit out of my element here obviously but trying to give back to the community. Which I see you do all over these boards. Thanks again it really was of great help to me
IRremote .This library doesn’t seem to work any more . Keeps putting my proton into red signal after flashing. Do i have to change the library file to work with the newer version of firmware 1.5.0 ?
It may have to do with the fact that IRRemote library uses version 1.3.7 of the SparkTimerInterval library.
If you can try the latest version 1.3.8 that might solve the issue.
It would also help if you could provide a simple test code that exhibits the issue for others to test for themselves.