M5Stack Electronic Blueprints (eBook)
288 Seiten
Packt Publishing (Verlag)
978-1-80323-842-5 (ISBN)
As an embedded systems developer or an IoT developer, you can often face challenges in maintaining focus on prototyping a product concept while using a specific high-level programming language for implementation. To overcome these challenges, the M5Stack Core platform uses an ESP32 microcontroller and block code that allows you to focus on product creation and application instead of the high-level programming language. M5Stack Electronics Blueprints presents various design and prototyping approaches as well as UI layout and electronics interfacing techniques that will help you to become skilled in developing useful products effectively.
This book takes you through a hands-on journey for a better understanding of the ESP32 microcontroller and the M5Stack Core's architecture. You'll delve into M5Stack Core topics such as electronic units, light, sound, motion devices, interfacing circuits, SNAP circuit kits, Arduino applications, and building Bluetooth and Wi-Fi IoT devices. Further, you'll explore various M5Stack core applications using a project-based learning method, including the fascinating 32-bit microcontroller device technology.
By the end of this book, you'll be able to design and build interactive, portable electronic controllers, IoT, and wearable devices using the M5Stack Core.
Acquire hands-on knowledge and technical skills for designing and developing aesthetically appealing, interactive devices using ESP32, Arduino, and SNAP circuits with M5Stack CoreKey FeaturesLearn ESP32 microcontroller and M5Stack Core development platform with hands-on projectsCreate aesthetically appealing visuals for technology engagement using the M5Stack Core deviceBuild interactive devices using Arduino and SNAP circuits with the M5Stack Core development platformBook DescriptionAs an embedded systems developer or an IoT developer, you can often face challenges in maintaining focus on prototyping a product concept while using a specific high-level programming language for implementation. To overcome these challenges, the M5Stack Core platform uses an ESP32 microcontroller and block code that allows you to focus on product creation and application instead of the high-level programming language. M5Stack Electronics Blueprints presents various design and prototyping approaches as well as UI layout and electronics interfacing techniques that will help you to become skilled in developing useful products effectively.This book takes you through a hands-on journey for a better understanding of the ESP32 microcontroller and the M5Stack Core's architecture. You'll delve into M5Stack Core topics such as electronic units, light, sound, motion devices, interfacing circuits, SNAP circuit kits, Arduino applications, and building Bluetooth and Wi-Fi IoT devices. Further, you'll explore various M5Stack core applications using a project-based learning method, including the fascinating 32-bit microcontroller device technology.By the end of this book, you'll be able to design and build interactive, portable electronic controllers, IoT, and wearable devices using the M5Stack Core.What you will learnDesign user interfaces using no-code/low code programming languagesPrototype electronic controllers for audio alarms swiftlyWire an M5Stack Core 2 to an Arduino Uno or equivalent to build a touch control relay controllerPrototype Bluetooth IoT controllers efficientlyBuild and code Wi-Fi sniffers and scanner gadgetsPrototype wearable devices with easeCreate ESP32 applications using system block diagram designBuild a DC motor controller operated by a M5Stack Core unitWho this book is forThis book is for practicing embedded systems and IoT developers, electronics and automation technicians, STEM technical educators, students, and hobbyists looking to learn about the ESP32 microcontroller and M5Stack technologies. There is no prerequisite - apart from a desire to learn about ESP32-based electronics and interactive devices, then this book is for you.
1
Exploring the M5Stack Core
You are the proud owner of a small and powerful microcontroller development platform called the M5Stack Core. The M5Stack Core uses the Espressif ESP32 microcontroller to allow you to create a variety of programmable electronic gadgets and devices. You can build programmable gadgets such as touchscreen controllers, Wi-Fi-operated devices, wearables, robots, and portable electronic games using the M5Stack Core. In addition, with the M5Stack Core, you can add visually appealing graphics and sound to your electronic creations easily and effectively using the Arduino Integrated Development Environment and the UiFlow Blockly code programming environment.
By the end of this chapter, you will understand the ESP32 microcontroller and the internal supporting electronics hardware. You will understand the M5GO Core hardware architecture’s inner workings. Finally, you will know about applying the internal support electronics hardware to create an interactive electronic widget device.
In this chapter, we’re going to cover the following main topics:
- Welcome to the M5Stack Core
- Overview of the M5Stack Core hardware architecture
- UI design basics
- UiFlow overview
- Communicating with the M5Stack Core
Technical requirements
To engage with the chapter’s learning content, you will need the M5GO IoT Starter Kit to explore the internal/external hardware electronics and software coding of your first basic application. The UiFlow code block software will be required to build and run the M5Stack Core application.
You will require the following:
- M5Burner
- The M5Stack Core
- The M5GO IoT Starter kit
- UiFlow Blockly code programming software
Here is the GitHub repository for supporting software resources: https://github.com/PacktPublishing/M5Stack-Electronic-Blueprints/tree/main/Chapter01.
Welcome to the M5Stack Core
In this section, you will learn the basic functions and features of the M5Stack Core. You will be able to perform the following tasks upon completing the lessons in this section:
- Power and reset the M5Stack Core
- Prepare the unit for programming
- Identify the three programmable user-interface buttons
- Identify the external ports for connecting electronic units
- Identify the USB port
- Identify the LED bars
- Select your stored applications
- Change the initial setup operation of the M5Stack Core
Upon completing this section, you will have a solid foundation of the external features and internal functions of the M55tack Core. Being able to complete these tasks will be important for programming and testing software applications that you create with your M5Stack Core. We will start the discussion with an overview of the M5Stack Core external features.
Powering and resetting the M5Stack Core
Turning on the M5Stack Core is quite easy to do. The M5Stack Core has a small red power button, as seen in Figure 1.1. The small red power button is located on the left side of the M5Stack Core. You turn on the M5Stack Core with a single press of the power button. You reset the M5Stack Core with a quick double press of the power button:
Figure 1.1 – The M5Stack Core power button location
Once the M5Stack Core is powered on, a UiFlow splash screen is displayed on the liquid crystal display (LCD), as seen in the following screenshot:
Figure 1.2 – UiFlow splash screen displayed after powering on the M5Stack Core
Initially, the M5Stack Core is programmed with 11 demonstration activities. The 11 demonstration activities are shown in the following diagram:
Figure 1.3 – UiFlow M5Stack Core demonstration activities
Next, let us learn about each demonstration activity through an accompanying explanation. We will explore the internal features of the M5Stack Core through a series of hands-on demonstrator activities:
- Demo 1 on/off: To turn off the M5Stack Core, a quick double press of the power button will accomplish this task, as seen here:
Figure 1.4 – The on/off operation of the M5Stack Core
- Demo 2 speaker: Press the center button on the M5Stack Core to hear a sound from the internal speaker:
Figure 1.5 – Speaker demonstrator
- Demo 3 microphone: Speak into the pinhole microphone located on the side of the M5Stack Core. While speaking into the microphone, observe the line and sound wave images. Let’s see how this looks in the following figure:
Figure 1.6 – Microphone demonstrator
- Demo 4 gyro: Tilt the M5Stack Core and observe the ball movement on the LCD screen. The movement is accomplished using a gyroscope and an accelerometer, as can be seen in Figure 1.7:
Figure 1.7 – Gyro demonstrator
- Demo 5 RGB LEDs: This demonstrator will glow and dim the sidebar RGB LEDs of the M5Stack Core. There is one LED bar on each side of the M5Stack Core:
Figure 1.8 – RGB bar demonstrator
- Demo 6 ports explanation: The different electrical ports and their specific functions will be explored in this demonstration:
Figure 1.9 – Extension port demonstrator
Congratulations, you have completed exploring the internal features of the M5Stack Core. We will now learn about four sensor units from the M5GO IoT Starter Kit, which are shown in the following photo:
Figure 1.10 – The M5GO IoT Starter Kit
- Demo 7 environment sensor: The temperature and humidity levels are displayed on the LCD upon connecting the sensor to extension port A of the M5Stack Core:
Figure 1.11 – Environment sensor demonstrator
- Demo 8 passive infrared (PIR) sensor: Attach the PIR sensor to extension port B of the M5Stack Core. You can observe a color change in the circle when placing your hand in front of the sensor. The color change response of the circle also occurs when you move your hand away from the PIR sensor. The following diagram illustrates the motion sensor’s response to a hand moved away from the PIR sensor:
Figure 1.12 – PIR sensor demonstrator
- Demo 9 RGB unit: You explored the RGB LED bars in the fifth demonstrator activity. You will investigate the RGB LEDs packaged in this extension unit. This RGB LED unit will only light up when properly attached to extension port B. This diagram shows the wiring connector being attached to the RGB LED to connect to extension port B:
Figure 1.13 – RGB unit demonstrator
- Demo 10 infrared (IR) Remote unit: You can attach the IR Remote unit to extension port B using a wiring connector, as shown in Figure 1.14. Next, you take an ordinary IR handheld remote and point it toward the IR Remote unit. You can press any button on the IR handheld remote and observe the detection effect on the M5Stack Core LCD:
Figure 1.14 – IR Remote demonstrator
- Demo 11 angle sensor: You can test the knob on the angle sensor as shown in Figure 1.15, and observe the RGB LED bars getting brighter or dimmer:
Figure 1.15 – Angle sensor demonstrator
Congratulations, you have learned about the M5Stack Core demonstrators. You have learned how to operate external sensors that are packaged with the M5GO IoT Starter Kit.
Note
To reinstall the firmware with the Demo app, use the M5Burner software. Select version 1.7.5 of the UIFLOW Core firmware. The name of the app is M5GO.py.
You have also learned how internal...
| Erscheint lt. Verlag | 17.2.2023 |
|---|---|
| Sprache | englisch |
| Themenwelt | Informatik ► Weitere Themen ► Hardware |
| ISBN-10 | 1-80323-842-9 / 1803238429 |
| ISBN-13 | 978-1-80323-842-5 / 9781803238425 |
| Informationen gemäß Produktsicherheitsverordnung (GPSR) | |
| Haben Sie eine Frage zum Produkt? |
Digital Rights Management: ohne DRM
Dieses eBook enthält kein DRM oder Kopierschutz. Eine Weitergabe an Dritte ist jedoch rechtlich nicht zulässig, weil Sie beim Kauf nur die Rechte an der persönlichen Nutzung erwerben.
Dateiformat: EPUB (Electronic Publication)
EPUB ist ein offener Standard für eBooks und eignet sich besonders zur Darstellung von Belletristik und Sachbüchern. Der Fließtext wird dynamisch an die Display- und Schriftgröße angepasst. Auch für mobile Lesegeräte ist EPUB daher gut geeignet.
Systemvoraussetzungen:
PC/Mac: Mit einem PC oder Mac können Sie dieses eBook lesen. Sie benötigen dafür die kostenlose Software Adobe Digital Editions.
eReader: Dieses eBook kann mit (fast) allen eBook-Readern gelesen werden. Mit dem amazon-Kindle ist es aber nicht kompatibel.
Smartphone/Tablet: Egal ob Apple oder Android, dieses eBook können Sie lesen. Sie benötigen dafür eine kostenlose App.
Geräteliste und zusätzliche Hinweise
Buying eBooks from abroad
For tax law reasons we can sell eBooks just within Germany and Switzerland. Regrettably we cannot fulfill eBook-orders from other countries.
aus dem Bereich