DevHeads IoT Integration Server

DII

DevHeads IoT Integration Server

The DevHeads IoT Integration Server accelerates technology engineering by helping pro devs learn, share and collaborate.

Join

seeking-collabs

firmware-and-baremetal

middleware-and-os

edge-networking

pcb-and-analog

jobs

iot-cloud

code-review

devheads-feed

general-dev-chat

Realtime Data

I am currently working on a personal project where I have serveral iot devices which have several sensors attached. However, I am not quite sure about the best way to design the communication flow. Specifically, I need both real-time data and historical data. Initially, I thought about having an MQTT broker for communication between my iot devices and backend (django) and then through my backend I can use websockets to forward real-time updates to my mobile app and http for historical data. However, I’m unsure if this is the most efficient approach or if I should consider having the mobile app directly communicate with the MQTT broker for real-time data....

New way of enriching MQTT messages using AWS IoT Core 🚨

AWS added propagating attributes - contextual metadata from thing attributes or connection details. What does it mean? Previously, we had to configure and deploy IoT Rule to extract the Client Id and include it into the MQTT Message Payload. I used it during various scenarios as it was a convenient way to enforce the tight security posture of IoT deployment....
No description

AWS will discontinue the IoT Fleet Hub.

In case you missed it, AWS will discontinue the IoT Fleet Hub. Does it matter? It is hard to say. I always perceived that service as a bit limited and lacking functionalities. On the flip side, it was the only business-user-friendly web interface for browsing the state of the IoT fleet and sending commands to devices. I suggested the Fleet Hub to a few of my customers as a temporary solution until they build a custom web interface. I received mixed feedback from them, but at least FH was an available option. What now? You can use the AWS IoT service suite to browse and interact with your devices. That is a less business-user-friendly way, as navigating this service is not always straightforward....
No description

How Do I Fix Imaging and Packet Errors When Enrolling Fingerprints on Sensor?

Based on my previous question, How do I enroll fingerprints into the sensor and store them for future comparison? cause am getting an imaging error and error receiving packets when running my code ```cpp uint8_t enrollFingerprint(uint8_t id) { int p = -1;...

Ensuring Reliable Cloud Integration with ESP32 for Continuous Sensor Monitoring

Hey guys In a recent lot project, l used ESP32 to connect various sensors to a cloud platform for data storage and remote monitoring. While the initial connection and data transmission worked fine, I encountered issues with intermittent disconnections and data synchronization failures over time. What could be causing the ESP32 to lose its connection to the cloud intermittently, and how can I ensure more reliable cloud integration for continuous data monitoring and real-time updates?

How do I optimize and deploy a deep learning model on an ESP32?

How do i optimize and deploy a deep learning model on an ESP32? still based on my project image recognition system that can analyze images of tissue samples, identify malignancies, and predict possible symptoms and causes. Am currently trying to deploy the trained model on the ESP32 for real-time inference. But
MemoryError: Model size exceeds available memory

MemoryError: Model size exceeds available memory

...
Solution:
@Boss lady To deploy your deep learning model for image recognition on the ESP32, you need to optimize it to address memory constraints. The MemoryError occurs because the model is too large for the ESP32’s available memory. To resolve this, you can: - Quantize the Model: Convert the model to an 8-bit format using TensorFlow Lite’s post-training quantization, which significantly reduces the model size and memory usage. - Simplify the Model: Reduce the complexity by using fewer layers, neurons, or switching to more efficient architectures like MobileNet or TinyML models....

Fixing OpenCV Image Not Found Error During Preprocessing for Tissue Sample Recognition

Still based on my project image recognition system that can analyze images of tissue samples, identify malignancies, and predict possible symptoms and causes. How do i preprocess the captured images to make them suitable for model inference?, am currently using my pc camera to test the model and also using VS code for IDE My aim is to capture and preprocess images for further analysis. But I keep on encountering this error ``` OpenCV Error: Image not found...

Why isn't the LED responding to voice commands in my MicroPython code?

Hey guys still based on my project on developing a home automation voice-controlled system using MicroPython and TinyML on an ESP32 microcontroller to recognize specific voice commands ("turn on" and "turn off") for controlling an LED, am currently testing the voice command recognition and validating LED control using simulated commands ("on", "off") But am getting no response from LED despite commands being printed correctly. My aim is to ensure the LED responds appropriately to the recognized voice commands, How can I resolve this? this is my code 👇 ```python...
Solution:
Hi @Enthernet Code modify your SPI_PeripheralControl function to use a read-modify-write operation: ```c void SPI_PeripheralControl(SPI_RegDef_t *pSPIX, uint8_t EnOrDi)...

Fixing I2S Initialization Error for Voice-Controlled Home Automation on ESP32

Hey guys am developing a home automation voice-controlled system using MicroPython and TinyML on an ESP32 microcontroller to recognize specific voice commands ("turn on" and "turn off") for controlling an LED, How do I set up the ESP32 with an I2S microphone and an LED for a voice-controlled system? Am encountering an error OSError: I2S Not Found ...
Solution:
Hey @Enthernet Code Update to the latest MicroPython firmware that supports I2S on your ESP32 Verify that the sck, ws, and sd pins are correctly assigned for I2S functionality, and initialize I2S with I2S.NUM0 to fix the error...

Issues Setting DA16200 SoC to DPM Low Power Mode in IoT Project

