-
Notifications
You must be signed in to change notification settings - Fork 55
Description
Hi, nice library!
I'm starting on a small hobby project using multiple emitters - 3, up to 16 or perhaps 32 - that each send a unique message in sequence (kind of lighthouse idea) at 35 kHz using some suitable protocol, controlled from a single ESP32 or rPi Pico (RP2) program using asyncio.
The 3-emitter setup will use 3 instances of the transmitter object (possible?), each using its own output pin with IR-led.
The other setup's will use a serial-in 8-port or 16-port led driver (or another suitable multiplexer/driver), with the carrier signal on a separate ouput pin might be required. Only a single instance of the Sender object and one single LED output port is used with each time a slghtly different message. The program takes care of selecting the next IR-led for the corresponding message to be sent.
Question: It is not clear me how I can synchronise (step to the next output) transmitions to the different emitters so that they do not overlap.
Is checking the .busy method enough in case of the hardware asynchronously handling the message buffer?
Or should an input port detect if a pulse train is being transmitted?
Is using multiple sender object possible?
Is using multiple receiver objects possible, each using its own input pin?
Suggestion: it would be nice to have a callback facility indicating that the transmission has finished.