Skip to main content

Depth Sensor Node Enclosure Assembly Guide

Overview

Learn how to assemble a sensor node with a depth sensor for deployment in the field! This guide walks through solar panel setup, wiring, sensor connection, and enclosure assembly adapted on the open-source work from https://www.digitalwaterlab.org/build.

Tools Required

  • Computer (with Cypress PSoC Creator)
  • Drill and bits
  • Electrical Tape
  • Extra large zip ties
  • Ferrules
  • Ferrule crimpers
  • Heat gun or lighter
  • Heat shrink tubing
  • Label maker or permanent marker
  • Multimeter
  • Non-conductive battery foam
  • Plyers
  • Scissors
  • Screwdrivers (Flathead, Phillips, Torx)
  • Side cutters
  • USB Voltage Converter and Power Supply
  • Wire
  • Wire strippers

Parts Required

Boards & Programming

ItemPart IDBrandDescriptionQtyPriceLink
MicrocontrollerCustomOpen-Storm Custom Board1$100.00
ProgrammerCY8CKIT-002InfineonPSoC MiniProg3 Program and Debug Kit1$132.49Link

Communications

ItemPart IDBrandDescriptionQtyPriceLink
Cellular AntennaF56NBAAA-G150UNimbeLinkLTE Antenna1$5.00Link
GNSS AntennaCRJKS0010-LNA-G65UNimbeLinkGPS Antenna1$11.00Link
SIM CardGL1-100HologramGlobal SIM1$1.50Link
Cellular ModuleNL-SW-LTE-TC4NAG-BNimbeLinkLTE-M/NB-IoT Modem1$129.00Link
MicroSD CardLMSESXX032G-B3AEULexar32GB MicroSD + Adapter1$8.99Link

Mechanical

ItemPart IDBrandDescriptionQtyPriceLink
Hinged Plastic EnclosureZH-060404PolycaseIP67 Outdoor Box 6.4”x4.4”x 4.3”1$50.47Link
Cable Gland7310K11McMaster-CarrPlastic Submersible PG-7 for 0.1″-0.26″ Cord OD1$2.60Link
Steel Plate1421T184McMaster-Carr304 SS 5″x18″ Strip, 0.0300″ Thick1$20.06Link
Mounting Screws90910A716McMaster-CarrButton Head Torx Screws, SS, 4-40 Thread Size, 3/8″ Long4$11.82Link
Mounting Nuts96278A005McMaster-Carr4-40 18-8 SS Locknut with External-Tooth Lock Washer, 4-40 Thread Size4$9.23Link
Hex Standoffs92745A368McMaster-CarrMale-Female Threaded Hex Standoff, Nylon 6/6, 1/4″ Hex Size, 1-1/2″ Long, 8-32 to 8-32 Size Thread8$0.61Link
Phillips Screws90272A192McMaster-CarrZinc-Plated Steel Pan Head Phillips Screw, 8-32 Thread, 3/8″ Long4$3.69Link

Power

ItemPart IDBrandDescriptionQtyPriceLink
Solar PanelP103CVoltaic6V 3.4W Panel1$39.00Link
Extension CableW045VoltaicFemale 3.5×1.1mm Extension with Leads1$3.50Link
Battery31059Tenergy3.7V 15600mAh1$68.49Link
Solar ChargerPRT-12885SparkFunSunny Buddy MPPT1$28.96Link
2-pin Screw TerminalsPRT-08084SparkFun3.5mm Pitch 2-pin Pluggable Screw Terminal3$3.15Link
JumperNPC02SXON-RCSullins2 Pin Position Shunt Connector Open Top, Grip 0.100″6$0.52Link

Sensor

ItemPart IDBrandDescriptionQtyPriceLink
5-pin Screw Terminal691361100005Würth Elektronik3.5mm Pitch 5-pin1$2.64Link
Depth SensorMB7383MaxBotixHRXL-MaxSonar-WRLST TTL Output, Screw Terminal Block (7 Pin) Connection1$118.38Link
Depth Sensor Mounting HardwareMB7950MaxBotixWR Mounting Hardware1$4.49Link

