Commit graph

213 commits

Author SHA1 Message Date
hallsny
e1ec8fd5a8
high airflow case design stl and 3mf files 2022-10-10 13:16:10 -07:00
rbaron
220ff6ec61
Merge pull request #64 from rbaron/rotisserie
Open sources the rotisserie / spinning drying jig
2022-09-29 23:25:58 +02:00
rbaron
0c7222d199 Open sources the rotisserie / spinning drying jig
Fixes #63
2022-09-29 23:21:32 +02:00
rbaron
9c2c3d7c3a
Merge pull request #62 from sairon/cheaper-lcsc-r10
replace R10 LCSC part with equivalent without extra fee
2022-09-29 22:56:19 +02:00
Jan Čermák
f44e91f865
replace R10 LCSC part with equivalent without extra fee 2022-09-29 20:28:56 +02:00
rbaron
b0cbba00c4
Merge pull request #57 from Hedda/patch-1
nrf2480 / nrf2833  -> nRF52840 / nRF52833
2022-09-09 17:00:59 +02:00
Hedda
c339538913
Makefile comment nrf2480 -> nRF52840
Makefile comment nrf2480 -> nRF52840
2022-09-09 16:53:01 +02:00
Hedda
314a7f2fe3
README.md nrf2480 -> nRF52840
README.md nrf2480 -> nRF52840
2022-09-09 16:51:33 +02:00
rbaron
7ebfe7e399
Update "Battery Life" section in README.md
Fixes #48.
2022-09-09 16:25:48 +02:00
rbaron
82eabe778a Fixes BTHome encoding 2022-08-30 21:02:51 +02:00
rbaron
5c1ea4a164
Merge pull request #53 from rbaron/bthome
Adds support for the BTHome BLE protocol
2022-08-29 21:35:27 +02:00
rbaron
81f0af3cf2 Fixes humidity factor & removes illumminance
The reason for removing illuminance is to leave enough space for the
full name AD element "prst". There may be options for also sending the
illuminance (extended adv, scan response etc), with different power
consumption/overhead/complexity tradeoffs. For now let's keep it simple.
2022-08-29 21:17:17 +02:00
rbaron
ce4c496f4d Uses newly minted 0x14 sensor type for moisture
I also comment out the illiminance sensor, since we need the space for
encoding the device's name - "prst".
2022-08-28 22:47:21 +02:00
rbaron
6ea0bb8525 First stab at an alternative, BTHome compatible BLE protocol
This protococol (https://bthome.io/) allows for automatic sensor
detection in Home Assistant, as long as the device broadcasts its
sensors in the expected format.
2022-08-28 18:58:16 +02:00
rbaron
cc8dcf9240
Merge pull request #49 from rbaron/sleep-adv
Advertises while in deep sleep
2022-08-11 08:42:39 +02:00
rbaron
5cfd69479a Advertises while in deep sleep.
Related to the investigation in #48
2022-08-08 19:34:07 +02:00
rbaron
a7732f106b Introduces new config flag PRST_BLE_EXPERIMENTAL_LONG_RANGE
This flags makes use of the Coded PHY from Bluetooth 5. It should be
treated as an experimental feature and it's disabled by default.
Note that clients (such as ESPHomme) would also have to scan on the
Coded PHY to be able to find b-parasites operating in this mode.
Currently, no client does that. Thus the feature is disabled and marked
as experimental.
2022-08-03 23:14:06 +02:00
rbaron
0e9b9feb97
Merge pull request #47 from perja12/perja/whitespace
Fix a couple of spelling errors and white spaces
2022-07-07 18:33:59 +02:00
Per Thomas Jahr
d56f60ceef Fix a couple of spelling errors and whitespaces. 2022-07-07 10:03:21 +02:00
rbaron
e7f7f96797 Moves KiCad project file to KiCad 6
Moved the Q4 photodiode footprint dot (representing the collector) so
it's more clearly visible. Hopefully it will help addressing the
recurring confusion about Q4's orientation (#3, #42).
2022-05-18 20:13:58 +02:00
rbaron
6382167efb
Merge pull request #35 from drspangle/case-top-features
Added new alternative case cover with gas exchange holes, cutout for photosensor, pry slots
2022-04-28 22:35:50 +02:00
Daniel Smullen
8b80fe6db0 Reorganized case files
+STEP file now contains both case top versions
+Restored original Top STL (without holes)
+Added new Top-holes STL (has the holes for the photosensor and humidity sensor)
2022-04-28 16:25:53 -04:00
Daniel Smullen
e047929617 Added gas exchange holes, cutout for photosensor, pry slots 2022-04-28 13:11:32 -04:00
rbaron
59d28c729a
Merge pull request #30 from rbaron/ble-protocol-v2
Implements BLE protocol v2
2022-03-15 08:58:43 +01:00
rbaron
99abae6f50 Adds comment about valid BLE protocol versions 2022-03-15 08:56:06 +01:00
rbaron
0d307d8ef5 Defaults to BLE protocol version 1
I'll keep it at v1 until at least the ESPHome and Home Assistant bridges
versions are released with support to v2.
2022-03-15 08:52:37 +01:00
rbaron
b4acd3fad7 Unsets debug flags 2022-03-14 18:25:09 +01:00
rbaron
8fd4d7222a Implements BLE protocol v2
The only change from v1 is how the temperature is encoded. In v2, two
bytes at offset 4 and 5  represent a 16-bit signed int (in big-endian).
It contains the temperature in degrees Celsius *  100.

Fixes #29
2022-03-14 18:23:49 +01:00
rbaron
77f398757a Fixes MAC address in the BLE advertisement packet
The bug was introduced in https://github.com/rbaron/b-parasite/pull/26.
2022-02-12 18:38:57 +01:00
rbaron
1abff035cb Adds PRST_BLINK_LED config to save battery 2022-02-12 18:37:43 +01:00
rbaron
03dab21dca
Merge pull request #26 from rbaron/rand-mac 2022-01-07 08:40:59 +01:00
rbaron
e16f61509c Add support for using the nRF52 preprogrammed random MAC address
Each nRF52 chip comes preprogrammed with a random static MAC address.
This is the default MAC address that is used if we don't specify one.

Fixes #25
2022-01-06 22:12:34 +01:00
rbaron
742ae103da Adds the Home Assistant custom component integration to README.md
Fixes #24. Thanks @jhbruhn!
2022-01-06 21:31:49 +01:00
rbaron
9572e5ba16 Fixed LCSC part number for resistor R10
Fixes #23
2021-12-13 18:43:52 +01:00
rbaron
989012576e Removes C_para from BOM file
The C_para is just a virtual capacitor, formed by the PCB traces, and
should not have an entry in the BOM file.
2021-10-17 23:37:56 -03:00
rbaron
4a3625f1eb
Adds Wiki links to README.md 2021-10-16 14:37:19 +02:00
rbaron
3bccb0520f
Merge pull request #18 from rbaron/phototransistor
Adds phototransistor

Closes #4
2021-10-16 13:57:21 +02:00
rbaron
452cf3f623 Updates README.md with light sensor info 2021-10-09 10:27:05 +02:00
rbaron
6528565fad Moves photoresistor all the way to the top & adds test pad 2021-10-09 10:16:42 +02:00
rbaron
85643fe41e Cleans up debugging code 2021-10-09 09:33:50 +02:00
rbaron
79384cd6b2 Accidentally cleaned up too much 2021-10-09 09:33:23 +02:00
rbaron
ded36d1c3d Cleanup leftover tests 2021-10-09 09:33:23 +02:00
rbaron
697e0022d1 Plots fabrication files 2021-10-09 09:33:23 +02:00
rbaron
bebf8c0a13 Adds code for reading the phototransistor values 2021-10-09 09:33:23 +02:00
rbaron
d3ed9a3311 Fixes Q4 (phototransistor footprint)
It was not marked as SMT, so the exported position file didn't include
it.
2021-10-09 09:33:23 +02:00
rbaron
934f9cc883 Plots fabrication files
This also adds ~15mm to the length of the board. This extra clearance
should help prevent shorts when watering plants.
2021-10-09 09:33:23 +02:00
rbaron
5ee0fa52fe First step in adding the phototransistor
- Updates schematic
- Updates the PCB layout
- Generated BOM file
2021-10-09 09:33:23 +02:00
rbaron
16d1a21433
Merge pull request #16 from jhbruhn/feature/photo_fix_overflow
Fix ADC Overflow with dark environment
2021-09-30 18:18:09 +02:00
Jan-Henrik Bruhn
44adefedb3 Fix overflow in very dark or noisy situations 2021-09-30 10:24:51 +02:00
rbaron
141add87bb
Merge pull request #6 from yuvalabou/main
Adds photoresistor

This PR introduces a photoresistor (LDR) on the board. The code has also been updated for sampling the LDR, estimating the illuminance in lux and encoding that value in the BLE payload.
2021-09-24 19:11:56 +02:00