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.

0
votes
0answers
7 views

PIC32 mplab interrupt harmony

I am trying to use interrupt for PIC32MZ2048ECH100 microcontroller mounted on explorer 16. ...
-1
votes
1answer
26 views

Question regarding MCU, Voltages and Level Shifting

I have a board with a 3.3v MCU (C8051F850 from Silicon Labs in a QSOP-24 package) but whose pins are 5v tolerant. The board is running at 5v and all the relevant GPIO pins from Ports 0 & 1 have ...
0
votes
0answers
42 views

Topic to pursue for creating custom gadgets with microcontrollers

Let's say I have a STM32F4-discovery board (or any microcontroller) and I hook up a 2 Mb EEPROM via SPI assuming code and stuff works). Is there a way to have Linux recognize the EEPROM as a "USB 2 Mb ...
-3
votes
0answers
34 views

Microcontroller with GPS and temperature sensor [on hold]

I am looking for a microcontroller, that has GPS and also a temperature sensor. Or maybe just a mircocontroller with GPS that I can connect a temperature sensor to.
1
vote
1answer
66 views

Considering analog meters as displays, which would be more versatile - voltmeters or ammeters?

Note: I'm here to see if there's an objective reason to choose one type over the other. I've got some projects in mind that would use a microcontroller to drive one or more analog meters as displays, ...
0
votes
0answers
40 views

Difference between horn and power resister?

