-
1DIY
Required Hardware:
1. ESP-EYE
a. Optional ESP-EYE case
2. PyPortal
a. Optional PyPortal case
3. Two 3.3v usb to outler adapters and two usb to usb mini cables
OR
4. Two 3.3v micro usb wall outlet chargers
Build Steps:
1. Clone the on-air repo.
Cloudflare Worker:
-
Setup Cloudflare DNS records for your domain and endpoint, or setup a new domain with Cloudflare if you don’t have one to resolve the endpoint.
-
Setup a Cloudflare workers account with worker K/V.
-
Setup the Wrangler CLI tool.
-
`cd` into the `on-air/sighandler` directory.
-
Update `wrangler.toml`
-
Run `wrangler preview`
-
`wrangler publish`
-
Update `Makefile` with your domain and test calling.
PyPortal:
- Setup CircuitPython 5.x on the PyPortal.
- If you’re new to CircuitPython you should read this first.
Go to the directory where you cloned on-air.
`cd` into display.
Update `secrets.py` with your wifi information and status URL endpoint.
You may also want to adjust the timeframe when the display is asleep (9PM - 6AM EST/ -5 UTC)
Copy `code.py`, `secrets.py` and the bitmap files in `screens/` to the root of the PyPortal.
The display is now good to go.
ESP-EYE:
- Setup `esp-idf` using the 4.1 release branch.
- Install espeak and sox.
- Setup a Python 3.7 virtual environment and install Tensorflow 1.15.
- `cd` into `on-air/voice-assistant/train`
- `chmod +x orchestrate.sh` and `./orchestrate.sh`
- Once training completes `cd ../smalltalk`
- Activate the `esp-idf` tooling so that `$IDF_PATH` is set correctly and all requirements are met.
- `idf.py menuconfig` and set your wifi settings.
- Update the URL in `toggle_status.cc`
- This should match the host and endpoint you deployed the Cloudflare worker to above
- `idf.py build`
- `idf.py --port <device port> flash monitor`
- You should see the device start, attach to WiFi and begin listening for the wake word “visual” followed by “on” or “off”.
-
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.