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

mcu-mpu-and-firmware

middleware-and-os

edge-networking

pcb-and-analog

jobs

iot-cloud

code-review

devheads-feed

general-dev-chat

Generic Library for Microcontroller as Modbus RTU Slave

I am carrying forward my previous work on the Modbus RTU Function Subset Implementation based on a Generic Library. I had tested this library on Cypress PSoC5 and TI Stellaris Launchpad Kit. This time I have tested it with Arduino Mega and Uno. Link to the blog : https://www.embverse.com/blogs/generic-library-for-microcontroller-as-modbus-rtu-slave...

Learning LoRa ( using RYLR998 ) seeking for guidance

@Umesh Lokhande @techielew @all a few days back, I kick started working with LoRa from @Umesh Lokhande 's YouTube video on LoRa 👇 Here is the link https://youtu.be/vgYVVC6Lvl8 Key takeaways from video and web are: Why LoRa, How LoRa works....

Can the ESP32 in the test circuit hold the firmware and upload it to the main circuit’s ESP32

Hey guys I have developed a circuit with an ESP32 as the main microcontroller, alongside various sensors and hardware. I am creating a test circuit to validate this main circuit. The test circuit will connect to the main circuit to verify its inputs and outputs. I aim to have the test circuit upload firmware to the ESP32 on the main circuit and monitor its inputs and outputs to ensure they are functioning correctly. Can the ESP32 in the test circuit hold the firmware and upload it to the main circuit’s ESP32, and then observe and validate the inputs and outputs?...

How to calculate the minimum sleep time that makes sense for MCU in low power mode?

Hi everyone I'm working with a battery-powered sensor and I'm interested in minimizing power consumption while maintaining functionality. I have a question regarding low power and sleep modes in microcontrollers. Is there a way to calculate the minimum sleep time that makes sense for a microcontroller (MCU) in low power mode? For instance, does it make sense to put an MCU to sleep for just 1 second? Are there any specific calculations or rules to define this minimum sleep time? #mcu-mpu-and-firmware...

can someone help me with esp-idf

Hello everyone, can someone help me with esp-idf @everyone

Do you have any models of pH modules compatible with ESP32?

Morning everyone, For my project, I am trying to interface a pH module with an ESP32. The module is the PH4502C. I am able to get somewhat coherent measurements, but there are quite a few variations in them, such as it goes from 7.90 to 8.16, for example, and then returns to around 7.90. Could adding a voltage isolator card solve this problem? Otherwise, do you have any models of pH modules compatible with ESP32? ...

What is the name of this 10 pin connector ?

What is the name of this 10 pin connector ?
attachment 0

I need a MicroPython firmware for the ESP32-S2 AI Thinker CAM

Hello, I need a MicroPython firmware for the ESP32-S2 AI Thinker CAM that has TensorFlow Lite already built in. Can someone guide me on where I can find a pre-built version of this firmware? Any help with resources or instructions on obtaining and flashing this specific firmware would be greatly appreciated. @Middleware & OS...

How can I read data from an I2C temperature sensor (TMP102) using an STM32 microcontroller?

