Is there a bit that can act like an "analog switch"?
More specifically, I'd like a bit with an analog input, analog output, and a trigger input:
- When triggered, the bit passes the analog signal from its input to its output.
- When not triggered, its output is low (or user-selectable between low / high).
Another way to think about this is like an SPDT relay.
Here's my use case: I want to sample the room temperature every hour, and use the cloud bit with an IFTTT recipe to send the time / temperature to a spreadsheet.
I've tried using the IFTTT cloudBit trigger connected to the Google drive (add a row to a sheet) action. But the problem is that this logs continuously, since the temperature sensor causes the cloudBit input to always be "active". This logs way more data than I need, and fills up the spreadsheet too quickly.
I'd like to put the "analog switch" between the temperature sensor and the cloudBit input. Then I could use the cloudBit output to trigger the switch for a few seconds each hour (through another IFTTT recipe).