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.

1
vote
1answer
48 views

How to power STM8(S105C4) chip? Is decoupling needed?

I have a MCU STM8(S105C4) with which I need to design a PCB to power from a USB. But I don't know how to power it. I've tried searching the specification for this MCU but all that I could find is that ...
0
votes
1answer
57 views

STM32429ZI Dısc1 Gyro wrong data problem

I'm tring to write own L3GD20 library. I can read chip ID (but L3G sent to me ffd4 and its partially true). But I cannot read any axis of gyro. Partially gyro always sent to me FF or 00. I'm doing ...
1
vote
0answers
173 views

Honeywell I2C RH Sensor SDA line experiencing fluctuation between Vdd and Vdd/2

I had a problem when implementing I2C communication between NXP Kinetis K50 micro-controller and Honeywell Humidlcon I2C RH sensor. The RH sensor doesn't acknowledge when receiving the default address ...
1
vote
1answer
38 views

Byte-Banging 2 8051's using port addresses

Currently I have two microcontrollers setup in which entire ports are connected to each other (P1.1 connected to P1.1, P1.2 connected to P1.2, etc). I also have two pairs of extra GPIO pins connected ...
0
votes
3answers
100 views

What exactly are low speed devices? [closed]

The definition of I2C is - "A multi-master multi-slave serial bus used for communication between low-speed devices". However, I have been searching the web for a concrete explanation for this but ...
0
votes
1answer
98 views

How MCU provides an output to pins [duplicate]

I would like to know how does MCU provide it's output current. here is a little drawing of my assumption (simplified) of how a pin is functioning when it is set to output. Basically it is a ...
2
votes
1answer
46 views

GPSDO control algorithm

I am currently building my own GPS disciplined oscillator. I have a OCXO which is used as clock source for a microcontroller and one of its counters, and the 1PPS signal from the GPS module is ...
0
votes
0answers
20 views

Can standard 8051 timer 1 and timer 0 be available to programmer when serial mode 1 is used?

The micro is an AT89C4051. It allows two timers and a serial port interrupt. Currently, I set things up so that if any kind of data is received on the serial port, it just is loaded into memory by ...
2
votes
2answers
300 views

I'm trying to identify this WiFi / Microcontroller without any luck

I purchased these TanTan Smart electrical outlets with the hopes of finding an esp8285 or esp8266 within them. When I opened one up I was greeted by something different, and am trying to determine ...
1
vote
1answer
38 views

30N06L N-channel mosfet switching heavy load interfering with micro-controller circuit

I have a microcontroller that I want to use to switch on/off a heavy load (a car horn) with a 30N06L N-channel mosfet. Everything works when running a load of 4Kohms (with the car battery at 12v), but ...
0
votes
1answer
43 views

STM32CubeMX/STM32L0 UART Transmit unknown symbols

I am trying to connect UART communication with STM32L053C8-Discovery. But the problem is on terminal I get unknown symbols. My Setup on CubeMX ...
0
votes
1answer
121 views

Protect Code inside Microcontroller [closed]

