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.

0
votes
3answers
103 views

How to supply a very accurate ADC reference voltage to STM32?

Every voltage regulator IC has atleast a variation of 2% or something. This can make the ADC reading way inaccurate if it fluctuates to those levels. What is a robust and common solution to this ...
1
vote
2answers
104 views

Summing multiple audio signals while keeping a copy of the originals

First off, I'm a programmer and I have only a little experience with electronics and I'm aware that what I'm after may seem a little ludicrous. My goal is to process the audio of an electric guitar ...
0
votes
0answers
24 views

AuCM350 UART interrupt

i am using ADuCM350EBZ evaluation board,i want to enable UART interrupt, like when i enter any button from keyboard then interrupt will occur. i am using one example given in this board here uart is ...
0
votes
0answers
120 views

Water level sensor for a coffee machine boiler

I made a simple water level sensor with an Arduino. A digital pin supplies 5V to a probe in a coffee machine boiler. Boiler chassis is connected to AC ground (earth) and the ground to an analog IO ...
0
votes
1answer
32 views

Reading MLX90303 over SPI

I am trying to take readings from the Melexis Tri-axis Hall effect sensor MLX90393, but all I seem to get is garbage. I am reading the sensor over SPI, with a 1MHz clock. Here is an example of a ...
2
votes
1answer
81 views

How to measure the coil voltage in this circuit? [closed]

I want to measure the coil voltage (coil+ to coil-) of the following circuit with my microcontroller, but I don't know how. Do you have some hints or suggestions for me? Thanks!
1
vote
0answers
74 views

Controlling Buck converter (XL4016) with microcontroller

Briefly the project I'm working on is made up of a blue pill, rotary encoder, acs712 30 amp current sensor and an OLED display. Everything is in functional state. The aim is to provide a stable ...
0
votes
0answers
41 views

How to see sinusoidal wave from SPWM output?

I am generating SPWM waveforms using complementary outputs of advance timer. I wonder how can i see the actual sinusoidal waveform on an oscilloscope which is intended from the SPWM output? My MCU is ...
2
votes
2answers
161 views

What is this DIP20 microcontroller?

This microcontroller failed in an electric fireplace. I'm trying to identify it, but the markings are ground off. I've narrowed down the pins to something like the below chart, but I'm unable to ...
1
vote
1answer
52 views

How to condition supply voltage for project

I am working on a circuit that is powered by a regulated 5V external power supply. However, since I will be directly powering a Micro-Controller from this 5v supply, I was wondering how I should '...
0
votes
2answers
74 views

Detecting IR sensor at higher speed

I made a circuit which selects one of 4 sensors and determines if a valid data stream is present on that sensor and counts the number of times data is valid. I narrowed my problems to hardware. In ...
0
votes
0answers
64 views

STM32F4 CubeMX SysTick timer rate

I am using CubeMX to generate initialization code for STM32F407 MCU. I wonder where can i see the SysTick timer rate in CubeMX or its generated code? I am using 8 MHz external crystal and set SYSCLK ...
0
votes
1answer
47 views

Weird behavior of pwm controlled servo motor?

Hello there I have experienced some really weird behavior from servo motor wheni try to control it with pwm. I am using dspic30f4013 and servo motor sg90 tower mini. I configured my pic with 10Mhz ...
-3
votes
1answer
76 views

What makes a microcontroller development board powerful?

I'm seeing an awful lot of dev boards on the internet that arent Raspberry Pis or Arduinos and I'd like to know what makes a board powerful? Whats the difference between a board that may be used in a ...
1
vote
1answer
53 views

Understanding MCU Reset Pin working

I am using this Microcontroller NXP MCU I am trying to understand the RESET Section of the microcontroller. 1.On page 83, it is given as MCU reset is a bidirectional pin. So, It can drive other ...
0
votes
1answer
22 views

How to combine 5V-powered ATmega16A and MAX44009? [duplicate]

I'm programming my ATmega16A through LPT port using uisp -dprog=bsd. Although ATmega16A supports \$V_{CC}=2.7\,\mathrm V\,..\,5.5\,\mathrm V\$, to make logical ...
46
votes
5answers
7k views

Microcontroller shelf life

Our purchasing department requested the AT32UC3B1256 and the supplier has a few thousand in storage. However, those trays have a date code from 2009. While shelf life is normally not much of an issue ...
3
votes
4answers
523 views

