DIY Microcontroller Projects for Hobbyists
Miguel Angel Garcia-Ruiz, Pedro Cesar Santana Mancilla
- 320 pages
- English
- ePUB (mobile friendly)
- Available on iOS & Android
DIY Microcontroller Projects for Hobbyists
Miguel Angel Garcia-Ruiz, Pedro Cesar Santana Mancilla
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
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.