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

What is the name of this 10 pin connector ?

What is the name of this 10 pin connector ?
Solution:
@accur4te it's name is IDC 10 pin male.
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...
Solution:
Hi @wafa_ath for your request, you might not find a pre-built firmware directly from the official MicroPython repository. but you can build it yourself. The ESP32-S2 has TensorFlow Lite Micro support, so you can include it in your MicroPython build, by: Install the ESP-IDF (Espressif IoT Development Framework). Install the required tools for building MicroPython (make, gcc, etc.). Clone the MicroPython Repository:...

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?
Solution:
I say you get the original version of it, to avoid any future issues. I got an stlink 2 years ago and most times my system couldn't detect the device, it always gives an error message. So I go for the original
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?...
Solution:
@UC GEE G4 is nice for firmware update since it has dual bank support... I've done it before. Take a look into the chip errata, maybe there are still some issues. Why not try it out beforehand? Fw update is critical but finicky. Else, just put both in your layout!...

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

Seeking open-source project without ST HAL for learning low-level drivers & best practices.

@Middleware & OS I'm a Newbie in STM32 dev for few months now. Seeking open-source project without ST HAL for learning low-level drivers & best practices. Greetings Devs, Please, Any recommendations? I am interested in SPI/I2C for sensor data acquisition.๐Ÿ™...
Solution:
Hi @UC GEE ST provides STM32Cube MCU Packages for all STM32 series. This simplifies bare-metal programming. You can download these s/w packs from the official ST's site and then extract the folder. Later on, you can link CMSIS and ST's device-specific header files into your STM32CubeIDE. For example, if you're trying to program STM32F44RE MCU then download STM32CubeF4 software package from https://www.st.com/en/embedded-software/stm32cubef4.html. Don't forget to add the path in the `Project p...

How to Implement PID Control on STM32F4 to Maintain 1500 RPM for an ECU?

Hey guys, working on a project in which I have used STM32F4 to control an old ECU (which intended to be maintained at 1500 RPM) I'm planning to use PID control to maintain the fuel actuator so that it will maintain 1500 RPM, can anyone guide me in this?? @MCU, MPU & Firmware...
Solution:
Yes I have, in a few context as well. You are likely controlling your actuator with something like a pwm and you have some sort of sensor telling you how many RPM you are doing maybe some encoder setup. Once you habe those you can implment your PID control loop in your main loop or the thread that's doing this.

Can you give me good snippet of code for AT commands resender?

Hello, Can you give me good snippet of code for AT commands resender? Like I am sending to my UART interface data via terminal and I want to send it to UART2 where peripheral is attached. So I will get its response to my original UART. Everything I tried was problematic when larger amount of data was received.

Whatโ€™s the best option if I need a GUI? Anything for IPad?

@Middleware & OS So Iโ€™m hacking my path to embedded world and have a big project (big to my size and experience) including 2-3 boards: RPi 5 8GB, Nvidia Jetson Nano, OPi 5 Pro, and maybe RPi 3B I already look at future boards like another RPI 5 for Hailo 10, and possibly LattePanda Mu. It becomes cumbersome switching cables to work each device at a time - I used to work with. NC sometime in far past, but remember the latency a killer. ...
Solution:
@UC GEE this html file link has something about using tmux . Cus u should consider using SSH multiplexer tools like tmux or screen to manage connections to all your boards from that one terminal, https://man7.org/linux/man-pages/man1/tmux.1.html...

How to Implement OTA Updates for ESP32 with FreeRTOS on Google Cloud IoT Core?

@Middleware & OS Hello guys am interested in over the air (OTA) firmware update of an ESP32 microcontroller running FreeRTOS and connect it to Google Cloud IoT Core for data monitoring, please i would need any form of guidance i can get i.e code examples or documentation and suggested libraries that can aid me in OTA updates for ESP32 with FreeRTOS...
Solution:
Your code should be identical or similar to ๐Ÿ‘‡ ```cpp #include <WiFi.h> #include <PubSubClient.h> #include <ArduinoOTA.h>...

utilize a microcontroller's GPIO pins to control peripheral devices in an IoT embedded software in C

Hello guys how can i utilize a microcontroller's GPIO pins to control peripheral devices in an IoT embedded software in C or Arduino, I want to control a LED by turning it on or off using a GPIO pin, can I be provided some general steps or considerations for using a GPIO pin to interact with peripheral devices in an IoT application. also, are there any specific libraries that can help me get started @Middleware & OS...
Solution:
You can use the following libraries Arduino Standard Library ESP8266/ESP32 Libraries FreeRTOS: For more advanced IoT applications requiring real-time capabilities, consider using FreeRTOS, which is available for several microcontrollers including STM32 and ESP32....