UART sometimes missing first few characters on ATmega328P

I wrote some code for the ATmega328P, (Packaged in a module that clones the Arduino Nano). Normally when I send UART data from my computer to these micros, it is received just fine. However I have ...
0
votes
2answers
76 views

when DC supply is given to ATmega16 micro-controller, I want it to continue functioning from the same state, from where it was stopped

I am writing my code in BASCOM-AVR. It has 2 if loops and 1 for loop inside the 1st if loop. I will give DC supply to ATmega16 controller. Now, what I want is, if the power is cut off when code is in ...
0
votes
0answers
53 views

Effect of insulated high voltage wire to micro-controller

I am investigating a home appliance product which is reported out of order. Having disassembled and checked, I found the power and ground pin of the micro-controller is shorted. In this product, ...
0
votes
2answers
62 views

3.3V Digital to 5V Analog Output

I am attempting to create a 0-5V analog output signal. No need to drive a load. I desire to control this via a 3.3 digital MCU. I have attempted to translate the 3.3v PWM to 5v via a n channel ...
2
votes
1answer
64 views

Why does writing to a read-only register increase current consumption?

Looking at the datasheet of the MSP430, it says writing to read-only registers results in increased current consumption. Why is that? What is happening when trying to write to a read-only section of ...
1
vote
1answer
63 views

Confused about the XIP (eXecute In Place) function of QSPI FLASH

There are lots of NOR QSPI FLASH chips that support XIP (eXecute In Place). In this mode the embedded cpu (or MCU) can directly execute the codes stored in the flash. But as we know, the qspi flash ...
0
votes
1answer
14 views

how to avoid harmonic on intrrupt for proximity sensor in NodeMcu

i have 5v IR proximity sensor for measuring pulse output attached in NodeMCu using intrrupt pin but it gets a random counter on the harmonic environment. it is working fine in Normal situation what ...
0
votes
1answer
30 views

Controlling output voltage using Arduino

I want to control the temperature of a heat pad, which heats up using a power and ground pin, and is controlled by a pressure sensor. The micro controller I am using runs onl 3.3V but the desired ...
0
votes
1answer
65 views

Stepper motor close to PCB/MCU/ADC

and I apologize if the question is repeated. I tried to search around, but by my keywords main answers are about control of stepper motor with MCU and this is not my problem. In my design I want to ...
0
votes
0answers
24 views

PWM for ACIM scalar control

I have inherited a control software for ACIM scalar control and I need to do some changes in this software. Before I can do any change I need to understand current implementation. So I have started to ...
1
vote
1answer
33 views

Consistent Current Output From Batteries To DC Motors

I'm new to ECE and as a beginner project I've taken apart an RC car and attached an Arduino to the DC motors with an L298N module for control. The goal is for the car to drive a certain path with pre-...
1
vote
2answers
75 views

How to disable arduino Hardware Serial Rx Interrupt Properly

Intro: I have an Arduino mega doing multiple tasks , from which A function Reads data from a sensor using SPI . Every like 10,000 read or something , i get 1 error bit in the SPI data . and I have ...
0
votes
1answer
49 views

Particle Argon controlling 12V, using 3.7V LiPo

I am trying to control a 12V DC motor using a Particle Argon, powered by a 3.7V LiPo. To get 12V I am using this step up regulator, and to control the motor I am using this DC motor controller. I am ...
0
votes
1answer
33 views

pro micro timers and controlled pins datasheet