Hey guys, I am using the DA16200MOD-DEVKT-P development kit for a low-power IoT project. The objective is to implement a Wi-Fi connection that maintains ultra-low power consumption by utilizing the Dynamic Power Management (DPM) feature of the DA16200 SoC. I attempted to set the module into DPM low-power mode (LPM) to receive data from an Access Point (AP) only, without actively transmitting. Here's the code snippet used to enable DPM LPM mode ...

How to Resolve TensorFlow Lite Inference RuntimeError on ESP32?

Hi guys on an ESP32 using TensorFlow Lite for Microcontrollers, I encounter the error RuntimeError: Failed to run model at node 13 with status 1 during inference, often with longer input sequences. I've tried model quantization, simplifying inputs, and ensuring proper formatting. What advanced debugging or memory management techniques can help resolve this issue, and are there specific TensorFlow Lite settings to improve stability?

Can One ESP32 Handle Multiple Sensors and Wireless Data Transmission?

Hii guys I'm exploring the possibility of using ESP32 to develop a wireless sensor node for monitoring environmental parameters like temperature, humidity, and others . Can I use a single ESP32 board to connect to multiple sensors and transmit the data wirelessly to a central hub or cloud platform? If so, what are the key considerations for designing such a system?...
Solution:
That helps clarify the initial steps. I'll definitely define my requirements and consider the hardware and networking needs accordingly. Thanks for the guidance!...

How to Fix Inference Timeout Errors with Edge Impulse Model on Arduino Nano 33 BLE Sense?

Hello everyone, I’m currently developing a vibration anomaly detection system using an Arduino Nano 33 BLE Sense. The machine learning model was trained with Edge Impulse, and it worked well in the testing phase. However, I’m facing an issue when running the model on the Arduino. After deploying the model, I receive the following error on the serial monitor:...
Solution:
@wafa_ath I have no experience with Edge Impulse but maybe you can try to reduce your input size of your sample. Are you working with raw data as an input or do you use features? In both cases you can try to reduce the sampling rate and/or the time interval. This can have an effect on the accuracy but you need to find an optimum.

Arduino Wifi1010 Not Showing Online in Arduino Cloud

My Arduino Wifi1010 board is connected to an Opla IOT kit, and the device won't show it's online in the Arduino Cloud devices section. I tried uploading a basic code to the Wifi1010 to connect to the internet and that worked. Can someone explain what's wrong? This is the code I'm working on `` #include <WiFiNINA.h> ...
Solution:
@wafa_ath @Afuevu I found out exactly what wafa said, I didn't associate the right IDs together, problem solved ✅✅ Thank you both 🙏...

How to integrate a rotary encoder for volume control with ESP32 and MAX98357A DAC?

Hello guys i'm looking to enhance my ESP32 smart clock project by adding volume control via a rotary encoder. I plan to use the MAX98357A I2S DAC for audio playback and want to know the best approach to integrate a rotary encoder with the ESP32, specifically how to read the rotary encoder's position and direction changes and apply the volume changes to theMAX98357A DAC's output in real-time I'd appreciate guidance on the most efficient way to implement this feature...

Troubleshooting OTA Update System for ESP32 in Home Automation

Hey guys while attempting to develop a platform for easy OTA remote updates for ESP32 and other devices, driven by the need for seamless software updates in my current project, a home automation hub with predictive maintenance and fault detection. I've encountered difficulties in implementing a reliable and user-friendly OTA update system. When attempting to upload software updates via PlatformIO on VSCode and Arduino, I've experienced errors, such as failed uploads and connection timeouts, with...
Solution:
@Daniel kalu Updating over-the-air (OTA) is a bit challenging, especially with error handling for smaller applications. If you’re facing connection timeouts or failed uploads with PlatformIO or Arduino, it might be due to network issues or the ESP32 struggling with large firmware files. Reduce firmware size by disabling unnecessary features could help. But for better control and reliability, consider using ESP-IDF’s OTA framework, which offers features like `error han...

How to pre-configure EC2 instances using AWS CDK and avoid a nasty trap?

It has been a while since I created a public GitHub repo, but this topic deserves a proper explanation. I was helping a customer solve that specific issue and decided to write about it to help others avoid hours of debugging. That was not an AWS CDK bug but a lack of understanding of how AWS works under the hood. https://github.com/LMtx/AWS-CDK-EC2-user-data...

Is the ESP32 reliable for 24/7 industrial IoT, or should I use a different chip?

I'm working on an IoT-embedded device with various air quality sensors (CO2, CO, NO, SO2) that connect to the internet using WiFi, GSM, or Ethernet. The device is designed to operate 24/7 and will be installed in factories and warehouses to measure air quality, temperature, humidity, and other parameters. The data is sent to a cloud system for storage, analysis, and alerts. I've created a prototype using the ESP32. My question is: can the ESP32 be used reliably in the production phase for this application, or should I consider a more powerful chip? If so, what alternatives would you recommend?...

Creating a 3D Educational Game on Microcontrollers: What Should Be Included?

So I have a question: I'm making a 3d game on the web for kids to learn science and engineering, and right now im specifically making a course about microcontrollers. I came here to ask: what should I add to it? What are the must haves? Im thinking a general introduction to Arduino, or Raspberry Pi. What do you think?
Solution:
Hi @Mairuonis start with Arduino , it's a bit easier to learn , for kids. From setting up the board => writing simple code => controlling LEDs or sensors. Would you make it in a way they can see the code and the results in the game itself?...

AWS Greengrass - my (un)favorite IoT service.

AWS IoT Greengrass is an open-source Internet of Things (IoT) edge runtime and cloud service for IoT applications. It is my (un)favorite IoT service. Pros:...
Next