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

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

I want study firmware with friends.

Hello, everyone. I've been studying firmware and hardware design for 2 years. I want to do with friends together. Pls DM me if you want to study with me. I know - STM32...

my ESP32 Cam display is not sharp enough

Hello guys my ESP32 Cam display is not sharp enough How can I increase its brightness...
Solution:

How to Resolve Connection Errors When Uploading Code to ATmega32A Microcontroller?

Good morning everyone! Now, every time I try to upload the code to my microcontroller, it gives me an error that it can't establish a connection with the target chip. I've checked the connection more than twenty times, and I'm sure it's correct. I've also simulated the code, and it works fine on Proteus. Even though it's a simple code just to toggle an LED, I keep getting this error. Could the issue be with the microcontroller? I have three microcontrollers, and I've tried them all, but they all...
Solution:
Please provide a neat connection diagram to help us understand how and where exactly the ISP programmer's pins are connected to ATmega32A MCU. It seems to me you've connected VCC from the AVR ISP programmer to the AVR chip. Usually, I suggest using an external 5V DC to power up ATmega32A. The VCC/5V from ISP header of a programmer is not capable of providing enough power while uploading. That's the reason in your screenshot it says Power On Failed and Can't Communicate with Target Chip

How to Enable Raspberry Pi Camera Interface on Raspberry Pi 4 Model B with Camera Rev 1.3?

hi everyone my raspberry pi is 4 model b and my pi camera is 1.3 rev .. and there is no option 'camera' in the "interfaces option" to enable the cam i try to update and upgrade and i try vcgencmd get_camera i receive this output :supported =0 detected=0 , libcamera interfaces =0 any help please...
Solution:
Hi @406399 If you're using bookworm ( Raspberry Pi OS ) with Raspberry Pi4 then in raspi-config you'll not find option to enable the camera interface. For legacy camera versions like Camera V1.4 and V2. I'll suggest to use bullseye version of RPi OS and then enable the camera interface. The only time you need to edit config.txt file is when using latest Camera V3 which support libcamera API. Let us know if you're camera module works with Bullseye verision of RPi OS.

How to create and write data in .xlsx file into the SD card using any microcontrollers like stm32,

Does anyone know how to create and write data in .xlsx file into the SD card using any microcontrollers like stm32, esp32?
Solution:
I apologize for the confusion. You are right, the FatFs library does not support the Excel file format directly. You will need to use a separate library for Excel file manipulation. One popular library for Excel file manipulation is the OpenXML SDK. You can find more information and examples on how to create an Excel workbook using OpenXML in the official documentation: https://docs.microsoft.com/en-us/office/open-xml/how-to-create-a-spreadsheet-document-by-providing-a-file-name Another option is to use the ExcelDataReader/ExcelWriter library, which allows you to read and write Excel binary format (.xls) files. You can find more information and examples on how to use ExcelDataReader/ExcelWriter on the official GitHub repository: https://github.com/ExcelDataReader/ExcelDataReader...

When we talk about wifi esp32 / esp8266 is the first choice, are ther other alternatives?

When we talk about wifi esp32 / esp8266 is the first choice, are ther other alternatives? There are any microcontrollers with built is wifi ?
Solution:
I used TI's CC3200 for evaluation purpose once