I am using a Pro Micro with a ATMega32U4, where can I find timer number and which pins that controlled? I just found Arduino Mega: (tested on Arduino Mega 2560) timer 0 (controls pin 13, 4) timer 1 (...
1
vote
0answers
119 views

WS2812b LEDs intermittently do not respond to data signal

I have wired up permanent holiday LEDs on the front of my home, using a 5V 60A power supply and several strips of WS2812b's (generic Neopixels), controlled by a Wemos D1 mini. The Wemos is powered ...
0
votes
1answer
69 views

Detect if an electromagnet it touching metal (without a switch)

I have a simple 12V DC holding electromagnet connected to a microcontroller using a MOSFET - the once you buy on aliexpress or eBay for cheap [1]. How can I detect if the magnet is in full contact ...
0
votes
1answer
55 views

Cascade shift registers driven by single-cycle microcontroller

I'm trying to make a unit in which 4 digits can be updated in a small amount of time from a single-cycle microcontroller (preferably all digits updated within 5uS) My circuit is setup in the ...
0
votes
2answers
104 views

Control the RGB tape with only one output of the microcontroller

I need to control the colors of an RGB ribbon. This requires 3 PWMs. But I have only one output of my microcontroller available. So for this I need to find a circuit that stays between the ...
1
vote
2answers
97 views

Minimum connections needed between stm32 MCU and the st-link programmer? [duplicate]

My MCU is stm32L432kc. I've concluded that we need a minimum of 4 connections: SWCLK, SWIO, vcc and gnd. Can someone from here confirm that? And another question is I'm confused how to connect the ...
0
votes
1answer
38 views

how to implement Pic18f97j60 with PoE Ethernet

I am a beginner when it comes to mcu and electronics design, I did some projects on Arduino and other ready made microchip boards. However this is my first time building something from scratch. I ...
0
votes
0answers
75 views

Phototransistor interface to PIC

simulate this circuit – Schematic created using CircuitLab Electronical novice (but Advanced Idiot) here. Trying to interface a phototransistor to a Microchip PIC I/O pin. Per the ...
2
votes
0answers
63 views

Arduino-like microcontroller with more ram for image processing [closed]

I want to build a device to perform image acquisition and processing, but I don't know which kind of board/microcontroller to use. My idea is to use a low-res camera, take a shot, analyze it and ...
2
votes
3answers
83 views

FIR Filter on Cortex M0

Is it possible to implement basic DSP (such as an FIR Filter) on a Cortex M0 or is the architecture too limited?
0
votes
3answers
50 views

Multiple input to single output converter and vice versa

First question so please forgive any mistakes. I'm trying to design a system by which multiple LEDs are controlled by multiple switches, but without using as many wires as there are switch/LED pairs. ...
0
votes
1answer
19 views

Does CodeWarrior IDE support software debugging of MCF51JM128?

IDE -CodeWarrior Microcontroller-MCF51JM128
1
vote
4answers
123 views

Circuit to convert 24VAC digital signal to 5V DC digital signal

I am designing a circuit to convert 24VAC signal to 5V DC signal. The 24VAC signal is designed where 24VAC is on and 0VAC is off. The signal needs to be fed to an MCU which is 5V DC. The circuit ...
0
votes
0answers
32 views

Programming AT89LP52 microcontroller like an AT89S52

I'm trying to run my code on the new AT89LP52 chip which Microchip (A.k.a. Atmel) believes can be a direct replacement for the AT89S52. I am able to program the AT89S52 with my programmer and ...
0
votes
1answer
43 views

How to change a predefined PWM frequency?

I have a controller which has predefined PWM frequency of 150 Hz. This output is used to control a motor. However, I want to use another PWM frequency, but I can not change the PWM frequency on my ...
0
votes
2answers
74 views

Problem designing a PIC to just print on the LCD hello world

I have programmed a PIC before. The function of this PIC was to display Temperature based on an NTC, my little cousin yesterday messed with the wires and now it is not printing anything on the screen, ...
1
vote
0answers
45 views

Unexplained Data Enable Pin

Looking at This datasheet for the LSM9DS1TR 9-axis IMU, there is a pin labeled DEN_A/G with the description "Accelerometer and gyroscope data enable" on page 11. I can find no further explanation ...
0
votes
1answer
42 views

Controlling the power supply of a bluetooth module via GPIO and a transistor

I want to be able to turn a Bluetooth module on and off via a GPIO pin of a microcontroller. My first approach to realize this with a transistor is shown below. Is this approach correct? If not, how ...
1
vote
2answers
121 views

How to separate ground efficiently in a thyristor circuit controlled by sensitive microcontroller

I've been trying to design capacitive discharge ignition circuits using a microcontroller ARM (Texas and ST) without success. Each circuit using them presents intereference problems during spark ...
0
votes
0answers
65 views

How to reduce spike in Power Supply and GND (SCR + Ignition Coil)

My circuit: Signal coupled in power supply (3.3V) of STM32F103 during spark: Is there any benefit to using this diode (circled in red) or not (without this diode the snubber circuit will start ...