Build Instructions

Step 1: Prepare the Outside Structure

  • Gather materials:
    • Drill and drill bits
    • Enclosure
    • Hex standoffs (8 pieces)
    • Steel plate
    • Velcro strips (5 2” pieces)
  • Drill holes according to this schematic on each
    • Enclosure:
      • 4 screw holes
      • 1 cable gland port
      • 1 depth sensor port
    • Steel plate:
      • 4 holes for solar panel mount
      • 4 holes to mount onto the enclosure
      • 1 hole for solar panel cable
  • Attach strips of Velcro
    • Add a 2” strip of Velcro with soft side inside the enclosure on the following surfaces:
      • Left wall
      • Right wall
      • Top wall
      • Bottom wall
  • Attach hex standoffs
    • Obtain 8 hex standoffs
    • Create 4 double-height stacks by screwing two standoffs together for each stack
    • Look inside the enclosure and locate 4 pre-drilled standoff mounting holes in the base
    • Insert each standoff stack into a hole from the inside of the enclosure. The bottom of the standoff stack should sit flush in the hole
    • Hand-tighten each stack into place

Step 2: Prepare the Solar Panel

  • Gather materials:
    • Ferrules (2 pieces, sized for 20 AWG stranded wire)
    • Ferrule crimping tool
    • Side cutters
    • Solar panel
    • Solar panel extension cable
    • Steel plate
    • Wire strippers
  • Mount the panel:
    • Remove the 4 black rubber screw covers from the back of the solar panel to expose the mounting screws
    • Flip the solar panel facedown (glass side down) on a soft surface to avoid scratching
    • Align the panel’s mounting screws with the 4 small holes in the mounting plate
    • Thread the solar panel wire through the large center hole in the metal bracket
    • Reinstall the 4 rubber screw covers over the screws once the panel is mounted
    • Hand tight is tight enough
  • Prepare the solar panel extension cable:
    • Snip off the male barrel connector end of the solar panel extension cable. This leaves you with two open wire leads
    • Use wire strippers to remove about 1/4 inch of insulation from the ends of both wires
      • Be careful not to cut or damage the copper strands inside
      • Make sure the red and black wires do not touch each other.
      • Lightly twist the strands and, if needed, wrap electrical tape around each wire to keep them separated during handling
      • Watch this video if you are new to stripping wires
    • Slide a ferrule over each stripped wire end, ensuring that all the copper strands are fully inserted into the metal tube
      • Watch this video if you are new to using ferrules
    • Place each ferrule one at a time into the crimping tool. Squeeze the handles firmly to crimp it. The ferrule should be tight and should not slip off if pulled gently
    • Optionally, label the red and black wires so it’s easy to connect them to the correct terminals later
  • Connect the barrel connector end of the solar panel to the female end of the solar panel extension cord

Step 3: Install the Solar Panel Wire

  • Gather materials:
    • 2-pin screw terminal
    • Cable gland
    • Flathead screwdriver
  • Disassemble the cable gland:
    • Locate the pre-drilled hole on the bottom left of your enclosure meant for the solar panel wire
    • Identify the parts of the cable gland:
      • The cap (screws down to tighten the seal)
      • The rubber grommet (squeezes the cable)
      • The main body with threads (goes through the wall of the box)
      • The locknut (secures the gland inside the box)
  • Install the cable gland:
    • From the outside of the enclosure, insert the threaded body of the cable gland through the pre-drilled hole
    • On the inside of the enclosure, screw on the plastic locknut to secure the gland in place. Hand-tighten until snug
    • Now take the solar panel extension wire and:
      • Slide the cap over the wire
      • Feed the wire through the installed gland body and into the enclosure
    • Once the wire is positioned, push the grommet into place inside the cap, and screw the cap onto the gland body. This compresses the grommet and creates a tight seal around the cable
    • Check that the wire is secure and doesn’t wiggle or slide. Gently tug to test. The opening should now be watertight
  • Connect the ferrules to the terminal block:
    • Grab a 2-pin screw terminal block
    • Loosen the terminal screws slightly using a small flathead screwdriver. Do not remove them completely, just open them enough to insert the wires
    • Insert the red wire ferrule into the left terminal and the black wire ferrule into the right terminal
    • Hold the wire steady and tighten the screw down firmly. The ferrule should not move or pull out when gently tugged

