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.

Filter by
Sorted by
Tagged with
2 votes
2 answers
131 views

ATmega8515 - odd results when auto-detecting external SRAM

I'm using an ATmega8515 microcontroller for a one-off hobby project. This chip has an external memory interface which can directly address 64 kilobytes of external SRAM. ATmega8515 datasheet. For my ...
Wossname's user avatar
  • 394
1 vote
1 answer
112 views

How does a MCU switch between programming mode and execution mode?

I am using STM32 ARM cortex M3 MCU. I have flashed the MCU with ST Link V2 hardware. I was eager to know how does MCU switch between programming mode and execution mode. Does the MCU use polling ...
Deepak Kumar's user avatar
0 votes
2 answers
62 views

Turning off a solar panel with a GPIO

This is one of those problems that seemed super simple at first but, after simulating, appears to be tricker than I expected, at least for my wannabe-EE brain. The circuit I'm working with looks ...
Robert Quattlebaum's user avatar
0 votes
3 answers
64 views

Can I write a 8 bit or 16 bit Data to the outport of the STM32 directly

I am using STM32F103, CUBE IDE with HAL library. I am trying to write the outport as giving a 4 bit value to the entire port (16 bit) by using a shift bit operator. Can I directly apply that data to ...
Electrone's user avatar
0 votes
1 answer
68 views

What does the frequency of a microcontroller mean?

I'm working with STM32 board which a microcontroller is embedded. This MCU seems to work within 72MHz max. Now if I make a C code, does that mean each simple instructions would be done within 72MHz? ...
Classy Fied's user avatar
1 vote
3 answers
812 views

Why can't I charge a capacitor using a N-FET as switch

I'm new to MOSFETs and LTspice, but I have an N-MOSFET working as I would expect with resistive loads, I’ve had step like input on the gate too and all seems good, but whenever I put a capacitor in ...
George kirby's user avatar
0 votes
1 answer
23 views

How to receive from UART via DMA on STM32F4?

