Skip to content

Latest commit

 

History

History
42 lines (24 loc) · 2.22 KB

File metadata and controls

42 lines (24 loc) · 2.22 KB

lora-button-example

Example sketch for the "Lora Button" board by Iotdevices.

This is essentially adapted from my Mini Lora example code, and from the documentation available with the Lora Button board.

Enclosure, battery

An enclosure for the board, as well as some details about the hardware used (battery, screws) are available here: Enclosure for LoRa Button.

board in box

Programming

To flash the Arduino bootloader, I used my nano-as-isp PCB with the pogo pins ICSP adapter. Note that I had to add a 10 uF capacitor between the RST and GND pins of the Nano used for flashing (see details on the linked page).

To program the board I did not solder headers either, but used a 3.3V FTDI to USB adapter along with a clamp with pogo pins.

programming

Voltage Divider

A feature I appreciate with the board is the availabiliy of a voltage divider to read the battery level. I've configured the jumpers as follows:

jumpers

This means:

  • the onboard LDO is enabled (SJ1) - as I power the board with a 3.7V LiPo battery
  • the voltage divider measures the RAW input (SJ2) - same reason
  • the voltage divider is controlled by PD7 (SJ3) - this probably saves power, as the VD is disabled between readings by setting the pin as input

The initial tests I ran seem to indicate that by following the instructions in the documentation, one can achieve a fairly good accuracy (down to +- 0.01V).

Additional Libraries

You will need the following additional libraries: