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

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.πŸ™...

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...

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....

Does anyone have experience with directly mapping FPGA memory to the microcontroller's memory space

@Middleware & OS I'm redesigning an FPGA for faster SPI communication. The current design utilizes a DMA controller to read data from internal RAM, but I'm experiencing some performance issues. I suspect the current bottleneck might be the data transfer between the internal RAM and the DMA controller. I'm considering directly mapping the FPGA memory containing the data to the microcontroller's memory space for maybe a faster transfers.
I've reviewed some resources on memory-mapped I/O for FPGAs, but haven't found specific examples related to SPI communication. My question is :...
Solution:
Spartan 6 don't come with hard processors. Are you using their legacy ISE suite or Vivado? If you are on ARM Cortex Processor, it is likely that you're on a 7 series SoC. Take a look at https://discuss.pynq.io/t/tutorial-pynq-dma-part-1-hardware-design/3133 and follow up blog where designing with AXI DMA, configuration, streaming is described....

wanna use the flash bootloader of ST to flash my softwares using CAN-FD

Hello everyone, I'm using STM32H745 for a small project using the both cores M4 and M7. My question is : I want use the flash bootloader of ST to flash my softwares using CAN-FD, I can enter in boot mode (BOOT0 = HIGH) but I get no response from the board. ...
Solution:
This ST-Link V3 doesn't support CAN bootloader flashing. You'll likely need a host software with a CAN-FD interface to communicate with the bootloader. @wafa_ath

Is a quartz crystal and capacitors necessary to run ATmega 328P on a breadboard?

I would like to run my applications on an ATmega 328P (which is more economical compared to buying a Nano or Uno each time). Do I need to always use a quartz crystal and two capacitors (since, from what I understand, this setup is needed to program it) for it to function on a breadboard, or is simply powering it with 5V sufficient? Thank you in advance for your answers. Camila...
Solution:
The crystal just helps you when you want to use other functions in the MCU that exceeds the normal internal clock. So it depends on your application and the firmware written. But generally it will still work nevertheless.

Implementing Arduino Data Logging to Google Sheets for Valve Actions

Hello everyone, I want some expert opinions based on experience πŸ™‚. Although I have done some research but what way would you think it's best to implement data logging in Arduino ( the board I'm planning on using in my project) to record each action - in this case turning (ON a valve) to a spreadsheet like Google sheets....
Solution:
If you want to log events online somewhere, I'd reecon you go with some ESP32 or ESP8266 chip than going with Arduinio(atmega328). The ESP chip have built in wifi and bluetooth so you dont need to mess around with modules etc. You can still use the arduino IDE for programming them

What is your suggestion in replacement of logic analyzer to check the I2C protocol?

Since Logic analyser are expensive for early professionals and students. What is your suggestion in replacement of logic analyzer to check the I2C protocol? @techielew @Umesh Lokhande @Navadeep @abhishek awasthi...
Solution:
I have this it is low cost and work very good for simple things Just found this amazing item on AliExpress. Check it out! €3.84 | USB Logic Analyzer 24MHz 8 Channel 24M/seconds Logic Analyzer Debugger For ARM FPGA Logic Analyzer Logic 24M 8CH https://a.aliexpress.com/_EGGJaaL...

Why is HAL_ADC_Start Taking Longer Than Expected on STM32F446RE and How Can I Reduce Its Duration?

hello everyone , When I used the ADC in the STM32F446RE and configured it using STM32CubeMX with the settings shown in the image, and with a clock frequency of 180MHz and APB2 frequency of 90MHz, I tried to measure the duration of the ADC conversion. I set the pin high before the ADC conversion and then reset it low afterward to calculate the duration of time it was high using an oscilloscope. I found that the duration was approximately 50ΞΌs, which is higher than expected. I tried to find the re...
Solution:
The prolonged conversion time may be due to a combination of factors such as ADC clock speed, resolution, sampling rate, and number of channels. Try increasing the ADC clock speed, reducing resolution, decreasing sampling rate, or using fewer channels to reduce the conversion time.
attachment 0

Any one of you have faced a challenge with the memory alignment while reading byte words ?

Team I would like to know if any one of you have faced a challenge with the memory alignment while reading byte words ?
Solution:
what type of issue do you mean? Unalignment? Having the data in memory address equal to some multiple of the word size will help it to be aligned. Take a look at https://www.geeksforgeeks.org/structure-member-alignment-padding-and-data-packing/'...

can somebody help me with my STM32 Nucleo H743ZI2 ?

Hey, can somebody help me with my STM32 Nucleo H743ZI2 ? I have to configure a MQTT communication to another STM32 over TCP/IP. I use the standard MQTT library from LWIP. But you can show me also from PAHO or another library. I only get a TCP connection but not a MQTT connection....

Has anyone ever managed to get a DFPlayer module working with a MEGA board?

Morning , has anyone ever managed to get a DFPlayer module working with a MEGA board? The .ino file from DFRobot says it should work, but it doesn't. It works very well with an UNO board but there's no SoftwareSerial communication with the MEGA. If you have succeeded, could you please share the code or the SoftwareSerial settings?? #embedded-sw-chat #mcu-mpu-and-firmware...
Solution:
Yes, you can use check it here. The code and connections also. https://community.dfrobot.com/makelog-312205.html...

I need to measure the battery capacity using an ATmega32 microcontroller.

Hello everyone I need to measure the battery capacity using an ATmega32 microcontroller. What is the best method or sensor to use? And How can I account for the battery's discharge rate and voltage drop over time in my measurements? I would I'm a bit stuck and would appreciate any guidance...
Solution:
Use an analog-to-digital converter (ADC) pin on the ATmega32 to measure the battery voltage. You'll need a voltage divider circuit to scale the voltage to the ADC's input range (0-5V).

I'm trying to connect an ESP32-CAM to an ESP32 using the I2C protocol.

Guys, I'm trying to connect an ESP32-CAM to an ESP32 using the I2C protocol. Which pins on the ESP32-CAM should I use? I used pins 14 and 15, but it is not working.

I'm working with the ESP32-CAM for recognizing QR codes.

Hi all,I'm working with the ESP32-CAM for recognizing QR codes. Everything worked perfectly, and I was able to recognize QR codes until I used SoftSerial to transmit the SBUS signal. I can receive the SBUS signal via RX2, but in my project, I need to transmit it to the flight controller.

Does anyone worked on SIM800L module with ESP32 using ESP-IDF framework?

Does anyone worked on SIM800L module with ESP32 using ESP-IDF framework? I tried the basic pppos_client esp-idf example, but it's not working for me I'm getting tthe following errors...
Solution:
First Using delays, and second do multiple attempts if synchronisation is failed do it again

What framework or tool you guys use to make iot bluetooth ble /wifi apps for andriod and ios

What framework or tool you guys use to make iot bluetooth ble /wifi apps for andriod and ios
Next