Ribbit-Network / ribbit-network-frog-hardware

The sensor for the world's largest crowdsourced network of open-source, low-cost, GHG Gas Detection Sensors.
https://www.ribbitnetwork.org/
MIT License
94 stars 26 forks source link

Programmatically Set Device Tree Configuration #66

Closed keenanjohnson closed 1 year ago

keenanjohnson commented 2 years ago

In order to enable the USB Power on the Wavehsare Carrier board we use for the Raspberry PI CM4, a dt_overlay variable must be set. Wiki link to the documentation.

dtoverlay=dwc2,dr_mode=host

Previously I've been setting this via the Balena Web UI, however, this makes this configuration obscure and not obvious to the Open Source community. We should consider setting this programmatically in code.

keenanjohnson commented 2 years ago

We should add the changes made as part of #61 in this changeset. Currently the settings below are set via the balena web UI.

t_params = "i2c_arm=off","i2c-gpio=on"
dt_overlay = "dwc2,dr_mode=host","i2c-gpio,bus=11,i2c_gpio_delay_us=100,i2c_gpio_sda=2,i2c_gpio_scl=3"
keenanjohnson commented 2 years ago

@djgood fyi in case you are ever messing with anything until I finish this item.

keenanjohnson commented 1 year ago

We're moving to an esp32-based frog for the foreseeable future, so closing this won't fix fow now. Perhaps once the global supply chain clears up a bit, we will revisit this.

New software repo below:

https://github.com/Ribbit-Network/ribbit-network-frog-software