I have a circuit where my microcontroller is turning off and on a heavy load using a power mosfet (I've also tried it with a mosfet and a relay which yielded the same results). When I use a power ...
0
votes
1answer
32 views

Non-Corrosive Water Sensing

I have been told that passing DC current through two probes in water will lead to corrosion on the terminals. Apparently AC does not cause corrosion. Preventing corrosion is of high importance to me....
0
votes
0answers
9 views

Checking HM-TRP radio adapter for initial data

I have several HM-TRP radio adapters (consisting of the HM-TRP chip with a female header connected to it) of the same version. I tested it in a mini circuit where the PC does direct I/O with the HM-...
0
votes
0answers
32 views

Is there any effect if i keep three consecutive pwm pins in microcontroller? [on hold]

I am dimming the light using pulse width modulation, so there is any effect if i choose three consecutive pins for that?
1
vote
1answer
46 views

Ringing issue on I2C FM+ bus between MCU and few sensors - Power supply issue?

I'm experiencing some issues while probing a problematic I2C bus on the oscilloscope. We want to interface several TLV493D-A1B6, with a STM32L4 (we are working as well on STM32F4 and have the same ...
0
votes
1answer
35 views

Write collision for multiple reads - PIC24 I2C

I am trying to poll a CAP188 sensor so I'm sending it read commands in a while loop, but the first read works and then on the second read when I send the slave address it detects a write collision. ...
0
votes
0answers
17 views

How to get Time when counter increases using Encoder mode

I am having NUCLEO-F303RE6 board and trying to capture time in Encoder mode. I am having light encoder with 4 Pins(Vcc,Ground, Channel A, Channel B) . I am successfully getting reading from the sensor ...
2
votes
1answer
395 views

Turn on a microcontroller using a high-side Mosfet switch

I am using a P-Channel Mosfet to control the power of an STM32F103VETE ARM microcontroller (MCU1). The source of the Mosfet is connected to 3.3 V and the drain goes to the MCU1 Vdd pins. The gate of ...
0
votes
3answers
71 views

Burning hex files into multiple micro-controllers at a time. [on hold]

I am using attiny88 and the usbasp programmer. Right now I am burning 1 micro at a time. But it is a time-consuming process during the production. Is there any way to burn multiple microcontrollers ...
0
votes
0answers
31 views

Multiple Reads Not working- PIC24 I2C

I'm trying to read from a register on a CAP1188 using my PIC24FJ64GA002 multiple times (will be polling it) and it only reads the correct data once and then on the second read it gets stuck waiting ...
0
votes
1answer
46 views

2 Coil Latching Relay Setup

I am trying to use a relay to power a RPi for the first time and just confused by how I should wire it. I am trying to control the relay with a ATtiny10 MCU (microcontroller) if that helps in ...
0
votes
1answer
79 views

Easiest way to control a led remotely [on hold]

I was wondering what is the easiest and cheapest way to have a high power led (3 Watt) turn on/off and blink remotely from a distance (60m-100m). I've been looking at some microcontroller solutions (...
-2
votes
0answers
55 views

STM32 Generate Specific Frequency [closed]

I need a clock source between 3.64MHz and 3.72MHz for an IC and in the my hardware I use stm32f103 cpu. I wonder that is it possible generate the frequency from any pin of the cpu? Thanks all.
0
votes
0answers
38 views

Help resetting the GPIO Pin by Default in STM32F0

In the command GPIO.init(); all the output pins will first set and then reset. I want to know that can we make any pin which is in reset by default ,rather ...
1
vote
1answer
35 views

Voltage Measurement with ST Microcontroller

I want to measure DC voltages from 1mV to 10V. I will be using STM32L053C8T6 Discovery board. I want to use 3.3V reference voltage. I know that if you want to measure voltages bigger than reference ...
0
votes
2answers
78 views

Current drawn by microcontroller

How to estimate current drawn by microcontroller(on the ADC port) when interfaced to a module/IC/sensor theoretically? MCU manual: https://nxp.com/docs/en/data-sheet/LPC2131_32_34_36_38.pdf
0
votes
0answers
162 views

Merging 32 Circuits into one

it's been a few days which I've been trying to find a solution for the logic of my board in the project I'm working on, but even though I've searched everywhere I didn't find a solution, maybe because ...
0
votes
2answers
40 views

Does current draw of separate pins of a microcontroller affect each other?

I have a microcontroller with a IR LED and transistor, as well as a RGB LED. If my battery microcontroller is turning on its RGB LED, connecting to cellular, will this mean less current is going to my ...
0
votes
2answers
48 views

is the intel quark capable of running an opencv webcam unity application for linux? [on hold]

I built a fairly simple application in Unity that uses a webcam and opencv to overlay graphics in realtime to a user's face. I am looking for a low cost microcontroller/computer to run the ...
2
votes
2answers
73 views

Just read a Register

I am using a STM32F103CBT6 as I2C Master. After sending the I2C Adress of the Slave I need to clear the Addr bit in the SR1 register. The Datasheet states: "ADDR: Address sent (master mode)/matched (...
-1
votes
2answers
71 views

Force the state of floating digital input to particular level

Given: a microcontroller in QFP package. A pin is configured as digital input, no pullups/pulldowns. The physical pin is not connected to anything else, besides the pad on PCB. Is there a way to ...
-4
votes
1answer
40 views

Which microcontroller to select with A/D more than 24Mhz sample rate? [closed]

I am looking for a micro-controller a cheap one with dual A/D and at-least 8bit and sample rate more than or equal to 24Mhz. Please someone provide me with name, number of such microcontroller or ...
1
vote
1answer
37 views

Infineon DAVE v4.2.2. XMC1200 Boot Kit 4-Channel DMX Issue

I am using Infineon Dave v4.2.2. to program the XMC1200 boot kit with colour LED card to read a DMX input signal using a rotary dial. For those that don' know, Dave uses a simple UI with "apps" that ...
1
vote
2answers
124 views

Combine C and C++ in STM32 application development [closed]

Generally, developing embedded systems applications is based on abstraction. We expose some functions from lower layers that can be used in the application layer. My question is: Can I develop the ...
1
vote
1answer
59 views

esp32 resets when relay switches from ON state to OFF state

When I switch a 12v relay from ON to OFF using esp32 then the ESP is restarted. Also it happens only when there is an AC load. I control 12V relay with a transistor. This is my relay Edit 1-- When ...
0
votes
1answer
51 views

STM32F030F4 Timer3 doesn't work

I use STM32F030F4 in TSSOP-20 package and the timer doesn't work. I try to find an example for STM32F103 and it work very good. Here is the code sample that I use: ...
2
votes
2answers
32 views

PIC24 DATA EEPROM Emulation __builtin_tblpage error

I am using PIC24fj256ga702 controller in my project. I wanted to store some bytes data in a non-volatile memory in case if there is a power loss. so i wrote some functions following http://...
0
votes
0answers
20 views

eMMC host controller question

i have a eMMC v5.1 chip from Samsung,and i have a emmc controller v4.5 is possible my controller support eMMC this version ? whats eMMC version? lower controller version could support higher version ?...
0
votes
1answer
68 views

How to understand “Power Up Checksum” in embedded system?

For an Embedded hardware system, how do we understand the "Power Up Checksum" in the initialization part? How does it work in detail? (Where does it check, what is the mechanism) A "Power Up ...
0
votes
1answer
18 views

Trying to Build a voltage-driven smart shunt/threshold switch

I'm trying to build a smart DC switch that measures the input voltage (3V to 40V)1 and determines to which output pin to send it, similar to this threshold switch idea or a SIP3242 for Vin, not load ...
1
vote
3answers
106 views

Embedded Firmware Question - Memory dump

Ok so the back story is this. I landed an online code interview with a company that shall remain nameless. I know I am not ready for a job there but I was basically given the chance by an insider. ...
0
votes
1answer
49 views

Looking for a very precise tx/rx circuit module to calculate distance [closed]

Thanks for helping. I'm looking for a system that will help me find exact distance between a transmitter and receiver at a frequency of milli seconds, in distance accuracy of milli meters. I want to ...
1
vote
1answer
39 views

Optoisolator Not Switching

I’m working on a university project that involves switching a relay using an ILD213T optoisolator. The optoisolator is driven directly by an ATmega328p. I had calculated the required current limiting ...
42
votes
9answers
6k views

Using volatile in embedded C development

I have been reading some articles and Stack Exchange answers about using the volatile keyword to prevent the compiler from applying any optimizations on objects ...
0
votes
1answer
38 views

Automatic charging and power switch between USB and LiPo battery

I am designing a board which can be powered over USB and includes the use of a LiPo battery along with its charger circuit. When the USB is connected, it charges the battery as well as powers the ...
1
vote
0answers
28 views

What is the maximum supported I2C mode in the FS32K146?

In the S32K146 user-manual guide, it is mentioned as High-Speed mode is not supported by this device. (Page 1481). But in the coming section of the user-manual it is mentioned as device support HS ...
0
votes
1answer
45 views

Crystal Oscillator Power

In the following circuit: taken from: https://circuitdigest.com/tutorial/quartz-crystal-oscillator How is the crystal powered to begin oscillation? I understand the amplifier is required to prevent ...
0
votes
0answers
38 views

STM32F103 “BLUE PILL” SPI Clock signal not working

I have been trying to communicate with Arduino UNO thru SPI1 of STM32F103 blue pill board. I am using the standard peripheral library. I have checked countless tutorial and have run them on my board. ...
1
vote
2answers
114 views

Can someone explain the use of the transistor in this circuit?

I came across a schematic which implemented a 1 Wire interface. However, this 1-Wire interface circuit also includes a transistor connected as shown in the picture. Can somebody expain why this has ...
1
vote
1answer
48 views

How do I interface a microcontroller to the M5480 LED driver

I am attempting to interface an Atmega328PB to an M5480 LED/Relay driver. I'm aware this part is obsolete. The reason I am trying to do this is I have an antenna tuner that uses this chip. An antenna ...
0
votes
1answer
44 views

Microcontroller with two different power supplies

I’m trying to make a circuit in which a microcontroller can switch it’s own power supply from 5V to 3V3. The power is coming via USB and one rail has 5V and the other with an LDO is kept at 3V3. I ...
0
votes
1answer
51 views

PIC micro controller oscillator frequency

The internal clock (Q1–Q4) of PIC Micro controller runs at a quarter of the oscillator frequency (FOSC/4). My question is if i divide the frequency with 4 Then the timer period of each clock pulse ...
0
votes
1answer
36 views

Dispersing a static field from a touch circuit - escape room

I run an escape room, inside a puzzle we have is where players need to hold hands and touch 2 screws to complete a circuit and trigger a switch. I don't have the exact specs, but it's going to look ...
0
votes
1answer
21 views

ADC startup time in AT91SAM7 - what is it?

I'm working with ADC in AT91SAM7S micro-controller. Apart from parameters like ADC clock frequency prescaler and 'sample and hold time' (that I'm familiar with), there is a parameter called 'Startup ...
0
votes
1answer
28 views

Drive QVGA lcd with GPIO?

I want to drive a 2.2" QVGA LCD that has I80(Intel 8080) interface. I found that other people did it with microcontrollers that have XMEM(Atmega64) or FSMC(ST) . Now I want to know if it is ...