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
1
vote
1answer
34 views

Boot selector bit on STM32g030

I would like to program the STM32G030. On page 14 of the datasheet it says: so there is a Boot pin and Boot selector bit. The Boot pin is pin 36 in the LQFP48 package I am using. I cannot however ...
-1
votes
0answers
30 views

A low power radio + microcontroller for a chipsat

I'm searching for a system-on-chip that combines: A processor (any architecture) A radio (ultra high frequency, from at least 300 Mhz to 2Ghz) Can anyone recommend a device? I've been looking at the ...
1
vote
1answer
36 views

How to connect JTAG to microcontroller

I am using the STM32G030C8 and want to use a 6 pin JTAG Needle to program the microcontroller. In the datasheet for the microcontroller, on page 14 it says: So I need to connect whatever is ...
1
vote
2answers
89 views

Low voltage at N-Channel source pin

I made a pcb which uses an N-Channel Mosfet for enabling/disabling the NTC thermistor as in the schematic below. The problem is I get 2V at the Drain pin instead of 3.3V. I measure 3.3V at NTC_TRIG ...
0
votes
1answer
43 views

Low-Voltage Unidirectional Ground-Level Shifter

Greetings, electronics Mavens! I'm trying to interface the status LEDs of a third-party device to the GPIO of my ESP32. I am using internal pull-ups on the ESP32 inputs, and trying to trigger on the ...
0
votes
0answers
40 views

Find Vout with voltage divider + pull-down resistor

I have to calculate Vin (~5 V). After using the voltage divider formula the Vout value is pretty close to the value measured by a multimeter, but a little bit low. The question is, what is the formula ...
5
votes
2answers
412 views

Pull-up resistors on I2C port

Hi everyone, I am confuse about I2C pull-up resistors. I use 4 I2C sensors. I am not sure is it true that pull-up resistors count. I use every sensors for pull-up resistors. If I use just one I2C port ...
1
vote
1answer
37 views

Programming the STM32F446RE with a CH340G module

I would like to know if it is possible to program an STM32F446RE MCU with a CH340G converter. And if it is possible, then how?
0
votes
1answer
31 views

AVSS pins in PIC18f46k80

I'm trying to use ADC module in PIC18f46k80 and I want to connect VREF- to AVSS. But the problem is that I can't find AVSS pin in this microcontroller: Is AVSS the same as VSS here? meaning I simply ...
0
votes
1answer
41 views

Controlling 0-5V from 0-3.3V PWM pin and 5V power

What I have is I think a standard problem in home electronics but I can't wrap my head around it. I'd like to control an IKEA light chain from an ESP32 board. The chain is basically a set of LED ...
0
votes
0answers
37 views

Using servo motors without PWM

I’m new to the ATmega32 and I want to connect 4 servo motors to a single Atmega32 chip without using PWM pins. Is this possible? If so, how can I do that?
1
vote
2answers
73 views

E-Matches ignition circuit

I am currently working on a circuit in order to ignite E-Matches such as these in order to light up the engine of an amateur rocket. In order to have control over when to actually ignite the E-Matches ...
0
votes
1answer
52 views

Programming an ATtiny828 with an Arduino

I want to upload code using an Arduino to an ATtiny828, is this possible? I saw on YouTube you can upload code to an ATtiny85. Thank you in advance. I want to use this for a PCB design that implements ...
0
votes
1answer
47 views

Why does increasing torque on DC motor in circuit affect the speed and functioning of another DC motor in the circuit?

I am working on a project in which there are system components listed below as module: 8 ultrasonic sensors 12-30 V (Sensor module) 3 DC motors (Drive module) 35 V to 5 V buck converter and a 35 V - ...
-1
votes
2answers
57 views

7segment driver with PIC microcontroller

I'm trying to drive a 7segment using PIC microcontroller. This is the circuit diagram: In the picture, PIC means some ports of the PIC microcontroller. I want to pass 3 mA through each LED, and since ...
0
votes
0answers
13 views

TMS320F28377S Unable to enter the SCI transmission interrupt

SCI peripheral initialization configuration is as follows: ...
0
votes
0answers
27 views

How to turn on a module with a pulse

