I'd like to announce:
Arduino Node "works" with Rpi Pico.
-
First, you have to install Arduino IDE
-
Than add at board manager the "Arduino Mbed OS RP2040 Boards"
-
and switch to that board
-
At Tools -> Library Manager -> Add "CofigurableFirmata"
Read more about it here:
GitHub - firmata/ConfigurableFirmata: A plugin-based version of Firmata
-
File -> Open -> ConfigurableFirmata.ino
On Windows it is located at:
C:\Users\Dell\Documents\Arduino\libraries\ConfigurableFirmata\examples
-
Comment unnecessary define lines: (I did 2, which I knew to be totally unnecessary: SPI + DHT)
#define ENABLE_SERIAL
#define ENABLE_I2C
//#define ENABLE_SPI
#define ENABLE_ANALOG
#define ENABLE_DIGITAL
//#define ENABLE_DHT
#define ENABLE_FREQUENCY
I guess SERIAL and FREQ can be dropped too? But I did not try.
-
File -> Save AS ... choose a name, you would like to name your board.
do not use spaces..
-
Click Sketch -> Verify/Comile [Ctrl + R]
-
Click Sketch -> Export Compiled Binary [Ctrl + Alt + S]
-
Search the forder you have created by saving the projet -> inside that there will be a subfolder called : build
-
Upload the yourProjectname.ino.u2f
file to your Rpi Pico by :
- hold down the boot button on the board
- while plugging into your PC / RPi
- and copy the file there. (it will auto restart)
At Node-Red :
Import:
[{"id":"7543615fa0e73cb9","type":"tab","label":"Ardu-Pico teszt","disabled":false,"info":"","env":[]},{"id":"9af8c232996dc018","type":"arduino out","z":"7543615fa0e73cb9","name":"Pico Led","pin":"25","state":"OUTPUT","arduino":"f98aec68661d74af","x":240,"y":40,"wires":[]},{"id":"f1b4b3b7cb06d0ba","type":"inject","z":"7543615fa0e73cb9","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"true","payloadType":"bool","x":90,"y":40,"wires":[["9af8c232996dc018"]]},{"id":"97912eec4212270d","type":"inject","z":"7543615fa0e73cb9","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"false","payloadType":"bool","x":90,"y":80,"wires":[["9af8c232996dc018"]]},{"id":"7abbf06b7862da49","type":"catch","z":"7543615fa0e73cb9","name":"","scope":null,"uncaught":false,"x":80,"y":120,"wires":[["774edbaded6ee7d7"]]},{"id":"774edbaded6ee7d7","type":"debug","z":"7543615fa0e73cb9","name":"debug 4","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":240,"y":120,"wires":[]},{"id":"f98aec68661d74af","type":"arduino-board","device":"COM3"}]
Warning:
... if You import this, the port is set to COM3
! You must edit that, or click the search button next to it.