Skip to content

Commit

Permalink
Better serial debug
Browse files Browse the repository at this point in the history
- Improved (debug) logging to serial output
- BME sends -127°C (link DS18x) if no sensor was found
  • Loading branch information
foorschtbar committed Oct 7, 2021
2 parents c86ee87 + 1bc1eef commit 464e1e5
Show file tree
Hide file tree
Showing 4 changed files with 264 additions and 255 deletions.
Binary file added .github/pcb_real.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
A LoRaWAN sensor node for The Things Network, based on an ATMEGA328P (Arduino Pro Mini) and RFM95W/SX1276 LoRa transiver module.

![PCB Front Assembled](.github/pcb_front_assembled.png)
![PCB Front Assembled](.github/pcb_real.jpg)

The module can be used:
- Collect various climate values with environmental sensors. See [Environmental (Weather/Clima) Sensor](#environmental-weatherclima-sensor).
Expand Down Expand Up @@ -81,8 +82,15 @@ Example:
avrdude -F -v -c arduino -p atmega328p -P COM4 -b 57600 -D -U flash:w:firmware_1.0_config.hex:i
```

## BOM
- TBD :warning:

## Firmware Changelog

### Version 2.1
- Improved (debug) logging to serial output
- BME sends -127°C (link DS18x) if no sensor was found

### Version 2.0
- Added wake up trough interrupt pins
- Added option for disable interrupt pins
Expand Down
14 changes: 7 additions & 7 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,22 @@ build_flags =
-D USE_IDEETRON_AES
-D MIC_ENABLE_arbitrary_clock_error
-D VERSION_MAJOR=2
-D VERSION_MINOR=0
-D VERSION_MINOR=1

[env:config]
build_flags =
${env.build_flags}
-D DEBUG_PRINT
-D CONFIG
-D LOG_DEBUG
-D CONFIG_MODE
-D SERIAL_RX_BUFFER_SIZE=256

[env:release]
[env:debug]
build_flags =
${env.build_flags}
-D LOG_DEBUG
-D SERIAL_RX_BUFFER_SIZE=0

[env:debug]
[env:release]
build_flags =
${env.build_flags}
-D DEBUG_PRINT
-D SERIAL_RX_BUFFER_SIZE=0
-D SERIAL_RX_BUFFER_SIZE=0
Loading

0 comments on commit 464e1e5

Please sign in to comment.