
DIY Microcontroller Projects for Hobbyists
- 320 pages
- English
- ePUB (mobile friendly)
- Available on iOS & Android
DIY Microcontroller Projects for Hobbyists
About this book
A practical guide to building PIC and STM32 microcontroller board applications with C and C++ programmingKey Features⢠Discover how to apply microcontroller boards in real life to create interesting IoT projects⢠Create innovative solutions to help improve the lives of people affected by the COVID-19 pandemic⢠Design, build, program, and test microcontroller-based projects with the C and C++ programming languageBook DescriptionWe live in a world surrounded by electronic devices, and microcontrollers are the brains of these devices. Microcontroller programming is an essential skill in the era of the Internet of Things (IoT), and this book helps you to get up to speed with it by working through projects for designing and developing embedded apps with microcontroller boards. DIY Microcontroller Projects for Hobbyists are filled with microcontroller programming C and C++ language constructs. You'll discover how to use the Blue Pill (containing a type of STM32 microcontroller) and Curiosity Nano (containing a type of PIC microcontroller) boards for executing your projects as PIC is a beginner-level board and STM-32 is an ARM Cortex-based board. Later, you'll explore the fundamentals of digital electronics and microcontroller board programming. The book uses examples such as measuring humidity and temperature in an environment to help you gain hands-on project experience. You'll build on your knowledge as you create IoT projects by applying more complex sensors. Finally, you'll find out how to plan for a microcontroller-based project and troubleshoot it. By the end of this book, you'll have developed a firm foundation in electronics and practical PIC and STM32 microcontroller programming and interfacing, adding valuable skills to your professional portfolio.What you will learn⢠Get to grips with the basics of digital and analog electronics⢠Design, build, program, and test a microcontroller-based system⢠Understand the importance and applications of STM32 and PIC microcontrollers⢠Discover how to connect sensors to microcontroller boards⢠Find out how to obtain sensor data via coding⢠Use microcontroller boards in real life and practical projects Who this book is forThis STM32 PIC microcontroller book is for students, hobbyists, and engineers who want to explore the world of embedded systems and microcontroller programming. Beginners, as well as more experienced users of digital electronics and microcontrollers, will also find this book useful. Basic knowledge of digital circuits and C and C++ programming will be helpful but not necessary.
Frequently asked questions
- Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
- Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Information
Chapter 1: Introduction to Microcontrollers and Microcontroller Boards
- Introduction to microcontrollers
- An overview of analog and digital electronics necessary for carrying out the book's projects
- Description of the Blue Pill and Curiosity Nano microcontroller boards
Technical requirements
- Arduino IDE: This free IDE was originally created for programming Arduino microcontroller boards, but you can also use it for programming the Blue Pill microcontroller board if you install a library for it.
- MPLAB ÂŽ X IDE: Made by Microchip, the Curiosity Nano manufacturer. This is a free IDE necessary for programming the Curiosity Nano.
- A regular LED light â any color will do.
- A 220-ohm resistor; 0.25 watts.
- A solderless breadboard for connecting an LED and a resistor and some male-to-male jumper wires to make the electrical connections between the components and the microcontroller boards.
- A micro USB cable for connecting your microcontroller boards to a computer.
- The Blue Pill and Curiosity Nano boards, of course! There are several vendors and manufacturers of the Blue Pill board, which uses the STM32F103C8T6 microcontroller. In the case of the Curiosity Nano, we use a version called the PIC16F15376 Curiosity Nano PICÂŽ MCU 8-Bit Embedded Evaluation Board, part number DM164148, manufactured by Microchip.
- A programming adapter such as the ST-Link/V2 is also needed. This electronic interface will allow you to upload the compiled code to the Blue Pill, establishing communication from your computer to the Blue Pill microcontroller board. The ST-Link/V2 needs four female-to-female DuPont wires.
Introduction to microcontrollers
Table of contents
- DIY Microcontroller Projects for Hobbyists
- Contributors
- Preface
- Chapter 1: Introduction to Microcontrollers and Microcontroller Boards
- Chapter 2: Software Setup and C Programming for Microcontroller Boards
- Chapter 3: Turning an LED On or Off Using a Push Button
- Chapter 4: Measuring the Amount of Light with a Photoresistor
- Chapter 5: Humidity and Temperature Measurement
- Chapter 6: Morse Code SOS Visual Alarm with a Bright LED
- Chapter 7: Creating a Clap Switch
- Chapter 8: Gas Sensor
- Chapter 9: IoT Temperature-Logging System
- Chapter 10: IoT Plant Pot Moisture Sensor
- Chapter 11: IoT Solar Energy (Voltage) Measurement
- Chapter 12: COVID-19 Digital Body Temperature Measurement (Thermometer)
- Chapter 13: COVID-19 Social-Distancing Alert
- Chapter 14: COVID-19 20-Second Hand Washing Timer
- Other Books You May Enjoy