top of page
Fish in Aquarium
Sensor-module_edited.png

The Pi Hat module is needed to use the sensor module! This module just sends data.

The Sensor Module is a DIY kit designed for advanced sensor integration, featuring 6 ports for float sensors or switches, 5 temperature sensor ports, an optical water level sensor port, 2 echo distance sensor ports, and 3 programmable 12V outputs. It also includes 3 leak sensor inputs and 5 analog inputs for advanced sensors like pH, TDS, EC, and ORP. With additional reserve I/O for custom expansions, this board uses an ESP32 Node MCU as a data hub, transmitting sensor data via Wi-Fi to the Pi Hat Module for seamless operation.

​

It uses many of the same components as the Pi Hat module so everything is familiar. Its also compatible with a wide range of sensors meaning you are not "hooked" to one brand.

About the Hardware....

The sensor PCB has been designed to be easy to use with a certain "way to use" built in mind, However it is also very flexable on how you use it. For example you could use a Float switch input to add a feed button to automate stoping your pumps and activating a feeder. It also has 3 12v programmable outputs for LEDs or other low current 12v devices, Two Echo Sensor ports for measuring distance. (Water level in ATO resevoir for example)

​

This Board also adds 5 analog sensor ports, these are also flexible in how you intigrate your sensors. Each port has 5v or 3,3v as a power source and also the signal can either be directly sent to the ESP32 if it is under 3,3v, or it has another route through a voltage divider so you can drop a 5v(or higher) signal to a readable signal for the ESP32. These ports are designed to be used with sensors such as PH, TDS, EC, ORP or any other sensor you would like that outputs an analog signal, More details on sensors can be found on the sensor page.

The Step down regulator supplys the 5v needed

ESP32 Node mcu controller

Piezo buzzer on underside for alarms

Optical sensor for ATO

3x Leak Sensor ports

Extra I/O and power Pins 

5x Temperature sensor ports

12v input, either via a 3,5mm jack or screw termial

Sensor-module-esp32 (PCB) v1.png

5x Analog ports for Sensors and Probes

3x 12v switchable outputs, ideal for LEDs

Echo sensor, used for measuring distance

5v Test Point, used to test and set the voltage safely during setup

5 Float sensor Ports

Components

The Kit comes with all the required components, but if you decided to purchace just the PCB then here is a list of what you will need to complete the Pi hat:

​

The buzzer fits to the bottom of the PCB it has a diameter of 9,5mm and a pin spacing of 6,5mm
 

- Piezo buzzer.

​
 

Size =1,7cm x 2,2cm

 

- DC/DC Step down regulator

 

- Resistors

 

3x 10k Ohm

3x 330 ohm

1x 4,7K ohm

​

Volage dividers are optional and variable

 

- 3,5mm Power jack

 

SMD Type, or use Screw terminal

 

Espressif ESP32 and ESP32-WROOM 32 are also compatible.

 

- ESP32 NodeMCU â€‹
 

- N channel Mosfet

 

3x IRFZ24N or similar. (TO-220  package size)

 

2 port = 22 needed

3 port = 14 needed

4 port = 4 needed

Pin spacing 2,54mm

 

- Screw terminals

 

- Pins and Headers

 

pins and headers to conect the step down regulator and headers to make the conection to the pi.

 

Clownfish in Aquarium

Step by Step putting your board together....

What you'll need....

To put your board together you will require some basic soldering skills and a little patience. Many of these steps are the same as the Pi Hat module so it should all be familiar. You will need the following tools:​

  • Soldering Iron and solder (set to 350°c)​

  • Wire cutters

  • Tape (For holding in components when turing over)

  • A multimeter for seting the voltage and testing

1. Solder the Terminals

Start by placing all the screw terminals into there coresponding spaces. Place the terminals in their corresponding slot based on the PCB markings.

​

As the terminals are all the same hight you can place a board or piece of cardboard on top to turn it over. Once you have the pins accessable on the underside you can start soldering.

​

Start by just soldering one leg of each terminal, this way you can turn the PCB over and check the position of everthing. If it all looks good the turn it back over and solder all the pins.

​

The 12v input terminal is optional, if you plan on using the dc jack then dont put this part in!

IMG_20250121_200426.jpg
IMG_20250121_200416.jpg
IMG_20250121_200410.jpg

2. Power input terminal (DC Jack)

At this point you need to decide how you would like to power the system. You have two options, either via a DC jack or a screw terminal. If you decided to use the screw terminal then continue onto step 3.

​

The DC Jack is a SMD (Surface mount device) component, meaning it uses solder pads instead of pins. To solder it start by wetting the pads with solder then removing as much as possible with either a solder sucker or wick. Place the jack over the pads and start by soldering a corner pad, check the allignment and the solder the other three pads.  Apply pressure down and slowly add heat to each pad until the jack fits flat on the PCB.

