Commit graph

337 commits

Author SHA1 Message Date
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
rbaron
9ff5180cd7
Merge pull request #117 from rbaron/hardware-v2
Version 2.0.0
2023-03-30 19:30:06 +02:00
rbaron
fdf4609131 Update README.md with photo of v2.0.0 board 2023-03-30 19:20:33 +02:00
rbaron
00d11f50a7 Remove hardware-v2 from workflow triggers 2023-03-30 07:57:37 +02:00
rbaron
caec746c26 Mentions input sample in README.md 2023-03-30 07:57:07 +02:00
rbaron
cb40173b6b Remove debug info 2023-03-29 21:46:41 +02:00
rbaron
ebc26fcccd Cleanups 2023-03-29 21:42:41 +02:00
rbaron
dbded329a4 Build input sample as part of the CI 2023-03-29 21:30:16 +02:00
rbaron
e82c1b6bc1 Implements button handling
- DTS bindings
- Debouncing logic
- New `input` for testing and interrupt power profiling
2023-03-29 21:28:24 +02:00
rbaron
2c052cd376
Merge pull request #116 from oleo65/zigbee-identify-callback
Added zigbee identify callback
2023-03-27 19:36:59 +02:00
Ole Odendahl
20d6c893bf
Added callback for handling identify button action as declared in identify cluster. 2023-03-27 12:20:03 +02:00
rbaron
02b3970ffc Shorten job names 2023-03-19 16:45:55 +01:00
rbaron
6c618d946c Fixes workflow matrix variables and debug 2023-03-19 16:37:33 +01:00
rbaron
ead6fd434d Refactor github actions into parallel jobs 2023-03-19 16:26:12 +01:00
rbaron
bf9f4e1b5b Get GitHub to build some samples for 2.0.0 2023-03-19 15:26:58 +01:00
rbaron
a6995d1ce8 Update date on pcbnew 2023-03-19 15:06:39 +01:00
rbaron
c7128ef163 Generate fabrication files 2023-03-19 15:06:39 +01:00
rbaron
5eef25f86b Updates SW1 location and pin
Previous, SW1 was too close to RST, making it difficult to press one
without pressing another. After changing its position, it was more
convenient to route SW1 to pin 10 on U1 - That's P0.30/AIN6 both on
nRF52840 (C) and nRF52833 (E) modules.
2023-03-19 15:06:39 +01:00
rbaron
19e0354113 Fixes Q1 in PCB layout. I think 2023-03-19 15:06:39 +01:00
rbaron
5cc40a41f6 Set calibration coefficients for 2.0.0 2023-03-19 15:06:39 +01:00
rbaron
7f652ce75d BIG YIKES - Fix wrong symbol/footprint for MMBT3906 (Q1)
I previously used a basic 2N3906 and then changed its footprint to
SOT-23. This led to the wrong pin assignment.
This commit fixes it by using the correct symbol and footprint for it.

Note that the PCB layout still needs fixing.
2023-03-19 15:06:39 +01:00
rbaron
b34bc60a0a Actually use the devicetree calibration coeffs 2023-03-19 15:06:39 +01:00
rbaron
2f7a25e266 Add devicetree calibration coeffs to nrf52833 board 2023-03-19 15:06:39 +01:00
rbaron
e24530b7c3 Fix devicetree-coeffs bug 2023-03-19 15:06:39 +01:00
rbaron
1983f31af9 Store calibration polynomial in devicetree
This will enable us to transparently use different calibration for
different board revisions. The 2.0.0 revision changes the sensing
circuitry and will need its own coeffs.

In this commit, both models are run in parallel for debugging.
2023-03-19 15:06:39 +01:00
rbaron
dbf288138e Add 2.0.0 board revision & CONFIG_BOARD_REVISION Kconfig 2023-03-19 15:06:39 +01:00
rbaron
53f806a8e5 Fix stale silkscreen 1.2.0 -> 2.0.0 2023-03-19 15:06:39 +01:00
rbaron
cfc5491849 Plotted gerbers 2023-03-19 15:06:39 +01:00
rbaron
8dceb6c7cc Plot PDF & generate BOM 2023-03-19 15:06:39 +01:00
rbaron
a79c1579f3 Fix drawing 2023-03-19 15:06:39 +01:00
rbaron
e71eaf9823 Routed 0.10 to a new test pad 2023-03-19 15:06:39 +01:00
rbaron
df6e327947 Slightly better routing 2023-03-19 15:06:39 +01:00
rbaron
b3ae950ee0 Adds sketch of RC circuit in silkscreen 2023-03-19 15:06:39 +01:00
rbaron
1a2dcbb70b Initial routing complete 2023-03-19 15:06:39 +01:00
rbaron
03a281fada New PWM testpoint and added LCSC part # for the E73 module 2023-03-19 15:06:39 +01:00
rbaron
123149d3d2 Some initial hardware changes for the 2.0.0 revision
- Simplified the fast discharge circuit to use a single PNP BJT instead
of two NPN BJTs
- Swapped nRF52 module's footprint for one with larger pads
- Added a user button tied to P0.12 (same as Button 2 from [nrf52840_dk](https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_nrf52840_dk%2FUG%2Fdk%2Fhw_buttons_leds.html))
- Added a reset switch

These are only schematic changes - PCB layout is stale and needs to be
recreated.
2023-03-19 15:06:39 +01:00
rbaron
d5a548a110
Merge pull request #110 from lonewolf896/main
Modified the high airflow case
2023-03-11 07:28:47 +01:00
Garrett Elkins
1ffc876ad0
Add files via upload 2023-03-10 21:17:13 -08:00
Garrett Elkins
34ddee5ea3
Delete b-parasite-high-airflow.stl 2023-03-10 21:17:00 -08:00
Garrett Elkins
3959abbf03
Delete b_parasite_case_high_airflow.stl 2023-03-10 21:16:52 -08:00
Garrett Elkins
2bff7d8741
Delete b-parasite-high-airflow.3mf 2023-03-10 21:16:18 -08:00
Garrett Elkins
abe8845c4b
Delete b_parasite_case_high_airflow.3mf 2023-03-10 21:16:04 -08:00
Garrett Elkins
40a8676e59
updated high airflow model
modified the high airflow model to increase the print reliability
2023-03-10 21:15:26 -08:00
rbaron
5e315ba9cd [ble] Update connection interval docs & power profile
Closes #98
2023-02-12 16:13:55 +01:00
rbaron
7be5fe1669 [ble] Bumps default advertising interval to [30, 40] ms
This makes the BLE sample use the same parameters as the legacy
firmware, and immproves the range.
2023-02-12 16:02:51 +01:00
rbaron
d292190d31
Merge pull request #103 from MJDSys/fix_battery_information 2023-02-02 08:14:47 +01:00
Matthew Dawson
d3bcc13749
Fix battery quantity/size reporting
The API for reporting information requires a pointer to the data value,
and cannot deal with a constant directly.  The current quantity/size
returned by the device are random values from memory.

Instead move these values into the prst_batt_attrs_t struct and
set their values in prst_zb_attrs_init.
2023-02-02 00:43:13 -05:00
rbaron
4b277bd62f
Merge pull request #12 from kitspace-forks/main 2023-01-31 07:54:05 +01:00
Kaspar Emanuel
ee708db400 Add gerbers field to kitspace.yaml 2023-01-30 22:42:11 +00:00
Kaspar Emanuel
05e25d166a Add kitspace.yaml 2023-01-30 22:42:03 +00:00