Raspberry pi 2 water alarm with t cobbler plus

This is our first try with the raspberry pi 2

We wanted to create an headless water alarm

Parts used:

  1. Raspberry Pi 2
  2. Funduino water sensor
  3. 1k resistor
  4. Red Led
  5. Adafruit T-cobbler Plus
  6. Large breadboard (too large ;-p)

    Raspberry pi 2 water alarm with t cobbler plus

Step 1: Setup of the PI 2

We only had one screen for 6 people. This meant we needed to create an terminal session to the Pi.

We used putty and filezilla.

The installation could only be performed using a screen. We used an old computer monitor with a hdmi to vga converter. That only partially worked we could start the installation of the OS but once the first reboot occured the screen didn't work anymore.

Luckilly we could connect using putty to the PI 2 and run the python code on the board.

It took a while to figure out how this worked. We by accident installed an old version of RPI.GPIO this meant we had to reinstall the OS.

After this we got the hello world of electronics to work “Blink”.

Step 2: After lunch

For us as NOOBS it took 3 hours to get to this step it meant getting lunch.

Next step was to find a sensor which would work with the PI it needed to work with 3v and should be digital. We started with an endswitch as proof of concept.

This didn't impress us very much so we made this impressive water alarm.

Step 3: End result

The final result was that the led would indicate the sensor was submerged.

The simple code below was what was needed to get things running.

To run the code type “sudo python wet.py” on the command line

We had a go to get the WebIOPi to work. But regretfully it didn't get up and running on the PI 2Raspberry pi 2 water alarm with t cobbler plus schematic

Step 4: Adafruit T-cobbler Plus

After having soldered the cobbler we looked up how the Pi and the cobbler should be connected. At first we found the wrong way to connect on google but finally at adafruit noticed the cable should be turned arround.

Step 5: Used URL's


For more detail: Raspberry pi 2 water alarm with t cobbler plus

About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top