Good day guys, how can I read data from an I2C temperature sensor (TMP102) using an STM32 microcontroller? I am encountering the error Failed to read from the I2C bus: Remote I/O error despite confirming that the sensor is powered and the I2C connections are correctly set up. Here is my current code snippet, which attempts to read 10 bytes of data from the sensor: ```c char buffer[10]; if (read(file, buffer, 10) != 10) {...
Solution:
Try this code instead #include "stm32f1xx_hal.h" ...

Why Doesn't Intel Expose the Internal RISC Core to Programmers?

Hello everyone, starting with the Pentium Pro processor, Intel introduced a microarchitecture that translated x86 instructions into micro-operations (uops) executed by an internal RISC core right, so that there is significant performance improvements while maintaining compatibility with existing software. I know the reasoning behind using a hidden RISC core is clear but why not expose the RISC instruction set directly to programmers? This could potentially lead to further performance gains and a smoother transition away from the x86 instruction set in the future. I understand that maintaining backward compatibility is crucial, yes. Since Intel is already committed to supporting legacy x86 modes alongside 64-bit operation, wouldn't exposing the RISC core allow for a more natural path towards a future RISC-based architecture? It seems that Intel continues to extend the x86 instruction set with new extensions like AVX and SSE. Is there a specific reason for not leveraging the internal RISC core more directly?...

How should I configure the ADC on my STM32F407VG to properly acquire data from an LM35?

hey guys, I'm initializing the ADC peripheral to read data from the temperature sensor while referencing the STM32F4 reference manual , how should I configure the ADC on my STM32F407VG to properly acquire data from an LM35 temperature sensor? Are there any recommended libraries or code examples available for ADC initialization on the STM32F407VG? the factors to consider include the resolution and sampling rate required for accurate temperature readings. @Middleware & OS

Would you recommend buying an authentic STLink over a Chinese STLink V2?

good morning ,Would you recommend buying an authentic STLink over a Chinese STLink V2? I'm working with an STM32F4 series MCU for a project involving real-time data acquisition and processing. Are there significant differences in performance or reliability that justify the higher cost of the authentic STLink?
attachment 0

Is it normal that I can't upload code when my W5100 Ethernet Shield is on my Arduino Uno?

Guys Is it normal that I can't upload code when my W5100 Ethernet Shield is on my Arduino Uno? I have to remove it every time I want to upload, and I'm not sure if that's normal. Moreover, I can't get the example sketches to work, so I suspect it might be faulty. :/
Solution:
I suggest check whether the pins of an Ethernet shield goes properly into the pins of arduino. The shield uses SPI pins that are Pin# 10,11,12,13 and I don't think it has anything to do with UART pins Tx, Rx because while uploading code in arduino Tx, Rx will be used by arduino. So its possible there must be issue with ethernetshield

Seeking Feedback and Suggestions on Custom ESC Design for Drone Integration

Hey everyone, I’m excited to share my current project and would love to get your thoughts and suggestions. I’m building an ESC (Electronic Speed Controller) from scratch and will then integrate it into a custom-designed drone....
Solution:
Hi, I reached character limit on discord, so I've added my comments on this doc. Cheers! https://docs.google.com/document/d/11dqii1o3Np3LmN8Pq6OEqnvy3KBDijHr5KIcKhlCioc/edit?usp=sharing...

How to delay() easily when you don't have delay()?

I wanted to have some delay between I2C read/write functions. Ended up using this. How good/bad is it and any pitfalls? `float temperature = readTemperature(); printf("Temperature: %.2f °C\n", temperature); ...
Solution:
@Navadeep there are many disadvantages for using a for loop as you just did like, The actual delay duration can vary depending on the compiler optimization settings and the CPU speed. this means the delay might not be consistent across different systems or even different runs on the same system, The for loop delay is a busy-wait loop, meaning the CPU is doing nothing useful during this time but still consuming power. this can be inefficient, especially in battery-powered or resource-constrained environments, ...

Does anyone know if there are any special steps to using SPI1 on the STM32F407-DISC1 board?

Does anyone know if there are any special steps to using SPI1 on the STM32F407-DISC1 board. Specifically I am trying to interface with the onboard MEMS accelerometer. At the moment I have code that works for SPI2 and SPI3. Whenever I try to initialize SPI1 its RCC clock is enabled but the Cr1 of SPI1 is never set up.

I want to update/flash the firmware on an STM32G4 using another ESP32 microcontroller over I2C.

@Middleware & OS I want to update/flash the firmware on an STM32G4 using another ESP32 microcontroller over I2C. Besides the I2C pins for data transfer, which other pins on the STM32 does the microcontroller need to connect to? I think it needs to control both the BOOT and RESET pins. Is that right, or is just the BOOT pin enough?...

What specific considerations should I take into account when selecting an STM32F4 variant?

Hey guys, I'm selecting hardware components for a project and have chosen an STM32F4 microcontroller based on the project requirements. I'm considering using an LM35 temperature sensor. What specific considerations should I take into account when selecting an STM32F4 variant, and are there alternative temperature sensors with similar characteristics that might be more suitable? Key factors include available ADC channels, processing power of the STM32F4 variant, and the voltage output ranges and operating temperatures of alternative sensors. @Middleware & OS...

How to Apply FSMs for Control Flow in Cryptographic IP Design on FPGA?

@Middleware & OS I am working on an FPGA internship project that involves designing cryptographic IP. I'm comfortable with FSMs ie clock, receivers, packet encapsulation etc. but having trouble seeing how they can be applied in this context, which is believe is heavily math-based. Struggling to identify how FSMs can be used for control flow or logic within the cryptographic IP design....
Solution:
@UC GEE FSMs can be instrumental in handling various error scenarios that may occur during cryptographic operations. They can define states for error detection, recovery, and fault tolerance mechanisms, hence controlling the logic flow

trying to code a stm32 board and receiving this error how to fix it - Target no device found

i am trying to code a stm32 board and receiving this error how to fix it - Target no device found Error in initializing ST-LINK device. Reason: No device found on target....
Solution:
This is usually caused by issue with the ST-LINK debugger connection try troubleshooting, if everything is okay, then its a hardware fault