Raspberry pi pico ethernet

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
neveregret
Posts: 28
Joined: Sun Aug 08, 2021 5:48 pm

Raspberry pi pico ethernet

Post by neveregret » Mon Aug 23, 2021 7:11 am

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.

doublevee
Posts: 75
Joined: Mon Jul 02, 2018 11:09 pm

Re: Raspberry pi pico ethernet

Post by doublevee » 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.

neveregret
Posts: 28
Joined: Sun Aug 08, 2021 5:48 pm

Re: Raspberry pi pico ethernet

Post by neveregret » Mon Aug 23, 2021 8:13 am

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.

doublevee
Posts: 75
Joined: Mon Jul 02, 2018 11:09 pm

Re: Raspberry pi pico ethernet

Post by doublevee » 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.

neveregret
Posts: 28
Joined: Sun Aug 08, 2021 5:48 pm

Re: Raspberry pi pico ethernet

Post by neveregret » Tue Aug 24, 2021 10:57 am

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.

Post Reply