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.
9,969 questions
1 vote
1 answer
82 views
Is this a reasonable way to use a logic level signal to switch a load with a larger power supply?
I am trying to switch 9 V to a load with a logic level signal from a microcontroller. The microcontroller has a separate voltage source from the 9 V. I am not sure where I should put a flyback diode ...
4 votes
4 answers
245 views
Logic converter with floating Emitter
I am designing a circuit for an irrigation system with two pumps. Each of the two 12V-pumps is controlled in the same way by a 3V logic pin of a microcontroller through a relay. I'd like to add an ...
10 votes
6 answers
1k views
How is a microcontroller a current source?
I was re-reading the perennial Electronics.SE post Decoupling caps, PCB layout And in the very highly-voted answer it says: Now remember that a microcontroller is a broad band current source with ...
-3 votes
0 answers
44 views
VCU for an EV, student project, choice of microcontroller [closed]
Came here to seek guidance on whether to use ATmega chips or STM32F103 for a Vehicle Control Unit. The computer would be mainly dispatching CAN communication and receiving driver's requests, so ...
-1 votes
1 answer
89 views
Finding a short in a PCB project (nrf52840)
I've recently gotten myself some PCBs for my first project. I've wanted to build a wireless mouse. I was debugging the nRF52840 (from ebyte https://www.ebyte.com/en/downpdf.aspx?id=445) with OpenOCD (...
-3 votes
0 answers
54 views
Easiest and most efficient way to alter the pulse width on a muscle stimulator [closed]
I want to thank the forum in advance for all the help provided. I am desperate to get this problem figured out. A little background as to why I am trying to do this…..I have an electronic muscle ...
0 votes
2 answers
78 views
Write Protect Pull-Down resistor EEPROM
I’m using an EEPROM where a Write control pin is present. If it is driven low, write operations are enabled. I want to keep it in low state all the time. However in some applications I’ve seen a 10k ...
0 votes
0 answers
55 views
EEPROM interfacing with I2C [duplicate]
I need to interface an EEPROM to my microcontroller using I2C interface. I also want to connect an RTC in the same bus. How should I calculate the required pull-up resistor values? As per the EEPROM ...
0 votes
2 answers
148 views
Discrepancy Between LTSpice Simulation and Real Measurements
I have designed a circuit that we use in practice, and it works correctly in real life. we connect J2 to microcontroller to monitor the current in primary side. it is working so good in practice. I ...
0 votes
0 answers
57 views
Error Simulating ESP32 in Proteus
I'm using Proteus 9.1 I'm running into trouble simulating a ESP32. From what I know, it should be working. The python file ...
0 votes
1 answer
119 views
How to properly read values from CCD linear sensor?
I have a PCB with UPD8872 CCD sensor that I took from an old scanner. I managed to solder the pins of the board to Arduino compatible wires and programmed the Arduino and, also, wrote desktop app that ...
-1 votes
1 answer
68 views
Relay switching problem when load is connected
I'm using PIC16F18346 controller for relay switching. When the load is not connected relay is switching properly, no toggling or any other problem. When the load is connected, after some press relay ...
0 votes
2 answers
62 views
Does the RDBF flag gets set automatically after transmitting a byte?
I’m working with at32f403a. I’m trying to understand the flow of SPI communication. I’m using polling not interrupts in my implementation of an SPI_TransmitReceive ...
1 vote
1 answer
165 views
Drop of voltage VCC on Arduino UNO
Summary: I am using an Arduino UNO. I am using a potentiometer connected from 5V Arduino supply to ground to provide a variable voltage on the pot wiper, which I input to an analog input on the UNO ...
7 votes
4 answers
280 views
Accessing 16-bit Registers: Is this an error in the ATTiny102 datasheet?
EDIT: Microchip responded that this is an error in the datasheet. We have received clarification from our technical experts regarding the 16-bit register access order in the ATtiny102/104. After a ...