Shawn HymelIn this video, we show how to configure and use Mosquitto, one of the most widely adopted open-source MQTT brokers. Mosquitto is lightweight, easy to install, and maintained by the Eclipse Foundation. While it doesn’t include dashboards or databases like full-featured IoT platforms, it provides a solid, minimal broker that you can extend however you like, which is perfect for prototyping or building a self-hosted IoT system from scratch. Because it’s small and reliable, Mosquitto is a great option for developers running local servers, lab setups, or containerized deployments.
MQTT has become one of the most popular protocols in IoT because it’s lightweight, reliable, and designed for devices that need to send small messages efficiently. Whether you're collecting sensor data, controlling smart devices, or building a distributed embedded system, MQTT’s publish/subscribe model makes it easy to scale and keeps network usage low. It’s also simple enough to run on microcontrollers, which makes it ideal for embedded developers who want to connect devices without the overhead of heavier protocols.
This tutorial walks you step-by-step through installing Mosquitto inside a fresh Debian container, enabling username/password authentication, generating self-signed TLS certificates, and configuring the broker for secure, encrypted MQTT communication. We finish by testing the setup using both the Mosquitto CLI tools and the MQTTX GUI client. If you’re learning MQTT, building an IoT platform, or just want to understand how secure MQTT communication works end-to-end, this video will get you up and running quickly.
0:00 Intro 1:00 IoT with ESP32 and ESP-IDF Course 1:50 Build and configure Docker image 3:32 Install and configure Mosquitto 8:30 Run and test Mosquitto 11:56 Self sign X.509 certificate 23:30 Configure Mosquitto with TLS 25:07 Run and test Mosquitto with TLS 27:49 How to connect MQTTX to the Mosquitto broker with TLS 34:13 Conclusion
Getting Started with the Mosquitto MQTT Broker (with SSL/TLS)Shawn Hymel2025-12-02 | In this video, we show how to configure and use Mosquitto, one of the most widely adopted open-source MQTT brokers. Mosquitto is lightweight, easy to install, and maintained by the Eclipse Foundation. While it doesn’t include dashboards or databases like full-featured IoT platforms, it provides a solid, minimal broker that you can extend however you like, which is perfect for prototyping or building a self-hosted IoT system from scratch. Because it’s small and reliable, Mosquitto is a great option for developers running local servers, lab setups, or containerized deployments.
MQTT has become one of the most popular protocols in IoT because it’s lightweight, reliable, and designed for devices that need to send small messages efficiently. Whether you're collecting sensor data, controlling smart devices, or building a distributed embedded system, MQTT’s publish/subscribe model makes it easy to scale and keeps network usage low. It’s also simple enough to run on microcontrollers, which makes it ideal for embedded developers who want to connect devices without the overhead of heavier protocols.
This tutorial walks you step-by-step through installing Mosquitto inside a fresh Debian container, enabling username/password authentication, generating self-signed TLS certificates, and configuring the broker for secure, encrypted MQTT communication. We finish by testing the setup using both the Mosquitto CLI tools and the MQTTX GUI client. If you’re learning MQTT, building an IoT platform, or just want to understand how secure MQTT communication works end-to-end, this video will get you up and running quickly.
0:00 Intro 1:00 IoT with ESP32 and ESP-IDF Course 1:50 Build and configure Docker image 3:32 Install and configure Mosquitto 8:30 Run and test Mosquitto 11:56 Self sign X.509 certificate 23:30 Configure Mosquitto with TLS 25:07 Run and test Mosquitto with TLS 27:49 How to connect MQTTX to the Mosquitto broker with TLS 34:13 ConclusionDesk mod for headphonesShawn Hymel2026-08-25 | Finally got around to doing the headphone/speaker switch mod on my #desk 😁
#headphones #maker #3DprintingM5Stack BalaC balancing from reinforcement learningShawn Hymel2026-08-10 | The demo balance bot is working! Want to chat about it? Come hang out this Thursday to see how I used #ReinforcementLearning to teach it to balance.
#robotics #AI #embedded #Arduino @digikey @M5StackCurriculum learning to train a balance botShawn Hymel2026-07-28 | Curriculum learning helps #ReinforcementLearning agents to behave in ways you intend and avoid stumbling on random (unintended) actions that technically accomplish the goal. #AI #MachineLearning #roboticsOpen Sauce 2026 ProjectsShawn Hymel2026-07-20 | I had an amazing time at #OpenSauce this past weekend. Here are some of my favorite projects that I saw throughout. I’m thrilled to see the #maker world still going strong 🦾 #electronics #robotics #3dprinting @digikey @Arduino @virginiatechSenseCAP P1 Meshtastic Repeater With Grove SensorShawn Hymel2026-06-26 | The @SeeedStudioSZ SenseCAP P1 #Meshtastic repeater has a single Grove connector in the enclosure, which is perfect for something like a BME680 environment sensor. It’s great for broadcasting temperature, humidity, etc. in your area! #LoRa #electronics @digikeyTraining a balance bot with reinforcement learningShawn Hymel2026-06-18 | Meet my new robot, Aiden 🤖 I wanted to explore how to use #ReinforcementLearning to tackle an old balance bot problem. Simulating the bot was pretty simple. Training the #AI and deploying it to real hardware was another thing entirely. The fun part is seeing how an AI control system responds when the real world gets messy. The sim2real gap is real and really tricky! More testing, tuning, and probably a few crashes ahead.
#robotics #machinelearning #engineering #education #Arduino #esp32 @digikey @M5Stack @EspressifSystemsDomain randomization is a powerful technique #Arduino #robotics #engineering #education #AI #MLShawn Hymel2026-05-18 | ...Interview with Sid Deliwala (ECEDHA 2026): Teaching Edge AI from Day OneShawn Hymel2026-04-02 | In this interview from the ECEDHA 2026 conference, I spoke with Professor Siddharth Deliwala from the University of Pennsylvania about how he’s introducing edge AI concepts to students as early as their freshman year. Instead of waiting for advanced coursework, his approach focuses on top-down, project-based learning by getting students to build real systems with hardware, software, and networking components from the start.
A key theme in this conversation is using early exposure to motivate deeper learning. Students quickly run into real-world constraints like latency, memory limits, and compute tradeoffs when working on embedded AI projects, which helps contextualize the theory they’ll encounter later in their coursework. We also discuss how AI tools like LLMs are changing assessment and why hands-on labs, group projects, and practical exams may become even more important.Interview with Omiya Hassan (ECEDHA 2026): Preparing Students for Edge AIShawn Hymel2026-04-02 | In this interview from the ECEDHA 2026 conference, I spoke with Omiya Hassan, Assistant Professor of Electrical and Computer Engineering at Boise State University, about how edge AI is being taught from both the software and hardware perspectives. We discuss the growing need for ECE students to understand machine learning fundamentals, as well as the equally important need for computer science students to understand the hardware their models run on.
A big theme in this conversation is bridging the gap between disciplines. Omiya shares how she structures her edge AI course to pair CS and ECE students together, helping them learn from each other while working across the full stack (from training models to deploying them on constrained hardware). We also talk about where LLMs fit into engineering education, when they help, and when they can get in the way of learning.Interview with Mario Simoni (ECEDHA 2026): AI in Engineering EducationShawn Hymel2026-04-02 | In this interview from the 2026 ECEDHA conference, I spoke with Mario Simoni, Department Head of Electrical and Computer Engineering at Rose-Hulman, about how AI is being integrated into engineering education. We discuss where AI naturally fits within ECE (like control systems, embedded systems, and resource-constrained environments), as well as the growing importance of understanding how to deploy machine learning on real hardware rather than relying on the cloud.
A major theme that came up is the tension between teaching fundamental engineering skills and introducing powerful AI tools that can bypass those fundamentals. When should students be allowed to use AI? How do we prepare them for industry without undermining their learning? And what role should faculty play as this technology evolves? These are tricky topics that engineering education (and education at large) are tackling right now.What is MQTT?Shawn Hymel2025-11-18 | MQTT (Message Queuing Telemetry Transport) is a lightweight, publish/subscribe messaging protocol designed for low-power, low-bandwidth, or unreliable networks. From the early days of monitoring oil pipelines over satellite links to today’s massive IoT deployments, MQTT has evolved into a flexible and powerful messaging system used around the world.
We’ll walk through the publish/subscribe model, how brokers and clients communicate, and how topics and wildcards let you organize data in a clean, hierarchical way. You’ll also learn about MQTT features like Quality of Service levels, retained messages, and Last Will and Testament. These are tools that give you control over reliability, delivery guarantees, and device health monitoring even in unreliable networks.
We also cover the key upgrades introduced in MQTT version 5, including message expiry, user properties, shared subscriptions, and improved request/response handling. Whether you're building home automation projects, industrial control systems, or large-scale sensor networks, these features help you design systems that are scalable, efficient, and easier to reason about.
We’ll finish with essential security considerations to help you protect your MQTT setup, including TLS, authentication, access control lists, and basic hardening practices. If you're new to MQTT or want a stronger conceptual foundation, this video gives you a solid conceptual understanding of how MQTT works and important terminology you’ll need to implement IoT device networks using the protocol.What is Transport Layer Security (TLS)?Shawn Hymel2025-11-04 | In this video, I’ll explain what Transport Layer Security (TLS) is, how it relates to Secure Sockets Layer (SSL), and how it keeps our internet communications safe. We’ll look at how encryption, authentication, and digital certificates work together to ensure that the data we send stays private, unaltered, and verified (whether you’re browsing a website or connecting an IoT device to the cloud).
We’ll start by reviewing the problems with unencrypted communication and symmetric key exchange, then explore how asymmetric cryptography, certificate authorities, and the TLS handshake solve those issues. You’ll learn how TLS evolved from SSL, what happens during a handshake, and how the protocol builds a secure, encrypted channel between a client and a server.
We show the handshake process used by TLS 1.2 and demonstrate how certificates are verified. At the end, we show where 1.3 deviates from this process to provide for faster handshakes and session resumption.
0:00 Symmetric Encryption 0:55 Asymmetric Encryption 1:53 Man-in-the-middle attack 2:43 History of SSL/TLS 5:05 X.509 Certificate 8:01 TLS 1.2 Handshake 9:19 Certificate Verification 12:37 Session Key Generation 14:29 TLS Connection Termination 15:28 TLS 1.3 Handshake 17:45 TLS 1.3 Resumption 18:23 Mutual TLS 19:12 ConclusionESP32 - HTTP GET with ESP-IDF TutorialShawn Hymel2025-10-21 | Learn how to make HTTP GET requests from an ESP32 microcontroller using ESP-IDF and low-level BSD sockets in this comprehensive tutorial. We'll start with the fundamentals of HTTP communication and socket programming, then build a complete application that connects to WiFi, performs DNS lookups, establishes socket connections, sends HTTP requests, and processes server responses. This hands-on project will give you the essential networking skills needed to build IoT devices that communicate with web servers and REST APIs.
If you would like to go further, check out my full IoT Firmware Development with ESP32 and ESP-IDF course: https://learnembedded.dev/courses/iot-firmware-development-with-esp32-and-esp-idf/?utm_source=youtube&utm_medium=video&utm_campaign=esp32_iot_course_evergreen
In the video, we cover how to structure HTTP requests with proper headers, work with the BSD socket API to create and configure sockets, handle network connections and error conditions gracefully, and receive data in chunks to manage memory efficiently on embedded systems. We'll walk through the entire development process from project setup and configuration to building and flashing the firmware on real hardware. I'll also show you how to test your application using the QEMU emulator if you don't have physical ESP32 hardware available.
By the end of this tutorial, you'll have a working demo that fetches a webpage from example.com every 5 seconds and displays it in your serial terminal. More importantly, you'll understand the underlying concepts of socket programming and HTTP communication that form the foundation for building more sophisticated networked applications, including REST API clients, MQTT pub/sub systems, and secure HTTPS connections with TLS.
0:00 Intro 0:48 HTTP 5:29 Sockets 7:24 Required hardware 7:34 main.c - Initialize networking 17:07 mainc - Fetch webpage with HTTP and sockets 28:13 CMakeLists.txt files 29:07 Build, flash, and run on ESP32 board 34:19 Build, flash, and run with QEMU 37:23 IoT with ESP-IDF Course
#ESP32 #ESPIDF #embedded #EmbeddedSystems #IoT #microcontroller #electronics #programming #WiFi #HTTP #RESTESP32 - WiFi Driver with ESP-IDF TutorialShawn Hymel2025-10-07 | Learn how to build a robust WiFi driver for ESP32 using ESP-IDF from scratch. This tutorial breaks down the ESP-IDF WiFi stack into its core building blocks, showing you how to create a custom component that handles station mode connections, event-driven callbacks, and DHCP for both IPv4 and IPv6. Unlike simplified examples that use convenience functions, we'll implement the network interface, driver attachment, and event handlers step-by-step so you understand exactly what's happening under the hood.
If you would like to go further, check out my full IoT Firmware Development with ESP32 and ESP-IDF course: https://learnembedded.dev/courses/iot-firmware-development-with-esp32-and-esp-idf/?utm_source=youtube&utm_medium=video&utm_campaign=esp32_iot_course_evergreen
In the video, we create a reusable WiFi component with Kconfig integration, allowing you to configure your SSID, password, and authentication mode through menuconfig without hardcoding credentials. You'll see how to work with FreeRTOS event groups for thread-safe connection monitoring, register callbacks for WiFi and IP events, and properly initialize and tear down the networking stack. The tutorial follows the official Espressif documentation while explaining the purpose of each initialization step.
By the end, you'll have a working WiFi driver and demo application that connects to your network and obtains an IP address. This foundation is essential for building IoT devices that communicate over HTTP, MQTT, or other network protocols. The modular component structure makes it easy to reuse this driver across multiple ESP32 projects.
Chapters: 0:00 Intro 1:30 IoT with ESP-IDF Course 2:20 ESP-IDF Programming Guide for Wi-Fi Driver 3:38 WiFi driver: header file 7:43 WiFi driver: WiFi events 19:27 WiFi driver: start driver and DHCP 23:49 WiFi driver: public functions 36:51 WiFi driver: CMakeLists.txt 38:12 WiFi driver: Kconfig 42:24 Demo application 49:18 Configure and build 52:14 Flash application 54:09 ConclusionESP32 - I2C with ESP-IDF TutorialShawn Hymel2025-09-23 | In this video, I’ll show you how to use I2C communication in ESP-IDF to read temperature data from the TMP102 sensor. This tutorial covers the fundamentals of the I2C protocol, how to configure ESP-IDF's I2C master driver, and how to properly read and convert temperature data from a real sensor.
If you would like to go further, check out my full IoT Firmware Development with ESP32 and ESP-IDF course: https://learnembedded.dev/courses/iot-firmware-development-with-esp32-and-esp-idf/?utm_source=youtube&utm_medium=video&utm_campaign=esp32_iot_course_evergreen
I2C is one of the most widely used protocols for connecting microcontrollers to sensors, and understanding it is essential for serious embedded development. We'll walk through configuring the I2C bus, setting up device communication, and implementing proper error handling. Our simple application demonstrates how to read from the TMP102's temperature register, convert the raw 12-bit data to degrees Celsius, and handle the sensor's two's complement format for negative temperatures. I'll also show you how to use ESP-IDF's transmit-receive functions for the common pattern of writing a register address and reading back data.
If you don't have physical hardware, don’t worry! I'll demonstrate how to test the exact same code using QEMU emulation with a virtual TMP105 sensor. You'll learn how to interact with the emulated sensor through QEMU's monitor console to change virtual temperature values and see your ESP32 code respond in real-time. This provides an excellent way to develop and test I2C applications before deploying to actual hardware, and it's perfect for automated testing in CI/CD pipelines. Chapters:
0:00 Intro 0:24 Hardware connections 0:54 TMP102 Datasheet 4:12 ESP-IDF I2C Reference 5:41 Write application main.c 15:33 Write application CMakeLists.txt files 16:29 Build, flash, and run 19:07 Emulating a TMP105 sensor with QEMU 24:37 IoT with ESP-IDF Course
#ESP32 #ESPIDF #embedded #EmbeddedSystems #IoT #microcontroller #electronics #programming #WiFiESP32 - Kconfig with ESP-IDF TutorialShawn Hymel2025-09-09 | In this video, I’ll show you how to use Kconfig with ESP-IDF to make your ESP32 projects configurable and easier to maintain. Kconfig is the system behind the familiar idf.py menuconfig tool, allowing you to enable or disable features, set parameters, and even create your own configuration options without manually editing source files.
We’ll start by creating a simple ESP-IDF project and adding a custom component with a Kconfig file. You’ll learn how to define new configuration symbols, expose them in menuconfig, and use them in your code with conditional compilation. Along the way, I’ll demonstrate how ESP-IDF translates your menu selections into CONFIG_* macros and integrates them into the build system.
If you’d like to go further, check out my full IoT Firmware Development with ESP32 and ESP-IDF course: https://learnembedded.dev/courses/iot-firmware-development-with-esp32-and-esp-idf/?utm_source=youtube&utm_medium=video&utm_campaign=esp32_iot_course_evergreen
In this tutorial, I’ll show you how to: * Create and structure a custom component in ESP-IDF * Write a Kconfig file to expose options in menuconfig * Use configuration symbols to conditionally compile features in your project * Adjust logging verbosity and other project settings with ease
This knowledge is essential for building scalable ESP32 projects. Instead of hardcoding values or editing multiple build files, you’ll be able to quickly adapt your firmware for different use cases, hardware revisions, or debugging scenarios.
Chapters: 0:00 Intro 0:58 Create demo project 4:02 Using menuconfig 10:06 Build project 11:35 Saving defaults with sdkconfig 14:53 Custom Kconfig symbol 19:25 Using custom Kconfig symbol in an application 24:30 IoT with ESP-IDF Course
#ESP32 #ESPIDF #embedded #EmbeddedSystems #IoT #microcontroller #electronics #programming #kconfigESP32 - CMake with ESP-IDF TutorialShawn Hymel2025-08-26 | Learn how to use CMake with ESP-IDF to configure, build, and link projects for the ESP32 manually and without relying on idf.py build. We’ll start with a simple, standalone CMake project to understand the basics and then show how ESP-IDF uses the same system under the hood to manage components, dependencies, and targets.
If you’d like to go further, check out my full IoT Firmware Development with ESP32 and ESP-IDF course: https://learnembedded.dev/courses/iot-firmware-development-with-esp32-and-esp-idf/?utm_source=youtube&utm_medium=video&utm_campaign=esp32_iot_course_evergreen
CMake is a powerful, cross-platform build system generator used by many modern embedded frameworks, including ESP-IDF and Zephyr. By learning how to use CMake directly, you’ll gain a better understanding of what’s happening behind the scenes when you build your firmware, making it easier to debug issues, add custom components, and integrate external libraries.
In this tutorial, I’ll cover setting up a simple “Hello World” project using CMake, writing a static library and linking it to an executable, and using different build generators like Make and Ninja. We'll also rebuild the blinking LED project from the first video without `idf.py build` so you can see how ESP-IDF uses CMake under the hood.
Even if you keep using idf.py, knowing the fundamentals of CMake will make you a more effective ESP32 developer!
Chapters: 0:00 Intro 0:43 IoT with ESP-IDF Course 1:33 Create a Simple C Library and Application 4:03 Create CMakeLists.txt to Build and Link the Demo 8:05 Using CMake with GNU Make 12:02 Using CMake with Ninja 13:46 Going Further with CMake 14:06 Understanding How ESP-IDF Uses CMake 16:30 Building an ESP-IDF Project Manually with CMake 19:58 Flashing the Application
#ESP32 #ESPIDF #embedded #EmbeddedSystems #IoT #microcontroller #electronics #programming #cmakeESP32 - Getting Started with ESP-IDFShawn Hymel2025-08-12 | I'll show you how to get started with the Espressif IoT Development Framework (ESP-IDF), the official Espressif toolset for building professional, production-ready firmware for the ESP32.
If you would like to go further, check out my full IoT Firmware Development with ESP32 and ESP-IDF course: https://learnembedded.dev/courses/iot-firmware-development-with-esp32-and-esp-idf/?utm_source=youtube&utm_medium=video&utm_campaign=esp32_iot_course_evergreen
ESP-IDF is built on a fork of FreeRTOS, enabling true multi-threaded applications and allowing developers to run multiple tasks in parallel. With its powerful library ecosystem, you can easily control GPIO pins, interface with a wide range of sensors, and implement complete networking stacks for Wi-Fi and other connectivity options, which makes it ideal for serious IoT device development.
I cover how to set up ESP-IDF using a unified Docker image and then walk you through the process of writing your first “blink” application. We’ll see how ESP-IDF uses CMake to build the application and how to use Python to flash the application to your development board.
If you do not have an ESP32 board, do not worry! I’ll also demonstrate how to emulate the application using Espressif’s fork of QEMU. Beyond simply learning ESP-IDF without real hardware, QEMU also offers a powerful way to test your applications prior to deployment as part of a CI/CD pipeline.
Chapters: 0:00 Intro 0:42 Install Docker Image with ESP-IDF 8:20 Write the Blinky Application 17:10 Build the Application 20:20 Flash the Application 27:14 Using QEMU 38:22 IoT with ESP-IDF Course
#ESP32 #ESPIDF #embedded #EmbeddedSystems #IoT #microcontroller #electronics #programmingPID controllers solve lots of problems in #robotics (especially those caused by ROS latency)Shawn Hymel2025-04-22 | When your robot logic has a little too much latency, PID controllers can be a lifesaver. My #ROS bot now tracks blue objects with noticeably more grace 🤖 If you’re curious, the PID tuning video can be found here: youtu.be/hRnofMxEf3Q?si=pI3PgZnjCAA8RY6r
#robotics #RaspberryPi #engineering #maker #programming #controltheoryWio Terminal TinyML - Speech RecognitionShawn Hymel2021-03-20 | The Wio Terminal is a development platform by Seeed Studio (seeedstudio.com/Wio-Terminal-p-4509.html). It combines a SAMD51 microcontroller with Bluetooth/WiFi connectivity, various sensors, an LED screen, a buzzer, and some buttons. While it makes for a fine IoT development kit, I wanted to see how well it would run embedded machine learning applications (TinyML). Specifically, I wanted to test its ability to handle speech recognition (or more specifically, keyword spotting).
Disclosure: Seeed Studio sent me a Wio Terminal to play with and create a video about.
I trained a convolutional neural network to identify 4 keywords: forward, left, right, stop. These words were chosen to demonstrate what you might find on something like a robot. However, any words could have been chosen (within some limits). It seems that the neural network gets a little too big or inaccurate after about 5 different keywords.
If you train your own model on Edge Impulse (edgeimpulse.com), you can download and install the Arduino library containing your custom model. That will allow you to identify keywords of your choosing.
I recommend checking out my Coursera class on embedded machine learning if you'd like to learn more: coursera.org/learn/introduction-to-embedded-machine-learningCustom Wake Word Part 2: Curating Data | TinyMLShawn Hymel2020-07-30 | Let's continue our machine learning and Edge AI journey! I'm working on a system to train my own wake words (like "Alexa" or "Hey Siri"). The difference is that I want it to be something fun: "hadouken." The ultimate goal is have a microcontroller respond to this custom wake word to control something (say, a video game).
On the previous episode (youtube.com/watch?v=DdFBMtq2jso), I created a web page that allowed people to submit snippets of their own voice.
On this episode, I need to curate all that data. I use Audacity to slice out 1 second snippets from each recorded sample and ensure the samples contain the desired word. Then, I use a custom Python script to combine my samples with samples from the Google Speech Commands dataset, which you can download here: github.com/tensorflow/docs/blob/master/site/en/r1/tutorials/sequences/audio_recognition.md
I am collaborating with Jayy (@Odd_Jayy) and Alex (@glowascii) to help bring their companion bots to life. Jayy's dragon robot will respond to "Dracarys!" and breath fire (yes, real fire). Alex's bots (Archimedes and Fenrir) will respond to their names, "Goodnight," and "How are you?"
My Python scripts can be found here: github.com/ShawnHymel/custom_wake_word. Please note that when this video was posted, the repository is still very much a work in progress.Custom Wake Word Part 1: Capturing Data | TinyMLShawn Hymel2020-06-30 | Welcome to the first part in my series on creating a custom wake word for Edge AI and TinyML! I'll be working through a longer project to create a machine learning model that can be deployed on single board computers (e.g. Raspberry Pi) and microcontrollers (e.g. Arduino). We will train this model to recognize one or more key phrases, known as "wake words" or "hotwords." You probably recognize common wake words such as "Alexa," "Hey Siri," and "OK Google."
Submit your own voice to this project! If you can spare 5 min, please visit this site to record a few phrases to help us out (note that this page will only be up for about a week after this video is released): shawnhymel.com/botwords
I am working on a machine learning project that will respond to the word "Hadouken!" from Street Fighter. My ultimate goal is to have a video game controller recognize this spoken word and actually perform the move in the game.
In addition, I am collaborating with Jayy (@Odd_Jayy) and Alex (@glowascii) to help bring their companion bots to life. Jayy's dragon robot will respond to "Dracarys!" and breath fire (yes, real fire). Alex's bots (Archimedes and Fenrir) will respond to their names, "Goodnight," and "How are you?"
The first part of nearly every machine learning project is to collect data--lots and lots of data! Creating a custom wake word is no exception. We need to start by collecting voice samples of all different types of people saying the wake word or phrase. You could walk around your office/school with a recorder asking people to say the phrase, or you could put together a quick website where people submit their own voices. I opted for the latter.
Rather than use Google's page, I decided to roll my own, simpler version. Many thanks to github.com/ajaswa for helping me with this project, as I am not much of a web developer.
We started with the demo project here: github.com/addpipe/simple-web-audio-recorder-demo. We modified it to only capture 1-2 seconds of audio and then allowed users to upload their samples to my server. Once uploaded, I can log in to my server and download the .wav files.
Once the page is live, we need people's help to submit audio samples!Keysight DSOX1204G Oscilloscope ReviewShawn Hymel2020-06-08 | The Keysight DSOX1204G is a 4-channel oscilloscope with 70-200 MHz bandwidth (depending on the options selected). It is one of Keysight's entry-level scopes and could be a great addition to any professional engineer's workbench or for universities. However, it is more expensive than most other entry-level oscilloscopes, as you're paying for the Keysight name and customer support.
In the video, I cover some of the oscilloscope's features, talk about what it might be used for, and give my opinions on it. Considering it is an entry-level oscilloscope, I compare it to 2 other entry-level oscilloscopes: the Rigol DS1054Z and the Digilent Analog Discovery 2.
The ESP8266 is connected to a digital temperature sensor, which we can query using the I2C protocol. We then use the WebThings library for Arduino to construct a request that automatically updates the displayed temperature value in the WebThings interface.
References: Mozilla WebThings: iot.mozilla.org Web of Things standard: w3.org/WoT SparkFun ESP8266 Thing Dev board: sparkfun.com/products/13711 Adafruit BME280 breakout board: adafruit.com/product/2652Getting Started with Mozilla WebThings Part 1: Setup on a Raspberry PiShawn Hymel2019-12-20 | Mozilla (the makers of Firefox) have created a custom Internet of Things (IoT) hub that can run on a single-board computer (SBC). In this tutorial, I show you how to install the WebThings gateway on a Raspberry Pi and then control smart plug using your smart phone.
On the next episode, we'll create a custom IoT device using Arduino and an ESP8266 device that can communicate with the WebThings gateway server.
References: Mozilla WebThings: iot.mozilla.org Web of Things standard: w3.org/WoTHack a Pumpkin: Spoopy Poopy, the Gaseous GourdShawn Hymel2019-10-28 | Here is my official entry to Tech-nic-Allie's #HackAPumpkin challenge: Spoopy Poopy, the Farting Pumpkin. I can disgust those Trick-or-Treaters with this wonderfully flatulent trick--now with fart-flavored fragrance! This ceramic gourd is stuffed with electronics to emit light, sound, fog, and a little bit of stink.
A passive infrared (PIR) sensor detects the presence of warm bodies and triggers the whole fart sequence. An Adafruit Feather M0 Express running #CircuitPython controls the lights (NeoPixels) and plays an audio clip out through pin A0. The fog machine is a vape pen loaded with half fog juice and half liquid fart. You've been warned: it's smelly.
Note that we use the ESP32 as an access point (AP) here to simplify the process. You can do away with the access point, if you wish to have the web server on your local network.
WebSockets provide a persistent connection between a client and server so that either party can send data at any time. They are very useful in things like networked video games, but they can also be applied to IoT devices, if we need fast control of hardware over a network.
Arduino and HTML code from the video can be found here: http://shawnhymel.com/1882/how-to-create-a-web-server-with-websockets-using-an-esp32-in-arduinoHow to Make an Arduino WebSocket Server with an ESP32Shawn Hymel2018-11-01 | The WebSocket protocol is a useful tool for communicating between servers and clients without the need for HTTP. Here, I show how to create an Arduino WebSocket server on an ESP32 that echoes simple text messages back to connected clients. I test the server with a basic Python script.
Arduino and Python code from the video can be found here: http://shawnhymel.com/1675/arduino-websocket-server-using-an-esp32micro:bit Tutorial Series Part 2: Images, Buttons, and ConditionalsShawn Hymel2016-08-29 | Let's make some faces! In this episode, we interact with the micro:bit by pressing buttons to display different images on the LED array.