As a preface, what I am asking is highly related to this question. That said, the question linked was asked in 2011 (7 years ago), and I imagine the microcontroller world has changed (at least to ...
0
votes
1answer
22 views
-2
votes
1answer
53 views

Which microcontroller is best for low power energy harvesting application s? [closed]

I am going to use a mini wind turbine driven by train induced wind that will generate power. Now I have to store this energy in rechargable batteries with the help of boosters and buck converters. ...
0
votes
3answers
159 views

Can 10-100mA kill a person / be deadly? [duplicate]

According to various sources something as little as 0.01A = 10mA can be painful, at 0.1A = 100mA you can expierence * "ventricular fibrillation of the heart". "an uncoordinated twitching of the walls ...
0
votes
0answers
31 views

Simplest schmitt trigger with fewest part count for microcontroller

I own several AT89C4051 microcontrollers and I'm currently trying to read signature bytes of the micros that I probably broke (by applying 7.2V to the VCC pin before noticing the 5V regulator became a ...
0
votes
1answer
57 views

Best way to develop a kapton tape cutter machine? [closed]

I'm constructing a machine that cuts kapton tape in a specific length, the way I'm doing is there's a motor that keeps pushing tape forward, when the tape covers an infrared led, the motor stops and ...
3
votes
1answer
91 views

Microcontroller PWM output volume

So I am designing a cheap and simple sound device using the Atmega32U4 uC and stumbled across one problem. I am using the 10-bit PWM output of the uC to output audio and I want the user to be able to ...
2
votes
3answers
125 views

Why does a micro-controller pin use push pull when configured as an output? [closed]

What is the main reason some micro-controllers form a push-pull topology when set as an output pin? My only guess is not to load the pin. But I couldn't find enough information about the reasons. ...
0
votes
1answer
41 views

Provide opAmp supply voltage using charge pump

I have low power (USB 5V, up to 500mA) available on a microcontroller board I am developing. Because the voltages I am going to measure (1.2-2.3V) using the MCU are not filling the ADC's range (0-3.3V)...
0
votes
2answers
93 views

Which STM32 microcontroller has the most PWM channels? [closed]

I need a MCU with a minimum of 32 PWM outputs and at least 1 analog input. Are there any STM32 MCU which satisfies the requirements? I thought of multiplexing 16 PWM channels to 32 channels, but I ...
0
votes
0answers
45 views

Powering ILI9341 LCD from MCU IO pin

Looking at the ILI9341 datasheet Electrical Characteristics, I just can't find information about power consumption. The information is also missing from the LCD module datasheet (ER-TFT024-3). I know ...
2
votes
1answer
136 views

STM32L0 - Delay in microseconds

I am using a B-L072Z-LRWAN1 board (which has a STM32L072 MCU) and I want to get data from a DHT11 sensor. To achieve this, I need a microseconds delay which I am not able to obtain. The libraries ...
-1
votes
1answer
99 views

Powering ESP32 project from mains power [closed]

Apologies if this question was already asked, but my searches didn't end up very consistent on this matter. I want to build a curing chamber in an old small fridge and I thought the ESP32 board will ...
0
votes
2answers
32 views

Bjt for trigger MOSFET

I my project MOSFET need 13 v 65% PWM to trigger but controller output is 5 volt then how can I amplify this in voltage
0
votes
1answer
58 views

Timer0 not interrupting on PIC18f4321

I'm trying to run some basic code from my textbook onto a PIC18F4321, using the latest XC8 compiler. It's supposed to turn on an LED after 10 seconds, but the LED never turns on. I've checked my ...
0
votes
1answer
35 views

Programmatically determine the lowest waiting time for character LCD display

I made working code in an older microcontroller for a character based LCD that's based on the HD44780 chip. My code stops execution of everything else every 70uS to display one character from the ...
1
vote
0answers
43 views

Two-Terminal Passive Analog Component Tester Using the DE1-SoC Development Board

I am having hard time understanding this problem. I have to draw a Level 1 block diagram for this system. I really appreciated it if somebody can help me. I am new to DE1-Soc. use the Intel DE1-SoC ...
1
vote
2answers
131 views

How to design Watchdog timer that reset the system if Watchdog counter is not cleared at least every 1/4 seconds

This is the code I have for a green LED blinking every 2s with watchdog mode for MSP432. ...
0
votes
1answer
75 views

How to connect a switch to a microcontroller in an extremly noisy environment

I'm currently working on redesigning the control circuit of a CNC machine (more specific: an Isel milling cutter). Only the digital part will be of interest, I'll keep the old power electronics (motor ...
2
votes
1answer
69 views

Zero-crossing in AC with DC offset signal

Introduction I have a project about measuring the voltage, current and power factor of an electrical system. I had designed a system that allows the microcontroller to measure the peak of an AC with ...
0
votes
1answer
43 views

Do some microcontrollers require data to be loaded in temporary memory before programming?

When I programmed the AT89Cx051 series of microcontrollers, I didn't have to use special memory to program the data, but now even though I'm following the instructions in the datasheet (found from ...
0
votes
2answers
103 views

16 bit DAC microcontroller

I'm currently working on a audio project where I need to play a 16 bit depth signal with a speaker. Right now I'm using an atmega328 for prototyping, two 8 bit shift registers (controlled by the MCU) ...
0
votes
0answers
31 views

UART Receiving, and writing conflicts

MCU: Atmega328p Currently i am learning UART communication, and ran in to a problem. look at the code below. ...
1
vote
1answer
73 views

Battery Monitoring using voltage divider on ADC pin with STM32F030

Here i am new to battery voltage monitoring using ADC for STM32F030. i have some query related to battery monitoring with ADC pin. 1) as mention in datasheet external input impedance(Rain) is 50k, ...
0
votes
0answers
42 views

Minimalist high speed 8051 microcontroller testing circuit on breadboard

I'm trying to come up with a circuit using the least number of parts possible to build on a breadboard that tests the basic functionality of a microcontroller, specifically the AT89LP4052 ...
2
votes
1answer
100 views

Separate GND-plane for microcontroller crystal resonator

1.  Background info I'm designing a board for an STM32F767ZI microcontroller. This microcontroller has a primary oscillator for the SYSCLK (overall system ...
0
votes
4answers
79 views

Frequency Ratio Circuit

I'm attempting to design a circuit that will determine the frequency ratio between a known reference frequency \$f_\text{ref}\$, and an unknown signal frequency \$f_\text{sig}\$. The signal frequency ...
0
votes
1answer
55 views

LIS2DH12 Watermark and Overflow Interrupts at the same time

I'm working on a project that uses the LIS2DH12 accelerometer by ST (product page). I have a couple of questions about it, and as it is quite a common part, I wonder if anyone here knows the answers: ...
3
votes
2answers
362 views

STM32 SPI not working as I expect it should based on online reading

I am using an STM32F103C8 to connect to a Hope RF95W transceiver IC for the purpose of learning. I am only trying to read the chip version register, then write a config register that has a 0x00 reset ...
1
vote
2answers
96 views

Compile time calculations in C

I have been implementing a control software in C programming language. One of the software modules represents a communication table for some proprietary communication protocol. Each record in this ...
0
votes
1answer
70 views

Convert ADC value to real voltage

I want to measure the input voltage to my circuit. The input voltage is supposed to be anything between 7 to 35 Volts. I have a micro-controller with 12bit ADC. I am using a simple voltage divider to ...
5
votes
2answers
369 views

Communicating between 2 different microcontrollers

My Arduino runs at 16MHz clock speed; another microcontroller runs at clock speed of 13MHz. If I send digital output directly from an output pin of the former to input pin of the latter, there will be ...
2
votes
3answers
63 views

why is this microcontroller brown-out level detection at 2.6V and 3.4V

The default brown-out detection level for the ATmega32u4 is 2.6V (typical) in the range of 2.4V to 2.8V. The table of possible values: ...
0
votes
1answer
45 views

PIC16F1827 Capacitive Touch Sensor not Incrementing Timer?

So I have a PIC16F1827 on a breadboard and was trying to get a simple demo working where I touch a wire to turn on an LED using the Capacitive Sensing Module. I was primarily going off this example I ...
0
votes
1answer
66 views

COMP2 to trigger One-Pulse mode on STM32L1

I am trying to use the output of COMP2 to trigger the One-Pulse mode of a timer (in my example TIM4, but it's quite flexible if it needs to change to another timer) on the STM32L1 series. In the ...
0
votes
1answer
62 views

Design emission (harmonics)

I attached a image of ESP32's datasheet where it say to add a series 470 ohm resistor to Tx transmission line. I wonder is it talking about which line, what are the pins? And why that specific value? ...
0
votes
0answers
35 views

Voltage translation for vehicle throttle sensors

I am working on a EV car conversion and I'm replacing the original throttle pedal. The two throttle sensors of the new throttle pedal are different. That means the output voltages have a different ...
0
votes
0answers
23 views

Question on PID Design for DC motor, microcontroller-based

Is there a way that by using a microcontroller I record speed and current of a DC motor, then find its parameters and transfer function to further design and tune a PID controller? Kind of what MATLAB ...
0
votes
1answer
67 views

Interfacing an LPC2148 with a CAN module

I need to implement the CAN protocol to communicate between two LPC2148s. Now I am planning to use SPI for communication between a microcontroller and a CAN controller and then the CAN protocol for ...