Using MicroPython v1.23.0 on 2024-06-02; Raspberry Pi Pico with RP2040
This is not the wireless enabled board - plain PICO.
I have a Wiznet ethernet hat using the W5100S Embedded Internet Controller
The hat communicates with the PICO via SPI and I've connected the PICO to the WIZnet hat and the power light on the hat illuminates and everything seems normal.
first couple of lines of the Python script:
Using Thonny IDE. Thonny shows the network ( but not the usocket ) module but when I try to import it, the following error is returned:-
MPY: soft reboot
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: no module named 'network'
This is not the PICOW but a PICO with the Wiznet ethernet hat. I'm guessing as there are no networking devices on the PICO the network module won't load.
Any suggestions how I can get around this ?
This is not the wireless enabled board - plain PICO.
I have a Wiznet ethernet hat using the W5100S Embedded Internet Controller
The hat communicates with the PICO via SPI and I've connected the PICO to the WIZnet hat and the power light on the hat illuminates and everything seems normal.
first couple of lines of the Python script:
Code:
from usocket import socketimport networkimport machinefrom machine import Pin, SPIimport time#W5x00 chip initdef w5x00_init(): spi=SPI(0,2_000_000, mosi=Pin(19),miso=Pin(16),sck=Pin(18)) nic = network.WIZNET5K(spi,Pin(17),Pin(20)) #spi,cs,reset pin nic.active(True)
MPY: soft reboot
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: no module named 'network'
This is not the PICOW but a PICO with the Wiznet ethernet hat. I'm guessing as there are no networking devices on the PICO the network module won't load.
Any suggestions how I can get around this ?
Statistics: Posted by APL2 — Sun Aug 04, 2024 2:45 pm — Replies 3 — Views 32