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,968 questions
0
votes
2
answers
64
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
53
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 ...
-3
votes
0
answers
30
views
I get error when i try to switch from sim1 to sim2 via "AT+SWITCHSIM=1" command @ SIM7672SA [closed]
I get error when i try to switch from sim1 to sim2 via "AT+SWITCHSIM=1" command @ SIM7672SA
How can I fix this, or does the firmware not support dual SIM despite the hardware doing so?
0
votes
2
answers
143
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
47
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
116
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
67
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
60
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 ...
-3
votes
0
answers
29
views
Parallel Bus interface on SOM module [duplicate]
I have this SOM module. I initially planned to boot the SOM module from a NAND Flash IC that uses a parallel interface (requiring address, clock, enable, and data signals). According to the datasheet, ...
1
vote
1
answer
156
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
275
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 ...
0
votes
1
answer
105
views
Design Review STM32G0B1CET6
I’m working on my first prototype board and wanted to make sure there aren’t any major issues with my design before I move on to the layout stage. I believe I’ve got most things right, but I’m a bit ...
1
vote
1
answer
58
views
Bode Plot Analysis - Determine parameters
I'm designing a digital boost converter and need help analyzing this Bode plot. Could you please help me determine the following parameters:
Crossover Frequency
Phase Margin
Gain Margin
My conclusions ...
-1
votes
0
answers
38
views
Connections in the circuit diagram of a Geiger-Muller counter [duplicate]
Please help me understand how all the dedicated +9V and +5V pins are connected. I can't explain it verbally, as this is the first time I've encountered hanging blocks and this type of connection ...
1
vote
2
answers
141
views
How are the circled blocks connected on this Geiger-Muller counter?
How are the hanging blocks of this device connected, and what function do they perform?
1
vote
3
answers
148
views
What is the designation near the u11 chip (marked in gray)
This diagram is from The Wearable Electronic Customizable Device for Monitoring Activity Indicators. Volume 6, Issue 5 . The system consists of a number of discrete off the shelf modules, which ...
0
votes
1
answer
86
views
ATtiny85 pin connection
I'm looking at a tutorial
( https://www.teamxnl.com/how-to-flash-an-attiny-25-45-or-85-with-arduino/ )
and I'm confused about one of the pin connections illustrated.
I've read that, for the 85, Pin1/...
0
votes
0
answers
47
views
MPU6500 accelerometer/gyroscope + ATTINY85 PCB schematic
I'm new to designing PCBs and have wanted to make a tiny accelerometer/gyroscope circuit for ages now. I did some ChatGPT-ing and digging around on the internet to come up with my own PCB which I ...
1
vote
1
answer
87
views
This is a single phase SCR controlled Reactor. Simulation load is RL instead of fan motor
My problem is that I can't adjust the angle. When I adjust the angle, signal at output aurduino move but output at RL (fan motor) doesn't move as adjusted.
I don't know how to fix it.
green is output ...
3
votes
1
answer
406
views
What are the methods of transferring code from one MCU to another?
I have two identical PCBs that include the same MCU MC68705R3CP. Unfortunately, one of them has an output pin PB4 configured as Darlington drive output that has a high output regardless of the normal ...
4
votes
1
answer
113
views
How to read a temperature diode on the PIC24FV32KA301
I am unsuccessfully trying to read the temperature diode on a PIC24FV32KA301 using the temperature sensing diode as described in section 8 of this document. The data sheet provides a temperature vs ...
2
votes
2
answers
130
views
MCU crystal layout
I am just routing my PCB. Just wanted to check how crucial the crystal design is for an off highway application? It is a 8MHz crystal for a S32K144 NXP MCU. The GND plane you can see if stitched ...
2
votes
1
answer
97
views
STM32H573 code protection
I am considering porting a commercial design to STM32H573. The datasheet and manual describe a PRODUCT_STATE "option byte" located in FLASH memory. This "option byte" is discussed ...
1
vote
1
answer
91
views
STM32 F302R8 UART RX reception error
I'm new in the STM32 world. I’m currently testing basic UART communication on an STM32 (STM32F302R8) with an HC-05 Bluetooth module, and I’m running into a strange issue with receiving data. I'm using ...
2
votes
0
answers
130
views
Chip current calculation mAs to mAh conversion
May I know whether I am properly converting from mAs to mAh. If wrong please guide for the proper method. I am taking standby current to show my calculation.
The chip is working on a 3.3 V supply and ...
-1
votes
2
answers
125
views
How connect MCU with non-isolated power supply to PC?
I have a smart device with ESP32-S3 Wroom as MCU. The power supply is a non-isolated offline buck switching (MP175GS). In this circuit Phase line is feed directly to the circuit as Ground and Null ...
1
vote
1
answer
82
views
Why does the USART count in STM32 MCU differ between datasheet and IDE?
Regarding this STM32 MCU family (in my case STM32F303K8T6), in the datasheet there is the following statement about UART peripherals:
If I'm not wrong it says this MCU has three USARTs.
But when I ...
1
vote
0
answers
120
views
nRF24L01+ Communication Issues
I am trying to communicate between 2 nRF24L01+ and am using 2 Raspberry Pi Pico's to control them. Below is my code, schematic, and the datasheet. My problem is that the transmitter always prints <...
2
votes
3
answers
218
views
How to properly handle floating input on an optocoupler LED with long wires in automotive environment?
I am working on a circuit that uses a PC817 (or LTV-847 for multiple channels) as an input stage for my microcontroller (via MCP23017). The installation is in an automobile, and the input comes from a ...
6
votes
4
answers
616
views
Relay Contact Sticking and Driver issue
I am using a RELAY Rated 5V/5A (HONGFA HF49FD, coil resistance 210 Ohm) to switch a 200 watt heater (230 VAC).
A transistor driver circuit connected between microcontroller and the relay.
Transistor ...
1
vote
0
answers
138
views
How to power RGB LED Strip with ESP32-S3 microcontroller on breadboard?
I am trying to use my ESP32-S3-DevKitC-1 microcontroller to power RGB addressable LEDs via the ESP-IDF 5.5 Command Prompt, but I am not able to power on the LEDs. I have tested the microcontroller ...
-1
votes
1
answer
101
views
Radiation Sensor interface to ADC of CC1352P
I will be using this radiation sensor in my project. The schematic is given below.
May I know can I connect the output of this sensor to ADC of CC1352P. The working voltage of CC1352P is 3.3V. If ...
0
votes
1
answer
123
views
Does D78F9177 MCU support reading the device?
NEC D78F9177 (8-Bit Single-Chip Microcontroller)
Can someone specify, does this MCU support reading the device? It's not clear, does this particular MCU have built-in functions to disable flash memory ...
0
votes
0
answers
68
views
PID yaw control issue with MPU6050 – orientation jumps at ±180°
I’m working on a self-balancing robot using an MPU6050 with DMP for yaw/pitch/roll data.
Right now, I read the yaw angle using:
...
1
vote
2
answers
52
views
Selecting External Clock Source for NUCLEO-WB55RG Board
I am not finding the clock frequency of the oscillator used on the NUCLEO-WB55RG board?
What's the value?
Where can I find it?
How to select it as clock source for the MCU?
Which one should be ...
0
votes
2
answers
86
views
Understanding Tready Timing with EEPROM Connected to PHY (Max Tready 120ms)
I’m working with a PHY device as described in the datasheet (p. 158) of this PHY, and I’m trying to understand the Tready timing with an EEPROM connected to the device.
According to the datasheet, the ...
0
votes
3
answers
165
views
Serial Terminal Showing Weird Characters when Communicating with Atmega168
I'm trying to setup a serial connection between my Atmega168 and my PC. I've tested out the connections and I think they're fine, since I'm getting some results on the terminal with each of my ...
0
votes
0
answers
66
views
Design review request for a GPS tracker Project
Premise:
I am trying to build a GPS tracker using the Teseo-LIV3F GNSS module. Since this is my first time dealing with RF components, please let me know whether the layout and design are good enough ...
-6
votes
1
answer
104
views
How can I protect an MCU ADC pin from high fault currents when sensing large overcurrent via a current monitor output
I’m monitoring large currents (~200A normal) using a current sense output (IMON) from a high-side driver. In a fault, the current can spike up to ~1000A almost instantly, possibly creating a voltage ...
1
vote
3
answers
118
views
Can I use the output of a push-pull inverter as a digital input on a STM uC, or does it have to be a open-drain inverter with pull-up resistor?
I want to implement some buttons in my controll scheme to controll the operatings of the system controlled by a NUCLEO-H723ZG uC.
For the switches i will be using ones actually rated for 230 V AC, ...
0
votes
1
answer
70
views
How to verify ADC data sampling aligned with center-aligned TIM8 PWM on STM32H743 without oscilloscope?
I am working on an STM32H743 project where I need to read ADC data synchronized with a center-aligned PWM signal generated by TIM8. My goal is to ensure ADC sampling is correctly aligned at the center ...
-1
votes
1
answer
155
views
What is the best micro electronic to use to specifically measure the surface temperature of a carrot [closed]
I'm currently working on a Arduino controller that sends data to an API. One of the values I need is the surface temperature of a carrot, preferably a large distance away, approx. 2..3 metres.
EDIT:
...
2
votes
3
answers
151
views
Using a 10k Thermistor Across a Wide Temperature Range to Produce Linear Voltage Change
I have a 1/8 NPT thermistor that will be installed into a oil filter sandwich plate to measure oil temperature. Here is a link to it -> https://www.ebay.com/itm/276877376822
It is a 10k type, but ...
0
votes
0
answers
68
views
Do the PIC32CX 64- and 80-pin packages support Ethernet?
The PIC32CX datasheet initially claims that the 64- and 80-pin packages support Ethernet:
Ethernet is not merely supported, but is also apparently perfect: the
PIC32X errata sheet is 30 pages long ...
2
votes
3
answers
521
views
What should I go through microcontroller datasheet if I use vendor HAL libraries?
I am new to microcontroller programming and I am confused about bare-metal vs vendor HAL (Hardware Abstraction Layer) .
From what I understand:
Bare-metal coding = accessing registers directly (GPIOx-&...
1
vote
1
answer
158
views
If you have an LED light tower, with 2 lights (green/red), that have a common ground, do you require power relays to control both?
I have a simple LED indicator tower with 2 colors, at 12 V DC. They are green and red. The brown wire is a buzzer. They all have a common ground:
I was trying to wire it up to an Arduino (2 separate ...
1
vote
0
answers
39
views
RA6M4: Is there a functional significance to the _A/_B/_C suffixes following RSPCKA etc?
The Renesas R7FA6M4AD3CBQ#BC0 has "2 SPI channels". Is this 2 SPI channels in total, or per SPI port?
At first I thought it would be 2 total, but then I saw that there were additional ...
-1
votes
1
answer
78
views
Why does my CH552T NEC IR sender sometimes produce incorrect codes on an ESP32 receiver?
I’m building a USB IR blaster using a CH552T dev board, a Crowtail IR emitter, and an HS-S23B receiver connected to an ESP32. My goal is to send NEC protocol IR codes at 38 kHz using Timer2 for the ...
4
votes
1
answer
342
views
4 layer pcb design review (revised board v1.0.2)
I would first like to thank you all for your continued support of me as I continue to learn more about pcb design and electrical concepts. I can not express how truly thankful I am to have so many ...
1
vote
2
answers
111
views
How to decide Rext size on STM32 crystal design?
I am designing a HSE circuit for a STM32F1 series and am using an 8 MHz crystal.
I have been using the STM32 application note AN2867.
The crystal selected is ECS-080-18-5PX-JES-TR. I have calculated ...