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
1
vote
1answer
45 views

Is it better to use a microcontroller or pushbutton controller for simple on/off delay functions?

I'm working on a LiPo charging design with the intention of producing several 1000 of them. There needs to be a switch to turn the charging function on and off. To me, it seems to overcomplicate the ...
3
votes
0answers
21 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 ...
1
vote
1answer
29 views

ATMEGA 2560 => MCP4725 => FC-33 => Electronic Pressure Regulator

I am purchasing a regulator that accepts a 4-20mA control. I am hoping to interface this to an ATMEGA2560 microcontroller. I am looking at using a MCP4725 DAC driven by the I2C bus of the ...
0
votes
3answers
70 views

STM32L152RE Schematic Verfication & Feedback

I am making a custom PCB for an academic project. I will be grateful if somebody can verify the schematic I created for STM32L152RE and if I have made any mistakes. I will be using SWD to flash code ...
0
votes
2answers
79 views

Can I use an ADC pin as AREF?

simulate this circuit – Schematic created using CircuitLab I'm using the A9 module from Ai-Thinker in a logger project. It has 2 ADC pins and I need to measure 2 analog inputs (not at the same ...
0
votes
0answers
28 views

Low Voltage Programming mode of PIC18F2550

I am confused with how the Low voltage programming mode works on PIC18F2550. I know that PGM pin is pulled high when device enters into programming mode, but can't find in the datasheet about what ...
0
votes
1answer
37 views

DP83848C: DP83848 stops working after few month on field

In a product we designed, the LAN drive circuit(MII mode) is composed of LPC1768 and DP83848CVV. The function is very normal. There are no problems with factory testing. After using it in the hands of ...
2
votes
3answers
107 views

Developing a Hardware Test Plan for a Microcontroller - Past Experience

I am using this Microcontroller using 3.3V for power. Using GPIO pins to drive some LEDs and send some ports for sending UART, LIN signals. I'm using 16MHz crystal Can someone tell me what are the ...
0
votes
4answers
140 views

Memory Mapped IO and IO Mapped IO

I am revisiting Microcontrollers and Microprocessor concepts. Yes. I know this question has been asked many times like here and here. I have also visited many sites regarding this concept but still I ...
1
vote
2answers
83 views

Using Analog potentiometer as a digital one to SW control

I try to read an analog potentiometer that will control specific software functions. That means that I want 0 fluctuations in its reading. For this reason, moving average and other techniques do ...
0
votes
1answer
45 views

Can't trigger 5V,10A relay using the output from a ESP8266 node MCU?

I'm currently working on a project where I turn off the ac appliances when the input signals of the relay get high. I'm using a 5V 10A relay and ESP8266 node MCU. But the problem is controller is ...
0
votes
1answer
87 views

Machine learning on Microcontroller

I am new to neural networks and I am trying to implement self driving on an RC car. I was planning on using a CNN for image recognition (Correct me if I am wrong which I most likely am). I was ...
2
votes
0answers
34 views

Errors in SPI communication with SD card due to heat

Given is a PCB with a STM32L432KCU6 and a microSD card connected to it via SPI at 40 MHz in SPI Mode 0. The communication is protected by CRC which is calculated by the microSD card on the fly. When ...
0
votes
1answer
38 views

How to wake STM32F103 by RTC using HAL libraries / Registers?

I've started digging into STM32F103 using HAL Libraries and raw registers. It's the first time to program at such low level. Anyway following a video I've successfully implemented "Standby" mode. ...
0
votes
1answer
50 views

Pullup resistors value of STM32F103C8T6 GPIOs too weak, why not more flexible?

I'm trying to get a keypad to work, writing my own library (just because I want to learn it, and later use the keypad). For the columns I need pullup resistors, and I initially selected the internal ...
2
votes
0answers
20 views

3 phase sine inverter

i am trying to control bldc motor (sinusoidal commutation). I am somewhat controlling bldc motor, by applying sinusoidal voltage with 120 phase shifted to the phases. Now my issues is i cant able to ...
0
votes
1answer
58 views

Toggle 555 timer IC both with switch and arduino

I want to use 555 timer IC (NE55P) as a latching toggle switch. I successfully did it using a switch as described in this toggle 555 schematics except, I am using 5V power with led as output ...
0
votes
0answers
61 views

