Apologies in advance, as I'm really not sure where to post this as it falls between 2 separate approaches.
My current project involves getting signals from various sensors (e.g. motion, colour etc.) and then based on the value sending the appropriate IR signal.
I have a Python script on a Raspberry Pi which uses the PyFirmata library to get inputs from the Arduino and then sends an IR signal from the Pi. This approach works, but is limited as realistically the IR signal probably won't be strong enough from where the Pi is located, so whilst its fine for testing, in the real world scenario it may be impractical.
Additionally I have a standard .ino file which sends an IR signal, based on xyz, this is good as it means I can have the IR transmitter and sensor on the same Arduino board and the location isn't a problem...but the problem here is the Pi is better placed to determine when to send the signal as it needs to assess inputs from 2 other Arduino's too (i.e. in the real world situation in order to know what IR signal to send, I need to see the sensor value from that Arudino, send to the PI, then the PI sends back a decision and the Arduino outputs the signal).
So my plan was to simply (in theory) handle all the logic on the Pi using Python (which I'm far more familiar with), and just use the Arduino for reading / emitting. I think that approach is probably okay, but this is where I get stuck...I can send an IR signal from the Pi using Python and the various libraries that rely on LIRC. Additionally I can send an IR signal from the Arduino using a .ino file....
but what I can't seem to do, is use the PyFirmata library to send an IR signal from the Arduino based on an input from the Pi. So does anyone have any suggestions for that (I have used PyFirmata before, so I can get inputs and/or output to Arduino pins, but not an IR signal as all the Python libraries seem to rely on LIRC which is Pi specific)?
Hopefully that makes sense and I wasn't sure if this was the correct section as in my mind this is a coding question, but I appreciate some may think the approach is wrong, so I wasn't sure which category to post in!