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

Is it feasible to run MobileNetV2 for image recognition on an ESP32 with a 320x240 camera feed?

Hello,I have a question about the feasibility of running an image recognition model on an ESP32 to recognize a single specific object, such as a person, using a camera with a live video feed. The images the model will process are 320x240 pixels in resolution. I'm considering using a lightweight model like MobileNetV2. Additionally, I'm curious about whether the ESP32 has any hardware acceleration capabilities for image processing, such as leveraging the ESP-NN library for optimized neural networ...

Best ESP Module for Wi-Fi Connectivity in Remote Monitoring with FreeRTOS and MQTT?

Hi guys i'm currently trying to do a project using ESP32, FreeRTOS, and MQTT for remote monitoring and control. I need to select an ESP module for Wi-Fi connectivity. Which module should I choose for considering the following: 1. Hosting a web server with graphics (minimum flash memory size)? 2. Reliable wireless connectivity (<200m range) in a sealed enclosure (track or wired antenna)? 3. Balancing performance and reliability: ESP32 alone or combined with ATmega328PB? ...
Solution:
and while the ATmega328PB is a reliable microcontroller, it might not offer the same performance or ease of integration for Wi-Fi and complex tasks as the ESP32. Combining the two could add unnecessary complexity unless you have specific reasons to use both.

What does the error "Core dump data check failed" mean on the ESP32 Super Mini board?

Hello, I am testing the ESP32 Super Mini board. The code compiles fine, but I get this error message:
E (172) esp_core_dump_flash: Core dump data check failed:
E (172) esp_core_dump_flash: Core dump data check failed:
...
Solution:
Hi camila, Since the serial monitor displays nothing, i think it is incorrect baud rate settings or the absence of Serial.begin(115200); in setup(). Also, do a delay after Serial.begin before calling other functions...

How to send HTML page from a Web Server asynchronously in ESP-IDF?

is it possible to send the HTML page from a Web Server in async mode upon initial client request? tried that and all i get in the browser is the raw HTML script maybe I am using the wrong function :
esp_err_t httpd_ws_send_data_async(httpd_handle_t handle, int socket, httpd_ws_frame_t *frame,transfer_complete_cb callback, void *arg);
esp_err_t httpd_ws_send_data_async(httpd_handle_t handle, int socket, httpd_ws_frame_t *frame,transfer_complete_cb callback, void *arg);
...
Solution:
In the ESP-IDF's HTTP server component, the httpd_start() function sets up both a listening TCP socket for handling HTTP traffic and a control UDP socket for internal control signals. However, for serving HTTP responses, including HTML pages, you typically interact with the HTTP request and response structure provided by the server rather than directly managing sockets @te0

Communication Options for Dual-Processor MIDI Control Pedalboard with ESP32

Hello, I am currently building a MIDI control pedalboard. It will need to connect simultaneously via classic MIDI (Serial ports) and BLE-MIDI to controllers and synthesizers and via WiFi to a computer. I have read that the ESP32 cannot handle WiFi and BLE simultaneously, and my initial tests seem to confirm this. So, I am considering using two processors, one for WiFi and the other for Bluetooth....
Solution:
I recommend using SPI. It's faster than I2C and simpler to implement than a dedicated serial connection.

MLX90640 Sensor Fails After 3-5 Minutes When Using ArduinoBLE Library

Hello everyone, I am currently working on a project using an Arduino equipped with an MLX90640 sensor to transmit temperature images via Bluetooth Low Energy (BLE). When I use only the MLX90640 library from Adafruit, the program functions correctly and displays the temperature image as expected. However, when I include the ArduinoBLE library, the sensor operates for just 3 to 5 minutes before it fails. Additionally, I've noticed that the dynamic memory usage spikes to 70% when both libraries are included....
Solution:
Hey @aymen ammari first signs are pointing towards memory fragmentation degrading system performance. When memory is not managed well, your Arduino might fail in a variety of ways. Sometimes, this can be as obvious as the code not uploading to your board like shown above. In other cases, everything might appear to run fine for awhile, only for the microcontroller to stop responding later on – that’s much more tricky! Looking at your code you have many opportunities for optimizing dynamic memory usage. Mostly by moving things on flash, you will take some hit on performance. You can rewrite the sendLargeDataOverBLE function to cap memory usage. Here are some improvements you can make: ...

I'm looking to enhance MQTT reliability for my ESP32 in IoT applications