Microcontroller Oscillator Layout for ESD immunity

I have a small portable USB device failing ESD immunity. It's a two layer board with a solid ground plane on the bottom. I have diode protected inputs, and there's a TVS on the USB connector, and I'm ...
2
votes
3answers
46 views

Controlling cardreader numpad input with microcontroller

I am trying to automatically input a pin code into an electronic card reader so I can automate the process. First thought was to build a small robot finger and control that to input the code, ...
0
votes
0answers
64 views

How to calculate I/O currents in controllers? [closed]

1.15 Considering just current, how many 74S Schottky inputs can one microcontroller output drive running in 8 mA output mode? 1.16 Considering just current, how many 74LS low-power Schottky inputs ...
0
votes
0answers
28 views

Soft Close OS / Battery Switch / Improvement

I have a system that gets +12VDC from a source. The source is controlled by a switch, which I can not access. When the switch is on(close) my Raspberry Pi starts to work. (I am using a voltage ...
-1
votes
0answers
55 views

Cyclic operation using Microcontroller [closed]

I am using 4Mhz crystal with pic16F886 using timer interrupt 1ms. In below Here i could able to display set value and process value.During ontime Setvalue displayed on bottom Dissect(value) & ...
0
votes
0answers
20 views

Problems watch variables in the free STVD IDE while debugging code on STM8 MCUs

Has anyone worked with ST Microelectronics STM8 8-bit MCUs and ST's free STVD IDE (COSMIC compiler) to write and debug code for them? I'm so frustrated with it while debugging. I set variables from ...
1
vote
0answers
69 views

project with micro controller + micro computer: the eternal 3.3V vs. 5V [closed]

I want to start a new project that will include a mix of various small electronics as well as a microcontroller (a la Arduino) and a micro computer (a la Raspberry Pi). In my previous project, I ...
0
votes
1answer
18 views

RSL10-SENSE-GEVK Read analog signals on accessible pins

I am new to the RSL10 chip and I can't figure out how to read analog signals with available pins on the RSL10-SENSE-GEVK demo board. Is it possible to configure the AOUT pin (TP3) to read external ...
1
vote
2answers
88 views

Programming my ATmega8 board using Arduino IDE

I made a board with an ATmega8A (SMD-TQFP package). I installed the minicore library in the Arduino IDE. Now I'm able to flash the hex file using Atmel Studio 7 and able to read serial well. But my ...
0
votes
1answer
40 views

Implement a data protocol between a smartphone and a MCU via NFC hardware?

If I'm able to develop a mobile app which is able to use the NFC hardware of a smartphone to write/read through it. And if I have a board containing a MCU and a NFC transponder like the IC from ST ...
0
votes
1answer
51 views

DAC Signal Clipped By DC Voltage Source

I'm using a TI F28379D to generate a sinusoidal waveform from a DAC channel. The output of the DAC is shown in Figure 1 with a Vpp of 688mV. This signal is then connected to a resistive network of 1k ...
1
vote
3answers
87 views

Internal oscillator drift and its effect on UART

I am eager to know whether a 150kHz drift of internal oscilator clock (mentioned in a STM32 MCU operating with 8MHz internal clock) could destroy a UART connection?
0
votes
2answers
81 views

Using SPI to manipulate Flash Memory (Code in C)

for a couple of days i have been trying to write a C code that writes to a flash memory via SPI. I already have a code that writes characters into flash. Now i wanted to expand on it and write integer ...
2
votes
2answers
86 views

Generating 40 kHz square wave using ATtiny13

I'm using an ATtiny13 running at 1.2 MHz and would like to generate a 40 kHz square wave on PB3 and PB4. The signal on PB4 should be 180 degrees offset (inverted) from PB3. I know that I need to set ...
0
votes
0answers
28 views

Effect of slight variations of load capacitors on frequency accuracy of a pierce oscillator

I have currently understood how to calculate capacitors C1 and C2 needed to be connected to a crystal to make its frequency stable in pierce oscillators. Regarding the following equation, C1 and C2 ...
0
votes
0answers
37 views

The variation of the DAC output is abnormal

Description of the situation I want to output the data from the ADC to the DAC. I use an ADC from Microchip dsPIC33EV128GM104-E / PT and I am using 12 bits. Microchip MCP4922T-E / ST is used and ...
0
votes
0answers
14 views

BlueNRG-2 from STMicroelectronics Range Problem

I have configured my Bluenrg2 with the help of a Bluenrgsdk module with Data Length Extension of 251 bytes and ATT_MTU as 247. I ...
0
votes
3answers
69 views

Interfacing LM19 temperature sensor with Arduino

community! I have a problem as follows. I've been trying to interface the LM19 temperature sensor using Arduino. I made a function to read and compute the temperature from the sensor according to a ...
1
vote
1answer
104 views
0
votes
2answers
49 views

Splitting Variable of integer into 2 Set

I have actually 2 issue in code. 1) variable declaration. I have declare variable unsigned int Top_Display=0; if assign Top_Display=0123 display shows 0083 if assign Top_Display=123 display shows ...
0
votes
0answers
17 views

