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.

1,250 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5 votes
2 answers
138 views

automatic submersible pump actuation project

I have a project for automatic submersible pump actuation using a microcontroller. I've done for two voltages like 5 V and 12 V and its corresponding relay. Also, in each board there is a transistor ...
Anil Suha's user avatar
  • 101
4 votes
1 answer
127 views

Security issue for landing doors and cabin doors in an elevator control board (PIC16F877)

I am working on a control board for an elevator as part of my final year project. I am currently working on the safety aspect for the landing doors and cabin doors, and I am using Proteus to simulate ...
Nader Noomen's user avatar
4 votes
0 answers
141 views

Can chips be sensitive to mechanical stress after an electrical incident?

Is it possible to electrically damage a microcontroller (or any chip) in such a way that it becomes very sensitive to mechanical stress? Some background: We are developing a board with 7 identical ...
Rocketmagnet's user avatar
  • 27.4k
4 votes
0 answers
52 views

Switching load with changing polarity

From a bespoke board I'm receiving 18vdc that I need to switch. This 18vdc will usually be +18vdc but at times can be -18vdc. The load is .35A. The polarity is being changed via a H-Bridge and ...
chip's user avatar
  • 143
4 votes
0 answers
695 views

OLED display using dspic33f i2c

I am trying to use OLED display in a dspic33f microchip. I've successfully initialized and sent data using I2C to OLED. I managed to display a small font(8pt) on the OLED. However, when I tried a ...
Allure's user avatar
  • 41
4 votes
0 answers
3k views

Is there an online resource for finding microcontroller with specific requirements?

When looking at digikey with the advanced search chrome extension (Link) on I noticed that some features of the microcontrollers are not recorded (such as MIPI, PCIe, UBC, etc). Is there a website ...
user3797758's user avatar
4 votes
0 answers
5k views

How to get an ENC28J60 to work?

For starters: Yes I know I'm about to reinvent the wheel with the following task ahead. I want to create my own library for the ENC28J60 for an AVR (ATMEGA1284P). So I've been browsing the net for ...
Balázs Bagi's user avatar
4 votes
0 answers
1k views

AVR: Usage of Force Output Compare bits

Currently I'm dealing with Tiny2313 for my project. Timer runs in CTC (WGM12) mode so OCR1A is used to set TOP of the timer. I want to use OCR1B to generate output signal. In documentation is ...
kolibri's user avatar
  • 161
4 votes
0 answers
518 views

Data logger using ARM 9 (Friendly ARM Mini 2440 kit)

I have been working on this kit for the past month and have simulated some basic programs using Keil (non os using just C). I was assigned a project of making a data logger which stores the data in ...
Srishti's user avatar
  • 41
4 votes
0 answers
533 views

clocking MSP430 UART from DCO

I'm designing a simple remote-controlled sensor. It's going to be connected with others and a master device using RS485. All it's going to be doing is transmitting the status of a few digital lines ...
user25093's user avatar
  • 241
4 votes
1 answer
345 views

UART stop bit baud timing error

On PIC micro controller UART, Baud rate was set to 38400 (No parity,, 8 data bits), ...
Bharav's user avatar
  • 782
3 votes
0 answers
200 views

Regenerative braking on BLDC motor

I am trying to design regen Braking for BLDC motor controller I used three switch topologies for regenerative braking. In three switch method, high-side MOSFET S1, S3, and S5 are kept OFF and low-...
Surendran 's user avatar
3 votes
0 answers
76 views

DAC not recognized by I2C and creates strange side-effect

Let me preface by saying that I am new here, and I can't seem to solve this problem for the life of me. Problem: I am using the LTC2655BIGN-H16 DAC and attempting to interface with it via I2C with an ...
BlueOyster's user avatar
3 votes
0 answers
61 views

Minimum circuitry for robust operation of the "new" ATtinys (1614) with Optiboot

I have spent hours now trying to catch up on the replacements for the old ATtiny's, there does not seem to be a robust (meaning, with protections that we could find in an UNO or Mega for example) ...
user325962's user avatar
3 votes
0 answers
60 views

ESP8266 only responds to first AT command

While interfacing the ESP8266 module to PIC18F4550, I noticed that the ESP8266 only responds to the first AT command that is transmitted by the PIC MCU. It will not respond for the rest of the ...
Chris Aung's user avatar
3 votes
0 answers
865 views

How to timer-triggered multi-channel ADC conversion run in STMH7

I've managed to get the timer-triggered ADC to run for single-channel conversions where an interrupt routine is called upon completion of the conversion. However, I need three channels to be converted ...
Hansel's user avatar
  • 308
3 votes
0 answers
224 views

Bit Timing Issues With a Software UART

