Wiznet makers

ronpang

Published September 19, 2022 © Apache License 2.0 (Apache-2.0)

170 UCC

90 WCC

34 VAR

0 Contests

1 Followers

0 Following

Circuit python coding for WizFi360-EVB-PICO

This is a circuitpython coding for WizFi360-EVB-PICO that made by Ron

COMPONENTS Hardware components

WIZnet - WizFi360-EVB-Pico

x 1

Software Apps and online services

Adafruit - Circuitpython

x 1


PROJECT DESCRIPTION

These code is based on Adafruit's circuitpython ESP AT control to modified.

WizFi360 Firmware version: 1.1.1.9

If you are interested on the codes and commands, please refer to the links below.

1.ESP AT control - circuitpython

2.WizFi360 AT commands

3.WizFi360 Vs ESP8266

By using WIZnet's WizFi360-EVB-PICO, it required to use AT commands to control WizFi360 to communicate to the world

Upadtes

MQTT:

  1. Allow to change MQTT Publish topic after connected to adafruit IO
  2. Accept JSON method
  3. WizFi360 could accept Maximum 3 Subscribe topics

📚Required Software

Bundles:

  1. Circuit Python 7.0 or above (it required to use 1 MB from the flash)
  2. Adafruit circuit python bundle - Use the latest version from adafruit bundle page [ESP AT control or download from this github]

Required Libraries from adafruit bundle:

  1. adafruit_espatcontrol library or this library
  2. adafruit_request

Required codes to run example codes

  1. Secret.py -> Please modified the information to allow WizFi360 to connect your personal AP and adafruit IO.
  2. Example codes

Programming and debug software

  1. Thonny

🤖 Basic Setup

Step 1: How to install circuit Python into WizFi360-EVB-PICO (same method as adding to Raspberry Pi Pico)

🟥Youtube: Linux install method

🟥Youtube: Window install method

Step 2: Modified your secret.py and put the file inside the Pico flash

It is used for saving your AP information and Adafruit IO information to allow WizFi360 to connect.

secrets = {
    "ssid": "my access point", # Your AP's or router's name
    "password": "my password", # The password for your AP/router
    "timezone": -5,  # this is offset from UTC
    "github_token": "abcdefghij0123456789",
    "aio_username": "myusername", #adafruit IO username
    "aio_key": "abcdefghij0123456789", #adafruit IO 
}

Step 3: Add the libraries to your lib section

It is required to add libraries to the folder lib to allow the codes could run. link-lib_image

Step 4: Put the example codes to flash

Draging the examples codes to the flash inside the pico board, it should run the software easily.

Step 5: Setting the GPIO PINS

It is required to modify the GPIO PIN settings to allow the RP2040 coould communicate with WizFi360

RX = board.GP5 #TXD1 pin for WizFi360
TX = board.GP4 #RXD1 pin for WizFi360
resetpin = DigitalInOut(board.GP20) 
rtspin = False
uart = busio.UART(TX, RX, baudrate=11520, receiver_buffer_size=2048)

📓Examples:

  1. TCP Client
  2. Adafruit io (MQTT)
  3. Adafruit io (HTTP) - Used the same coding method as ESP AT control
  4. Ping - Used the same coding method as ESP AT control
  5. Blynk
Documents
  • HTTP to adafruit IO

  • Blynk

  • MQTT to adafruit io (Single feed topic)

  • MQTT to adafruit io (Group feed)

  • WizFi360 firmware upgrade

    Upgrade to the latest version

  • Ping

  • Loopback test

Comments Write

Similar projects you might like

Read RS-485 Modbus temp/humidity on IRIV IO Controller and send to Blynk (V0/V1) over Ethernet using WIZnet W5x00 in CircuitPython. Includes steps and code.

IRIV IO Controller IoT Gateway : Blynk

irina
  • 4448

  • 0

Read RS-485 Modbus temperature/humidity on IRIV IO Controller and send to ThingSpeak (field1/field2) over Ethernet using WIZnet W5x00 in CircuitPython.

IRIV IO Controller to ThingSpeak: Modbus RTU via WIZnet W5x00

irina
  • 4507

  • 0

A compact breakout and Ethernet adapter board for the WaveShare RP2040-LCD-1.28, adding W5500-based wired network capability with familiar CircuitPython code.

Adding Ethernet to WaveShare RP2040-LCD-1.28 with a WIZnet W5500 Adapter Board

Benjamin
  • 538

  • 0

Build a reliable Ethernet IoT camera using W6300-EVB-PICO2 (RP2350). This project verifies WIZnet's CircuitPython QSPI driver for stable industrial monitoring.

Building a Stable Ethernet IoT Camera with W6300-EVB-PICO2 & CircuitPython

Grace_Koo
  • 301

  • 0

Pico/Pico2(Non-W)+WIZnet Ethernet에서 HTTPS가 안 되면 ssl 누락일 수 있습니다. CIRCUITPY_SSL=1로 커스텀 빌드→UF2 플래시 후 import ssl/HTTPS로 확인하세요. Pico는 용량 때문에 모듈을 줄여야 할 수 있습니다.

Unlock HTTPS (SSL/TLS) on Pico/Pico2 (Non-W) with WIZnet Ethernet in CircuitPython

sophia
  • 232

  • 0

PR #178 aligns Wiznet5k sockets with CircuitPython core behavior, improving non-blocking/timeout reliability and consistency.

CircuitPython Wiznet5k: PR #178 Socket Reliability Update

Grace_Koo
  • 193

  • 0