SIM800l Replies with a delay. Http Get

I trying to use http get method on SIM800l (mcu for controling SIM800 is STM32F407VGT6). I can send SMS message or read all/specific SMS message but with http methods I'm in trouble(power supply is ...
3
votes
1answer
137 views

Routing strategy - 24-bit RGB display on a 4 layer PCB

I'm routing traces between a microcontroller and a TFT display (24-bit RGB, clock frequency at 18 MHz).The stackup is: L1 - Signal L2 - GND (solid layer) L3 - PWR (solid 3.3V in the region of ...
2
votes
2answers
50 views

MSP430 multiple slaves in SPI communication

I want to make an MSP430G2553 communicate using SPI with a 7-segment display and with another microcontroller MSP430G2452. So the MSP430G2553 would be the master and both the 7-segment display and ...
0
votes
6answers
121 views

Is a floating pin equivalent to a very weak pull down?

I know that if a MCU pin is configured as "input" and it is not connected to any pull up/ pull down resistor, it is said to be floating. In this situation, we could say that the pin is in series with ...
8
votes
7answers
672 views

Why can a MCU input floating pin easily change state?

I would like a technical ("engineering") explanation of why a MCU input floating pin can easily change its state depending on the outside electromagnetic interference. Is it related to the fact that ...
0
votes
5answers
144 views

Which is faster for an MCU? Calculating Steinhart-Hart or search in Look-up Table?

Let say we are to measure 0-100 degree Celsius in 0.1 degree resolution by using an NTC. For a particular MCU which is faster (takes less time to reach the result) : a) Reading NTC value via ADC and ...
0
votes
1answer
52 views

Wear leveling and supply of voltage

Does anyone know if a NAND flash device (e.g. microSD) has to be continuously supplied with energy for its wear leveling algorithms work as designed? Or, if it doesn't matter if the device is (safely) ...
0
votes
3answers
61 views

Trying to understand schematics of a microcontroller (TM4C123GXL)

I have a TM4C123GXL microcontroller with a hwllo-world app. that makes some LEDs to blink. I have done this 'hello-world' by following a tutorial, but now I want ...
1
vote
0answers
38 views

MCU wake-up for low power consumption system [closed]

I´m checking the possibility of designing a MCU system with low power consumption, thus I´m looking for a energy efficient wake-up method. The MCU will be woken up by another device in the same room. ...
0
votes
0answers
43 views

IC power consumption under 50% vs 100% busload

Is the dynamic power consumption difference significant for a uC, if it has to raise its activity on the chosen bus protocol from, lets say 50% to 100%? I look in overall to the uC+CommController+...
0
votes
4answers
86 views

Change state hardware interrupt handled by micro-controllers

How are external interrupts handled by microcontrollers? My question is general to micro-controllers, but if it is architecture specific, leans to ARM- based micro-controllers. Assuming we have 2 ...
1
vote
0answers
21 views

UART communication with a Thorlabs chip

I am trying to configure a Thorlabs temperature driver (MTD415TE), using a UART-USB connection. For this, I am using a Foca v2.2 with a FT232R USB-UART cable. I am using serial terminals such as ...
1
vote
2answers
23 views

Is a Synchronous Step-Down Converter powered from industrial 24v a good choice to power a 3.3 volt MCU and sensor ic?

I am building a sensor that will be powered from a 24v industrial power supply. The board will contain a 3.3 Volt MCU and sensor IC. Is it a good idea to use a synchronous step-down converter and just ...

1 2 3 4 5 134