Hi, I'm looking to enhance MQTT reliability for my ESP32 in IoT applications. My ESP32 struggles with maintaining stable connections in fluctuating network conditions, often failing to reconnect automatically after dropouts, leading to data loss. Additionally, the QoS settings sometimes don't ensure message delivery. I'm using a Mosquitto broker with the following MQTT settings: a keep-alive interval of 60 seconds, a retry count of 3, and QoS levels set to 1 for all sensor data. The error messages I encounter often indicate connection timeouts and message delivery failures. Are there specific keep-alive settings, retry mechanisms, or QoS levels that can help? Any advice on handling automatic reconnections and minimizing data loss would be greatly appreciated. @Middleware & OS...
Solution:
Test HiveMQ. It is truely scalable

BeagleBone Black - Modbus TCP Communication Issues

Hello guys @Middleware & OS I am working on an industrial automation system using a BeagleBone Black running Embedded Linux. The system needs to monitor and control a process using multiple sensors and actuators over a Modbus TCP network. However, I encounter an issue where the BeagleBone Black intermittently loses communication with some of the Modbus devices(temperature sensors and relay). Has anyone @everybody encountered such a situation before, what did you do to resolve it and can you refer some documentation for me to go through. THANKS IN ADVANCE!....
Solution:
@Boss lady Hi! I've had a similar issue with a Raspberry Pi setup. It turned out to be a problem with the network configuration. Make sure your Modbus TCP settings are correctly configured and check for any IP conflicts on your network. You might also want to check the network cables and switches for any faults, it could also be due to various reasons like electrical noise or insufficient power supply. Ensure your BeagleBone Black and the Modbus devices are properly grounded. You can als...

Trying to check if Lora modules are working or not

hey guys , just received package of few lora modules . I am beginner to the lora concept , i am trying to check if this modules are working or not . i have tried codes avaliable on yt and blogs but none of the seems to work . Can anyone provide me a basic code and the wiring diagram to check my lora modules .
Solution:
This is a comprehensive guide. Use it. https://github.com/SMotlaq/LoRa...

recreate lora mesh with arduino and understand the working ?

is there any proper blog out there which helps to recreate lora mesh with arduino and understand the working ?
Solution:
I'll see your blog and raise you one: https://github.com/nootropicdesign/lora-mesh Lookingf for more insight into how it works than that?...

Designing an Edge Device with nRF52840 for BLE with 100 ft Range and Smoke Detector Sensor

Hello Everyone! I am going to design an edge device with nRF52840 for BLE protocol with smoke detector sensor. In this case, I am going to get range about 100 ft. so I would like to know if nRF52840 is suitable to my case. furthermore, if someone has schematics reference design with nRF52840, please let me know about that....

Issues with Bluetooth and Sensor Initialization on ESP32 using Zephyr RTOS

@Middleware & OS I'm developing a health monitoring system using an ESP32 microcontroller running Zephyr RTOS. The system uses Bluetooth to transmit data from sensors to a mobile application. I'm using a MAX30100 pulse oximeter and heart-rate sensor connected to the ESP32. My goal is to read the sensor data and send it via Bluetooth. I've written the code to initialize the sensors and set up Bluetooth communication, but I'm encountering errors. Specifically, the Bluetooth connection fails to establish, and I'm not receiving any data on my mobile application. Here are the steps I've tried and the errors encountered. ...
attachment 0

Why is my Dell PowerEdge R740xd server experiencing high CPU usage on minimal load?

