마이크로파이썬 PyBoard v1.1
(MicroPython PyBoard v1.1)
개요
- pyboard는 MicroPython을 실행할 수 있는 강력한 개발보드입니다.
- PC와 USB를 통해 연결하면 Python 스크립트를 저장할 수 있는 USB 플래쉬 드라이브로 나타나며, Python 프롬프트 (REPL)을 통해 즉각적으로 프로그래밍이 가능합니다.
- MicroPython pyboard를 통해 로우 레벨 Python 운영체제를 사용할 수 있으며, 이 운영체제를 이용하여 다른 부품을 제어할 수 있습니다.
- 보드에는 STM32F405RG(혹은 APM32) 마이크로컨트롤러가 장착되어 있으며, MicroUSB 커넥터, microSD 카드 슬롯, MMA7660 3축 가속도센서, 31 GPIO, 4개의 LED, 리셋 스위치, 사용자 스위치를 지원합니다.
- MicroPython은 Python(version3.4) 프로그래밍 언어를 마이크로컨트롤러에서 동작 시킬 수 있게 새롭게 재작성된 프로그래밍 언어입니다.
- 작은 RAM에서도 동작이 가능하게 많은 최적화를 거쳤습니다.
특징
-
There are 3 main ways to control the pyboard:
- REPL: Connecting to your PC via USB, the board appears as a USB virtual comms port (CDC VCP) and you can use any serial program to connect and get a Python REPL prompt. This allows you to instantly type and execute Python commands, just like you would when running Python on your PC. You can also redirect the REPL to any of the UARTs on the pyboard.
- Remote script: You can change from REPL to raw REPL mode by sending ctrl-A, and then in raw REPL mode you can send an arbitrary Python script to the board for it to execute immediately. A Python script is available which makes using this mode very simple: you just run python pyboard.py script_to_run.py and this will execute script_to_run.py on the pyboard, returning any output.
- From file: The pyboard has a small, built-in filesystem which lives in part of the flash memory of the microcontroller. It also has an SD card slot if you want to extend the available storage. When you connect the pyboard to your PC, it appears as a USB flash storage device and you can access (mount) the internal filesystem and the SD card this way. If you copy a Python script to the filesystem and call it main.py then the board will execute this script when it starts up. This way you can run scripts without being connected to a PC.
Main features of the hardware:
- STM32F405RG(or APM32) microcontroller
- 168 MHz Cortex M4 CPU with hardware floating point
- 1024KiB flash ROM and 192KiB RAM
- Micro USB connector for power and serial communication
- Micro SD card slot, supporting standard and high capacity SD cards
- 3-axis accelerometer (MMA7660)
- Real time clock with optional battery backup
- 24 GPIO on left and right edges and 5 GPIO on bottom row, plus LED and switch GPIO available on bottom row
- 3x 12-bit analog to digital converters, available on 16 pins, 4 with analog ground shielding
- 2x 12-bit digital to analog (DAC) converters, available on pins X5 and X6
- 4 LEDs (red, green, yellow and blue)
- 1 reset and 1 user switch
- On-board 3.3V LDO voltage regulator, capable of supplying up to 250mA, input voltage range 3.6V to 16V
- DFU bootloader in ROM for easy upgrading of firmware
The two mounting tabs on the pyboard have perforations so that you can snap them off cleanly if needed.
This pyboard comes in a small plastic ESD (anti-static) box.
Differences between PYBv1.0 and PYBv1.1: high-speed crystal changed from 8MHz to 12MHz; LDO changed from MCP1802 to MCP1703; USB VBUS power diode replaced with silicon diode; JST battery connector pads added with protection FET.
문서
- +
- 참고