element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Sensors Projects
  • Challenges & Projects
  • Project14
  • Sensors Projects
  • More
  • Cancel
Sensors Projects
Blog Pets' Tap Water System
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Sensors Projects to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: filippoaiello
  • Date Created: 25 Sep 2020 10:48 AM Date Created
  • Views 1161 views
  • Likes 8 likes
  • Comments 2 comments
  • how to protect pcb board from water damage ?
  • sensorsch
  • tap
  • iot_pet_care
  • pets
  • animal
  • educational_pets
  • water_dispenser
  • pet_care
  • arduino_pet
  • water_valve
  • teensy
Related
Recommended

Pets' Tap Water System

filippoaiello
filippoaiello
25 Sep 2020
image

Sensors

Enter Your Electronics & Design Project for a chance to win a $200 shopping cart!

Submit an EntrySubmit an Entry  Back to homepage image
Project14 Home
Monthly Themes
Monthly Theme Poll

 

CONCEPT IDEA

 

This idea behind my project is to solve a problem for your pet.

If you have one, like a cat, dog a rabbit, ecc., you know how much they like to drink fresh water from the tap. It's also healthier for them than drinking it from a bowl that has not been changed for hours or even days.

What about if your pet wants fresh water but you are not there to open the tap? Considering this scenario, my idea is to integrate a sensor into the tap that allows to understand when the pat touches the tap, with his/her nose, the tongue or the pose, because wants water. If the touch is detected the tap will be opened for a few minutes and after will be closed.

This is to teach to your pet to perform an action to get the water, this is the reason why I won't use a range sensor.

 

imageimage

 

ELECTRICAL COMPONENTS

 

  • Teensy 3.2 - 1 pc
  • Electromagnetic valve (solenoid valve) 12V - 1 pc
  • 5V relay module - 1 pc
  • Diode 1N4007 or 1N4001 - 1 pc
  • Metal to set up around the valve as capacitive sensor - 1 pc
  • 12V external power supply for solenoid valve - 1 pc

 

 

ARCHITECTURE

 

image

INSTRUCTIONS

To limit the touching area around the tap to a specific area, it's important that the capacitive touch sensor is surrounded by not connective material, like plastic.

 

 

CODE

 

/* Pets Tap Water System 
Filippo Aiello
www.filippoaiello.it
*/

const int relay = 3;

long previousMillis = 0;
long interval = 10;           // interval (milliseconds)

const int thresh = 2500;
const int delayTime = 10000;


void setup() {
  pinMode(relay, OUTPUT);
  digitalWrite(relay, LOW);
}

void loop() {
  unsigned long currentMillis = millis();

  if(currentMillis - previousMillis > interval) {
    previousMillis = currentMillis;

    unsigned int readValue = touchRead(0);
   
    Serial.println(readValue);

    if(readValue>thresh){
      Serial.println("TOUCHED");
      digitalWrite(relay, HIGH);
      delay(delayTime);
      digitalWrite(relay, LOW);
      previousMillis = currentMillis;
    }
  }
}

 

 

PHOTO AND VIDEO

image

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

  • Sign in to reply

Top Comments

  • DAB
    DAB over 4 years ago +1
    Nice simple build. DAB
  • dubbie
    dubbie over 4 years ago +1
    Filippo, A nice idea. Dubbie
  • dubbie
    dubbie over 4 years ago

    Filippo,

     

    A nice idea.

     

    Dubbie

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • DAB
    DAB over 4 years ago

    Nice simple build.

     

    DAB

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube