{"id":45278543,"url":"https://github.com/linuxha/waverider","last_synced_at":"2026-02-21T02:07:03.376Z","repository":{"id":337430585,"uuid":"1153581639","full_name":"linuxha/waverider","owner":"linuxha","description":"Take a Pico and hook it up to a meshtastic radio to transmit data periodically.","archived":false,"fork":false,"pushed_at":"2026-02-09T15:05:05.000Z","size":44,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-09T18:28:33.792Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/linuxha.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-09T13:18:05.000Z","updated_at":"2026-02-09T13:27:45.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/linuxha/waverider","commit_stats":null,"previous_names":["linuxha/waverider"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/linuxha/waverider","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linuxha%2Fwaverider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linuxha%2Fwaverider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linuxha%2Fwaverider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linuxha%2Fwaverider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/linuxha","download_url":"https://codeload.github.com/linuxha/waverider/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linuxha%2Fwaverider/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29671513,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T00:11:43.526Z","status":"online","status_checked_at":"2026-02-21T02:00:07.432Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-02-21T02:07:03.321Z","updated_at":"2026-02-21T02:07:03.370Z","avatar_url":"https://github.com/linuxha.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WaveRider\n\nRaspberry Pi Pico application for reading sonar sensor data and transmitting it periodically via a Meshtastic radio over UART.\n\n## Features\n\n- **Sonar Sensor Reading**: Reads distance measurements from HC-SR04 ultrasonic sensor\n- **Periodic Transmission**: Configurable interval for data transmission (default: 5 minutes)\n- **JSON Data Format**: Transmits sensor data in JSON format\n- **Radio Status Monitoring**: Polls Meshtastic radio for battery level and other status information\n- **Configurable Private Channel**: Supports configurable Meshtastic channel index\n- **UART Communication**: Communicates with Meshtastic radio via UART\n\n## Hardware Requirements\n\n- Raspberry Pi Pico (or Pico W)\n- Meshtastic-compatible radio (e.g., T-Beam, T-Echo, etc.)\n- HC-SR04 Ultrasonic Sonar Sensor\n- Jumper wires\n\n## Wiring Diagram\n\n### Sonar Sensor (HC-SR04)\n- VCC → 5V (VBUS pin 40)\n- GND → GND (any GND pin)\n- TRIG → GPIO 2 (configurable in config.h)\n- ECHO → GPIO 3 (configurable in config.h)\n\n### Meshtastic Radio (UART)\n- Radio TX → Pico GPIO 5 (RX - configurable in config.h)\n- Radio RX → Pico GPIO 4 (TX - configurable in config.h)\n- Radio GND → Pico GND\n- Radio VCC → Pico 3V3 (or external power if needed)\n\n## Configuration\n\nEdit `src/config.h` to customize:\n\n```c\n// Transmit interval (milliseconds)\n#define TRANSMIT_INTERVAL_MS 300000  // 5 minutes\n\n// Meshtastic channel index (0-7)\n#define MESHTASTIC_CHANNEL_INDEX 0\n\n// GPIO pins\n#define SONAR_TRIGGER_PIN 2\n#define SONAR_ECHO_PIN 3\n#define MESHTASTIC_UART_TX_PIN 4\n#define MESHTASTIC_UART_RX_PIN 5\n```\n\n## Building\n\n### Prerequisites\n\n1. Install the Raspberry Pi Pico SDK\n2. Set the `PICO_SDK_PATH` environment variable\n\n```bash\nexport PICO_SDK_PATH=/path/to/pico-sdk\n```\n\n### Build Steps\n\n```bash\nmkdir build\ncd build\ncmake ..\nmake\n```\n\nThis will generate `waverider.uf2` file.\n\n## Flashing\n\n1. Hold the BOOTSEL button on your Pico while connecting it to your computer\n2. Copy the `waverider.uf2` file to the mounted Pico drive\n3. The Pico will automatically reboot and run the application\n\n## Usage\n\n1. Connect the sonar sensor and Meshtastic radio as per the wiring diagram\n2. Power on the Pico\n3. The application will:\n   - Initialize the sonar sensor and radio\n   - Start reading the sonar sensor at configured intervals\n   - Transmit JSON data to the Meshtastic network\n   - Poll the radio for status information\n\n## Data Format\n\nThe application transmits data in JSON format:\n\n```json\n{\n  \"sensor\": \"sonar\",\n  \"distance_cm\": 45.67,\n  \"timestamp\": 123456,\n  \"radio_status\": {\n    \"battery_level\": 75,\n    \"rssi\": -80,\n    \"channel_util\": 20\n  }\n}\n```\n\n## Monitoring\n\nConnect to the Pico via USB serial (115200 baud) to see debug output:\n\n```bash\n# Linux/Mac\nscreen /dev/ttyACM0 115200\n\n# Or use minicom\nminicom -D /dev/ttyACM0 -b 115200\n```\n\n## Troubleshooting\n\n### Sonar sensor not reading\n- Check wiring connections\n- Ensure VCC is connected to 5V (VBUS)\n- Verify ECHO voltage is safe for GPIO (use voltage divider if needed)\n\n### No data transmitted\n- Verify Meshtastic radio is powered and configured\n- Check UART connections (TX/RX not swapped)\n- Ensure radio is on the same channel as configured\n\n### Build errors\n- Ensure Pico SDK is properly installed\n- Verify `PICO_SDK_PATH` environment variable is set\n- Try `PICO_SDK_FETCH_FROM_GIT=1` to auto-download SDK\n\n## License\n\nSee LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinuxha%2Fwaverider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinuxha%2Fwaverider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinuxha%2Fwaverider/lists"}