keithellis
Posts: 140
Joined: Thu Dec 12, 2013 10:39 pm
Location: Suffolk, UK
Contact: Website

Live streaming bird box with temperature sensor

Fri Apr 22, 2016 9:30 am

HI there,
Over the past few months I have been building and documenting a Raspberry Pi powered bird box.
It features:
  • Raspberry Pi model B
  • Raspberry Pi Camera
  • IR LED powered by a transistor
  • Temperature sensor, with data uploaded to thingspeak.com
  • Live video is streamed to uStream
  • Live time stamp and temperature is overlaid on the video stream
In the documentation I cover how I built it, the electronics and how to wire up the IR LED and the temperature sensor and also all the code to stream the video, upload temperature data and then display live overlay on the live video stream.

It has taken me quite a while to put together, so I hope some of you will find it useful.

It can all be found here:
http://www.pi-tutorials.co.uk/birdbox

Regards,
Keith Ellis

mtalar
Posts: 5
Joined: Mon Mar 06, 2017 10:17 am

Re: Live streaming bird box with temperature sensor

Sat Mar 18, 2017 2:50 pm

Dear Keith

You have done really great job. I appreciate it.

I am a beginner with Raspberry Pi and have started to play with it on the occasion of European Astro Pi Challenge.
I tried to follow the project Infrared Bird Box with my students, but we have been stopped by troubles occoured when installing ffmpeg. We foolowed exactly the instruction in:
https://www.raspberrypi.org/learning/in ... orksheet2/

Everything went ok to the moment of compilation:
make && sudo make install
The process had stopped after a few seconds with info about luck of some file:

/usr/include/features.h:374:25: fatal error: sys/cdefs.h: this file or folder not exist
# include <sys/cdefs.h>

How to solve this problem? Can this file be added to the system and how? May I ask your help or some advice?

Best regards

Marian Talar

keithellis
Posts: 140
Joined: Thu Dec 12, 2013 10:39 pm
Location: Suffolk, UK
Contact: Website

Re: Live streaming bird box with temperature sensor

Sat Mar 18, 2017 4:05 pm

Hi there, sorry it's not working. It's been a while since I installed ffmpeg so something may have changed. Are you using the latest version of Raspbian?

I'll try in the next few days and see if I get the same issue.

Regards,
Keith.

keithellis
Posts: 140
Joined: Thu Dec 12, 2013 10:39 pm
Location: Suffolk, UK
Contact: Website

Re: Live streaming bird box with temperature sensor

Sat Mar 18, 2017 7:00 pm

mtalar wrote: Everything went ok to the moment of compilation:
make && sudo make install
The process had stopped after a few seconds with info about luck of some file:

/usr/include/features.h:374:25: fatal error: sys/cdefs.h: this file or folder not exist
# include <sys/cdefs.h>

How to solve this problem? Can this file be added to the system and how? May I ask your help or some advice?
Ok, I've flaseh a new SD card with the Janueary 2017 version of Rasbian and am about 30 minutes into the Make command. So far so good, did you definately do the ./configure command in the ffmpeg directory?

I'll let you know if mine completes the compile.

Regards,
Keith.

mtalar
Posts: 5
Joined: Mon Mar 06, 2017 10:17 am

Re: Live streaming bird box with temperature sensor

Sun Mar 19, 2017 8:08 am

Yes, I did the ./configure command and definitely in the ffmpeg directory.

Regards

Marian

keithellis
Posts: 140
Joined: Thu Dec 12, 2013 10:39 pm
Location: Suffolk, UK
Contact: Website

Re: Live streaming bird box with temperature sensor

Sun Mar 19, 2017 9:59 am

Umm, not sure what is going on.

You could try the following in the /usr/src/ffmpeg directory

Code: Select all

git pull
./configure
make
sudo make install
If this does not help, it would be worth trying on a clean fresh install of Raspbian.

Good luck,
Keith.

mtalar
Posts: 5
Joined: Mon Mar 06, 2017 10:17 am

Re: Live streaming bird box with temperature sensor

Sun Mar 19, 2017 5:42 pm

Thank you so far for your kindness. I will try your code and let you know, how it works.

Marian

keithellis
Posts: 140
Joined: Thu Dec 12, 2013 10:39 pm
Location: Suffolk, UK
Contact: Website

Re: Live streaming bird box with temperature sensor

Sun Mar 19, 2017 8:19 pm

mtalar wrote:Thank you so far for your kindness. I will try your code and let you know, how it works.

Marian
I followed these exact instructions on a fresh install of the March 2017 Raspbian this morning on a Pi Zero W and it worked fine. I did have some trouble yesterday on a Pi 2, but I think it was an issue with the SD card. It was a different error to what you are getting.

I think a fresh install is the way to go if the previous suggestion does not work.

mtalar
Posts: 5
Joined: Mon Mar 06, 2017 10:17 am

Re: Live streaming bird box with temperature sensor

Tue Mar 21, 2017 1:15 pm

I tried your suggestion. Unfortunately it did not work.
So I am going to do a clean fresh install of Raspbian.
Thank you for your time.

Best regards

Marian

mtalar
Posts: 5
Joined: Mon Mar 06, 2017 10:17 am

Re: Live streaming bird box with temperature sensor

Tue Mar 21, 2017 6:53 pm

Dear Keith

Finally I have done it. After upgrading the system the installation process of ffmpeg has successfully run to its end.

Thank you again for your help.

Best regards

Marian

keithellis
Posts: 140
Joined: Thu Dec 12, 2013 10:39 pm
Location: Suffolk, UK
Contact: Website

Re: Live streaming bird box with temperature sensor

Tue Mar 21, 2017 10:09 pm

Glad you got it to work. It's a long process and frustrating when it does not work.

Good luck with the rest of the project.

Keith.

Return to “Teaching and learning resources”

Who is online

Users browsing this forum: No registered users and 4 guests