Update README.md for improved formatting and clarity

This commit is contained in:
Aaron 2025-11-05 14:22:43 -05:00
parent 4f4d28720f
commit 6f99f76394

View File

@ -23,6 +23,7 @@ This project automates garden monitoring using a Raspberry Pi Pico W with temper
### 1. Hardware Setup ### 1. Hardware Setup
**Required Components:** **Required Components:**
- Raspberry Pi Pico W - Raspberry Pi Pico W
- DS18B20 temperature sensors (waterproof recommended) - DS18B20 temperature sensors (waterproof recommended)
- 4.7kΩ resistor (pull-up for 1-Wire bus) - 4.7kΩ resistor (pull-up for 1-Wire bus)
@ -33,7 +34,8 @@ See the [Items Needed Wiki](https://gitea.rcs1.top/sickprodigy/Auto-Garden/wiki/
### 2. Wiring ### 2. Wiring
**DS18B20 Temperature Sensors:** **DS18B20 Temperature Sensors:**
```
```text
Sensor Wire → Pico Pin Sensor Wire → Pico Pin
───────────────────────────── ─────────────────────────────
Red (VDD) → 3V3 (OUT) - Pin 36 Red (VDD) → 3V3 (OUT) - Pin 36
@ -45,9 +47,11 @@ Add 4.7kΩ resistor between Data line and 3.3V
``` ```
**Optional Reset Button:** **Optional Reset Button:**
```
```text
RUN pin → Button → GND RUN pin → Button → GND
``` ```
Pressing button grounds RUN and resets the Pico. Pressing button grounds RUN and resets the Pico.
### 3. Software Setup ### 3. Software Setup
@ -58,6 +62,7 @@ Pressing button grounds RUN and resets the Pico.
3. Copy `.uf2` file to the Pico drive 3. Copy `.uf2` file to the Pico drive
**IDE Setup:** **IDE Setup:**
- Recommended: VS Code with [MicroPico extension](https://marketplace.visualstudio.com/items?itemName=paulober.pico-w-go) by paulober - Recommended: VS Code with [MicroPico extension](https://marketplace.visualstudio.com/items?itemName=paulober.pico-w-go) by paulober
- Alternative: Thonny IDE - Alternative: Thonny IDE
@ -96,7 +101,8 @@ SENSOR_CONFIG = {
### 5. Upload & Run ### 5. Upload & Run
Upload all files to your Pico: Upload all files to your Pico:
```
```text
/ /
├── main.py ├── main.py
├── secrets.py ├── secrets.py
@ -111,7 +117,7 @@ The Pico will auto-start `main.py` on boot.
## Project Structure ## Project Structure
``` ```text
Auto-Garden/ Auto-Garden/
├── main.py # Entry point, sets up monitors ├── main.py # Entry point, sets up monitors
├── secrets.py # WiFi & Discord credentials (gitignored) ├── secrets.py # WiFi & Discord credentials (gitignored)
@ -130,12 +136,14 @@ Auto-Garden/
- **Every 5 seconds:** WiFi connection check with auto-reconnect - **Every 5 seconds:** WiFi connection check with auto-reconnect
**Discord Channels:** **Discord Channels:**
- `discord_webhook_url`: Regular temperature updates, connection status - `discord_webhook_url`: Regular temperature updates, connection status
- `discord_alert_webhook_url`: Critical temperature alerts (Inside sensor only) - `discord_alert_webhook_url`: Critical temperature alerts (Inside sensor only)
## Temperature Logs ## Temperature Logs
Logs are saved to `/temp_logs.csv` on the Pico: Logs are saved to `/temp_logs.csv` on the Pico:
```csv ```csv
2025-11-05 14:30:00,Inside,28000012,72.50 2025-11-05 14:30:00,Inside,28000012,72.50
2025-11-05 14:30:00,Outside,28000034,45.30 2025-11-05 14:30:00,Outside,28000034,45.30
@ -146,6 +154,7 @@ Format: `timestamp,location,sensor_id,temperature_f`
## Future Expansion ## Future Expansion
### Planned Features ### Planned Features
- **Humidity Sensors:** DHT22 or SHT31 for air humidity monitoring - **Humidity Sensors:** DHT22 or SHT31 for air humidity monitoring
- **Soil Moisture:** Capacitive sensors for plant watering automation - **Soil Moisture:** Capacitive sensors for plant watering automation
- **Relay Control:** 3V-32VDC SSR relays for switching AC, fans, heaters - **Relay Control:** 3V-32VDC SSR relays for switching AC, fans, heaters
@ -153,24 +162,29 @@ Format: `timestamp,location,sensor_id,temperature_f`
- **Light Monitoring:** LDR or BH1750 for grow light automation - **Light Monitoring:** LDR or BH1750 for grow light automation
### Relay Wiring (Future) ### Relay Wiring (Future)
```
```text
Pico 3.3V output → SSR relay input → High voltage device (120V/240V) Pico 3.3V output → SSR relay input → High voltage device (120V/240V)
``` ```
Use solid-state relays (SSR) rated for your voltage/current needs. Use solid-state relays (SSR) rated for your voltage/current needs.
## Troubleshooting ## Troubleshooting
**No temperature readings:** **No temperature readings:**
- Check 4.7kΩ pull-up resistor is connected - Check 4.7kΩ pull-up resistor is connected
- Verify sensor wiring (VDD to 3.3V, not 5V) - Verify sensor wiring (VDD to 3.3V, not 5V)
- Check GPIO pin numbers in `SENSOR_CONFIG` - Check GPIO pin numbers in `SENSOR_CONFIG`
**WiFi not connecting:** **WiFi not connecting:**
- Verify SSID/password in `secrets.py` - Verify SSID/password in `secrets.py`
- Check 2.4GHz WiFi (Pico W doesn't support 5GHz) - Check 2.4GHz WiFi (Pico W doesn't support 5GHz)
- Look for connection messages in serial console - Look for connection messages in serial console
**Discord messages not sending:** **Discord messages not sending:**
- Verify webhook URLs are correct - Verify webhook URLs are correct
- Test webhooks with curl/Postman first - Test webhooks with curl/Postman first
- Check Pico has internet access (ping test) - Check Pico has internet access (ping test)