Thanks to help from this site, my code can send and receive over the STM32F446RE Nucleo UART (using the Nucleo's built-in ST-Link / VCP). I'm now trying to move the receive to DMA, and seem to get a ...
SRobertJames's user avatar
0 votes
2 answers
45 views

Circuit for Reading Power Supply Voltage with Micro ADC

I am working on a project where I need a microcontroller ADC (3.3V range) to detect the voltage being put out by a 24V variable power supply. This is the circuit I came up with to accomplish this: ...
Emmett Palaima's user avatar
-2 votes
0 answers
58 views

Should I go for a raspberry pi pico or some single chip microprocessor? [closed]

I'm thinking of creating a small project. I'm new to microcontrollers. I want to either use a raspberry pi pico or one of those microcontrollers that microchip makes. The microcontroller from ...
Luxvao's user avatar
  • 1
1 vote
0 answers
31 views

Lithium Ion Solar Battery Charger with current measurement

I have designed battery operated device. The current consumption is around 4ma. The battery which I use , is shown in following fig. the following schematic I have used to cutoff solar panel when ...
inventionClass's user avatar
0 votes
4 answers
87 views

Which is the default state of MCU's GPIO before initialization?

I have a microcontroller that enables an IC. This IC would be enabled when a logic 0 is set in its enable input pin. So, one microcontrollers' GPIO is connected to that pin. My question is, before ...
Developing Electronics's user avatar
0 votes
0 answers
37 views

Switching potentiometers with shift register and transistors / darlington array in microcontroller-based music sequencer

First some background on my project: I am working on an electronic music sequencer for use in my modular system using an RP2040 microprocessor. There are 16 steps in the sequence. The RP2040 cycles ...
Steven's user avatar
  • 101
0 votes
1 answer
91 views

pwm 0-5v to 0-12v , what's wrong with this circuit

What is wrong with this circuit. I'm trying to control a 12v solenoid from a cnc board. At 1kHz and 10% pwm I get around 5v and 12v at 15%. Not 0-100% = 0-12v. I ended up with this circuit by looking ...
JCN's user avatar
  • 3
3 votes
5 answers
753 views

Low consumption resistor pair

I'm working on a project that measures battery voltage. The device, I designed, works on coin cell. I have to extend battery life, that's why I used the following design But it requires two pins ...
inventionClass's user avatar
2 votes
0 answers
29 views

Understanding and implementing IEEE 1284 with a parallel cable for a Epson Fx-890 [closed]

I'm looking to gain a good understanding of the IEEE 1284 communication protocol and how to implement it for use with an Epson Fx-890 printer with a microcontroller such as the ATMega 644. Can someone ...
Arthur Isnt original's user avatar
0 votes
2 answers
63 views

Device driver for a MCU

I was working on an embedded system project and wanted to develop a peripheral driver for Ethernet connection supported by stm32 bluepill board. I wanted to use FreeRTOS. I understand that there are ...
Deepak Kumar's user avatar
1 vote
1 answer
29 views

How to power 8 servos with 6.8V at 2 amps while controlling with RPi Pico? [closed]

I am working on a project where I need to power 8 DS3218 servos at the higher end of power. I am using the RPi Pico to control them and am powering with a 3 cell LiPo battery. I am wondering how I ...
Masheroomboi 's user avatar
0 votes
0 answers
92 views

How do I choose the right microcontroller?

I have a new project that requires deploying deep learning algorithms on embedded chips.I'm new to this field, so I'm not quite sure what metrics do I need to choose based on.Such as how much RAM, ...
Killuaisaack's user avatar
-3 votes
0 answers
52 views

Battery powered GSM for MQTT [closed]

I working on device which take pin on off status and send it to server.To send it to server, we have used sim7000e GSM module, on which we run MQTT.GSM module consumes power arround 40mA average. It ...
inventionClass's user avatar
0 votes
1 answer
42 views

STM32F207VCT6 chip won't connect via USART to STM32CubeProgrammer

Recently I started a new personal project, where I'm trying to develop my own SMD-to-female-header PCB for the STM32F207VCT6 MCU chip. After ordering all the parts, doing some reflow soldering, ...
RodolfoGM's user avatar
1 vote
1 answer
34 views

DTR pin in the FT232RL working confusion

I have seen one of the schematics of the Arduino Nano where I have the DTR pin of the FT232RL connected to the capacitor and then to the reset of the Arduino. As far as I have understood, when the USB ...
kam1212's user avatar
  • 465
0 votes
0 answers
110 views

avrdude OS error: file not readable invalid argument

I decided to get into the world of "naked" microcontrollers (started with Arduino), found an ATtiny 85 among my parts and an USBasp and decided to first make a blink sketch. Did everything ...
Post Fah's user avatar
1 vote
1 answer
48 views

Combined switch for microcontroller power and reset

I have a microcontroller that is powered by a battery. I wish to use a single switch to either reset the microcontroller OR to power it off. Is there a simple way to combine both functions in one ...
bansed's user avatar
  • 11
3 votes
2 answers
118 views

Electrically controlled switch for pH-meter calibration [closed]

I need to implement a very low voltage drop switch controlled by a microcontroller. I need it to connect (short) two nodes in my circuit for calibration purposes. One node is the input of an opamp (...
Andrea's user avatar
  • 145
0 votes
1 answer
18 views

Pic32MZ interrupt signal to output pin set without CPU usage

I generate ADC digital comparator interrupts. I want to use this interrupt to trigger Input Capture module. To achive precise timing it will be better to directly trigger IC module with ADC digital ...
Ahmet Atcı's user avatar
1 vote
1 answer
76 views

PoE circuit can not connect when using injector

I am designing a PoE powered development board with an ESP32 microcontroller module. I am using the following circuit for the PoE power supply: This is a direct copy of the PoE power circuit used by ...
Oliver Norin's user avatar
0 votes
1 answer
43 views

Encoder signal reading Arduino

I have a quadrature encoder both connected to the Interrupt pins on my arduino. I want to read the encoder values in the range of 0-255 with increment in the clockwise direction and decrement in the ...
dreamcoder's user avatar
0 votes
1 answer
39 views

Confused about STM32 FMC pins for SDRAM

Context: I am currently working on a design that is centered around the STM32H723ZGEI6. I chose to opt for 32MB of external RAM via the IS42S16160J SDRAM IC. However, I am having some trouble figuring ...
BlueOyster's user avatar
0 votes
1 answer
48 views

Under which circumstances should I wire together 2 different development boards' ground pins?

I have 2 stm32 nucleo boards. In one of them I configure a master SPI to send 10 bytes every 2 seconds, and the other has an SPI slave reading 10 bytes all the time. This 2 boards are connected to my ...
Martel's user avatar
  • 1,215
0 votes
1 answer
40 views

Why can't I drive pin RA4 low on PIC16F1823?

I am using PIC16F1823 MCU. Pin RA4 is a multipurpose pin but can be used as I/O. But I cannot find which settings are required to achieve this. I've tried to disable all unrequired peripherals ...
RickyBoy's user avatar
0 votes
3 answers
83 views

How can I find VDD in a Microchip datasheet?

I am horribly lost on how to find the value and location of VDD pins in the datasheet found on this webpage. Are there no table of contents for microcontrollers in general?
Seth Shill's user avatar
0 votes
0 answers
33 views

Firing TRIAC / AC Light DIMMER module

I am currently testing the AC light dimmer with a blower fan output that has a specification of 220V 0.45A. When the trigger angle is set to 0, why does the output of the AC light dimmer allow a ...
Angga Amalul Ahli's user avatar
2 votes
1 answer
31 views

Does SPI Configuration Persist After DRV8873 Power-Off?

I am designing board to drive BDC motors using a DRV8908-Q1. Here is the data sheet. DataSheet I would like to inquire if SPI config persists (not go back to DEFAULT) after the driver is powered-off.
DAVID LOW JUNYI HCI's user avatar
2 votes
0 answers
49 views

High power boost converter circuit issue

simulate this circuit – Schematic created using CircuitLab I made a dc-dc booster converter circuit. With a 3 mF capacitor, 48V can be boosted to 200V in 0.5 seconds. But for some reason, ...
heyri's user avatar
  • 21
1 vote
2 answers
94 views

Assembly: AVR Studio alternatives for Linux [closed]

I had been using using AVR Studio on Windows to write assembly code for my MCUs (mainly for atmega8515) for a couple years. However, recently I transitioned to Linux and turns out there aren't any ...
Heather7283's user avatar
0 votes
1 answer
24 views

STM32F030 I2C: Avoiding NACK

I am trying to port my I2C code from STM32F103 to STM32F030. Everything works fine with writes (writes to an eeprom), but when I try to read from an EEPROM (first write transmission with memory ...
sx107's user avatar
  • 1,075
0 votes
1 answer
64 views

Is it possible to make the "arithmetic" part of the ALU to be mircoprogrammed?

We know that the Arithmetic and Logic Unit in CPU is a hardware, it is a combinational circuit. Binary addition, for example, is very fast because it doesn't have to be microprogrammed; there is ...
Noob_Guy's user avatar
  • 405
0 votes
0 answers
53 views

Seeking Validation for Stepper Motor Control PCB Design

I'm currently in the process of developing a PCB intended as a base board for the precise control of a stepper motor. The system involves an LCD display and various sensors for control. Before ...
Kabl62's user avatar
  • 1
0 votes
1 answer
34 views

Cannot make ESP32 communicate with ThinkerAI A9G board via UART

I want to use ThinkerAI A9G module via it AT commands, but i cannot make my ESP32 communicate with it. I have connected them but all i get is some strange random symbols. As i understand i could be ...
in search of the nickname's user avatar
1 vote
1 answer
54 views

Computer interface with USB devices

I'm making a computer peripheral that will be connected via a USB. The main brain is an STM32 ARM MCU, it has USB support natively. It has multiple sub-peripherals inside and it uses I2C and SPI to ...
Abd Alhaleem Bakkor's user avatar
0 votes
3 answers
86 views

MSP430 delay using timer with polling condition

Need help with this code, it is not creating any delay. I tried simulating this code in Proteus. ...
SlickDaDDy's user avatar
0 votes
0 answers
16 views

LSM6DS3 gyro raw to degrees per second conversion error

I am using LSM6DS3 for one of my projects with Nordic nrf52840 along with Nordic SDK. I am trying to read the gyroscope and according to my understanding the gyroscope value should not exceed the full ...
EngineeringArtist's user avatar
0 votes
0 answers
123 views

Constructing a Redox Probe using an arduino

I'm trying to design an ORP that can be used to measure the total voltage of a solution. This solution would be a NaCl solution that's mixed with water that can be anywhere from 0 to 5000 ppm of NaCl. ...
vik hellrider's user avatar
1 vote
0 answers
57 views

MSP430 Program Not Running Outside Debugger

I'm using a MSP430g2231 with EXP430G2 launchpad and CCS. My code runs fine in the debugger, but when I try to burn it to the MSP and run on external power it doesn't run. It appears that it is not ...
BrainUnderflow's user avatar
1 vote
1 answer
58 views

How to access Bluetooth LE features of CYW43439 on Raspberry Pi Pico W?

Raspberry Pi Pico W comes with a chip, CYW43439, that is capable to do WiFi and Bluetooth (both Classic and LE). According to Chapter 2.1 in Raspberry Pi Pico W:s datasheet, GPIO24, GPIO25 and GPIO29 ...
Jonas's user avatar
  • 217
0 votes
0 answers
32 views

Is it possible on STM32 to detect if an event triggered?

According to Stm32 Event and interrupts , STM32 events are mainly for controlling other peripherals. Is there a way on the MCU itself to detect if an event fired? That is, I don't need to interrupt ...
SRobertJames's user avatar
13 votes
9 answers
4k views

What's a good way to assert in embedded microcontroller code?

It's good practice to use assert to test that things are that we expect them to be. Likewise, it's good to check that calls worked as expected and didn't error. In ...
SRobertJames's user avatar
-1 votes
0 answers
37 views

Reducing power in idle loop

I'm controlling an ST32 ARM Cortex M4 via interrupts. While waiting for an interrupt, I spin in idle loop for(;;){}. Is there a way to tell the CPU "Don't ...
SRobertJames's user avatar
0 votes
0 answers
23 views

Board Voice Recognition Module V3.1 with Arduino Uno [migrated]

I have two speech recognition modules and I am using vr_example_train from the voicerecognitionmodulev3.1 library. One of the VRM works perfectly, the other one train the voice command too, but when I ...
Agustin Bolivar's user avatar
0 votes
1 answer
59 views

Power supply switch PS-ON with bus signal

I have a power supply (PSU) (not standard computer ATX PSU) PSU EPP-300 is at https://www.meanwell.com/productPdf.aspx?i=715 with function connector: 5VSB DC COM PS-ON If I'm right: DC-COM = GND, ...
g1ra's user avatar
  • 3

1
2 3 4 5
186