TinyPICO(ESP32)を試す

最終更新日

RPi Pico を試していたが、じつは同時に TinyPICOも購入。

RPi Pico は、シンプル500円。
名前は似てるけど、TinyPICOはESP32を摘んだリッチ仕様で、2500円弱くらい。

USB-C モデルで 18x35mm と小型だけど、WIfiもBluetoothにも対応。

  • 2.4GHz Wifi – 802.11b/g/n
  • Bluetooth BLE 4.2

本体にDotStar protocolで制御できる RGB LEDもある。

  • APA102 RGB LED

こういう小さいけど使えるマイコンは、kickstarter で Digispark を購入して以来、ずっとお気に入り。

MycroPython

RPi Pico に比べると、知名度はまだまだだけど、いきなりMicroPythonが使えるがおもしろい。

$ ampy -p /dev/tty.usbserial-020D099D ls
/boot.py
/main.py

RPEL

$ screen /dev/tty.usbserial-020D099D 115200
>>> help('modules')
__main__          framebuf          uasyncio/lock     ure
_boot             gc                uasyncio/stream   uselect
_onewire          inisetup          ubinascii         usocket
_thread           machine           ubluetooth        ussl
_uasyncio         math              ucollections      ustruct
_webrepl          micropython       ucryptolib        usys
apa106            neopixel          uctypes           utime
btree             network           uerrno            utimeq
builtins          ntptime           uhashlib          uwebsocket
cmath             onewire           uheapq            uzlib
dht               tinypico          uio               webrepl
dotstar           uarray            ujson             webrepl_setup
ds18x20           uasyncio/__init__ uos               websocket_helper
esp               uasyncio/core     upip
esp32             uasyncio/event    upip_utarfile
flashbdev         uasyncio/funcs    urandom
Plus any modules on the filesystem
>>>
MPY: soft reboot
Warning: SPI(-1, ...) is deprecated, use SoftSPI(...) instead

Hello from TinyPICO!
--------------------

Battery Voltage is 3.7V
Battery Charge State is False

Memory Info - micropython.mem_info()
------------------------------------
stack: 752 out of 15360
GC: total: 4098240, used: 4400, free: 4093840
 No. of 1-blocks: 69, 2-blocks: 19, max blk sz: 23, max free sz: 255779

シェアする