Welcome to Hackster!
Hackster is a community dedicated to learning hardware, from beginner to pro. Join us, it's free!
krystof018
Published © GPL3+

Smart Hen Coop #ArduinoCloudGames2022

Smart Coop door, that ensures that your life is easier not only for you but even for your hens.

AdvancedShowcase (no instructions)829
Smart Hen Coop #ArduinoCloudGames2022

Things used in this project

Hardware components

Arduino Oplà IoT Kit
Arduino Oplà IoT Kit
×1
Continuous servo
×1
SHT40 Temperature sensor
Alternatively you can used the one onboard of the MKR IOT carrier, but it outputs values that are higher than the reality.
×1
Relay 230V 5V
×1
18650 battery
×1
18650 battery holder with 5V boost
Alternatively you can use the onboard battery holder, but you will need to boost the voltage when you run on battery from 3,3 to 5V. I didn’t have suitable booster so I used this.
×1
3 and 4 lane wires
×1
PCB prototyping board
×1
Micro switch
×1

Software apps and online services

Maker service
IFTTT Maker service
Not necessary, but usefull for notifications
Arduino IoT Cloud
Arduino IoT Cloud
Necessary to have at least the Maker plan.
Arduino IDE
Arduino IDE

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)
Solder Wire, Lead Free
Solder Wire, Lead Free
Solder Flux, Soldering
Solder Flux, Soldering
3D Printer (generic)
3D Printer (generic)
Optional, but useful for encasing

Story

Read more

Custom parts and enclosures

Servo holder model

credit: https://denshiman.com/mg995.html

Schematics

PCB diagram

Here is the PCB diagram. It has 3 power inputs (5V, 3.3V and GND) and multiple data inputs (your sensors will be connected to) I decided to use external temperature sensor instead of the one on the IOT carrier, because that one is getting heated from the other parts and outputs higher output than it should.

Hardware schematic

The temperature sensor is not the one I used, because I couldn't find model of it in fritzing. It should be SHT40.

Code

Smart hen coop Code and library

This code manages all functionality the smart coop has. I made a library, so the code is neater. I you can use it as you want. If you have any questions regarding my code, let me know in the comments.

Sensirion SHT4x library

I used this library instead of adafruit, because the adafruit had conflicts with MKR IOT Carrier Shield.

MKR IoT Carrier library

This library will be automatically included when you create new Arduino IOT cloud project.

Credits

krystof018
0 projects • 1 follower
Contact

Comments

Please log in or sign up to comment.