The Pico behaves like a standard serial device, so it can be accessed with any serial terminal program available for your operating system. Great, now you know what serial device your computer is using to connect to the Pico microcontroller. If you cannot identify which of the devices listed there is your Pico, unplug it from USB and check the list again to find which one is now missing. You can open the Device Manager of the Control Panel and look under “Ports (COM & LPT)” for the list of serial devices. On a Windows computer the device name will have the format COM where is a number.If you can’t identify which device maps to the Pico, you can unplug it from the computer and run lsusb again to see which device is now missing. You can use the lsusb command to list all the USB attached devices. On a Linux computer the device name may vary, but it usually has the format /dev/ttyACM, where is a number, likely 0.If you are using a Mac computer, then the name of the Pico serial device is /dev/tty.usbmodem0000000000001.The Pico should appear as a serial port device on your computer, so the next task is to figure out which of possibly several serial ports installed on your computer is the one that is connected to your microcontroller, and this varies depending on which operating system you are using: The MicroPython REPL can be accessed from your computer while connected with the USB cable. Like the standard Python language, MicroPython comes with a REPL, where you can enter statements and have them evaluated interactively. You can ignore this warning.Ĭongratulations, you have successfully installed MicroPython on your Pico! Accessing the MicroPython REPL On some computers you may get a warning about the drive being disconnected without properly ejecting it. As soon as the file transfers, the drive will disappear and the device will reboot itself. uf2 file that you downloaded earlier inside this disk drive. To install MicroPython, drag and drop the. You can release the button when you see it. In a second or two a new disk drive will appear on your computer. Press the button, and while you keep it pressed, plug the micro-USB end of your cable into your Pico (the micro-USB connector is seen on the right side in the above picture). Next, grab your Pico and locate the BOOTSEL button. Take the USB to Micro-USB cable and plug the USB end to your computer. From the list, find the most recent stable build and download it to your computer. You will find a list of stable and unstable builds. You can visit the MicroPython for Pico Downloads page to find the current version. If you don’t have it, you can download an installer.īefore you can program the Pico with MicroPython, this language needs to be installed on the microcontroller board. Python 3.6+ installed on your computer.If your computer has USB-C ports, then you will also need a USB to USB-C adapter. Here is a link to one if you need to buy it or see a picture. These are used as charger cables for many cell phones, so you may already have one.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |