Simultaneously Control, Monitor and Interconnect Up to 10 Arduinos With s2aiomulti
I have just released a new package called s2aiomulti, that allows you to control and monitor multiple Arduino boards from a single instance of Scratch 2.0 off-line.
Not only can you monitor and control multiple boards individually, you can also pass data from one Arduino to another!
The package contains 2 main software components, the s2aiomulti router and the s2aiomulti Arduino Server. The router interacts with Scratch and dispatches commands to the appropriate s2aiomulti Arduino server. When data updates are reported by an active Arduino board to its associated s2aiomult Arduino server, the data update is dispatched to the router. The router then forwards the information to the appropriate reporter block.
s2aiomulti uses Python 3.5 and Python asyncio.
Arduinos can be connected via USB cable or via WiFi (WiFi was tested using a Sparkfun RedBot with WiFly module).
This is a bug fix release for a Windows specific issue. The timer resolution for Windows is larger than that for Linux or Mac and in some cases causes a lag in data reporting for analog data. Thank you Guido van Rossum for pointing out the timer differences.
There was bug I discovered in testing out the Latch Data feature and this was repaired as well. What is the Latch Data feature? You can check out an explanation on the Wiki page.
In addition, the code has been refactored for better efficiency.
Thanks go to Dave Fisher and Leigh Mathews for help in verifying this release.
pip install pymata-aio
pip install pymata-aio --upgrade
Linux/Mac users may need to use sudo to install or upgrade.
Use the "pip3" command if you have that installed on your computer instead of "pip".