rbaron
d215d5f4a7
Sets transmitting power to +8dB
2021-03-31 18:37:50 +02:00
rbaron
ff97d080d7
Refactors ESPHome example
2021-03-28 10:48:25 +02:00
rbaron
3c7180fefa
Adds run_counter to ble advertising packet
2021-03-28 10:44:33 +02:00
rbaron
37fd1173ec
Sets MAC address to a random static value
2021-03-26 17:18:38 +01:00
rbaron
6ec48b7188
Puts soil moisture reading into the BLE advertisement packet
2021-03-26 16:30:09 +01:00
rbaron
30162f4628
Cleans up logging
2021-03-26 13:45:28 +01:00
rbaron
2aa0ffc27b
Some debugging info
2021-03-26 11:43:55 +01:00
rbaron
c2e3723eb0
Adds temp and humidity values to the BLE advertisement packet
2021-03-26 10:49:28 +01:00
rbaron
81b33fbd8c
Handles SHT3C sensor
...
...And this is the first time I'm flashing the firmware into a real
b-parasite board!
2021-03-26 10:29:54 +01:00
rbaron
25772def7e
ADC works for measuring the battery voltage
2021-03-17 19:08:17 +01:00
rbaron
b521e3f0f6
A hacky fix for PWM + TWI
2021-03-15 22:40:09 +01:00
rbaron
02df5f4595
Initial shtc3 TWI/I2C implementation
...
Weirdly, it only works ~1/5 of the time.
2021-03-14 16:55:24 +01:00
rbaron
fb07a1244c
PWM start/stop in RTC callback.
...
I initially tried calling prst_pwm_init() in main(), and just using start/stop in
the callback, but that led to a weird behavior in the PWM output. It was set to
high after the end of the callback.
Callnig uninit/re-calling init() inside the RTC callback fixed, but more investigation
is required.
2021-03-14 15:03:33 +01:00
rbaron
05dcb9de84
Hard coded PWM with 500kHz frequency works
2021-03-14 14:30:32 +01:00
rbaron
cf2725e028
Adds dynamic data to ble advertisement
...
I am very tempted to drop all the ble advertisement abstraction and deal directly with the
31-byte raw payload.
2021-03-14 11:50:26 +01:00
rbaron
20243a26a2
Extracted BLE to src/prst/ble.{c,h}
2021-03-14 11:06:45 +01:00
rbaron
a5c932def2
Extracts RTC stuff to src/rtc.{c,h}
2021-03-13 16:49:55 +01:00
rbaron
80548f2db9
Removes wrong + markings from the PCB silkscreen
2021-03-13 14:57:05 +01:00
rbaron
7ef278fe40
Initial b_parasite code - a fork from playground
2021-03-13 14:56:37 +01:00
rbaron
e99f95f0a5
Plotted v1.0.0
2021-03-12 20:20:03 +01:00
rbaron
3ad78c0673
b-parasite v1.0.0
2021-03-12 19:25:35 +01:00
rbaron
b283f9e12b
ble-rtc-low-power-advertiser works with an external XTAL
2021-03-11 22:28:49 +01:00
rbaron
ce59908a4e
Adds ble-app-blinky
2021-03-11 21:30:25 +01:00
rbaron
f21011ed2c
Updates schematic - disconnects USB shield from GND
2021-03-11 20:23:37 +01:00
rbaron
945663e70b
Plotted gerbers for parasite52832
2021-02-24 07:58:44 +01:00
rbaron
66234ce256
Adds sht30 temperature and humidity sensor
2021-02-23 22:17:48 +01:00
rbaron
5c81a37d86
Add saadc-vcc-nrf52832 playground example
...
It samples its own VDD without any external circuit!
2021-02-23 22:16:58 +01:00
rbaron
91380796cf
Some minor adjustements on pcbnew
2021-02-23 19:00:53 +01:00
rbaron
9106585305
Initial commit with parasite52832
2021-02-23 18:44:48 +01:00
rbaron
a06dfbfaec
Introduces ble-rtc-low-power-advertiser
2021-02-22 14:13:19 +01:00
rbaron
b29ad7d217
Adds ble-rtc-advertiser nrf_sdk example
2021-02-21 15:18:07 +01:00
rbaron
405277ae19
Adds ble-advertiser nrf_sdk example
2021-02-21 14:14:15 +01:00
rbaron
963500587e
Adds ble-beacon to nrf_sdk playground
2021-02-21 12:30:26 +01:00
rbaron
b470bf4d14
Some notes on low power modes
2021-02-21 11:04:04 +01:00
rbaron
41690a7198
Fixes rtc playground example
2021-02-20 12:24:31 +01:00
rbaron
e4bc5cc1f4
nrf_dfk rtt playground example
2021-02-20 12:10:54 +01:00
rbaron
9d352b2181
simple_timer nrf_sdk playground example.
...
This uses the app_simple_timer library, which uses the high frequency clock
for keeping track of time.
In reality, we want to use the low frequency clock with RTC, since it's much
more power efficient and we don't need high precision.
2021-02-20 10:17:10 +01:00
rbaron
7c222f1729
Add a blinky_rtt example with RTT logging
2021-02-20 09:17:31 +01:00
rbaron
529412e0ed
Add a non-Arduino, nrf5 SDK only blinky playground project
2021-02-19 20:37:07 +01:00
rbaron
5ca930d5da
Investigating a weird high current consumption.
2021-02-19 18:38:53 +01:00
rbaron
fb48ad7da7
Implement ADC correction for the soil sensor for a range of input voltages
2021-02-19 10:35:25 +01:00
rbaron
5b3c6a471d
Some battery saving improvements
...
Got it working on the nrf52840 breakout board!
2021-02-17 22:40:03 +01:00
rbaron
972f5507f4
Notes on nrf52840 breakout
2021-02-16 18:09:24 +01:00
rbaron
fa99707053
Experiments with SoftwareTimer
2021-02-15 21:50:15 +01:00
rbaron
efe2fa1f69
Silly timer implementation
...
I'm starting to explore ways to get into sleep. It seems like I need to:
1. Set/schedule an RTC interrupt
2. Get into the System ON sleep mode
2021-02-14 17:09:52 +01:00
rbaron
321e70a188
Add battery level to the BLE advertisement packet
2021-02-14 13:15:41 +01:00
rbaron
9c2d95569d
Extracts soil reading to SoilMonitor
2021-02-14 12:43:00 +01:00
rbaron
4c30ff3549
Adds a simple battery monitoring circuit and analog to digital measuring.
2021-02-14 10:59:18 +01:00
rbaron
6c4b57f2b0
Extracts BLE internals to a BLEAdvertising class
2021-02-13 17:11:36 +01:00
rbaron
8d01cd3b7e
Extracted BLE advertisement packet building logic to BLEAdvertisementData
2021-02-13 15:26:44 +01:00