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
31 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-...
0
votes
2answers
35 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
0answers
30 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
47 views

How to design an NFC transceiver without dedicated NFC IC?

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
34 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
29 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 (...
0
votes
1answer
65 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
42 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
92 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 ...
0
votes
0answers
22 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
votes
0answers
40 views

Isolated voltage sensing

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
47 views

LED Project: IC that supports different flashing options [on hold]

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
58 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
0answers
19 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
59 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
56 views

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

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 ...
1
vote
3answers
63 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
1answer
56 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, ...
0
votes
0answers
30 views

Ultra Low Power BLE Device w/ GPIO [closed]

Here is my use case: I have a battery powered Raspberry Pi reading a couple of sensors that I want to turn on when I walk near it (within a couple hundred feet) and turn off when I walk away. I want ...
0
votes
3answers
39 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
0answers
63 views

Development board for microcontroller [closed]

I wish to design and sell a development board. The design would be open-sourced, but I need a controller as my SoC. Which all microcontroller manufacturers, apart from atmel, allow me to commercialize ...
0
votes
1answer
16 views

Does CodeWarrior IDE support software debugging of MCF51JM128?

IDE -CodeWarrior Microcontroller-MCF51JM128
1
vote
4answers
100 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
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 ...
0
votes
1answer
35 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
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, ...
1
vote
0answers
39 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 ...
-3
votes
0answers
32 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
39 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
100 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
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 ...
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 ...
-3
votes
1answer
66 views

What is this IC “MC1MX31LDVMN5D”?

Would you please help me to know this IC.
1
vote
2answers
239 views

What does the number of “ single-word instructions ” mean on a MCU's memory specifications?

I have copied the following sentence from a PIC MCU datasheet: "PIC18(L)F26K22, PIC18(L)F46K22: 64 Kbytes of Flash Memory, up to 37,768 single-word instructions." the question is what does " 37,768 ...
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
46 views

USB EC vs PIC MCU [closed]

I'm trying to make a peripheral with an embedded USB hub, which will include USB-C 3.1. As I've been researching USB I've found that Microchip has a whole slew of embedded controllers dedicated to USB,...
0
votes
3answers
86 views

how to avoid brownout caused by a multimeter on esp32

I am using the VOLTCRAFT VC130 multimeter for measurement of current through my esp32. The microcontroller runs perfectly with two 1.5V batteries(~3V as read by multimeter in voltage mode). But when I ...
2
votes
0answers
50 views

What is the use of GPIO Locking mechanism? [closed]

I came across this on one of the STM32 uC's reference manual and I really have no idea about the use case of this feature. I might be having a very narrow approach because I feel that it doesn't have ...
0
votes
0answers
36 views

Passive (or very low power sensor) sensor to wirelessly receive wake signal

Context. I am using an ESP32 and a small circuit to control an electronic lock on my one of my exterior doors. It is powered by batteries. It has a door magnet sensor to detect when the door is open ...
0
votes
2answers
69 views

Analog Potentiometer Output to USB Serial [on hold]

I‘m working on a project which has several switches and potentiometers that will be used to control parameters in software via (e.g.) MIDI and would like to know how to get the pots set up without ...
1
vote
3answers
60 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
2answers
96 views

Software needed for ATMEL ATMEGA8A-PU microcontroller in Ubuntu 18.04? [duplicate]

A few days ago I discovered a ATMEL ATMEGA8A-PU microcontroller and I wanted to write code on it . But I don't know what software to use in Ubuntu 18.04 for the microcontroller. Can I use the Arduino ...
0
votes
1answer
50 views

Driving MOSFET from MCU with BJT

1- What is the purpose of D1 in this circuit? 2- Can i connect the PWM output of MCU to Vi through a diode, to protect the MCU from 12V supply of the drive circuit? (e.g. if Vi got accidentally ...
-2
votes
0answers
34 views

Can Msp430 can be used in replacement with atmega16? [duplicate]

I am making a 4 wheeler automatic machine. It will be agriculture based for weed detection and pesticide spraying purpose. Weed will be detected with the help of color sensor and then pesticide will ...
0
votes
1answer
32 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 ...
2
votes
1answer
427 views

What's missing in this development board? [closed]

I came across an old development board with an ATMEL ATMEGA8A-PU . I am not an expert but I want to use this board. But something is missing in this board as seen in this photo:
-2
votes
1answer
41 views

74HC595 Inconsistent Outputs [closed]

I'm fairly new to electrical circuitry, and while trying to test out and use a 74HC595 Shift register I ran into some issues. I'm not using a micro-controller, just push buttons to control to the ...
0
votes
1answer
35 views

How to measure small AC mains currents from a microcontroller?

I'd like to build a battery charger control circuit using an Arudino, a relay module, and a current sensor. I'd use the relay to turn on AC power to a "smart charger" for one or more sets of lithium ...
0
votes
2answers
75 views

PIC interface with Relay

I am interfacing a PIC16F877 with a 5V DC relay. I hooked up the relay to the same 5v that power up my PIC with the appropriate transistor, diode, voltage to power up an LED to NC and LED to NO, I ...
0
votes
2answers
77 views

1M Ohm Thermistor Circuit voltage drops not adding up

The circuit is wired as follows ...