Groundwater meter challenge

The absolute basics: step-by-step

Getting the software platform

  1. Install the Arduino IDE. Download here
  2. (If you’re on Mac) Install the driver for the FTDI (USB to UART adapter) Download here
  3. Configure Arduino IDE:
    1. Select board: Tools > Board: .. > Arduino Pro or Pro Mini
    2. Select board variant: Tools > Processor: .. > ATMega328 (3.3V, 8 Mhz)
    3. Select port: Tools > Port > (USB port name)
    4. Install RN2483 library: Follow instructions here.
    5. Install SoftwareSerial library from the Library Manager.

Getting the hardware ready

  1. Solder headers to the Arduino. Check here for more details
  2. On the back of the FTDI (USB to UART brige), cut the 5V trace and solder the 3V3 jumpers. Check this detailed photo.
  3. Connect FTDI (USB to UART brige) to the Arduino Pro Mini. The connections should look like this.
  4. Plug the Arduino Pro Mini and the RN2483 into the breadboard.
  5. Make sure you have the LoRaWAN antenna connected!


Arduino Pro Mini RN2483
pin 2 RST
pin 7 TX
pin 8 RX

Final result

Apps and Devices on TTN

  1. Create a TTN account if you haven’t done so already.
  2. Log in to the TTN Console.
  3. Go to Applications, and add application (if you don’t have one already)
    1. Give it a descriptive name on the Application ID field.
    2. Leave the default handler ttn-handler-eu
    3. Click add application
  4. Go to your application to register a new device:
    1. Click on Devices tab and register device
    2. Give it a descriptive name on the Device ID field.
    3. Click the little cross-arrows icon on Device EUI to generate one.
    4. Click Register
    5. On your newly registered device, click on Settings.
    6. Change activation mode to ABP.
    7. Un-check the Frame Counter Checks option.
    8. Go to the Overview tab and copy the code on the EXAMPLE CODE area.

Finally! Arduino coding!

  1. Copy this example sketch: basic.ino
  2. Paste the code you copied from the EXAMPLE CODE in TTN Console, and replace the zero’ed ones in the example.
  3. Compile and upload.
  4. Data should start popping up in the TTN Console!
  5. Cry tears of joy!

What’s in the box?

Base platform

Arduino Pro Mini pinout


NOTE: Please read the printed manual for the pressure sensors carefully for voltage and connectivity

Basic resources

Keller Druck Support

Available during business hours.

NOTE: Please keep in mind the voltage differences between the microcontroller and the different sensors when connecting them.

Are you stuck?

  1. Ask on our Slack team! (sign up here here).
  2. Check this cool wiki being developed by Hackathon participants.
  3. Join us at the MechArtLab everyday between 16:00 and 22:00.