(EDIT a big portion of the original question has been somewhat answered so it is out of date. For a more up to date version of what I am looking for now, please skip to EDIT 2, and use the following ...
Kalcifer's user avatar
  • 245
3 votes
1 answer
1k views

Can I connect DTR Pin to CTS Pin?

I want to connect a Pixhawk 4 (It's a flight controller) to a Raspberry Pi 3. Therefor I purchased this FTDI USB adapter. Its pinout is the following: ...
Max's user avatar
  • 131
3 votes
0 answers
410 views

ISR won't modify a global variable (IAR)?

First, some background on what I'm working on. I have a custom board with ATmega324A that I designed as part of a project I'm working on. Originally, software for the uC was written for GCC in Atmel ...
0xd4v3's user avatar
  • 99
3 votes
0 answers
341 views

How can I setup a shared library between a bootloader and an application?

I am in the process of implementing over-the-air updates on a CC2652 microcontroller using the OpenThread stack. As far as I know a bootloader has to be able to operate independently from the ...
Vincent Kenbeek's user avatar
3 votes
1 answer
761 views

STM32 TIM2 PWM and TIM 5 basic mode simultaneous output issues

Using an stm32f411re I want to generate a PWM of 20% Duty Cycle with a period of 200uS and simultaneously I want a basic timer to be ticking in the background that sends an interrupt every 70uS (that ...
ChrisD91's user avatar
  • 695
3 votes
0 answers
734 views

Increasing system clock frequency on STM32F303 drops I2C clock proportionately - why?

I'm trying to figure out a weird little issue I've discovered while debugging another element of my code. I've got a STM32F303K8 reading and writing to an I2C peripheral. The I2C clock speed is ...
pileunderflow's user avatar
3 votes
0 answers
484 views

Address Sent bit is not set on STM32F4 Disco

I am trying to interface my STM32F4 Discovery board with a sensor that works over i2c, since the sensor required a specialized i2c protocol, I decided to implement my functions using registers. But ...
Dogus Ural's user avatar
3 votes
1 answer
102 views

Preventing inadvertent feeding of an external watchdog

Most internal watchdog timers found on microcontrollers contain mechanisms to prevent an inadvertent feed, usually requiring the write of a specific key-value to the feed register, although some ...
ThreePhaseEel's user avatar
3 votes
3 answers
503 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 ...
Steve Butler's user avatar
3 votes
0 answers
248 views

Can a PC motherboard be used as an uber microcontroller?

I'm aware of the differences between a common microcontroller and a full blown motherboard from a computer server. But consider what happens when the PC memory testing tool memtest86 is run:- Here ...
Paul Uszak's user avatar
  • 7,517
3 votes
0 answers
145 views

Running Application on SIM808 GNSS module beside it's internal firmware

I'm trying to load my written program to SIM808 and the module will be responsible for running my program and also its internal firmware. SIMCOM has a document about doing this in SIM800 module but ...
Mahmoud Hosseinipour's user avatar
3 votes
0 answers
687 views

Microcontroller identification, 44-pin

I am desperately seeking the real type of this branded 44-pin microcontroller. Does anybody know this pinout? I already checked many thousands of 44-pinners on Digikey and Mouser. A 16MHz crystal is ...
RoadRunner's user avatar
3 votes
0 answers
327 views

Are there any metastability issues with microcontroller SPI slave ports that can operate during sleep?

If one is using SPI to interface two microcontrollers that may spend much of their time sleeping, and if the SPI slave port is supposed to wake up its controller when data is received, that would ...
supercat's user avatar
  • 46.8k
3 votes
0 answers
121 views

Generate audio driver hi current from MCU & DAC

I am very very new to microcontroller use. I am looking for a way to generate 2 different VLF frequencies that alternate for set time periods that will be pushed into an audio amplifier device to ...
user18469's user avatar
3 votes
1 answer
860 views

Proper way of designing a battery backup system with 12V/5V dual output AC power supply?

I have a project (doorlock) with MCU / LCD / Keypad and solenoid (lock) connected together. MCU, LCD and Keypad runs at 5V while solenoid runs at 9V to 12V. I'm currently powering the system with an ...
Xiagua's user avatar
  • 486
2 votes
0 answers
76 views

STM32f030 Inconsistent clock

I am trying to write my own microsecond delay function for an STM32f030R8t6 by using the counter function on Timer 3. The first time I power the microcontroller up after flashing the delay works ...
Eric14003's user avatar
2 votes
0 answers
66 views

Can anyone identify this IC marked AFGMG?

I am reverse engineering a PCB. It has an unknown IC marked AFGMG. IC details: Name on IC = AFGMG 8 pin IC size = 1.6x3 mm It looks like this phone cannot send a better picture. PCB: Schematic: If ...
Monesh Rathod's user avatar
2 votes
0 answers
31 views

For the MSP432, does it matter what counting mode is used to generate a particular frequency PWM?

I know there are 3 counting modes, up, continuous and up/down. Let’s say if I intend to generate a 5Hz, 50% duty cycle PWM as output in the compare mode, As long as I choose the appropriate output ...
SwiftEnthusiast's user avatar
2 votes
1 answer
41 views

Does SPI Configuration Persist After DRV8873 Power-Off?

I am designing board to drive BDC motors using a DRV8908-Q1. Here is the data sheet. DataSheet I would like to inquire if SPI config persists (not go back to DEFAULT) after the driver is powered-off.
DAVID LOW JUNYI HCI's user avatar
2 votes
0 answers
77 views

High power boost converter circuit issue

simulate this circuit – Schematic created using CircuitLab I made a dc-dc booster converter circuit. With a 3 mF capacitor, 48V can be boosted to 200V in 0.5 seconds. But for some reason, ...
heyri's user avatar
  • 21
2 votes
0 answers
56 views

Decode chirping frequency with uC at center frequency of around 100kHz

Context For my MSc project I'm building a chirping signal (a bit like LoRa) with a center frequency of 100 kHz. For now, the bandwidth is 10 kHz such that I have around 10 periods per chip. For ease, ...
Mart's user avatar
  • 326
2 votes
0 answers
474 views

ESP32 GPIO State at reset/after reset

Im trying to understand in what state the gpio pins of the microcontroller will be when it will power up or when I flash new code. The mcu on both cases I assume will be at reset? The datasheet at ...
arisk4's user avatar
  • 85
2 votes
1 answer
92 views

How are register detail figures made for IP/peripheral documentation?

How are the register detail figures made for documentation of things like Xilinx/Vivado IP or in documentation for memory-mapped peripherals in microcontrollers like the examples below? Xilinx IP ...
Christopher Moore's user avatar
2 votes
0 answers
385 views

Programming with OpenOCD config file - how do I know my layout_init signal?

we designed a custom board that contains wifi module: EWB-STERLING,(453-00014R ) with STM32F412 chip. I succeed in programming the module, but I noticed that it does not send a reset after each ...
Knowledge's user avatar
  • 411
2 votes
1 answer
141 views

Maximum LEDs on a pin of an AVR Microcontroller

(the schematics is just an example, I will choose different resistors and transistors) I started to design my own Xmas PCB tree. I want to control 10 LEDs (2.1[V] drop, and 20 mA IF ) with an ATtiny5 ...
Stefan Mihai Lorincz's user avatar
2 votes
0 answers
330 views

ST7789 LCD Driver Row Address Set Bug

I'm using a 320x240 LCD with a ST7789 driver in 8 bit parallel mode. I'm just getting things set up and am trying to draw a small square in the middle of the screen to make sure everything is working ...
Alex Jegers's user avatar
2 votes
0 answers
99 views

USB detection with MCU

I have USB on a circuit board that I'm working on and it powers up a part of the circuit. I also have my main MCU, SAMD21G, which is not connected to the USB. I want the MCU to know when the USB is ...
Mostafa Ibrahim's user avatar
2 votes
0 answers
284 views

Not able to flash MCU because of external watchdog

I am using the TPS3813K33MDBVREP watchdog on a PCB with a STM32 MCU. It is connected like the example in the datasheet. I can't program the MCU with a debug cable because the MCU gets reset from the ...
itchy's user avatar
  • 131
2 votes
0 answers
98 views

Bodyheat powered microcontroller

Old Post and even older Post I came across before posting this question. The answers by McMahon and Alexeev are pretty much what I was thinking: human energy source: ~100 W skin surface: ~1.75 m2 ⇒ ~...
Xenox's user avatar
  • 165
2 votes
1 answer
196 views

Triangular waveform with low noise

I have a task to generate a triangular signal with variable amplitude and support. The figure shows the type of signal and what parameters I want to change (“d” and “o”). Moreover, I need to change ...
red15530's user avatar
2 votes
0 answers
190 views

FLASH memory corruption

I have a stm32f030c8t6 which I wish to save some data in its FLASH memory. I use Address Page30 which is 0x08007800 in memory map. it is in 7th Sector. I've developed my code and easily saved some ...
Ala Shafighnia's user avatar
2 votes
1 answer
234 views

nRF24L01+ Doesn't Receive Packets

I am trying to send data from one MSP430 to another MSP430 using Nordic Semiconductor nRF24L01+ radios, but I am unable to receive transmitted packets. I am able to read from and write to the radio ...
dman's user avatar
  • 31
2 votes
1 answer
111 views

What's the purpose of these copper tracks on the bottom of BGA package?

These are STM32F746NGH6 microcontroller chips in .8 mm pitch BGA package. I noticed that there are copper tracks on the bottom of this chip, some of which lead to the edge of the chip and are left ...
crossroad's user avatar
  • 1,400
2 votes
0 answers
149 views

Reading system power noise level using microcontroller

I am developing an application containing a GNSS module where the noise level in the power supply is a critical factor for the performance of the application. So much so that the GNSS module has a ...
Cristian Pastro's user avatar

1
2 3 4 5
25