I am experiencing this consistently high CPU usage around 30% to 40% on a dell poweredge r740xd server with two intel xeon gold 6248 CPU. The server is running ubuntu server 22.04 LTS and is primarily used for mySQL database hosting. I have noticed this issue for the past week. The high CPU usage persists even when the database load is minimal, and there are no other significant applications running. I've tried restarting the server, updating the OS and packages, and checking for CPU intensive processes using top and htop without success. Lemme attached a top output from a typical idle state for reference....
Solution:
Try install atop (man page at https://linux.die.net/man/1/atop) When it is running, press c to display the processes and how much CPU time they are using....
attachment 0

How can I fix "Network unreachable" error in BACnet temperature sensor setup on Raspberry Pi 4

Hey guys, am creating a building automation system using a Raspberry Pi 4 with Embedded Linux. The system should read data from a BACnet temperature sensor. I have checked the BACnet network configuration and IP address, verified the BACnet device status and settings, ensured the BACnet library is correctly installed and configured. But am getting the error Network unreachable ...
Solution:
Systemctl stop firewalld

How can I fix "BadNodeIdUnknown" error reading OPC UA sensor data on UP Squared board?

Hello dev i am setting up an industrial IoT gateway using an UP Squared board with Embedded Linux. The gateway should read data from an OPC UA temperature sensor, I have confirmed the OPC UA server IP address and endpoint, checked the node ID and namespace index, made sure the OPC UA client library is correctly installed and configured. But i am getting the error Error reading temperature: BadNodeIdUnknown ```python from opcua import Client...

How can I achieve reliable data transfer over LoRa using MicroPython on Pycom GPy?

@Middleware & OS I'm developing a smart agriculture system using a Pycom GPy, which features an ESP32 microcontroller with LTE and LoRa capabilities. The system is running MicroPython, and I'm using a soil moisture sensor to monitor soil conditions. My goal is to read soil moisture data and send it over LoRa to a remote gateway. I've written the following code to initialize the soil moisture sensor and set up LoRa communication, but I'm encountering errors, I'm unable to get valid readings from the soil moisture sensor, and the LoRa transmission does not seem to be working. ValueError: invalid pin for ADC...
Solution:
Hello guys, after a while of debugging and checking through I was able to fix the ValueError: invalid pin for ADC on my code, it turns out I was required to use p15 intead of p13 and for the Not joined yet... error it was due to tge mistake I made in imputing my Appkey which i have corrected now. This is My. Code ```python from machine import Pin, ADC from network import LoRa...

Why isn't my ATmega328P sending DHT11 sensor data to the ESP-01 module via MQTT?

I am working on a temperature and humidity monitoring system using an ESP-01 module (ESP8266) and an 8-bit AVR microcontroller (ATmega328P). I am using the DHT11 sensor to read temperature and humidity values. The ESP-01 is used to send the sensor data to an IoT platform via Wi-Fi using the MQTT protocol. The system is running on the Arduino OS. I have been able to configure the software to communicate with a sensor and transmit data, also set up pins for serial communication, initialized the sensor to read temperature and humidity, and implemented error checking for readings, then built a message with sensor data and tried to send it to the ESP-01 module. But then still encountered this error: The ATmega328P is not successfully sending the read data to the ESP-01 module. If successful, the ATmega328P should be able to read and send the sensor data to the ESP-01 module. ...
Solution:
The ATmega328P and ESP-01 need to communicate at the same baud rate. Change ESPserial.begin(115200); to ESPserial.begin(9600);.

Any advices on optimizing realtime loT applications with Edge Impulse on my Raspberry Pi 4

Hey guys I'm seeking expert advice on optimizing realtime loT applications with Edge Impulse on my Raspberry Pi 4. Specifically, I'm using Edge Impulse library version 2.14.0 to run a machine learning model for environmental monitoring and predictive maintenance. The model performs anomaly detection on accelerometer and gyroscope data from an MPU6050 sensor, processing 100 Hz streams. However, I'm struggling with synchronizing the real-time sensor data with the model's processing, leading to inconsistent performance. Any advice on optimizing data stream handling, such as buffering strategies or timing adjustments. @Middleware & OS...
Solution:
Hi @Daniel kalu One approach to optimize your real-time data stream is to implement a double-buffering technique. This can help ensure that you are continuously collecting data without any gaps while the model is processing the previous batch. You maintain two buffers: one for reading sensor data and one for processing it. While one buffer is being processed, the other buffer collects new data.

Need resources for Learning Embedded Systems and CAN Communication with NXP MPC5775B

Hi devs @Middleware & OS , I'm building an application on an NXP board using the MPC5775B microcontroller. The program receives data over CAN, processes it, and then sends it to a screen for display on a graphical interface. I'm comfortable with basic programming concepts but am new to embedded systems and CAN communication. I'm particularly confused about how to implement the data processing logic for this application like interpreting data format. Could you recommend any books, tutorials, or online resources that would help me understand these concepts better? Additionally, any general advice on developing this project from someone familiar with the MPC5775B or CAN communication would be greatly appreciated....
Solution:
This should give you a basic understanding of CAN Protocol, while read the Datasheet of the MCU. https://kvaser.com/can-protocol-tutorial/...

How can I fix the CONNECTION_REFUSED error in my STM32 Nucleo H743ZI2 MQTT setup?

Hey guys could anyone assist me with setting up MQTT communication on my STM32 Nucleo H743ZI2? I need to establish MQTT communication over TCP/IP with another STM32 device. Currently, I am using the standard MQTT library from LWIP, but I am open to alternatives like the PAHO library or others. I can only achieve a TCP connection but get a CONNECTION_REFUSED error when attempting MQTT. I've verified network configurations and broker details. Any guidance or examples would be greatly appreciated. @Middleware & OS...
Solution:
To resolve the CONNECTION_REFUSED error and establish MQTT communication: - Verify MQTT broker settings - Check network connectivity - Configure MQTT client correctly...