Proto-App / Proto-Android

Realtime circuit simulator for Android platform.
103 stars 2 forks source link

Output devices #115

Open Bushmills opened 2 years ago

Bushmills commented 2 years ago

While I really like that I can add device sensors to circuits for input, I wonder whether it wouldn't make sense to use the device also for some output, like, a piezo buzzer sounding the speaker, possibly controlling real device LEDs, if so existing, in addition to the flashlight LED. I'm not really sure about what to do with USB port, possibly direct control of the data line, if feasible. If level of USB data input line could also be read, as "sensor", this could allow some rather interesting possibilities when connecting two mobile devices. Another interesting output, using the device, could be the tasker event API, allowing automation apps to respond to circuit events. And, vice versa, the complementary Locale API as another input/"sensor" for circuits. For latter two, even a simple digital line could already harbour consideral potential. An analog line ("voltage" transferred through a variable) even more so.

Bushmills commented 2 years ago

To avoid the need to poll "voltage" variable, being able to specify a minimal slew rate, a measure for change of voltage over time, to trigger the condition may be very useful with the event API. This would allow to ignore small voltage drifts, or regulating artefacts/noise, but trigger when voltage change is steep enough for a condition to become active.