🌱💧 An open source DIY soil moisture sensor
Find a file
rbaron 7ac6d98b3b [ble] Make advertising non-connectable
I've been debugging a Shelly [bluetooth
proxy](https://www.home-assistant.io/integrations/shelly/#bluetooth-support)
feature, which didn't like b-parasite's advertising. It swallowed it before proxying it to HA.

I compared to both ATC and the legacy b-parasite advertising
(pre-nrf-connect) and found it to be related to the
non-connectable/non-scannable settings. Until this PR, we were
mistankenly settings the advertising to scannable, although with no
scannable data. The Zephyr code that sets this parameter based on the
scannable data is [here](c0fcd35531/subsys/bluetooth/host/adv.c (L860)).

My bet is that some scanners like ESPHome are okay with this, but Shelly
is not. Either way, I believe this PR makes the advertisements more
compliant.
2023-04-16 12:28:23 +02:00
.devcontainer Update containers to use SDK 2.2.0 2023-01-22 19:03:34 -05:00
.github Remove hardware-v2 from workflow triggers 2023-03-30 07:57:37 +02:00
bridge Defaults to BLE protocol version 1 2022-03-15 08:52:37 +01:00
case Add files via upload 2023-03-10 21:17:13 -08:00
code [ble] Make advertising non-connectable 2023-04-16 12:28:23 +02:00
data/adc-moisture-estimation Sets transmitting power to +8dB 2021-03-31 18:37:50 +02:00
experimental/rotisserie Adds missing base.stl to experimental/rotisserie 2022-11-08 19:19:08 +01:00
flashing/pyocd Fixed typo in readme and changed meaning of the sentence to better reflect the actual situation. 2022-10-23 19:00:57 +02:00
img Update README.md with photo of v2.0.0 board 2023-03-30 19:20:33 +02:00
kicad Update date on pcbnew 2023-03-19 15:06:39 +01:00
.gitignore Adds a simple battery monitoring circuit and analog to digital measuring. 2021-02-14 10:59:18 +01:00
kitspace.yaml Add gerbers field to kitspace.yaml 2023-01-30 22:42:11 +00:00
README.md Update README.md with photo of v2.0.0 board 2023-03-30 19:20:33 +02:00

b-parasite firmware build

b-parasite

PCB front and back photo

b-parasite is an open source soil moisture and ambient temperature/humidity/light sensor.

Features

Software

This repository also hosts a few different firmware samples for b-parasite.

Sample Description Extra Documentation
samples/ble This is the most battle-tested and useful firmware. It periodically reads all sensors and broadcast them via Bluetooth Low Energy (BLE). It works with Home Assistant out of the box. Docs
samples/zigbee An experimental/educational/exploratory basic Zigbee sample built on nRF Connect + ZBOSS. It integrates with Home Assistant via ZHA or Zigbee2MQTT. Docs
samples/blinky The classic "Hello, world" -
samples/soil_read_loop Reads the soil moisture sensor on a loop. Useful for experimenting and calibrating the sensor. -
samples/input Handles button presses. Useful for power profiling GPIO interrupts and testing debouncing for push switches on boards that have them. -

Documentation

Information about how to order, assemble, build the samples, protect the sensor and flash the firmware is on the Wiki.

Repository Organization

b-parasite stuck into a small plant vase

Case

A 3D printable case model can be found in case/. Render of the 3D printable case

License

The hardware and associated design files are released under the Creative Commons CC BY-SA 4.0 license. The code is released under the MIT license.