Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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

How to measure the battery voltage while charging

I am designing a battery charger with 48 volt 10 amp output. I am controlling the buck converter pwm using PIC controller. During charging the battery's current and voltage have to be constantly ...
0
votes
1answer
63 views

PLDs, DSPs, MCUs, MPUs and SoCs Typical Application [on hold]

PLDs, DSPs, MCUs, MPUs and SoCs are all embedded devices, they can be programmed / configured to achieve a specific application. I've worked with MCUs and FPGAs in the past and realized that they are ...
0
votes
0answers
38 views

Crystal Oscillator (STM32F4)

I am currently working with a STM32F427 MCU and have a few questions in my mind. Is my schematic for the HSE correct? Can you tell me, why some schematics on the Internet use a Resistor in series ...
0
votes
2answers
118 views

Can SoC Processors be used as more powerful microcontrollers? [on hold]

I'm starting with microcontrollers (still avr), and once I finish, I'll be moving on to ARM based microcontrollers. However, as I've been reading, the ARM Cortex M is basically the best you can get, ...
0
votes
0answers
14 views

Problem advancing out of debug mode with PIC16F1717, HD44780

I have a project that I started using MPLAB X IDE but now I'm just using a regular editor and the gputils version of gpasm because I got suspicious about the MCHP assembler, I'm only using their IPE ...
0
votes
1answer
43 views

Debugging on STM32F103

I have been on this for about two days now and I'm so frustrated already I don't know what I'm not getting right. I want to be able to use the stm link utility with my stm32f103c8t6 so that I can use ...
0
votes
2answers
63 views

How to detect whether a solenoid is actually attached to a MOSFET?

An injector is usually switched to ground to turn it on using a an N channel Mosfet. But how does the MCU knows when this is disconnected? I'm trying to drive a solenoid, but if the solenoid is ...
4
votes
3answers
227 views
+100

How to debug current consumption with STM32 Nucleo board?

I'm trying to configure an STM32L011-Nucleo developement board to consume about 600 uA of current or so. It uses an STM32L011K4. The datasheet states that this should be possible if I drive the MCU ...
0
votes
1answer
35 views

ADC occilation problem with inductive load

ADC in question is onboard ATMega168 micro controller. Relevant parts of the circuit look like this: simulate this circuit – Schematic created using CircuitLab Now I know AVCC is recommended ...
0
votes
1answer
30 views

Multiple Open Drain Outputs to one MCU-pin

