Loading 3D model… large boards can take a moment.
A LoRaWAN sensor node, based on ATmega328P MCU (Arduino Pro Mini) and RFM95W/SX1276 LoRa Transceiver.
The module can be used:
LoRaProMini does not take care of the compliance with the duty cycle limitation. Please select only transmission intervals that are within the legal limits (1%/0.1%). Please also note that the interrupt inputs may cause additional transmissions if this function is activated.
:point_up: I still have a few PCBs left. If you are interested please contact me. Contact details can be found here: https://github.com/foorschtbar or visit my Tindie store:
MAC V1.0.3avrdude-F -v -c arduino -p atmega328p -P <COM PORT> -b 57600 -D -U flash:w:<FIRMWARE FILE>:i
Example:
avrdude -F -v -c arduino -p atmega328p -P COM4 -b 57600 -D -U flash:w:firmware_1.0_config.hex:i
function decodeUplink(input) {
var bytes = input.bytes;
var itrTrigger = (bytes[0] & 0x1) !== 0; // Message was triggered from interrupt (bit 0)
var itr0 = (bytes[0] & 0x2) !== 0; // Interrupt 0 (bit 1)
var itr1 = (bytes[0] & 0x4) !== 0; // Interrupt 1 (bit 2)
var bat = (bytes[1] << 8) | bytes[2]; // Battery
var fwversion = (bytes[3] >> 4) + "." + (bytes[3] & 0xf); // Firmware version
var temp1 = (bytes[4] & 0x80 ? 0xffff << 16 : 0) | (bytes[4] << 8) | bytes[5]; // BME Temperature
var humi1 = (bytes[6] << 8) | bytes[7]; // BME Humidity
var press1 = (bytes[8] << 8) | bytes[9]; // BME Pressure
var temp2 =
(bytes[10] & 0x80 ? 0xffff << 16 : 0) | (bytes[10] << 8) | bytes[11]; // DS18x Temperature
var mbStatus = "UNKNOWN";
if (itr0) {
mbStatus = "FULL";
} else if (itr1) {
mbStatus = "EMPTY";
}
return {
data: {
interrupts: {
itr0: itr0,
itr1: itr1,
itrTrigger: itrTrigger,
},
extra: {
mbStatus: mbStatus,
mbChanged: itrTrigger,
},
fwversion: fwversion,
bme: {
temperature: temp1 / 100,
humidity: humi1 / 100,
pressure: press1,
},
ds18x: {
temperature: temp2 / 100,
},
battery: bat / 100,
},
warnings: [],
errors: [],
};
}
No comments yet. Be the first to ask about this board.