Project showcase

IoT Bird Feeder with Sigfox and Tweeter © LGPL

An IoT bird feeder which tweets when the lovely birds are landing and eating.

  • 2,565 views
  • 6 comments
  • 18 respects

Components and supplies

Necessary tools and machines

09507 01
Soldering iron (generic)

Apps and online services

About this project

What is more lovely than helping these lovely birds getting food during cold winters ?

When you are a geek, you also want to get more information about them and the first thing to know, is how many times a day they would eat and if they need more food depending on the weather.

This project introduces you to the future of the bird feeders. More features will be suggested at the end of the presentation if you ever need more ideas.

How does it work ?

Every time a bird lands on the bird feeder, the Arduino MKR FOX 1200 will send a SigFox message including the current temperature in Celsius and the current percentage of humidity.

On the SigFox backend, two requests will be made when a message is received :

  • All the data are stored in the database located on Thinger.io

Before going to the details of the project, I would like to show the installation and the results on Twitter and Thinger.io.

Technical details

1. Hardware schematics

The schematic is quite simple. Four AA batteries are connected to the Arduino (see the section Power Consumption). You can find the Fritzing file below.

2. Sensors

  • Weather sensor - BME280

The weather sensor that I use is the BME280 from Bosch. It is simple to use, has a I2C or SPI access (I chose I2C), low power, and small dimensions.

I am using this device to get the current temperature, humidity and pressure

  • Vibration sensor

To detect the presence of a bird, I decided to use a vibration sensor. It is an open collector output and has a potentiometer to select the sensitivity of it. I have bought it on Amazon France : https://www.amazon.fr/gp/product/B00AYB1F7C/ref=oh_aui_detailpage_o06_s00?ie=UTF8&psc=1

  • Rain drop sensor

To avoid the undesired vibrations due to the rain, I added a rain drop sensor. It gives two information, if it is raining or not (as digital input) and the level of rain (as analog input).

  • Food level sensor - HC-SR04

During the testing phase, it happened that I had no detection anymore after a couple of days. First I thought my IoT bird feeder had an issue but when I checked it out, it was just missing food.

So I decided to add an Ultrasonic Sensor (HC-SR04) for that. It is definitely the best low-power device on the market (15mA comsuption under 5Vcc) but I had it at home and it is quite easy to use. In the future I can imagine using a better device.

Now I can relax at home and check the food level from time to time.

3. Source Code

Power supply

In order to make the bird feeder autonomous, I decided to add a solar panel and a LiPo battery linked with a battery charger (TP4056).

SigFox

On the SigFox backend, two POST requests will be send when it receives a new message.

  • The first POST request is sent to IFTT in order to tweet. This is the easiest way I have found to tweet from the there.
  • It stores the data (humidity and temperature) in a database located on thinger.io.

IFTTT

In order to tweet from the SigFox backend, the easiest way to do it was using IFTTT.

When the SigFox backend receives a message, it sends a POST request with the humidity and the temperature to IFTTT which will format the message and tweet.

Thinger.io

I wanted to store the data on database to display them on a web page and I think Thinger.io is a pretty nice and easy way to do it.

You can find the Thinger.io dashboard here : https://goo.gl/V3FNR7

At the moment, it displays the temperature and humidity when the latest bird came to eat.

Tests

On Sunday, November 12, I have done the real tests and it works pretty well. Between 11am and 6pm, around 20 birds came to the bird feeder.

Therefore I noticed a bug on the humidity sensor which always displayed 42%.

The rain also generated some SigFox messages at night while no birds were present.

Future features

As said in introduction, a couple of features could be developed based on this project. Here are a couple of exciting and interesting examples :

1. More sensors

  • In order to have a better understanding when the birds come and eat we could add more sensors. For example a rain sensor and a barometric pressure sensor to see if the birds are still coming when the weather is bad, if they come more often before the rain, etc.
  • Another idea would be to add some sensors to detect the level of food and water. Like that, if the bird feeder is away from your place, you can get a notification when it needs to be refilled. For that, we can simply use an ultrasonic sensor on top of the water and food tubes.

2. Make it autonomous

As said earlier, we may need a couple of AA batteries per year. For multiple reasons, we agree it is not a very ecological, it is not convenient to change the battery and at the end it can also be expensive. For that, a solar panel can be added on the roof of the bird feeder.

A size calculation can be made to know why solar panel are needed, depending on the daily sunrise, the exposure, the number of days without sun, etc.

3. Improve the server management

Because it was easier and faster, I decided to use Thinger.io to store the data and display a dashboard.

Therefore, it has some limitation, I can't display on the dashboard the number of entries in the database (aka. number of birds which landed on the bird feeder), I can't send notifications to phones, etc.

A complete control of the backend could be done. For example :

  • Custom database
  • Web service to decode the SigFox messages and take actions
  • Develop a custom web page to see all the statistics
  • Develop smartphone apps connected to this database

Code

Schematics

Fritzing file
iotbirdfeeder_1ipgMUvJPJ.fzz

Comments

Similar projects you might like

Arduino Bluetooth Basic Tutorial

by Mayoogh Girish

  • 455,261 views
  • 42 comments
  • 239 respects

Home Automation Using Raspberry Pi 2 And Windows 10 IoT

Project tutorial by Anurag S. Vasanwala

  • 285,953 views
  • 95 comments
  • 672 respects

Security Access Using RFID Reader

by Aritro Mukherjee

  • 231,735 views
  • 40 comments
  • 241 respects

OpenCat

Project in progress by Team Petoi

  • 196,991 views
  • 154 comments
  • 1,370 respects
Add projectSign up / Login