Bachelorarbeit, 2017
37 Seiten, Note: 2,0
1 Introduction and Motivation
2 Concept and technical Requirements
2.1 Concept
2.2 Hardware Concept
2.3 Software Concept
3 Technical Demands
4 Implementation
4.1 Hardware Construction on the Breadboard
4.1.1 Communication Atmel – Raspberry Pi
4.1.2 Transmission of Radio Signals
4.1.3 Comparison of Radio Receivers
4.2 Prototyp
4.2.1 Printed Circuit Board
4.2.2 Testing Prototyp
4.3 Software Implementation
4.3.1 Implementation on the Rasperry Pi and Usage with Scratch
4.3.2 Implementation on the ATmega328P
5 Application Scenario
6 Summary
This thesis aims to develop a manufacturer-independent radio board in the 433 MHz frequency range, integrated with a Raspberry Pi to enable smart home control via the visual programming language Scratch, specifically designed to make home automation accessible to children and programming beginners.
4.1 Hardware Construction on the Breadboard
The 8-bit microcontroller ATmega328P is the main part of the radio board. With its 23 IO pins, a 10bit Analog Digital Converter (ADC) and a UART, I2C and SPI bus system, it offers all requirements for this project. Although an internal oscillator can be used for the clocking, a 16 MHz crystal has been used for this requirement to guarantee a consistent clock rate, even at faster clock rates of different bus transmissions. To realize a basic circuit for using the ATmega328P with an external quartz and an ICSP socket to program the microcontroller on the board, a minimal circuit has to be used, as shown in the Figure 4.
In addition to a 10 kOhm pull-up resistor at the reset pin, two 22 pf capacitors at the quartz pins - which are intended to help the quartz to oscillate - and another 100 nF blocking capacitor - to prevent voltage dips - must be placed close to the supply pins. In order to program the microcontroller on the board without having to remove it every time, a 6pin ICSP socket is installed. For this socket, attention was paid to use the common ICSP pin assignment of all microcontrollers from Atmel to provide compatibility with all programming devices available on the market. The SPI protocol is used for this ICSP programming, which means that, in addition to the voltage supply, one need four further pins (MOSI, MISO, SCLK, SS). These pins can also be used for other tasks during operation. The MySmartUSBlight programming device - which already provides the power supply during programming - was used for this project (see Figure 5 (I)).
1 Introduction and Motivation: Defines the scope of the project, focusing on creating a flexible, manufacturer-independent smart home system accessible to non-professionals using the Raspberry Pi and Scratch.
2 Concept and technical Requirements: Outlines the necessity of a radio board that works with multiple manufacturers' protocols and details the hardware and software choices made.
3 Technical Demands: Explains the requirements for a radio-based system that can read and store protocols without specialized equipment like logic analyzers.
4 Implementation: Describes the hardware construction, the prototype development, and the detailed software implementation on both the Raspberry Pi and the ATmega328P.
5 Application Scenario: Demonstrates how the system is used in practice for various automation tasks like light, temperature, and garage door control via Scratch.
6 Summary: Reviews the project results, confirming the successful development of the radio board and the viability of the software interface for smart home applications.
Smart home, radio board, Raspberry Pi, Scratch, ATmega328P, 433 MHz, automation, UART, I2C, Python, radio protocol, microcontroller, PCB, prototype, programming interface
The paper focuses on developing a radio board that integrates various 433 MHz smart home devices from different manufacturers, allowing them to be controlled through a user-friendly interface.
The system utilizes a Raspberry Pi as the main computer and an ATmega328P microcontroller for radio frequency tasks, with Scratch serving as the visual programming environment.
The primary goal is to provide a low-cost, flexible, and easy-to-use smart home solution that is accessible to children and programming beginners.
A Python script running on the Raspberry Pi serves as the interface, translating Scratch commands into radio protocols sent to the microcontroller via UART.
The chapter covers hardware setup on a breadboard, the development of a printed circuit board (PCB), testing the prototype, and writing the software logic for signal processing.
Key terms include Smart home, Raspberry Pi, Scratch, 433 MHz, radio board, and automation.
The system includes a 'set_protocol' function that allows users to manually enter protocol data into a file on the Raspberry Pi, which is then stored on the EEPROM.
It allows users to visualize invisible radio protocols as graphs, enabling easier comparison and analysis of different radio signals without needing an oscilloscope.
Der GRIN Verlag hat sich seit 1998 auf die Veröffentlichung akademischer eBooks und Bücher spezialisiert. Der GRIN Verlag steht damit als erstes Unternehmen für User Generated Quality Content. Die Verlagsseiten GRIN.com, Hausarbeiten.de und Diplomarbeiten24 bieten für Hochschullehrer, Absolventen und Studenten die ideale Plattform, wissenschaftliche Texte wie Hausarbeiten, Referate, Bachelorarbeiten, Masterarbeiten, Diplomarbeiten, Dissertationen und wissenschaftliche Aufsätze einem breiten Publikum zu präsentieren.
Kostenfreie Veröffentlichung: Hausarbeit, Bachelorarbeit, Diplomarbeit, Dissertation, Masterarbeit, Interpretation oder Referat jetzt veröffentlichen!

