- 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
How to use on Raspberry Pi
To control Raspberry Pi with Tsumicky, upload the Python version of firmware to Raspberry Pi and start it.
Installing Blinka
The Python version of the firmware operates based on the library "Blinka".
Blinka is a library for combining various libraries for CircuitPython with full-spec Python.
For instructions on installing Blinka on Raspberry Pi, please refer to Adafruit's official page.
It is also explained in my video.
Installing Python libraries
The firmware operates using CircuitPython libraries, so install the necessary libraries.
After Blinka is ready to use, enter the following command in the terminal.
pip install websockets
pip install xlwings
pip install adafruit-circuitpython-motor
pip install adafruit-circuitpython-servokit
pip install adafruit-circuitpython-dht
pip install adafruit-circuitpython-bmp280
pip install adafruit-circuitpython-neopixel
pip install adafruit-circuitpython-ssd1306
pip install adafruit-circuitpython-mpu6050
pip install Adafruit-Blinka-Raspberry-Pi5-Neopixel
Enable access by hostname
When connecting to Raspberry Pi from Tsumicky, use the IP address or hostname.
However, if the Raspberry Pi's IP address is automatically set by DHCP, the IP address may change every time the Raspberry Pi is started, which is inconvenient.
Therefore, it is useful to start the Avahi daemon on the Raspberry Pi and make it accessible by hostname.
Search for articles online to learn how to start the Avahi daemon on Raspberry Pi and how to set the hostname.
Writing firmware
Write firmware to Raspberry Pi.
Connect to Raspberry Pi with SFTP and create a directory for uploading firmware.
Then, in that directory, upload the contents of the "firmware" - "blinka" folder in the folder where Tsumicky's Zip file is unzipped.
Starting the firmware
Start a terminal on Raspberry Pi and get Blinka ready to use.
Then, make the directory where you uploaded the firmware the current directory and execute "tsumikky.py" in it.
For example, suppose you create a directory called "tsumicky" in your home directory and upload the firmware to it.
In this case, run the following command to start the firmware.
cd ~/tsumicky python tsumicky.py
Please leave the terminal open.