3,779 questions
1
vote
1
answer
94
views
Cannot get stm32 usb microphone transfer working
I am converting default usb middleware speaker example into microphone input. For now i am transmitting dummy data, not actual microphone data. I have replaced descriptor and it seems to be correctly ...
1
vote
0
answers
123
views
Delay in triggering the BELL
I'm using STM32F072C8T6 Microcontroller with Konnekting Device Library . I want to trigger a BELL for less than half second . I wrote a logic for that BELL & it works well , but after a LONG RUN , ...
0
votes
0
answers
56
views
ESP32 cannot connect to Arduino Uno via HC-05 Bluetooth module
I'm trying to connect an ESP32 (as Bluetooth master) to an Arduino Uno that has an HC-05 Bluetooth module attached. My goal is to send serial data between the ESP32 and the Uno.
Setup:
Arduino Uno ...
2
votes
0
answers
73
views
Bluetooth low energy with calliope mini
I would like to create a Bluetooth remote control for my Calliope Mini v2. The Calliope works with BLE (Bluetooth Low Energy), and I wrote the code for it in Python using Makecode. I used a BLE ...
3
votes
1
answer
121
views
How to map a value from one range to another accurately without using floating point? [closed]
I am writing firmware for a microcontroller. (In this specific case it is a Microchip PIC, but I am looking for an answer that is equally applicable to any brand of microcontroller.)
Arduino has a map ...
3
votes
2
answers
112
views
PIC16F18877 — HC-SR501 PIR motion sensor always reads low on PORTD pin
I’m working on a PIC16F18877 project where I’m trying to read a digital motion signal from an HC-SR501 PIR sensor.
I’ve run into an issue where my PIR sensor seems to always read LOW (0) on my PIC ...
0
votes
1
answer
90
views
Displaying temperature and humidity in Proteus using Arduino
I need to do this project:
Design a circuit that includes an Arduino Uno board, a temperature and humidity sensor (22DHT), two dot matrices with drivers, a touch sensor, and some resistors. The ...
-1
votes
2
answers
63
views
laser turns on without input
i have a setup with a microcontroller where pushing a button i attached with gpio pins turns on a laser pointer using gpio pins. this is part of a larger project including speakers and other leds and ...
1
vote
1
answer
173
views
How to use LL drivers on an STM32 to generate PWM deadtime
I am trying to generate 3 channel center aligned PWM with complementary outputs and deadtime insertion on an STM32G474. To test functionality of the timers, I currently have the 6 outputs connected to ...
2
votes
1
answer
99
views
Why can't I write registers on my TPM? (Infineon SLB 9670)
I'm trying to write a driver for the Infineon SLB 9670 TPM to use it on an embedded system (AD Blackfin ADSP-BF607).
So far I'm able to read registers but I fail when I try to perform a write ...
-4
votes
1
answer
78
views
STM32L152RE C Bare Metal Can't get LED PIN to work
Im trying to set PA10 to HIGH, but It doesnt seem to work.
What I have:
STM32L152RE.ld(No idea whats going on here I got it from Chatgpt)
Makefile(same thing)
main.c(I wrote this by myself and think ...
0
votes
2
answers
63
views
MCP23017 / C++ erroneous values on read
I am trying to read the GPIOB / GPIOA values through my program. This is a threaded program that gets messages over tcp/ip as a signal to change the pins.
unsigned char gpioMon::subtractiveLookup(...
0
votes
0
answers
42
views
Exception in Renesas Rl78 microcontroller ( Illegal Memory Access )
I am running a program in renesas Rl78 microcontroller and sometimes not always during UART communication I get a reset due to illegal memory access. Now in genral for this and other microcontrollers ...
0
votes
1
answer
76
views
ARMv8-m TrustZone crashes with INVTRAN after call to non-secure code
I'm using TrustZone on RP2350 microcontroller. After setting up SAU to define secure and non-secure memory areas, I'm jumping to non-secure code with bxns instruction.
The non-secure part of the ...
0
votes
1
answer
27
views
Is it possible to exit Stop mode on STM32F042 using Touch Sensing Controller (TSC)?
I read in TSC STM32 presentation that it is possible to exit Stop mode using TSC, but I can't find any real technical information about it
0
votes
0
answers
22
views
How can I connect an LCD to an Up Squared Board using spidev?
Original Board: Raspberry Pi 4 model B
New Board: Up Squared 7100
LCD: NHD-PCB12832A1Zrev2
import RPi.GPIO as GPIO
from ascii_values import ASCII168
import icon_manager
# Mapping based on BCM (...
0
votes
0
answers
50
views
STM32F429: CAN cannot receive message from host PC
I am trying to use my STM32F429IGT6 CAN to receive some data from the host computer. The data is basically 4 16-bit unsigned integers (8 bytes in total), the message ID is 0x16 and uses the 11-bit ...
2
votes
1
answer
56
views
Writing a log file to the RW612 Board and retrieving the file on another device
I am currently working on the frdm RW612 board and have the following code that measures the temperature in the room over a few days. My script works fine but I have no way of gathering this data. ...
1
vote
1
answer
88
views
Why is the stopwatch for PIC32MZ2048EFM144 microcontroller always disabled?
I am using a PIC32MZ2048EFM144 uC. I wanted to know time taken for a routine called adc7768(). When I go to
window->debugging->stopwatch
and try to debug it gets hung. Debug will not happen. ...
2
votes
1
answer
65
views
ADC7768 CRC calculation
I am using adc7768 to receive ADC samples. According to datasheet to calculate CRC, we can do it every 4th or 16th sample. My question is for 4 samples last 3 samples CRC will be header of 4th sample. ...
0
votes
0
answers
42
views
Virtual simulation of a PI and Microcontroller using Vagrant and Virtualbox
I am working on a vagrant / python script that will download micro controllers
The vagrant script loads the below VM:
pi5.vm.box = "debian/buster64"
Then I also load these as stand-ins for ...
3
votes
0
answers
101
views
Zephyr serial printing garbage text on terminal emulator
I have an issue with printing basic things with serial with zephyr project. I have the following prj.conf
CONFIG_GPIO=y
CONFIG_SERIAL=y
CONFIG_UART_STM32=y
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
and ...
0
votes
1
answer
106
views
Interrupts on STM32F407G discovery Micro controller with HAL library to blink led
I am trying to create a metronome by using the led on my microcontroller board to blink at a specific number of beats per minute in order to figure out how to do hardware interrupts at specific ...
0
votes
0
answers
44
views
"Interrupt Handling Issues After Jumping from Bootloader to Application in APM8S007 Microcontroller [duplicate]
Description:
I am working with the APM8S007 microcontroller, which is an 8051-based 8-bit microcontroller, and I need to implement firmware update functionality. I have developed a bootloader that ...
0
votes
0
answers
75
views
lwip UDP, CPU time consuming in stm32 boards
I am sending raw data using lwip library, udp protocol,RAW API.my evaluation board is stm32 F429zi.
The problem is when i send 48 bytes using udp_send() function, as i measured by oscilloscope, it ...