I have some issue turning on the module Quectel BG600-ML3. Here are the instructions given in the data sheet : The PWRKEY must be taken high for 500-1000ms. I can only affect the MCU_PWRKEY (Turn on ...
0
votes
3answers
137 views

How does one program for first time and reprogram microcontrollers that are mounted to a PCB?

Arduino Unos and Microchip Curiosity Nanos are for prototyping and easy and ready to program, but now I am struggling to find the resource material that would detail taking the chip off the breakout ...
1
vote
1answer
21 views

STM32 PDR_ON Pin Internal Power Supervisor Explanation

I want to implement STM32F746NG on my PCB - the one from the STM32F746-DISCO with display and SDRAM, Flash and other peripherals. The MCU has a PDR_ON pin, which I have never met before. I searched ...
0
votes
0answers
20 views

Evaluation Board DP83TD510E

I'm trying to create a demo based on 2 evaluation boards DP83TD510E-EVM using 10Base-T1L technology. Both boards are connected together via a 10 meter SPE cable and each board is connected to a laptop ...
0
votes
4answers
123 views

Is maximum/minimum voltage always compared as difference voltage for a microcontroller?

Let's take the ATmega328P for example. It has a minimum input voltage of -0.5 and maximum input voltage of Vcc + 0.5. But what ...
-4
votes
0answers
53 views

PIC 16F877A LED blinking With ultrasonic sensor

[![** how can i blinking led in this project this is my code :he doesnt work ...
2
votes
2answers
109 views

Noise spikes on power line cause false readings

I'm working on a project to measure the frequency of a small voltage (~0.1V peak-to-peak, with 1.4 VDC offset) sine wave of 1-100Hz. I only care about the frequency. I'm using a LM324 quad op amp (...
1
vote
0answers
84 views

How to implement header files into my VScode embedded C project?

Sorry if this is a noobie question but I've been trying to get this set up for a few days and I'm still struggling. I haven't done embedded C in a couple of years and I'm trying to get back into it. I'...
0
votes
3answers
73 views

Invert signal and drop voltage from 5V to 3.3V

I have inverted 5V signal from a sensor device (SBUS, inverted UART) and need to able to feed it UART port of Raspberry Pi Pico: invert it drop voltage of the inverted signal from 5V to 3.3V ...
1
vote
0answers
30 views

Working with STM32 flash memories.. on renode

I am a newbie on embedded flash memories and in particular my university assigned me a job with them on a stm32f407 MCU. I have to work with renode (don't ask me why, they want so) and it has 0 ...
0
votes
1answer
59 views

Page write method EEPROM is overwriting after 16 bytes [closed]

I am using an M24C04-R EEPROM. I am trying to do write page and read page of structure values, but it's overwriting the values after 16 bytes. uC is Renesas RX24T. Can anyone explain why?
0
votes
1answer
47 views

Has anyone seen how to use mt9v022/mt9v034 cams with microcontrollers? [closed]

I'd like to use Arducam's MT9V022/34 cameras for my project. However, the API they provide is quite limited, and also makes me buy their USB shield module(s). Important part of my project is to change ...
-2
votes
0answers
48 views

Error in Verilog program for comparator [closed]

I have a problem identifying an error in the code for the inputs of a comparator. It shows the error: Error (10170): Verilog HDL syntax error at assg_verilogq2.v(2) near text: "input"; ...
1
vote
3answers
154 views

Current mismatch in digital constant current source

For an electrochemical etching process I am trying to put together a battery powered, somewhat accurate current source able to provide 1mA to 5mA to a load with a varying resistance. (to be specific, ...
-2
votes
1answer
67 views

MISO MOSI not moving in SPI [closed]

I am not able to communicate using SPI with between 2 devices. Below are oscilloscope plots. I want to ask possible problems or errors that might have made in FW. I need to understand the general ...
1
vote
2answers
210 views

How to generate 30 PWM outputs?

I need to generate 30 PWM outputs with a frequency of about 20 kHz. I need to control the duty cycle of each PWM output. It is a bit too much to be reasonably done on a MCU (I usually work with STM32 ...
0
votes
1answer
46 views

Why is the push button state taking too long to in the program?

I wired up the circuit using a pull down resistor of 10KOhm according the schematic provided. I'm using Jetson Nano (MCU).The push button (DF Robot PB) has three wires, +ve,-ve, and signal, pin 1,pin ...
-2
votes
4answers
82 views

Where can I get +5VSB from a motherboard?

I have a computer I'm using as a server, I would want it to turn on on its own when power is cut off, and I figured the easiest way is to connect a micro, maybe an attiny85, that will short the power ...
1
vote
1answer
44 views

Effect of Internal ADC capacitor in Microcontroller

The input pin mentioned in the below image is the input pin of the microcontroller. It explains that the internal capacitor of A/D peripheral of MCU should be very much less than the external ...
0
votes
1answer
97 views

Voltage issue on pull-up resistor

I have an I2C sensor circuit, 3.3V applied to SDA and SCL pin through 10k resistor. I2C communication is not working so I have measured the voltage drop across the 10k resistors. It drops 2.86V and ...
0
votes
0answers
96 views

Controlling enable pin of my MCU [closed]

I am designing a PCB for BLDC motor control. The PCB has 3 input pins. VCC, GND, and PWM. The purpose of PWM is not to control the speed of the motor. It controls the position of a linear actuator and ...
0
votes
0answers
29 views

Minimum Distance between two magnetic rotary encoders in an array : AMS [AS5048B]

I am planning to prototype with multiple AS5048B sensors. (Very basic: Magnets are horizontally placed over the IC that the IC can detect and give an angular reading). I plan to create an array of ...
0
votes
1answer
36 views

Programmable On/Off micro-controller to switch a lighting module on command

Having a lighting module that uses an 12V (3.8A) adaptor with an integrated manual switch, what are the available options on embedding a programmable micro controller so as to turn on/off the light ...
0
votes
1answer
54 views

Programming an old school microcontroller (MSM80C49 from OKI semiconductor)

I've read the whole datasheet, there's no typical guidance on programming procedure/setup/circuitry. It just mentions a few steps on how to order pre-programmed chips. (I guess) on page 18. On a ...
0
votes
0answers
36 views

Serial flash programmer, how to update only part of the data in SPI Flash

I have SP8-A serial flash programmer and Winbond 25Q32BVSIG chip. I want to update only specific part of the data in SPI Flash, not touching the rest data on the chip. The programmer Manual does not ...
1
vote
1answer
55 views

Measure mWh - mAh of an MCU-centered circuit [closed]

I build battery-powered circuits with MCUs that consume a few uA in sleep "stage." For total power consumption measurement (and therefore battery-lifetime), I used to use this but recently ...
0
votes
2answers
79 views

How to add LEDs to a microcontroller's GPIO pins, without affecting the normal pin behaviour?

For educational purposes, I have to design a simple ATtiny24 based development board and add some LEDs to its IO ports for better demonstration of digital inputs or outputs. Despite being educational, ...
1
vote
1answer
84 views

Strange behavior of flash memory S29AL016J

Recently I was looking for a replacement for my old flash memory chip. I've soldered a S29AL016J memory chip in my boards and started checking if everything worked correctly like with my previous ...
0
votes
0answers
70 views

JRC-B008 for USB-C Microcontroller Power Supply

I would like to use these exact female USB-C ports (labeled JRC-B008): to power a microcontroller at 5V. Soldering the V -> ...
7
votes
6answers
1k views

Can you drive a P-MOSFET as a high side switch directly from a microcontroller?

I have an engineering background, but close-to-zero practical experience with discrete electronic circuit design. simulate this circuit – Schematic created using CircuitLab Regarding the above ...
0
votes
0answers
22 views

External FLASH chip controlled by an MCU: given the required capacity, how to select the page size?

I am selecting an external FLASH memory chip that I want to control (program/read/erase) from an MCU. For a given FLASH capacity, there are different options for the page size. I am wondering how to ...
1
vote
2answers
141 views

Will ferrite cores reduce the surge on the 5V line?

I think my ATMEGA AVR MCU is malfunctioning due to 5 VDC line surge. The MCU is installed in a factory and the power line is very noisy. I captured the 5VDC line. There were high frequency (10 MHz) 13 ...
0
votes
0answers
52 views

Suitable I2C Alternative for Audio Applications

I've been looking at using a MCP4725 12-bit DAC connected to a TPA2016 audio amplifier to drive a small 0.5W loudspeaker from a ATtiny85 on an existing circuit I have. I've quickly realised that the ...
2
votes
1answer
81 views

Is the BSS138 capable of level shifting this voltage difference?

The goal is to control the IRF4905 with the ESP32. From my understanding (which is limited) the IRF4905 will have the lowest RDS(on) with a -15 V VGS. To achieve this voltage difference I have a ...

1
2 3 4 5
163