Questions tagged [microcontroller]

A device which includes a central processing unit (CPU), memory, and (generally) an assortment of I/O peripherals (UART, ADC, DAC, general-purpose I/O, I2C, etc.) in a tightly-coupled standalone package.

Filter by
Sorted by
Tagged with
0 votes
0 answers
19 views

How to setup STM32 + libopencm3 on Windows

I am an electronic hardware engineer with experience and vendor specific IDEs. I am following this series. I am following the steps mentioned on the GitHub to get started. BTW just want to mention I ...
0 votes
2 answers
32 views

ADC interrupt flag in ATmega2560

If we look to datasheet of ATmega2560 https://ww1.microchip.com/downloads/en/devicedoc/atmel-2549-8-bit-avr-microcontroller-atmega640-1280-1281-2560-2561_datasheet.pdf In the ADC Section, page 285, it ...
0 votes
2 answers
338 views

How can I switch from PWM output on an STM32 to logic 1 output?

I am generating PWM on the TIM1C3 channel of an STM32 Bluepill board. A switch is connected to the system and when the switch is in the set position, I want the PWM production of TIM1C3 to stop and ...
12 votes
7 answers
4k views

Tie all unused GPIO to GND?

Recently, during a discussion with a senior electronics engineer on an industrial project that operates at 48V and is housed within a metallic casing, a point of contention arose regarding ESD ...
0 votes
1 answer
1k views

Reading fan speed by ESP32

I have a case type 12 V 3-pin fan and I would like to connect its tach signal wire to an ESP32 input pin. Power supplies to ESP32 and the fan are separate, but the ground wire is common. Based on some ...
-1 votes
2 answers
138 views

STM32 microcontrollers while(1) speed

I did a test on different micros like STM32F0 G030 F103 F401 and STM32H745. I know that various units like NVIC, WIC, DWT etc. take the CPU out of the while loop and the CPU is always busy. But how ...
0 votes
1 answer
626 views

STM32 BLE profiles - multiple sensors active ST BLE Sensor App

I have done the MOOC for the stm32wb55 BLE profiles and now I am trying to introduce more BLE characteristics. I managed to make the sensors work and to transmit them to the ST BLE Sensor app. However ...
0 votes
1 answer
43 views

Which pins are used for I2C and SPI in ESP32-S3?

I am using ESP32-S3-WROOM-1-N16R2 Controller in my design. I want to connect Sensor with this module which has both I2C and SPI Communication pins. I gone through the datasheet for controller, but i ...
0 votes
1 answer
43 views

Arduino pro mini 3.3v where are the digital pins 0 and 1 [closed]

I am using an Arduino Pro Mini, 3.3V, 8MHz board. Now I need to use the digital pins 0 and 1 as I have already used pins 2-12. I am not sure where the digital pins 0 and 1 are located on the board. ...
0 votes
1 answer
51 views

12V fan drawing more current when connected to 24V power supply. Why?

I am developing a fan that runs with 3 speeds, that can be connected to a 12V or a 24V battery, I have attached the circuit below, PB0 converts the voltage divider to ADC and based on the value the ...
0 votes
0 answers
45 views

Configuration tool programming for custom controller unit [closed]

Recently I have been developing a control unit PCB meant to control hydraulics equipment (such as proportional valves, distributors, etc) to work in industrial trucks. So far I have designed a ...
0 votes
0 answers
20 views

BLDC motor phase sensor

I've been working on a 4 wheel differential drive robot. It has 4 brushless motors attached to gearboxes, driven by RC ESCs. I have some of these Hobbywing RPM sensors attached to two wires of each ...
1 vote
1 answer
511 views

Programming a AT28C64B EEPROM using an STM32F429

EDIT: For those who tried to help or have found this question via google, I managed to solve this issue just by adding a 1uF ceramic bypass capacitor to the breadboard. Thanks for the answers. I'm ...
0 votes
0 answers
41 views

Batteries safe for use in low-pressure conditions

I want to create a device for use in skydiving. Why when there are ready-made solutions? Because I am a skydiver and an electronics hobbyist, I would like to create something myself and experiment ...
2 votes
2 answers
221 views

Noise spikes on power line cause false readings

