Build Your Own Car Dashboard with a Raspberry Pi: Practical Projects to Build Your Own Smart Car
Book information
Description
Create your own car engine control unit (ECU) with a simple Raspberry PI while building the necessary skills to produce future more advanced projects. Once you've worked through the projects in this book, you'll have a smart car and the coding knowledge needed to develop advanced hardware and software projects. Start by understanding how the Pi works, and move on to how to build hardware projects, use the GPIO pins, and install the system. Then add to that a solid understanding of software development principles and best practices, along with a good grasp of Python (v3.6+) and Python/software best practices. More than just how to code in Python, you'll learn what it takes to write production grade software, defensive code, testing, deployments, version control, and more. Internalize industry best practices while going further with valuable software development techniques such as defensive programming. The concepts introduced are essential to ensuring that software can function under unexpected circumstances. Can you imagine what would happen if your mobile phone could not cope with a call from an unknown number, or you had to set you microwave in increments of 6 seconds? While testing avoids edge cases such as these, defensive programming is one of the building blocks of software development. What You'll Learn Hone test driven development in Python skills Debug software and hardware project installations Work with the GPIO ports of the Pi to feed your software real-world hardware information Who This Book Is For People who like working on cars and want to learn Raspberry Pi and software development but don’t know where to start. Table of Contents About the Author About the Technical Reviewer Preface Introduction Chapter 1: Raspberry Pi History A Brief History of Pi Raspberry Pi 1 Raspberry Pi 2 Raspberry Pi Zero Raspberry Pi 3 Raspberry Pi 4 Pi Cameras Chapter Summary Chapter 2: Software Development Primer Types of Programming Languages Data Types Python 2 vs. Python 3 Object-Oriented Programming (OOP) Classes Inheritance Encapsulation Polymorphism Design Patterns SOLID Principles Event-Driven Programming Defensive Programming 1992 London Ambulance Service Computer-Aided Ambulance-Dispatch System Testing Therac-25 Radiation Therapy Machine Test-Driven Development (TDD) Debugging Rubber Duck Debugging Logging Print Statements: The Pauper’s Logging Breakpoints Version Control with Git Deployments Chapter Summary Chapter 3: Project Overview Project Structure The Hardware Electronic Components Equipment List Chapter Summary Chapter 4: Local Development Configuration Getting Started with Python Git and GitHub Repository Configuration Integrated Development Environment Setup Python Virtual Environment Configuration Git Workflow Pull Requests Repository Rules Pipeline Configuration Git Cheat Sheet Chapter Summary Chapter 5: Raspberry Pi Initial Configuration Install an Operating System on Your Memory Card Boot the Pi for the First Time Configure SSH Pi Python Setup Cloning the Repository Keeping Code Updated Chapter Summary Chapter 6: Getting Started with Flask First Flask Config Running Flask on the Pi Autostart Flask When the Pi Boots Chapter Summary Chapter 7: Temperature Monitoring Hardware Configuration Pi Configuration Flask Temperature Sensor Logic Chapter Summary Chapter 8: Boot Sensor Hardware Configuration Flask Boot Sensor Logic First Unit Tests Chapter Summary Chapter 9: Light Sensor Hardware Configuration Test-Driven Development Light Sensor Tests Flask Light Sensor Logic Chapter Summary Chapter 10: Fog and Reverse Sensors Hardware Configuration Fog and Reverse Sensors Logic Chapter Summary Chapter 11: Reversing Camera Camera Connection Pi Camera First Time Configuration Camera Live Stream Configuration Pi Camera Focus Adjustment Camera Flask Code Chapter Summary Chapter 12: Reversing Beeper Piezo Connection Piezo Flask Logic Chapter Summary Chapter 13: Distance Sensor Distance Sensor Theory Distance Sensor Hardware Distance Sensor Flask Code Chapter Summary Chapter 14: System Polishing Basic Dashboard Layout Autoload the Pi’s Web Browser Show Sensor Data Reversing Module Completion Final Pi Improvements Index
Similar books
Build Your Own Car Dashboard with a Raspberry Pi: Practical Projects to Build Your Own Smart Car
2020 · PDF
Build Your Own Car Dashboard with a Raspberry Pi: Practical Projects to Build Your Own Smart Car
2020 · PDF
Build Your Own Car Dashboard with a Raspberry Pi: Practical Projects to Build Your Own Smart Car
2020 · EPUB
MySQL® Notes for Professionals book
2018 · PDF
MrExcel 2022: Boosting Excel
2022 · PDF
MrExcel 2022: Boosting Excel
2022 · PDF
Session C11: Ancient Cultural Landscapes in South Europe – their Ecological Setting and Evolution, Session C22: Gardeners from South America, Session S04: Agro-Pastoralism and Early Metallurgy Sessions, Session WS29: The Idea of Enclosure in Recent Iberian Prehistory, Session C88: Rhytmes et causalites des dynamiques de l'anthropisation en Europe entre 6500 ET 500 BC: Hypotheses socio-culturelles et/ou climatiques: Proceedings of the XV UISPP World Congress (Lisbon 4-9 September 2006) / Actes du XV Congrès Mondial (Lisbonne 4-9 Septembre 2006) Vol.36
2010 · PDF
THE BRITISH ARMY IN INDIA: ITS PRESERVATION BY AN APPROPRIATE CLOTHING, HOUSING, LOCATING, RECREATIVE EMPLOYMENT, AND HOPEFUL ENCOURAGEMENT OF THE TROOPS. with AN APPENDIX ON INDIA : THE CLIMATE OP ITS HILLS ; THE DEVELOPMENT OF ITS RESODRCBS, INDUSTRY, AND ARTS ; THE ADMINISTRATION OF JUSTICE ; THE BLACK ACT ; THE PROGRESS OF CHRISTIANITY ; THE TRAFFIC IN OPIUM ; THE VALUE OF INDIA ; PERMANENT CAUSES OF DISAFFECTION, AND OF THE RECENT REBELLION ; THE TRADITIONARY POLICY; MISGOVERNMENT BY NATIVE RULERS ; ANNEXATIONS OF THEIR TERRITORY, ETC.
1858 · PDF