Skip to content

Latest commit

 

History

History
64 lines (42 loc) · 1.86 KB

README-microcontrollers.md

File metadata and controls

64 lines (42 loc) · 1.86 KB

README - Microcontrollers on the KR01

The KR01 currently hosts two microcontrollers:

  1. an ESP32-based TinyPICO used as an external clock, and,

    mounted at: /dev/ttyUSB0 open with: rshell -p /dev/ttyUSB0 script installed: ./main_ext_clock_esp32.py

  2. an Itsy Bitsy RP2040, handling the three front bumpers, the mast, back port and starboard digital infrared sensors. This communicates over UART to Tx/Rx on the Pi.

    mounted at: /dev/ttyACM0 open with: rshell -p /dev/ttyACM0 script installed: ./main_hihp_rp2040.py libraries at: ./upy/

  3. a second RP2040, this time a QT Py RP2040 as an external clock as an alternative to the TinyPICO.

    mounted at: /dev/ttyACM1 open with: rshell -p /dev/ttyACM1 --buffer-size=32 --baud=115200 script installed: ./main_qtpy_rp2040.py

  4. if a Pyboard is connected it shows up as:

    mounted at: /dev/ttyACM0 open with: rshell -p /dev/ttyACM0 installed at: /pyboard/flash or: /pyboard/flash

Note that on your own computer the actual tty used may differ.

To connect to the microcontroller, use rshell with the board's port as an argument.

When in rshell, the executable script can be found at: /pyboard/main.py

The 'edit' command will by default open vim.

Timeouts in rshell

If you have trouble copying files due to a timeout, use the following command arguments:

    rshell -p /dev/ttyXXXX --buffer-size=32 --baud=115200

NeoPixel Support

A NeoPixel support library in MicroPython on the RP2040 may be found at:

https://github.com/blaz-r/pi_pico_neopixel

The neopixel.py file should be copied to /pyboard/ on the microcontroller.

#EOF