Difference between revisions of "Pico-wifi-HAT"

From SB-Components Wiki

Line 74: Line 74:
 
* Now open WiFi_TCP_Server.py in thonny ide (You can find code here : https://github.com/sbcshop/Pico-WiFi-HAT ), Don't forget to change SSID, Password, Run this file by clicking on green play button. It will try to connect with entered WiFi SSID, If successful it will print IP address. Note it down for later use.
 
* Now open WiFi_TCP_Server.py in thonny ide (You can find code here : https://github.com/sbcshop/Pico-WiFi-HAT ), Don't forget to change SSID, Password, Run this file by clicking on green play button. It will try to connect with entered WiFi SSID, If successful it will print IP address. Note it down for later use.
  
* Now Run '''Hercules Setup Utility''' (Download link is available under the Resources section below) and select tab '''TCP Client''', Set module IP of your Pico WiFi obtained by runnig above code and enter port number as '''8080'''
+
* Now Run '''Hercules Setup Utility''' (Download link is available under the Resources section below) and select tab '''TCP Client''', Set module IP obtained by running above code and enter port number as '''8080'''.
  
 
== Resources ==
 
== Resources ==

Revision as of 06:44, 7 September 2021

Pico Wi-Fi HAT

Pico Wi-Fi HAT is a compact and easy-to-use Wi-Fi HAT for the Raspberry Pi Pico that includes an ESP8266 module, IEEE 802.11b/g/n Wi-Fi Standard, 3.3 V Operating Voltage, UART Communication interface, and a 40-pin GPIO extension header that can be controlled via AT Command and supports TCP/UDP communication protocol.

Pico Wi-Fi HAT also includes a 1.14-inch display with a resolution of 240 x 135 pixels, 65K RGB colors, and a sharp and vivid exhibiting effect, designed primarily for user engagement via SPI connection by incorporating a GPIO header. The 1.14-inch LCD includes the ST7789 Driver and SPI Interface, decreasing the amount of IO pins required.

It's a simple way to enable Wi-Fi on the Raspberry Pi Pico, making it suitable for a variety of IoT communication projects. It is intended for developers of all skill levels, from the most experienced to those who are just getting started with IoT devices.

Features

  • ESP8266 module with four-layers process
  • Standard Raspberry Pi Pico 40-pin GPIO extension header
  • Supports STA, AP, and STA+AP three Wi-Fi operating modes, embedded LWIP protocol stack, supports TCP/UDP communication
  • 2x functional buttons
  • Comes with development resources and manual

Specifications

  • Operating Voltage - 3.3 V (Internally connected on Pico 3v3 pin)
  • Communication - UART Interface
  • UART BAUD RATE - 115200 bps
  • Wi-Fi Standard - IEEE 802.11b/g/n
  • Frequency Range - 2400 ~ 2483.5 MHz
  • Wi-Fi Operating Mode - Wi-Fi STA, Wi-Fi AP, Wi-Fi STA+AP
  • Protocol - TCP, UDP
  • Antenna - PCB Antenna
  • Operating Temperature - -40℃ ~ 85℃
Pico WiFi HAT
Buy it From : Click Here

Pinout

PICO WiFi HAT PICO Pins
ESP8266 TX GP1
ESP8266 RX GP0
LCD DIN GP11
LCD CLK GP10
LCD DC GP8
LCD CS GP9
LCD RST GP12
LCD BL GP13
JOYSTICK UP GP18
JOYSTICK DOWN GP20
JOYSTICK LEFT GP21
JOYSTICK RIGHT GP17
JOYSTICK SELECT GP19

Installation

MicroPython

All Pico Wi-Fi HAT comes with preloaded AT firmware, So you can develop and design your projects without updating AT firmware for ESp8266.

TCP Client Example
  • Stack Pico Wi-Fi HAT with Raspberry Pi Pico.
  • Now Run Hercules Setup Utility (Download link is available under the Resources section below) and select tab TCP Server, enter port number as 8080 (you can choose any other port as well) and finally click on Listen button to start the TCP server on your PC/Laptop. Note down your PC/Laptop IP address to access your TCP Server.

TCP server start.PNG

  • Make sure to connect your PC/Laptop and Pico Wi-Fi HAT on same router. For example: If your Wi-Fi SSID is "TEST" and password is "test1234", then you must connect both device on TEST network.
  • Now open Wi-Fi_TCP_Client.py in thonny ide (You can find code here : https://github.com/sbcshop/Pico-WiFi-HAT ), Don't forget to change SSID, Password and TCP server IP (Laptop/PC IP on which TCP server is running), Run this file by clicking on green play button. It will make connection with TCP_Server and sent hello message, you can also sent back any message from server to WiFi HAT.

TCP Server Example
  • Stack Pico Wi-Fi HAT with Raspberry Pi Pico.
  • Now open WiFi_TCP_Server.py in thonny ide (You can find code here : https://github.com/sbcshop/Pico-WiFi-HAT ), Don't forget to change SSID, Password, Run this file by clicking on green play button. It will try to connect with entered WiFi SSID, If successful it will print IP address. Note it down for later use.
  • Now Run Hercules Setup Utility (Download link is available under the Resources section below) and select tab TCP Client, Set module IP obtained by running above code and enter port number as 8080.

Resources

  • 'Software

Hercules Software Utility

  • Github

Source Code