Stack Exchange Network

Stack Exchange network consists of 174 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
145 views

Can anyone please identify this 6 pin SMD integrated circuit?

Can anyone please identify this 6 pin SMD integrated circuit or what it does? I could not find it by the code written on it. It is from a solar charger and I need to replace it.
2
votes
1answer
157 views

Programmable Electronic Load Design

I am trying to design a programmable electronic load for testing the PWM outputs of PLC controllers. The outputs operate between 5-36 V and 10-2000 Hz frequency. The output is supposed to tested for ...
0
votes
0answers
17 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 ...
-2
votes
1answer
43 views

Calculating Max deviation in C [on hold]

I am trying to implement Max deviation equation CEquation mentioned here Can someone guide me how it can be implemented in C code. or please let me know exact equation for implantation Based on the ...
1
vote
4answers
1k views

A very small microcontroller that can be programmed wirelessly

For fun, I'm building a microcontroller and a couple of sensors into a toy. The microcontroller must fit into a 2 cm wide cylinder. Also, removing it from the toy takes some time, so I'd like to be ...
0
votes
1answer
151 views

Three phase converter - capacitor switching

I've started building a single to three phase converter. My research started with the likes of this paper. I've set a bank of 40uf/440v capacitors up and a potential relay. The relay is a Supco SUPR. ...
0
votes
1answer
32 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
2answers
39 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 ...
1
vote
1answer
32 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
157 views

high side MOSFET switch and BJT interface with MCU GPIO

im operating a 28V contactor using a GPIO from my MCU, i have a 28V supply readily available. im looking to surpass the gate threshold of the MOSFET by introducing a NPN BJT with a 10V supply, with ...
0
votes
1answer
35 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
0answers
32 views

PWM using PIC10F200 [on hold]

I want to generate PWM using PIC10f200 SOT. Can anyone guide me where to start or tell me the code? Also, tell me if you need other data. The purpose is for MC to generate a PWM to turn on LED without ...
0
votes
0answers
50 views

How to design an NFC transceiver without dedicated NFC IC? [on hold]

I'm experienced on NFC transceiver from AMS and NXP(SDK, antenna design, impedance matching}, but now i'm trying to design my own NFC reader without dedicated NFC IC, just analogue devices, maybe ...
0
votes
1answer
45 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
1answer
68 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
2answers
95 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
votes
0answers
40 views

Isolated voltage sensing [on hold]

I'm in the process of building a battery powered, uC controlled power supply. I'm using a bluepill basically and an xl4016 buck converter module. To my assumption I can just tap in his regulation pot ...
0
votes
0answers
25 views

Connect a microcontroller with Bluetooth to ssd1306 OLED [on hold]

I need a small (max 15x40mm) programmable microcontroller with Bluetooth which have at least 3 GPIOs (i need 2 for display and one for a analog switch) and support I2C communication for ssd1306 OLED. ...
1
vote
1answer
97 views

MAX7221 not always powering on

I have a MAX7221 SPI 7-seg. LED driver linked to an AVR168P microcontroller. Sometimes when powering on, everything works as expected. Other times the display blanks and remains blank. Other times ...
0
votes
0answers
49 views

LED Project: IC that supports different flashing options [closed]

I am an electronics newbie. I found a number of circuits that allow me to control 10 LEDs using the 4017 IC. The circuits basically allow me to cycle between the LEDs. Can anyone point me to an IC ...
1
vote
2answers
63 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 ...
1
vote
1answer
221 views

How to generate highest voltage possible without sparking?

I need to precisely control high voltage in order to maximize the corona discharge zone while preventing arcing for a physics apparatus. The actual voltage when the corona breaks down will vary ...
0
votes
0answers
20 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
60 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
58 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 ...
0
votes
1answer
146 views

USBasp Difficulties