I'm working on a project to measure the frequency of a small voltage (~0.1V peak-to-peak, with 1.4 VDC offset) sine wave of 1-100Hz. I only care about the frequency. I'm using a LM324 quad op amp (...
0 votes
3 answers
75 views

How do I convert a structure's data to the character data type and fill it in an array for UART transmission and reception?

I am trying to solve the following problem where I am supposed to send the data of a structure from one micro-controller to another using UART. The problem statement is as follows: Write a sample ...
1 vote
1 answer
203 views

Which is the acquisition time of the SAR ADC of a LPC1768?

i'm trying to design a RC filter to drive the ADC of the micro-controller LPC1768 and i need to know the acquisition time of it (which is not in the datasheet). I'm using this article as a design ...
3 votes
3 answers
506 views

Timing a circuit's 'on-cycle' after a push button switch is pressed

First off, thank you for reading all of this - you are the part of the internet that gives me hope for mankind. I’m looking for a circuit that I would think is relatively straightforward, but has a ...
0 votes
1 answer
22 views

Why openocd corrupt simplelink cc13x2 radio periphery?

I use in project with simplelink cc1312 mcu (on test board from TI) + vscode + gdb. I can build, flash and debug with these tools. But radio periphery not working correctly after flash(and start debug)...
1 vote
1 answer
37 views

STM32 I2C HAL Code GPIO?

I configured PB6 and PB7 to I2C using the CubeIDE GUI, and it automatically generated the code for me. I understand how I2C works but I am trying to see how HAL does it and this is the code that they ...
1 vote
1 answer
661 views

Interfacing keypad with 8051 microcontroller in Proteus

I am trying to simulate this project in Proteus using keil C. We are basically interfacing 4x4 keypad with 8051 microcontroller. This is the code for the project: ...
1 vote
1 answer
58 views

Random or Unusual microcontroller restarting issue

I am developing a prototype where it takes input from 24V sensor and output to 24V 2.5A solenoid coils controlled by microcontroller ATMEGA2560. I have mentioned 2 circuits in the image where first ...
0 votes
3 answers
252 views

Need an IC that can produce a HIGH output with a sink or source input

I want to derive the signal from a programmable I/O to turn a signal LED on/off for visual state indication. If the Output is programmed as "Output" it will produce a sink connection to the ...
0 votes
1 answer
967 views

SIM800L disconnecting issue

I'm doing a project using a SIM800L eBay module. I can send and receive SMS & calls. The problem is that on the workbench it's working, but in an actual site environment, when the GSM signal is ...
0 votes
1 answer
570 views

How to wire digital voltmeter/ammeter to measure arduino battery consumption

I'm not sure if you can tell but I'm a bit of a beginner, I want to wire up an digital voltmeter/ammeter combo to measure arduino power consumption. I found the following device which seems suitable ...
0 votes
0 answers
41 views

Variable speed drive for an alternating current motor with PIC18F4431

I'm designing a control board for a three-phase motor speed controller using a PIC18F4431. I've used an inverter powered by 24V DC to convert the voltage to 24V AC to power the motor. Additionally, I'...
0 votes
1 answer
213 views

Trying to use push to make switch to toggle and power microcontroller

Not great at electrical engineering, doing this for a school project. Tried using a 4013b, but output voltage is fluctuating, which resets the microcontroller (essentially it keeps turning on and off)...
0 votes
1 answer
53 views

Identifying 10-pin power IC

Unfortunately I can't find the following component on the internet. No matter what I type, I can't find anything. 5A TI 51240 3C TI 51240? The two ICs are broken on both boards. It happened when the ...
0 votes
1 answer
205 views

PWM Modes: Center Aligned and Left Aligned (current consumption)

I have a question about PWM in STM32F051xxx Microcontrollers. I want to know if there is a difference regarding the current consumption of the microcontroller between the center aligned mode and edge ...
1 vote
1 answer
66 views

Setting Boot Mode on Microcontroller without Boot Selection Pins

I've been tinkering around with this Generalplus microcontroller: GPM32F0118B and there are datasheets/some materials here: https://www.generalplus.com/GPM32F0118B-MkCri-...
0 votes
1 answer
125 views

What protocol is shown in these scope traces?

I have a PIC16F1937 series processor on a fire detection control card. I receive the output signal through Rx connections. I cannot figure out the protocol despite all my attempts. The signals present ...
0 votes
1 answer
437 views

Reprogramming MCU Flash Memory I/O placed on a PCB of a mechanical keyboard

I've decided to modify some things about my mechanical keyboard (Hermes M1), so I tough starting with installing the software driver it's a good idea. Thus I've changed some things about lighting of ...
0 votes
2 answers
270 views

LCD 16x2 not taking commands from MSP430FR2355

I have been facing this issue for about a week, and after hours of trying to debug it, I was hoping I could find some help here. I have been trying to use an LCD 16x2 screen (unaware of the exact ...
0 votes
1 answer
43 views

Programmer is not responding error

I currently am running into problems with my new Arduino board. The complete details are here with log info and other troubleshooting steps https://forum.arduino.cc/t/programmer-is-not-responding-...
0 votes
0 answers
78 views

Is my tactile push button switch connected properly to reset my STM32?

Is my tactile push button switch connected properly to GND so that the NRST pin of my STM32 gets GND and resets the STM32 when pressing the push button? Please check if my schematic for the push ...
1 vote
1 answer
239 views

Unable to Generate PWM Signal Using CCP of PIC16F15325

I am using: Curiosity LPC dev kit, PIC16F15325, MPLABX v5.35 on Mac, XC8 compiler. I am able to blink each LED on the Curiosity. My goal is to generate a PWM signal on RC5 to drive an LED on the ...
0 votes
1 answer
69 views

How to program an STM32 MCU on a custom PCB

I am designing a PCB using an STM32 MCU to control a motor. My main concern is being able to use STM32CUBE IDE or the Arduino IDE to program the board. I don't want to spend a lot of money on a JTAG ...
1 vote
6 answers
184 views

Detect presence of 12MHz squarewave without oscilloscope

I have programmed my ESP32 to (supposedly) output a 12 MHz clock signal, to use as a substitute for a broken clock crystal on another microcontroller. The code I used is adapted from this esp32 forums ...
0 votes
0 answers
26 views

TM4C123 SPI slave reads only one byte

I'm sending the following sequence to an SPI slave in a Tiva TM4C123GXL board: I have captured this directly from the MCU pins. Notice SCK is running at ~190 kHz (pretty slow). The problem is that my ...
0 votes
1 answer
410 views

ESP32-S3: Serial stops working after a random period of time

I am using a ESP32-S3 Dev Kit (Arduino code) connected to a MAX3232 to read data from a solar inverter. I am facing a strange problem as follows: The UART (Serial1, ...
1 vote
2 answers
410 views

Separate power supply for ADXL362 (independent of MCU)

I am currently trying to connect an ADXL362 accelerometer to an ESP8266 and have them communicate through SPI. My final goal is to build a battery-powered device that submits motion events (activity ...
0 votes
0 answers
16 views

How to debug BLE HID Connection (STM32WB55)

I'm working on implementing a BLE HID keyboard using an STM32WB55 (the nucleo board). The BLE HID example they provide is a mouse, where you press a button on the nucleo and input stuff into a menu ...
0 votes
1 answer
206 views

Reading ADC output on two microcontrollers

I'm trying to provide an ADC output to two different microcontrollers. Wondering if this is at all possible. If yes, then how could I be able to achieve it? simulate this circuit – Schematic ...
0 votes
0 answers
39 views

Review of a rocket flight controller schematic

I am currently designing a model rocket flight controller, which is supposed to calculate the altitude using a barometer and accelerometer and fire two pyro channels for two stage parachute ejection. ...
1 vote
2 answers
264 views

HX711 loadcell amplifier with builtin mcu communication problem

I bought the following version of HX711 module. Connection to Arduino VCC -> 5V GND -> GND SCK/TX -> GPIO 6 DT/RX -> GPIO 7 However, it doesn't work. I have tried different libraries and ...
9 votes
2 answers
4k views

meaning of set low/set high

I often see those phrases in tutorials with microcontroller I/O. An example use is "set pin 3 high", or "set pin 5 low for 20 ms". I also recall reading several different definitions on what that ...
0 votes
2 answers
114 views

Do we need differential routing TX and RX in Ethernet RMII MAC to MAC Connection

I am implementing an Ethernet mac to mac connection between SAMA5D27C-D1G-CU and FS32K148UJT0VLQT micro-controller. In MAC to MAC communication PHY TX is connected to RX of MAC and vice versa as shown ...
0 votes
0 answers
44 views

EMF Coupling from microSD writes

Looking for some pointers. I am having an issue with noise coupling into the onboard ADCs while writing to a microSD card. Audio from an pre-amp at 46.875 ksps I am using a SAMD51 microcontroller (...
0 votes
1 answer
44 views

How to correctly shift the wipers of MCP4331 per SPI?

I am using an STM32 F401RE to control a Quad 7-bit digital potentiometer MCP 4331 using SPI Mode 0,0 protocol. You can find the datasheet Here. I can see that the microcontroller sends the correct ...
1 vote
3 answers
108 views

Programming microcontollers using drivers

I was wondering if I could have some advice. I need to design a PCB which will have a USB-micro interface. The design will be manufactured with a lot of units and can't be programmed before ...

1
2 3 4 5
191