- Install
- Basic operation
- Basics of programming for electronic work
- Basics of programming for Excel
- Machine learning with scikit-learn
- Visualizing data with matplotlib
- Web programming
- RPA programming
- Miscellaneous programming
- Reference
Connect to microcontroller
Using Tsumicky, you can connect to various microcontrollers and control sensors, motors, etc.
Block used for connection
To connect to the microcontroller, use the "Connect to port ... of host ...'' block in the "Basic I/O" group.

At the last "assign to variable ...", specify the variable to point to the connected microcontroller.
Also, the method for connecting the host and port number differs depending on the type of microcontroller.
For microcontrollers with Arduino version firmware (ESP32 series/Raspberry Pi Pico W)
In the "Host" field, specify the host name specified in the firmware (tmkfirm.ino) with ".local" appended.
In tmkfirm.ino, the line specifying the host name is initially as follows.
const char* host = "wsserver";
If this is the case, enter "wsserver.local" in the "Host" field.
Also, by default, enter "8000" in the "Port number" field.
For Raspberry Pi
In the "Host" field, enter the host name according to the Raspberry Pi's Avahi daemon settings (/etc/hostname file) with ".local" appended.
For example, if you set the host name to "raspberrypi" in the /etc/hostname file, enter "raspberrypi.local" in the "Host" field.
Also, by default, enter "8000" in the "Port number" field.
For Rapsberry Pi Pico connected to a computer via USB
Enter "localhost" in the "Host" field.
Also, enter "8002" in the "Port" field.
Simultaneous control of multiple microcontrollers
You can also control multiple ESP32 series/Raspberry Pi/Raspberry Pi Pico W at the same time.
For ESP32 and Raspberry Pi Pico W, change the host name of each by rewriting the line specifying the host name in tmkfirm.ino in the firmware written to each microcontroller.
On Raspberry Pi, change each host name in the Avahi daemon settings.
Then, use multiple "Connect to host ..." blocks and assign each microcontroller to a different variable in the "assign to variable ...''.