I am new to the USBasp. I am trying to program a Mega1284. I have a cheap Chinese one, it is recognized in XP as well as win7. I made a board with a ZIF socket, 10 MHz xtal, 22p cap, 10k pullup on ...
1
vote
3answers
64 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
178 views

How to control multiple tiny PWM controllers with one “master” MCU; DIY LED array

My question is, how can I control multiple tiny PWM capable controllers, like this https://www.sparkfun.com/products/retired/8897, with one "master" MCU for the purpose of controlling LED arrays? ...
0
votes
2answers
68 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, ...
0
votes
1answer
57 views

How to modify a small power supply to not require a 20W load to turn ON? [closed]

I have a couple of obscure german “AT60” power supplies I scavenged from some designer lamps. They’re small, and don’t get hot even under ~30W load — but for my purposes, I need them to be always on, ...
1
vote
4answers
101 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 ...
1
vote
1answer
170 views

transmitting 3.3v/5v signal over a 2 meters cable

Sorry to send homologous question. I have looked through this site, but for my limitation on electric knowledge, I have to ask still. I'm trying to build a DIY project based on arduino and other ...
7
votes
2answers
6k views

How to control a buck-boost converter circuit from a microcontroller?

I'm reading about buck-boost DC-DC converters lately and one thing is still not very clear for me. Most of the converter ICs that I've seen have a feedback loop input pin. For example LTC3780 requires ...
0
votes
3answers
40 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
16 views
3
votes
1answer
1k views

Microcontroller VDD and VSS pins are shorted. Does that mean the MCU is fried?

I recently created my own breakout board for a STM32F030R8T6 MCU. The attached image shows the PCB that I designed for it. There are no components, only top copper tracks that get connected to header ...
1
vote
2answers
101 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
2answers
100 views

Where are all the multiplexers?

I am trying to implement a circuit where 2 SPI drives (basically two masters) speak to 1 slave. Both operate on a 3 wire SPI. Keeping that in mind I was going to have the CLK and MOSI of both as ...
0
votes
1answer
36 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
0answers
25 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 ...
41
votes
8answers
6k views

How to choose a MCU platform? [closed]

There are numerous MCU platforms and once somebody has gotten used to one, they are generally reluctant to switch to another platform. My question is: If one started using a MCU for general purpose ...
1
vote
0answers
40 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 ...
1
vote
0answers
84 views

esp32 resets when relay switches from ON state to OFF state

When I switch a 12v relay from ON to OFF using esp32 then the ESP is restarted. Also it happens only when there is an AC load. I control 12V relay with a transistor. This is my relay How to solve ...
-3
votes
0answers
33 views

Displaying value on 2 line 4 digit 7 segment code [closed]

I have using arduino Uno . I have used serial in parallel out to display the parameter. Here i am pasting the piece of code. Totally i have 8 digit of 7 segment display.Dissect & Dissect2 split ...
0
votes
1answer
40 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 ...
0
votes
3answers
100 views

How to define a microcontroller pin as open collector or open drain?

Source I have understood the fundamental theory of open collector and open drain configuration. But the problem is how to define/make a micro controller's pin as open drain? Can any pin of a micro ...
0
votes
2answers
71 views

Current measurement in a SoC

I have to measure the current flowing inside a SoC through a multimeter. In the board schematics, I found that the SoC provides a structure to measure the current: Now, I should connect them with a ...
0
votes
0answers
56 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 ...
1
vote
3answers
61 views

digital current monitor/sensor for monitoring ~0.1 uA to mA current from a MCU and sensor [closed]

Hello I am in need of a current monitor/sensor like INA219 for monitoring current in the range of 0.1 uA to ~ mA. Kindly suggest a way to monitor current in such lower range. I have a microcontroller ...
0
votes
1answer
311 views

Microcontroller SDLC interface

I want my AVR microcontroller based device to communicate via SDLC (Synchronous Data Link Control) physical interface with another device, SDLC is RS-485 based. The SDLC interface must have the ...