Step 4: Attach the solar panel to the enclosure

  • Gather materials:
    • Mounting nuts (4 pieces)
    • Mounting screws (4 pieces)
    • Plyers
    • Phillips screwdriver
  • Attach the solar panel to the enclosure:
    • Set the enclosure lid face-up on a flat surface, with the sensor and cable gland holes facing toward you
    • Place the sheet metal on top of the lid so the long side of the bracket is aligned with the sensor/cable side of the box
    • Line up the 4 pre-drilled holes in the bracket with the mounting holes in the enclosure lid
    • Insert a screw through each hole from the inside of the bracket, going down into the lid
    • On the outside of the lid, place a mounting nut on each screw
    • Tighten each screw securely using a screwdriver on the inside and pliers outside

Step 5: Prepare the depth sensor

  • Gather materials:
    • 5-pin screw terminal
    • Depth sensor
    • Flathead screwdriver
    • Wires (1 each of red, black and white)
  • Wire the depth sensor:
    • Cut x inches of red, black, and white wires
    • Use wire strippers to remove about 1/4 inch of insulation from both ends of the wires
  • Locate the pre-attached screw terminal on the back of the sensor
    • Insert one end of the wires into the terminal:
      • White → Data
      • Red → Power
      • Black → Ground
  • Tighten the terminal screws with a flathead screwdriver to secure each wire. Tug gently on each one to confirm the connection is snug
  • Connect the other end of the wires into the 5-pin screw terminal

Step 6: Attach the depth sensor

  • Gather materials
    • Depth sensor
    • Depth sensor mounting hardware
  • Attach the rubber ring to the threaded portion of the depth sensor
  • Insert the sensor stem through the large hole in the enclosure lid from the outside
  • On the inside of the lid, install the mounting hardware:
    • Screw on the hex nut until the sensor is secure

Step 7: Prepare and insert the battery

  • Gather materials:
    • 2-pin terminal block
    • Battery
    • Extra large zip ties (2 pieces)
    • Ferrules (2 pieces, sized for 20 AWG stranded wire)
    • Ferrule crimping tool
    • Flathead screwdriver
    • Non-conductive battery foam
    • Scissors
    • Side cutters
  • Prepare the battery connection:
    • Slide a ferrule over each wire end, ensuring that all the copper strands are fully inserted into the metal tube
    • Place each ferrule one at a time into the crimping tool. Squeeze the handles firmly to crimp it. The ferrule should be tight and should not slip off if pulled gently
  • Connect the ferrules to the terminal block:
    • Grab a 2-pin screw terminal block
    • Loosen the terminal screws slightly using a small flathead screwdriver. Do not remove them completely, just open them enough to insert the wires
    • Insert the red wire ferrule into the left terminal and the black wire ferrule into the right terminal
    • Hold the wire steady and tighten the screw down firmly. The ferrule should not move or pull out when gently tugged
  • Insulate the battery:
    • Cut a piece of battery foam to fit around the battery
    • Place the battery between the foam layers, with one piece below and one above, creating a protective buffer on both sides.
    • Loop the zip ties around the foam-wrapped battery and pull them tight enough to hold it securely, but not so tight that it compresses the battery or distorts the foam