i want to use two DRV8844 (http://www.ti.com/lit/ds/symlink/drv8844.pdf) Motor Drivers. It has an Open-Drain output, that indicates an error, when it is LOW (nFault). What happens, when i connect ...
1
vote
1answer
1k views

STM32L0 Low power UART-receiver reads the wrong data at high baudrate after MCU waking up

I'm using a STM32L0 MCU for my project. The MCU has a Low-power Timer (LPTIM) for waking the MCU up from Stop-Mode, and a Low-power UART (LPUART) for both waking up the MCU from stop mode and receive/...
0
votes
0answers
22 views

Read internal temperature sensor value from raw register address [on hold]

I'm trying to read the internal temperature sensor in a stm32f2 microcrontoller, in our project we are using libopencm3 and using this you should make an adc setup ...
0
votes
0answers
35 views

Check if the slave is receiving data from microcontroller and transmitting back successfully, I2C?

I have this project where I have to communicate MPR121 touch sensor keyboard with 8051 microcontroller via I2C, I've implemented the code and when I execute it I don't really know whether slave is ...
6
votes
5answers
2k views

Reasons for having MCU pin-states default to pull-up/down out of reset

On many MCUs, pin-states default to tri-stated (a.k.a. analog inputs) when the MCU resets so as to not affect the circuits they are connected to until software configures the pins. The tri-stated ...
0
votes
0answers
35 views

Video transmission using microcontroller [on hold]

I try to stream video using a microcontroller. I tried Raspberry and it was expensive and boot time was very slow (which is crucial for my project). I didn't try arduino because I assume it wasn't ...
-4
votes
0answers
22 views

Interfacing RFID reader directly with computer [on hold]

Can I connect RFID Module directly to PC without MAX 232 IC
0
votes
0answers
53 views

Having trouble reading from registers with STM32F4 HAL_I2C libraries

I'm new to STM32 programming and am programming on a STM32F429 Microcontroller. My main goal is to integrate a Sparkfun UV sensor VEML6075 into the microcontroller as an external payload. TLDR: Tried ...
0
votes
1answer
30 views

MSP microcontroller Watchdog timer

I am new to programming microcontroller. what does the following like of code do: WDT_A->CTL = WDT_A_CTL_PW | WDT_A_CTL_HOLD i have looked at the technical ...
10
votes
1answer
18k views

Addressing registers with I2C STM32F0 HAL libraries

I'm very new to using STM's CUBE and HAL_libraries. I'm using an STM32F0 microcontroller with 32 pins. The schematic for I2C is correct. So I need a little help here. I have a capacitive sensor (...
-1
votes
1answer
98 views

How to understand “Power Up Checksum” in embedded system?

For an Embedded hardware system, how do we understand the "Power Up Checksum" in the initialization part? How does it work in detail? (Where does it check, what is the mechanism) A "Power Up ...
1
vote
1answer
60 views

What is the right order for 16bit data on 8bit 8080 data bus

I'm trying to create a program to drive a TFT LCD with an ILI9486 in 8bit but I don't know if I must send the configuration data and commands MSB or LSB first. The color data for the pixels in 16bits ...
0
votes
1answer
91 views

Interrupt PWM signal with transistor

Can a transistor be used to interrupt a signal? I know a common use is to switch power to another device. But my question is if I have a PWM signal applied to the emitter and the base pulled up, will ...
-1
votes
0answers
13 views

Wemos D1 mini Extremal power [on hold]

NodeMCU is capable of powering via ‘Vin’ up to 20v. I found an article saying the same thing for Wemos, also referring to ‘Vin’, but Wemos does not have one. Is it ‘5v’ pin?
0
votes
0answers
65 views

How to in parallel access the ports of 8051 microcontroller through python(or any scripting language) script? [on hold]

I already know how to access the ports of an Arduino board using python. Here is the sample of what I want (but for 8051 microcontroller): Arduino program: ...
0
votes
2answers
151 views

Can I use pin as both an ICSP pin and as pwm output?

I have a microcontroller with 3 PWM pins, and I'd like to use those pins to drive the leds inside an analog RGB led. Problem is that one of the pins is also the MOSI pin and I would like to re-...
0
votes
0answers
34 views

Loading memory state to FPGA [on hold]

I am an electrical engineering student working on building some of my first microcontrollers with the Intel MAX 10 FPGA board. Just take this in note as I have little experience with the advanced ...
2
votes
2answers
114 views

Any Methord to overcome Main supply voltage fluctuations with ADC value readings?

Updated: I have a circuit for monitoring fan regulator speed change using ADC (as shown). But the problem is: In case input supply voltage (230V) varies due to some over-voltage or short circuit, ...
2
votes
3answers
203 views

How can I change step-down my variable input voltage?

Ok so here's the deal: I have a variable DC Voltage source from 0-10V. I need to step that down to a variable source of 0-3V. This 0-3V DC will be fed to an Analog to Digital converter in a ...
0
votes
1answer
67 views

Current sensor connected with fan regulator

Circuit diagram is shown. Input of FAN is connected to current sensor through a regulator My question is: Is it ok to measure AC current through this sensing IC (ACS712) when fan speed changes?
0
votes
1answer
24 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 ...
0
votes
2answers
53 views

ADC conversion time

I'm trying to find the conversion time of ADC of this (page 1083) microcontroller. The first thing I see is 1 MHz conversion rate in "42.2 Embedded Characteristics" (page 1084). Also, in "42.6.1 ...
7
votes
2answers
2k views

What does SWITCH pin do on a microSD connector?

I'm trying to connect a microSD card connector to my project (Molex 502774) and am slightly confused by the extra pins (nails?) provided. One of them is marked DETECT NAIL and the other one is SWITCH ...
0
votes
3answers
142 views

Reading 32 ADC channels

I have been working on an application which must read 32 analog channels at least 200kS per second. 0 to +3.3V 12 bit resolution 1% accuracy I've come up with 2 potential solutions: 32 ADC ...
0
votes
1answer
84 views

SIM868 module roaming problem

I am working on SIM868 module board which is interface with controller.I have idea simcard with roaming network capability.My application is i want to send GPS data on server through internet or send ...
0
votes
3answers
106 views

Embedded Architecture [closed]

The most common idea on 'new age' embedded devices - IoT Devices is using an Arm Cortex (Mostly M Series) processor as Central Unit and some Sensors and Peripherals for acquiring data and metrics (...
0
votes
0answers
39 views

Stm32 HC-05 bluetooth AT commands not working [on hold]

I'm trying to connect bluetooth module HC-05 to stm32f103c8t6 board via usart. And first of all I've tried to change the device name, but without any success. The module RX output paired with PA9 ...
0
votes
1answer
105 views

Library for driving P10 LED Display with ESP32

I am trying to make a 10 digit cricket scoreboard for which, I want to use P10 LED modules as digits. My objective is to change the score from Mobile Phone via BLE. ESP32 microcontroller suits best ...
11
votes
5answers
3k views

UART pins to unpowered MCU?

I'm using a USB-UART IC with an MCU, which is powered from a battery. The USB-UART IC is powered from USB connector, not from the battery, so that I don't need to open up a console every time when ...
1
vote
1answer
54 views

MSP getting powered up from GPIO

On a demo board I have, USB 5V rail is connected via a resistor divider to one of the GPIO's of MSP. MSP itself is powered from PCIE 3v3AUX rail. In one of the cases when the board is not connected ...
2
votes
2answers
193 views

Momentary switch for power?

The only switches I have every worked with are basic switches with on/off state, but I want to be able to add a power button to my project that is just like the power button on a cell phone. (hold for ...
0
votes
1answer
31 views

Separate Vector Table for USB Bootloader (Infineon 4400-CortexM4F)

I am developing a USB bootloader for Infineon XMC 4400 micro . I have modified linker_Script.ld file and have allocated 32K for flash. MEMORY { ...
0
votes
2answers
55 views

Can a L293D H-bridge be used for this application?

I'm building a circuit that is needed for a logging device we have. With some of our sensors the current is going in one direction and with others the other way around. That means that we have a ...
-3
votes
0answers
23 views

Calculate bit error [closed]

My objective is to give a bit pattern to a micro controller and transmitting that bit pattern to another micro controller via a wired media. I have designed an encoder and decoder for that using ...
0
votes
1answer
56 views

[Updated]How to select the values to move in assembler?

I'm trying to make the led blinks on the tm4c1294ncpdt, so the basic idea its to make 2 routines , one to select the GPIO port (in this case the F) and other to keep up on and off. the setup routine ...
1
vote
1answer
102 views

How to connect a switch to a microcontroller in an extremly noisy environment

I'm currently working on redesigning the control circuit of a CNC machine (more specific: an Isel milling cutter). Only the digital part will be of interest, I'll keep the old power electronics (motor ...
0
votes
1answer
81 views

Send data from PC to USB [closed]

I want to send data from PC to microcontroller via USB and vice versa with Communication Class. I have used USB to Serial applications like Putty or RealTerm but they work only for COM Port and not ...
0
votes
0answers
28 views

Connecting multiple cmos camera modules to microcontroller and saving to sd card [closed]

For a project I'm trying to create a device that allows me to take simultaneous pictures with multiple CMOS camera modules and save these pictures to a micro sd card. Since space is a priority with ...
0
votes
0answers
47 views

PWM output with Teensy 32. Atmega32u4 failing when printing values to terminal

I am implementing PID control and have developed code that reads analog potentiometer inputs, converts it to discrete counts, and outputs a PWM response to a DC motor based on the angular displacement ...
1
vote
1answer
106 views

Video sync generator IC

I have a board which is a PAL CCIR video sync generator card having SAA1043. The IC is accepting external sync signal from pin 15 and generating composite pulse on pin 26 and burst output on pin 1. ...
3
votes
3answers
816 views

ADC and internal noise

I have a question regarding AD conversion in a microcontroller. Before we go on, I use a dsPIC33EP64GS506 (link on its datasheet), 3.3 V power supply, and 12-bit ...