Arduino sensor data via WebJack
WebJack is a way to read data from an Arduino (and other sources) using audio -- it basically turns your Arduino into an audio modem. https://github.com/publiclab/webjack Note: WebJack and p5-webjack libraries must be added to your index.html as follows:
<script src="https://webjack.io/dist/webjack.js"></script>
<script src="https://jywarren.github.io/p5-webjack/lib.js"></script>
Working example: https://editor.p5js.org/jywarren/sketches/rkztwSt8M
Testing audio: https://www.youtube.com/watch?v=GtJW1Dlt3cg
Load this sketch onto an Arduino:
https://create.arduino.cc/editor/jywarren/023158d8-be51-4c78-99ff-36c63126b554/preview
Arduino will output audio from pin 3 + ground. Use microphone or an audio cable.
2
9