Commit be0b0103 authored by Gallacchi Mattia's avatar Gallacchi Mattia
Browse files

Update README

parent 0d788292
Loading
Loading
Loading
Loading
+25 −2
Original line number Diff line number Diff line
@@ -8,10 +8,16 @@ The Raspberry Pi Pico expect to connect to an WiFi network with the following ch

|      |           |
|------|-----------|
| SSID | pico_wifi |
| SSID | IGIB_WiFi |
| Password | 1234567890 | 

Once connected to the network it will start a loop that send UDP packages at regular intervals.

|   |   |
|---|---|
| Pico IP | 192.168.1.102 |
| UDP port | 4444 |

A led flashes to indicate that everything is running correctly. If it doesn't (either always on or off) 
something is wrong.

@@ -19,6 +25,10 @@ something is wrong.

The application expect to find the SHT30 on the *I2C0* channel.
Some messages are printed on the *UART0* port and can be used for debug (Baud 115200).
You can mount the Pico on a [Grove Basic Kit for Raspberry Pi Pico][1] and connect the SHT30 as well as the UART to the shield.

![Grove shield image](img/grove_shield_sht30.drawio.png)


## Compile Pico W code

@@ -60,3 +70,16 @@ You can flash the Pico via USB using the *.uf2* file.
TODO

## UDP client 

The *python* folder contains a simple UDP client that store received values in CSV file. To use it connect to
the same wifi network then run the client.

```bash
./udp_client.py
```

## Grove shield schematic

![Grove shield sch](img/Grove_shield_SCH.png)

[1]:https://wiki.seeedstudio.com/Grove-Starter-Kit-for-Raspberry-Pi-Pico/#schematic-online-viewer
 No newline at end of file
+218 KiB
Loading image diff...
+854 KiB
Loading image diff...
+1.43 MiB
Loading image diff...
+1 −1
Original line number Diff line number Diff line
@@ -16,7 +16,7 @@

#include "sht30.h"

#define WIFI_SSID       "pico_wifi"
#define WIFI_SSID       "IGIB_WiFi"
#define WIFI_PASSWORD   "1234567890"
#define UDP_PORT 4444
#define BEACON_MSG_LEN_MAX 127