Page 1 of 1

Raspberry pi pico ethernet

Posted: Mon Aug 23, 2021 7:11 am
by neveregret
Hello everyone,
I'm using raspberry pi pico and esp01 (esp8266) for rest api with micropython. I programmed esp8266 with Arduino then i used uart for raspberry pi pico.https://create.arduino.cc/projecthub/RO ... ino-011389 i use siimilar method like this.I don't have problem with that.What i want is use raspberry pi pico with ethernet module.Are any of you guys know if i use ethernet module how can i use get or post for rest api.Are there library on micropython for these? I searched it but i didn't find.If you guys know let me know or can i use same method ? Can i code ethernet module from arduino then use uart for raspberry pi pico.Is it possible?
Thank you, have a nice day.

Re: Raspberry pi pico ethernet

Posted: Mon Aug 23, 2021 8:01 am
by doublevee
Hi. I am using a Wiznet 5500 with my ST based board but you could easily connect this to the Pico as well (SPI based). I am using urequests (make sure you get the official version from MP site - there are quite a few) to handle REST API calls.

Re: Raspberry pi pico ethernet

Posted: Mon Aug 23, 2021 8:13 am
by neveregret
doublevee wrote:
Mon Aug 23, 2021 8:01 am
Hi. I am using a Wiznet 5500 with my ST based board but you could easily connect this to the Pico as well (SPI based). I am using urequests (make sure you get the official version from MP site - there are quite a few) to handle REST API calls.
I actually couldn't use urequests that's why i try to modify esp8266 from arduino. In thonny ide i tried to install urequest usocket but it didn't worked. I really don't know why but i can't use those modules.

Re: Raspberry pi pico ethernet

Posted: Tue Aug 24, 2021 10:50 am
by doublevee
You need to ensure you have the correct build of MP to support this. I believe the network build should work by default.

Re: Raspberry pi pico ethernet

Posted: Tue Aug 24, 2021 10:57 am
by neveregret
doublevee wrote:
Tue Aug 24, 2021 10:50 am
You need to ensure you have the correct build of MP to support this. I believe the network build should work by default.

Code: Select all

help('modules')
__main__          gc                uasyncio/funcs    uos
_boot             machine           uasyncio/lock     urandom
_onewire          math              uasyncio/stream   ure
_rp2              micropython       ubinascii         uselect
_thread           onewire           ucollections      ustruct
_uasyncio         rp2               uctypes           usys
builtins          uarray            uerrno            utime
cmath             uasyncio/__init__ uhashlib          uzlib
ds18x20           uasyncio/core     uio
framebuf          uasyncio/event    ujson
these are all i got.I couldn't add urequest or usocket or network.I am thinking pico is not supporting those libraries.