The Raspberry Pi – a newly released credit card sized microcomputer – has sparked a lot of interest since its release resulting in a large amount of projects being carried out using it. This project looks at using the Raspberry Pi to create a cost efficient data logger. Data loggers are generally expensive and limit what the end user can achieve, this project allows the end user to create what they wish – what they want to record, where they want to record it – it allows the device to be expanded which no expensive data logger offers. This work researches various software packages and hardware available allowing a cost efficient data logger. The finished data logger combines the Raspberry Pi and the Gertboard with a temperature sensor, optical sensor, LEDs and a webcam and allows the user to control it both on the device and remotely. This is a simple and effective solution with scope for expansion.
I understand the nature of plagiarism, and am aware of the University’s policy on this. I certify that this dissertation reports original work by me during my University project except for the following:
I would like to thank my supervisor, Dr Andrew Abel. From finding an appropriate topic for the project to the writing of the thesis he has offered constant support, motivation and feedback. I would also like to thank Professor Leslie Smith for ideas during the initial proposal of the project.
Data Logger using Raspberry Pi 1
Abstract 2
Attestation 3
Acknowledgements 4
Table of Contents 5
List of Figures 6
1Introduction 7
1.1Background and Context 7
1.2Scope and Objectives 7
1.3Achievements 8
1.4Overview of Dissertation 8
2State-of-The-Art 10
2.1Hardware 10
2.2Commercial data loggers 12
2.3Solar Logger 12
2.4Garage monitor 12
2.5PiEye 12
2.6Temperature Sensor 13
2.7Summary 13
3Development 14
3.1Design 14
3.1.1Installer 14
3.1.2Data logger 14
3.2Implementation 17
3.2.1Software 17
3.2.2Hardware 19
4Testing and Evaluation 21
4.1Testing 21
4.1.1Data logging over the network 21
4.1.2Data logging on the SD card 21
4.1.3Taking a single image 22
4.1.4Data logging with no webcam plugged in 22
4.1.5Single image capture with no webcam plugged in 22
4.1.6Using unauthorised keys 23
4.1.7Testing the optical sensor 23
4.1.8Testing the temperature sensor 24
4.1.9Using a standard user account 25
4.2Issues and limitations 25
5Conclusion 27
5.1Conclusion 27
5.2Future Work 27
5.2.1Portability 27
5.2.2Sensors 28
5.2.3Audio feedback 28
5.2.4Recording software 28
References 29
6Raspberry Pi data logger, http://neilbaldwin.net/blog/weather/raspberry-pi-data-logger/, November 2012 29
7Raspberry Pi Solar Data logger, http://www.briandorey.com/post/Raspberry-Pi-Solar-Data-Logger.aspx, July 2012 29
8Home Solar PV and Water Current Report, http://home.briandorey.com/, November 2012 29
9PiEye – streaming webcam in JPG format with Raspberry Pi, http://www.bobtech.ro/tutoriale/raspberry-pi/78-streaming-webcam-in-format-m-jpg-cu-raspberry-pi, September 2012 29
10PiEye, http://pieye.dnsdynamic.com:8080/?action=stream, November 2012 29
11University of Cambridge – Computer Laboratory: Raspberry Pi Temperature Sensor, http://www.cl.cam.ac.uk/freshers/raspberrypi/tutorials/temperature/, November 2012 29
12Raspberry Pi – Camera board, http://www.raspberrypi.org/archives/2555, November 2012 29
13YouTube - Raspberry Pi Camera, http://www.youtube.com/watch?v=8N7kgtL0-Ts, November 2012 29
14Raspberry Pi – Guest blog #7 Bird table webcam by Francis Agius, http://www.raspberrypi.org/archives/2504, November 2012 29
15Raspberry Pi – Bird table webcam, http://www.raspberrypi.org/wp-content/uploads/2012/11/Robin.avi, November 2012. 29
16Assembled Gertboard for Raspberry Pi – Element14, http://www.element14.com/community/docs/DOC-51726/l/assembled-gertboard-for-raspberry-pi, January 2013 29
17Raspberry Pi + Temperature Sensors, http://monirulpathan.com/afterhours/raspberry-pi-temperature-sensors/, September 2012 29
18Simple ADC with the Raspberry Pi, http://scruss.com/blog/2013/02/02/simple-adc-with-the-raspberry-pi/, February 2013 29
19My Raspberry Powered Garage Monitor, http://brianhanifin.com/2012/11/raspberry-pi-garage-monitor/, November 2012 29
20Assembled Gertboard for Raspberry Pi, http://www.element14.com/community/docs/DOC-51726/l/assembled-gertboard-for-raspberry-pi, January 2013 29
21Microchip MCP3002 user manual, http://ww1.microchip.com/downloads/en/DeviceDoc/21294C.pdf, April 2013 29
22Microchip MCP 3004/8 user manual, http://ww1.microchip.com/downloads/en/DeviceDoc/21295d.pdf, April 2013 29
23Home Solar PV and Water Current Report – Gas and Electric meter readings, http://home.briandorey.com/meter/default.aspx, April 2013 29
24Motion – Web Home, http://www.lavrsen.dk/foswiki/bin/view/Motion, February 2011 29
25Data Loggers | Datalogging | Data Acquisition | Datalogger - http://www.loggershop.co.uk/, April 2013 29
26CnM Secure Wireless Camera Kit at Argos.co.uk - http://www.argos.co.uk/webapp/wcs/stores/servlet/Browse?storeId=10151&langId=110&catalogId=23051&mRR=true&q=CCTV&c_1=1%7Ccategory_root%7CHome+and+garden%7C33005908&r_001=3%7CCamera+type%7CCMOS+wireless%7C1, April 2013 29
27Raspberry Pi - http://www.raspberrypi.org/, April 2013 29
28TSL250R-LF – TAOS – PHOTODIODE, SENSOR, L/VOLTS, http://uk.farnell.com/jsp/displayProduct.jsp?sku=1182346&action=view&CMP=GRHB-FINDCHIPS1-1004321, April 2013 29
29TMP36 – Temperature Sensor – SparkFun Electronics, https://www.sparkfun.com/products/10988, April 2013 29
30Microsoft Webcam: LifeCam VX-800 | Microsoft Hardware, http://www.microsoft.com/hardware/en-gb/p/lifecam-vx-800, April 2013 29
31RPi VerifiedPeripherals – eLinux, http://elinux.org/RPi_VerifiedPeripherals, April 2013 29
32TMP36 Datasheet and product info | Voltage Output Temperature Sensors, http://www.analog.com/en/mems-sensors/digital-temperature-sensors/tmp36/products/product.html, April 2013 30
33RPi VerifiedPeripherals – eLinux, http://elinux.org/RPi_VerifiedPeripherals#Working_external_Battery_packs_.28with_5.C2.A0V_regulated_output.29, April 2013 30
34RPi VerifiedPeripherals – eLinux, http://elinux.org/RPi_VerifiedPeripherals#Working_USB_Wi-Fi_Adapters, April 2013 30
35Raspberry Pi – Wikipedia, http://en.wikipedia.org/wiki/Raspberry_Pi, April 2013 30
36MadgeTech Temp101A – Miniature Temperature Data Logger, http://www.loggershop.co.uk/madgetech/temp101a-temperature-data-logger/prod_532.html, April 2013 30
37Gertboard Kit – Fully Assembled, https://www.modmypi.com/raspberry-pi-fully-assembled-gertboard, April 2013 30
38Raspberry Pi Cobbler GPIO Super Starter Kit, http://www.ebay.co.uk/itm/Raspberry-Pi-Cobbler-GPIO-Super-Starter-Kit-Breadboard-Cable-LEDs-Switches-/181071750824, April 2013 30
39Pi-Face Interface for Raspberry Pi, http://pi.cs.man.ac.uk/interface.htm, April 2013 30
Appendix A Source code for FFServer.conf file 31
Appendix B Source code for installation file 32
Appendix C Software Installation guide 33
Appendix D User guide 38
Appendix E Source code for logger.py Program 44