​

​

IMG_20250121_203542.jpg
IMG_20250121_203703.jpg
IMG_20250121_203958.jpg

3. Resistors and Mosfets

The resistors and mosfets are used to complete the 12v switchable outputs. Start with the resistors, they can be inserted either way and will work fine. You can twist the legs to stop them falling out when turning the PCB over to solder. be sure to get the values in the correct position!

 

The mosfets are the tallest components on the top side of the pcb so they are the final component to be placed, It is important to put them in the correct way. Look at the Markings on the PCB, the Thicker line represents the Back of the Mosfet. The writing on the blackpart of the chip should face the reserve I/O screw terminals.

Insert them as far as they will go, secure them with a little tape then turn the board over and solder pins. Cut off any exess Pin wire from the underside with your wirecutters.  

IMG_20250121_210559.jpg
IMG_20250121_205656.jpg
IMG_20250121_204623.jpg

4. DC Step down regulator

The step down regulator sits below the ESP32 along with the resistors. Insert the 4 (Double) pin headers into the pcb and then place the voltage regulator in the pins. It is important here to have the orientation correct, look at the IN and OUT markings on the PCB and match them up to the Regulator.

 

Once you have it positioned correctly secure it with a piece of tape, turn the board over and solder the pins. Once the underside is done remove the tape and solder the pins on top. 

IMG_20250121_210550.jpg
IMG_20250121_210636.jpg
IMG_20250121_211529.jpg

4. Pi Pin Header

The ESP32 is mounted on a pin header socket, this ensures it is replacable and gives access to the components below.

​

As with the Pi hat header, insert the header sockets from the top and secure with tape. Solder one pin at each end of the Sockets and then check alignment. If all is good then you can solder the rest of the header socket pins.​

IMG_20250121_213546.jpg
IMG_20250121_213602.jpg

​The best way to check alignment is to insert the ESP32 itself into the headers.

5. Piezo buzzer

For audiable alarms a piezo buzzer has been selected, it is placed on the under side and is solderd via the two pins on top underneath the ESP32.

​

If you purchased the Kit then you will find a small 3d printed spacer for the buzzer, this is to ensure no short circuit can occur if not then position the Piezo buzzer with enough room underneath as to not touch the pins of the 12v switchable terminals.

​

If you do not wish to have a buzzer then you do not need to solder it in, the hardware will work fine without it.

IMG_20250121_213550.jpg

Finalising and Testing

Well done on completing the soldering, it is now time to do some final inspection to make sure everything has been put in correctly and soldered as it should be. Once you are happy you can continue to set the 5v regulator then it is ready to be programmed and set-up.

Visual inspection...

Take a good 5 minutes just looking at your soldering joints, do they all look good? Are there any bridges between pins? Are there any "Cold" joints?

Sometimes all it takes is a tiny mistake here to cause you trouble in the future, here are some images of what to look for...

Check for short circuits...

Before even applying power this is a simple test we can do to double check everything is ok. You will need to set your multimeter to continuity, It should make a sound when the two probes touch one another. Check between GND and the 5v outputs on the terminals, also the 3,3v. Test between the + and - of the power output terminals.

Also test between the two 5v pads in the 5v testing area. If there are any conections the multimeter should make a noise, If so go over your soldering again and look for the problem. Once you are happy you can move on to setting the 5v regulator.

Setting the voltage to 5v

Setting the DC/DC step down regulator is an important step to get right as this supplys the ESP32 and its sensors with power. Setting the regulator is the same as the Pi Hat module.

​

There are three test points in the test area, the one on its own is a ground point, the middle one is the test point and the outer most one is used to complete the ciruit, these two pads will need to be bridged to complete the circuit.​

​

5v test point on the left, Bridge once set to 5v

GND Test point

Step down regulator, turn the Screw to set the voltage.

  1.  Conect your 12v power supply, either directly via screw terminals or via a DC wall plug.

  2. Touch the black probe to GND and the red one to the test point (Middle pad)

  3. Turn the screw in either direction until you get the required 5v

  4. Disconect the Power source

  5. For extra safty secure the Screw on the regulator, hot glue works great for this.

  6. Bridge the two 5v pads to complete the circuit.

Sea Turtle

Congratulations you're all finished

At this point your PCB is finished and ready to go, You can now put it in its case and place the ESP32 in its socket.

The case is important to protect the electronics from not only humidity around your fishtank but also short circuits. Be sure to put it in a case! In the case for the sensor module there are also 5 bays for the Analog sensors you wish to add and other features too...

Click here For more info on the 3d Printed Case

sensor module outer shell v1_Open1.png
sensor module outer shell v1.png

Buy Online.....

Best sellers

bottom of page