Page 1 of 1
WIZNETT 5500 raspberry pi pico
Posted: Tue Sep 21, 2021 12:00 pm
by neveregret
Hello everyone, I want to use ethernet module with raspberry pi pico but on the internet there is no example with raspberry pi pico.
I found WIZNETT 5500 with stm but i don't have network, urequest , socket and more module. I am using thony ide. My modules are here
Code: Select all
__main__
_main__ gc uasyncio/funcs ujson
_boot machine uasyncio/lock uos
_onewire math uasyncio/stream urandom
_rp2 micropython ubinascii ure
_thread onewire ucollections uselect
_uasyncio rp2 uctypes ustruct
builtins uarray uerrno usys
cmath uasyncio/__init__ uhashlib utime
ds18x20 uasyncio/core uheapq uzlib
framebuf uasyncio/event uio
Plus any modules on the filesystem
In micropython sdk i saw this $ git clone -b master
https://github.com/micropython/micropython.git and This link has w5500 driver why I don't have.I tried to install this
https://micropython.org/download/rp2-pico/ latest version but I couldn'T see network,urequest and socket. Why I don't have those module ? How can I have these modules ? or Is there a way to use Ethernet without driver and modules.Please help.
Re: WIZNETT 5500 raspberry pi pico
Posted: Wed Sep 22, 2021 10:32 am
by Roberthh
The actual Version of the Port already includes the framework for network and socket module. The source files are now located in the py/extmod directory. You can enable it in mpconfigport.h with the respective defines. You will still need the setup for wiznet.
Re: WIZNETT 5500 raspberry pi pico
Posted: Tue Sep 28, 2021 6:28 am
by neveregret
I tried but I couldn't. I am beginner.I am using Esp01 with your commands like this and It is working really good. I want ethernet connection because In my new project I need ethernet.
Code: Select all
from machine import UART,Pin
import time
uart = UART(0, rx=Pin(1), tx=Pin(0), baudrate=115200,rxbuf=512)
while True:
time.sleep(1)
uart.write("http.example.com"\n")
print(uart.read())
Is there a easy way to connect ethernet to Pico ? with UART or something ? Thank you.
Re: WIZNETT 5500 raspberry pi pico
Posted: Mon Oct 04, 2021 1:18 pm
by Bruno
Is the project going well?
Please let me know if you have any additional needs related to Wiznet Ethernet.
I'm late, but I'll add a link.
https://www.hackster.io/bjnhur/how-to-a ... n-1-c7340c
https://www.hackster.io/louis_m/how-to- ... hon-bdd048
Re: WIZNETT 5500 raspberry pi pico
Posted: Mon Oct 04, 2021 2:22 pm
by neveregret
Thank you for help but these links are Circuitpython. I need to convert these to micropython.
Is the project going well
I didn't start because I can't convert those I guess so I am looking for other solutions which I don't find
Re: WIZNETT 5500 raspberry pi pico
Posted: Tue Oct 05, 2021 5:25 am
by neveregret
Basically I am using this method ]
https://www.raspberrypi.org/forums/vie ... 7ebff99741. I need a Ethernet so I started researching . I found Esp12. Esp 12 can use enc28j60. So I am thinking, Can I use Esp12 with Enc28j60 (SPI mode) then Esp12 UART with Raspberry Pi Pico. I am asking because I only use Esp01. I don't know if there are enough pins and if it can be used for wifi with Raspberry Pi Pico. Here
https://www.esp8266.com/download/file.p ... &mode=view Esp12 enc28j60 connection. If I do this connection , I can connect Raspberry Pi Pico with Esp12 (RX-TX,TX-RX,EN-3.3V,GND-GND, but 3.3V pin is not available for pico). If this think work, We can get cheap wifi and ethernet same tame. We can use what ever we want. Is this possible ? (I am beginner and I don't have this tools so If you say yes I will buy those.)
Re: WIZNETT 5500 raspberry pi pico
Posted: Thu Oct 07, 2021 10:46 am
by neveregret
Roberthh wrote: ↑Wed Sep 22, 2021 10:32 am
The actual Version of the Port already includes the framework for network and socket module. The source files are now located in the py/extmod directory. You can enable it in mpconfigport.h with the respective defines. You will still need the setup for wiznet.
Roberthh I found mpconfigport.h
https://github.com/micropython/micropyt ... nfigport.h and I read this
Code: Select all
rp2: Add framework for networking.
MICROPY_PY_NETWORK and MICROPY_PY_USOCKET need to be enabled by a board to
get networking. No NICs have yet been defined.
Where should I add that ? or What is the respective defines for it?
My second question is : If I install wiznett 5500 from micropython driver Isn't it work for pico?