Raspberry Pi (The Internet of Things and Its Potential for Raynet)
Total Page:16
File Type:pdf, Size:1020Kb
Getting Started with the Raspberry Pi (The Internet of Things and its potential for Raynet) Raynet Spring Convention – 22nd March 2015 Andy Russell, G0VRM Raspberry Pi • What is a Raspberry Pi ? • What can I do with it ? • How do I get Started ? • Where do I get help ? Demonstrations What is a Raspberry Pi ? • Introduction In 1965 Gordon Moore wrote a paper which described how the number of devices on an integrated circuit doubles approximately every two years. Moore, Gordon E. (1965). "Cramming more components onto integrated circuits“ The Raspberry Pi is part of a family of low cost and low power devices that have the potential to change the way we look at computing... What is a Raspberry Pi ? • History The concept of developing a the Raspberry Pi came about in 2006 when Eben Upton noted a decline in both the numbers and the programming skills of the people that were applying to study Computer Science at Cambridge University. Changes in the way people interact with computers The typical home computer of the 1980s has been replaced by games consoles and Windows PCs. Neither of which offer easily accessible programming tools. Changes in the School Curriculum Computer Science has been replaced with Information and Communications Technology (ICT) in schools. Whilst people applying in the 1990s were hobbyist programmers, the majority of applicants in 2006 had only written web pages What is a Raspberry Pi ? • The Raspberry Pi Foundation The Raspberry Pi Foundation is a Charity set up with the aim of promoting the study of computer science and related topics, especially at school level, and to put the fun back into learning computing. The foundation paired with RS Components and Element 14 (Farnell) who organised the manufacture and distribution of the devices under licence. The first 10,000 devices were made in China, however manufacture has now moved to the Sony Technology Centre in Pencoed in South Wales. In Oct 2013 they announced in October 2013 they have made 1,000,000 Raspberry Pi s What is a Raspberry Pi ? Video What is a Raspberry Pi ? • The Raspberry Pi The Raspberry Pi is a credit-card sized computer based on the Broadcom BC2835 System on a Chip (SoC) which has a 32-bit ARM 11 CPU and a Graphics Processor, its RAM memory is mounted directly above the CPU using Package on Package Composite Two USB Ports Video & Audio Ethernet General Purpose I/O HDMI Video SD Card Slot (Underneath) Micro USB Power In The Raspberry Pi does not have any onboard storage - it uses an SD Card What is a Raspberry Pi ? • The Raspberry Pi Evolution Raspberry Pi Raspberry Pi Model B+ Model B Raspberry Pi 2 Cost £30 Raspberry Pi Raspberry Pi Model A Model A+ Cost £17 What is a Raspberry Pi ? • Raspberry Pi 2 – Feb 2015 The Raspberry Pi 2 has a 900MHz Quad Core ARM-7 Cortex CPU, 1GB of RAM, four USB Ports, and an extended 40-Pin GPIO Header. Four USB Ports Extended General Purpose I/O Ethernet Composite Video & Audio Micro SD HDMI (Underneath) Video Micro USB Power In 6x more power! What is a Raspberry Pi ? • Raspberry Pi Camera The Raspberry Pi camera is a 5 Mega Pixel fixed-focus camera that can be used to take high-definition video, as well as still photographs. There are lots of examples online of people using it for time-lapse, slow-motion and other video effects. It attaches via a 15cm ribbon cable to the CSI port on the Raspberry Pi. A version is available with the infra-red filter removed that can be used for low-light and effects photography. What is a Raspberry PI ? • Other Devices The Raspberry Pi is only one of family of such devices, the most notable being the Arduino – it is programmed using a “C-Like” language that is compiled and uploaded to the device. The Arduino Nano contains an Atmel Atmega 328 with 16k of Flash memory! What can I do with it ? • Learn to program using Scratch Scratch was developed by the Lifelong Kindergarten Group at MIT. Scratch helps young people learn to think creatively, reason systematically, and work collaboratively; whilst programming their own interactive stories, games, and animations Build blocks of code Into structures Share projects online What can I do with it ? • Program in Python Raspbian comes preloaded with Python, the official programming language of the Raspberry Pi (and where the Pi in Raspberry Pi comes from). It also comes with IDLE, a Python Integrated Development Environment - named after Eric Idle! Python is an interpreted high level programming language with an emphasis on readability, it supports both Procedural and Object Oriented Programming and can be used for a variety of tasks from web scripting to interfacing. The PiFace is an Input / Output Expansion Board for the Raspberry Pi which allows it to sense and control the real world – Python is used to provide access to these functions from within Scratch What can I do with it ? • Python script to send a message via APRS What can I do with it ? • The Internet of Things (IoT) The small size and low power requirements of the Raspberry Pi make it ideal for applications where physical objects or “things” are given sensors and the ability to exchange data over computer or radio networks. APRS is good example as it uses GPS to sense the position of the “thing” and shares this data over a radio network giving us the ability to track vehicles and people such as walkers, runners, horse riders etc. However, if amateur radio is used then the person carrying the device must be a licenced radio amateur and it cannot be used in aeronautical applications such as balloons or model aircraft. What can I do with it ? • High Altitude Balloons A telemetry board is available that allows balloon flights to be tracked and uses the Raspberry Pi camera to provide live images. GPS Data is transmitted using a 433MHz licence-free module using RTTY and can be received on the ground using a low-cost DVB-T dongle and decoded using a version of FL-Digi - data is shared via the Internet to assist recovery. What can I do with it ? • UKHAS.net A wireless mesh network developed for High Altitude Balloons using 868 MHz low power licence exempt wireless modules. These modules are low cost, and use a simple routing algorithm to encourage widespread development and deployment. These modules are a self-contained transceiver that contains all the electronics to do the modulation and demodulation, they communicate with the host processor using the SPI interface – unbelievably they cost less than £5 What can I do with it ? • Your own personal D-Star Gateway An image is available from Western D-Star that contains a full implementation of the D-Star ircDDB gateway software that allows you to set up a hotspot. Michael VK5ZEA has a very good example on YouTube Channel What can I do with it ? • AMBE Gateway A board is available for the Raspberry Pi from NW Digital Radio that contains the AMBE 3000 speech codec chip used in D-Star, Fusion and DMR. This could act as a gateway between voice-over-IP and digital voice enabling SIP calls to be made to a D-Star hand-held. What can I do with it ? • Remote SDR Receiver The Funcube Dongle and DVB-T dongles based on the Realtek RTL2832U chipset can be used with the Raspberry Pi as a remote Software Defined Receiver – the receiver is controlled by the command-line and data is streamed via the network to the host PC via UDP. http://m3php.com/2012/10/10/remote-sdr-using-raspberry-pi-rtl_tcp/ You’ll need to download the Using SDR# select RTL-SDR / TCP tools from RTL-SDR and install a and fill out the IP address of the few packages to make it work. Raspberry Pi – then press play! What can I do with it ? • WSPR Beacon Transmitter The Raspberry Pi can be used as a very simple WSPR beacon by connecting GPIO port to Antenna (and LPF). It operates on the LF, MF, HF and VHF bands. http://github.com/threeme3/WsprryPi The propagation maps can be displayed using an iPad App. Alternatively the WSPR program can be compiled for the Raspberry Pi and used to drive a transceiver http://www.george-smart.co.uk/wiki/RaspberryPi_WSPR How do I get started ? 1. Choose a suitable SD Card The SD card needs to be at least 4GB in size and must be Class 4 or better. A micro SD card can be used with an adapter The Class is shown in the small circle and indicates how fast the card is. Before this card can be used with the Raspberry Pi computer, it must first be formatted and loaded with an operating system. In most cases this is Linux... How do I get started ? 2. Format the SD Card Download SD Card Formatter from the SD Card Association www.sdcard.org Insert the SD Card into your computer’s SD Card slot and format it – this utility formats the whole card not just the partitions that are visible to Windows. Select Format Size Adjustment to restore the card to its original size How do I get started ? 3. Download the Software It is recommended that first time Raspberry Pi users should start by downloading the New Out of Box Software (NOOBS) software which is available from the Raspberry Pi website. 4. Extract the Zip file onto the SD Card Right Click the File and select Extract All – copy the files onto your SD Card Other software may require an image file to be written to the card using Win32 Disk Imager How do I get started ? 5.