Without Lora version
With Lora version
With SX1278(410-525MHz,+18dBm)
With SX1262(803-930MHz,+22dBm)
With SX1268(410-525MHz,+22dBm)
With LLCC68(410-525MHz,+22dBm)
With SX1280(Coming soon)
To program the Raspberry Pi Pico using Micropython, you can either use:
- Thonny IDE
- uPyCraft IDE
But before getting started with Raspberry Pi Pico, you have to install MicroPython on Raspberry Pi Pico Board.
Installing MicroPython on Raspberry Pi Pico
-
Push and hold the BOOTSEL button on the Pico, & then immediately connect the Pico Board to your computer using a micro USB cable. Release BOOTSEL once the drive RPI-RP2 appears on your computer.
-
Open the RPI-RP2 drive that appears in the Drives tab.
-
Download the MicroPython UF2 file (https://micropython.org/download/rp2-pico/)
-
Drag and drop the UF2 file onto the RPI-RP2 drive. The Raspberry Pi Pico with RPwill reboot and will now run MicroPython.
-
Now let us get started with Raspberry Pi Pico using MicroPython on Thonny IDE. First you have to download Thonny from the https://thonny.org/
-
Connect the Raspberry Pi Pico to your computer. Then from Thonny go to Tools > Options and click on the Interpreter tab. From the interpreter dropdown list, select MicroPython (Raspberry Pi Pico). The port dropdown menu can be left to automatically detect the Pico. Click Ok to close.
-
When you plugin the pico Board, a firmware installation tab will appear for raspberry pi pico. Click on Install & some files will be downloaded.
-
After successful installation, the MicroPython version and Raspberry board will appear in the Python Shell. To test we can write a quick print function to say “Hello World”. Press Enter to run the code. You will get Hello World as a response.
With ArduinoCore-mbed Release 2.0.0, Arduino now support Raspberry Pi Pico officially. To program Raspberry Pi Pico in Arduino framework, install Arduino Mbed OS RP2040 Boards in Arduino IDE's Library Manager.
https://github.com/earlephilhower/arduino-pico This link has a very detailed description
Install Arduino IDE and install pico resources by adding line "https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json" to Additional Boards Manager URLs in Arduino IDE Files / Preferences. Via Arduino IDE Tools/Board / Board Manager search for pico and choose Raspberry Pi Pico/RP2040 version 2.0.1 to install it.
Uploading Sketches To upload your first sketch, you will need to hold the BOOTSEL button down while plugging in the Pico to your computer. Then hit the upload button and the sketch should be transferred and start to run.
After the first upload, this should not be necessary as the core has auto-reset support. Select the appropriate serial port shown in the Arduino Tools->Port->Serial Port menu once (this setting will stick and does not need to be touched for multiple uploads). This selection allows the auto-reset tool to identify the proper device to reset. Them hit the upload button and your sketch should upload and run.arduino-pico
In some cases the Pico will encounter a hard hang and its USB port will not respond to the auto-reset request. Should this happen, just follow the initial procedure of holding the BOOTSEL button down while plugging in the Pico to enter the ROM bootloader.
If TFT is used the ESPI library needs to modify the following 7 lines
Setup135_ST7789.h
#define TFT_MOSI 11
#define TFT_SCLK 10
#define TFT_CS 9
#define TFT_DC 8
#define TFT_RST 12
#define TFT_BL 2
User_Setup_Select.h
Only ONE line below should be uncommented
#include <User_Setups/Setup135_ST7789.h>
jgromes (SX127X,ArduinoCore-mbed)
jgromes (SX126X,ArduinoCore-mbed)
jgromes (LLCC68(Use sx126x code),ArduinoCore-mbed)
jgromes (SX1280,ArduinoCore-mbed)
And many many others who haven't been mentioned....
We have both a Discord Server https://discord.gg/qMDNZbX9rE
facebook:Jiale Xu
twitter:yongxiangxu251
E-mail:[email protected]