Step 8. Check the microcontroller board’s solar charge potentiometer

  • Gather materials:
    • 2-pin screw terminal
    • Battery
    • Enclosure
    • Flathead screwdriver
    • Jumpers (6)
    • Laptop
    • Microcontroller board
    • Multimeter
    • USB voltage converter and power supply
    • Wires (red and black)
  • Attach 6 jumpers to the microcontroller in the spots shown
  • Prepare the USB voltage converter and power supply wire
    • Cut one red and one black wire, long enough to reach your microcontroller
    • Strip about 1/4 inch of insulation from both ends of each wire
    • Insert the red wire into the positive terminal and the black wire into the negative terminal
    • Use a multimeter to check for 5.9V between the red and black wires. You may have to set the USB voltage converter and power supply to 5.8V for the multimeter to read 5.9V
  • Grab a 2-pin screw terminal block
    • Loosen the terminal screws slightly using a small flathead screwdriver. Do not remove them completely, just open them enough to insert the wires
    • Insert the red wire into the left terminal and the black wire into the right terminal
    • Hold the wire steady and tighten the screw down firmly. The wire should not move or pull out when gently tugged
  • Plug in the USB voltage converter and power supply’s terminal block into the bottom left terminal labeled X1 on the microcontroller board
  • Connect a partially discharged battery into the bottom right terminal labeled X11 on the microcontroller board
    • This calibration step won’t work properly with a fully charged battery. If the battery is charged, the LED may not respond
  • Adjust the charge potentiometer
    • Locate the silver potentiometer next to the charge controller chip
    • Using a small flathead screwdriver, turn the screw slowly
      • The center hole is shallow and can strip so it’s best to use a small flathead screwdriver instead of a Phillips
    • Turn clockwise until the charge LED turns on
      • If the charge LED is already on when you first connect the USB power supply:
        • Slowly turn the potentiometer counterclockwise until the charge LED turns off
        • Then, turn it clockwise slowly until the LED just begins to turn on.
    • The LED indicates that the solar charge voltage is high enough to begin charging the battery
  • Unplug the USB voltage converter and power supply
  • Unplug the battery and charge it

    Step 9. Prepare the microcontroller board

    • Gather materials:
      • Cellular antenna
      • Cellular module
      • Enclosure
      • GNSS antenna
      • Microcontroller board
      • MicroSD Card
      • SIM Card
    • Insert SIM card into the bottom of modem
    • Attach the GNSS to the bottom modem
      • Connect the GNSS to the small gold connector on the cellular modem labeled
      • Push straight down until you feel it snap in. Do not twist
      • Place the rough-sided Velcro strip to the back of the GNSS
    • Attach the antenna to the top modem
      • Connect the antenna to the small gold connector on the cellular modem labeled X1
      • Push straight down until you feel it snap in. Do not twist
      • Place the rough-sided Velcro strip to the back of the antenna
    • Attach the modem to the microcontroller
      • Align the modem’s pins with the header on the microcontroller
      • The antenna pin will be facing the top side of the board and the GNSS will be facing the right side
      • Press gently but firmly to seat it fully
      • Insert the microSD card into the microcontroller

      Step 10. Insert the microcontroller board

      • Gather materials:
        • Phillips screws (6)
        • Phillips screwdriver
      • Place the battery inside the enclosure with the wire facing the bottom-side of the enclosure
      • Place the microcontroller inside the enclosure and secure the microcontroller with 4 Phillips screws
        • The modem should be facing the top of the enclosure
      • Connect the battery to the bottom left terminal on the microcontroller:
        • Take the 2-pin screw terminal carrying power from the battery and plug it into the bottom left terminal labeled X1 on the microcontroller board
        • Make sure polarity matches the picture
      • Connect the solar panel to the bottom right terminal on the microcontroller:
        • Take the 2-pin screw terminal carrying power from the solar panel and plug it into the bottom left terminal labeled X11 on the microcontroller board
        • Make sure polarity matches the picture
      • Connect the depth sensor to the microcontroller:
        • Insert the 5-pin screw terminal from the depth sensor into the matching labeled block on the board
      • Secure the GNSS and cellular antenna to the nearest wall that has a soft-sided Velcro strip:
      • Secure loose cables:
        • Gently route wires to reduce clutter and avoid tangles

      Step 11: Final Checks

      • You’ve now completed assembly of the depth sensor node! Before sealing the enclosure, double-check the following:
        • All screw terminals are fully tightened
        • No loose wires or exposed copper
        • Antennas are securely attached
        • Battery is secure and insulated
        • MicroSD card is inserted
        • All components fit neatly inside the enclosure
      • Congrats! You have built a depth node! Now you can learn how to program it.