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
22 views

Selection criteria for microcontroller to read data from a car's CAN bus (from OBD2 to microcontroller)

I want to read data from a car's CAN bus using a micro-controller. The micro-controller is used outside the car (via OBD to micro-controller). A few micro-controllers i found with CAN interfaces are ...
0
votes
1answer
49 views

How these timer values are derived?

I have a 8051 micro controller ,it has timer0,1,2,3 with different modes. in timer0,mode0, i got a sample code (as shown below). datasheet 8051 from that code ...
1
vote
0answers
65 views

Board routing review

I need some criticism about this board. I ordered a test batch today and I would like to learn how to improve it. My project is here: https://easyeda.com/be.mihai22/project-hawk I used two layers ...
0
votes
0answers
8 views

Problem in configuration of Tiva TM4C1294NCPDT on Code Composer Studio

I am using code composer studio and using the microcontroller below, I used Energia software to run a simple program and it runs, but when I use CCS and try to flash an example program for this MCU ...
0
votes
0answers
43 views

Is it possible to share a speaker line as ground?

Given the following circuit, how can I use terminal 3 to detect when the button has been pushed? Everything right of the 3 pin terminal is a manufactured device- the Aiphone LE-D. (Also note it's ...
1
vote
1answer
60 views

Adding Ethernet ports to my SoC

I'd like to add multiple (>5) Ethernet ports to a board I am developing. Linux on the CPU has to see each port individually, be able to route the traffic among ports, and also add traffic on its own (...
0
votes
2answers
33 views

Design my own footprint or find one?

I am designing a PCB based around the STM32H7 MCU, which is a LQFP144 package. I'm designing in Altium and was using the Altium vault to find components. I noticed my specific MCU isn't on there, ...
0
votes
1answer
49 views

How accurate are the crystals on ST's Nucleo boards?

I got myself a cheap ST Nucleo-L053R8 on discount, to play around with a couple ideas. The main STM32L053R8 only has a low-frequency 32.768 kHz crystal for RTC, but it can also be provided with an 8 ...
0
votes
1answer
33 views

ICSP + FTDI for ATMega328P

I want to have this "debug" header with 10 pins (I could probably get away with 9) and I am wondering if the DTR pin is ok to be filtered by a capacitor for ICSP. This is how I am sourcing these pins:...
0
votes
0answers
25 views

IMU sensor suddenly outputs only a fixed value

Description of the situation I am calculating the angle using BMI 160. Intermittently, the sensor's value is fixed. I've tested it in certain situations, but each of them happens in a different ...
1
vote
2answers
60 views

Fixing power supply interference issue (?)

I am working on a project that involves controlling WS2812B led strips using a Teensy 4.0 microcontroller. I got everything working during the testing phase, but now, after transitioning from ...
0
votes
0answers
10 views

XBee Pro S3B/XSC problems using UART with microcontroller (AT90CAN64)

I have two Pro XBee Pro S3B, one is connected to my computer through USB, meanwhile the other is connected to a microcontroller AT90CAN64. Here are the settings for each XBee, which I configured ...
0
votes
3answers
66 views

I2C Level-shifting? 2N7002DW

Can someone explain this IC? It seems to be a two-way n-mos (has two circuits in one). I have a master device that runs on 5V and multiple slaves that run at 3V3 and they communicate via i2c. Why ...
-1
votes
1answer
44 views

Controlling Multiple I/O Devices

How to manage multiple Input(Sensors like Temperature, Humidity, etc..) and output(like motors, relays, etc..) devices connected to a micro controller(Arduino UNO). There are more I/O devices present ...
0
votes
1answer
95 views

Circuit/schematic review ATMEGA328P

Could someone suggest a place where I could request people to look over my schematic/board design? If this is the place, here it is: https://easyeda.com/be.mihai22/project-hawk EDIT: As I see ...
3
votes
2answers
917 views

How GPIO Pin works

I am very curios what happens to pin when it is in input mode and output mode. Question regarding input mode: Input reads voltage on pin or current? If it reads voltage, is it able to sink in ...
0
votes
1answer
34 views

How to program an MSP430 chip on a launchboard with no IC holder

Our university provides MSP-EXP430FR4133 LaunchPad Development Kits like the one shown in this picture : Although this doesn't have a slot to program an IC like these ones do: I was wondering if it'...
-1
votes
1answer
103 views

Electronic Circuit Breaker

I want to protect from short circuit by using a miniature circuit breaker. But this has to be manually turn ON, when ever it is turned OFF. So I was thinking to make a electronic circuit breaker which ...
0
votes
2answers
48 views

Exact meaning of the issue mentioned on Errata document

I am using PIC18F67K40. When I went through the Errata datasheet I found out that I am using A3 revision Device. There is an item number 5.1 Can somebody explain to me what is the exact meaning of ...
0
votes
3answers
77 views

ST-LINK/V2 repairing issue

My original ST-LINK/V2 has been broken. There was the Short circuit between VDD and GND pins. I changed the MCU(STM32F103C8T6) and the voltage regulator(LD3985M33R) with new ones. Short Circuit ...
0
votes
0answers
16 views

Wemos D1 Minin Battery Shield Fully Charged Notification

I would like to be able to send a notification via Home Assistant when a battery is fully charged through one of my Wemos D1 Mini Battery Shields (V1.1.0). Clearly the green LED turns on when it is ...
0
votes
0answers
54 views

STM32F103VET6 and CH340G

I have a problem with my PCB. I recieved it a few days ago and it is already completly presoldered. If i connect it via USB-TYPE B to my pc it is showing me nothing in device menager.... The CH340G ...
-1
votes
0answers
28 views

MCU with two I2S interface support [closed]

I am currently working on an audio recording project in which I am trying to record a mems microphone and save .wav file to the storage. I am looking for Microcontroller recommendations. The MCU ...
0
votes
2answers
65 views

PIC12F675 - 2 input 2 output 'XOR' output

I am facing a peculiar problem or this is known to others which you can help educate me. I'm running the below code on a PIC12F675, but the conditions never seem to work. Tried it on hardware, and ...
0
votes
1answer
32 views

Using LVC logic instead of AHCT

I need to power a 5V LCD display from a 3.3V microcontroller. On my breadboard I used 74AHCT125 level shifters powered at 5V. This worked fine. For the PCB version I have - mistakenly - ordered ...
0
votes
1answer
30 views

How to wire digital voltmeter/ammeter to measure arduino battery consumption

I'm not sure if you can tell but I'm a bit of a beginner, I want to wire up an digital voltmeter/ammeter combo to measure arduino power consumption. I found the following device which seems suitable ...
5
votes
3answers
2k views

How to extend a microcontroller GPIO to ~300 inputs?

I need to find out the address of buttons pushed. Say I need about 300 Input port required dedicated for individual buttons. Then I would need 300 I/O pins to read the address of a pushed button which ...
1
vote
1answer
65 views

STM32 NRST being held low

I am using an STM32F302C8T6 and ST-LINK v2. The MCU should normally be pulling NRST high through its weak pull-up resistor, however it's being held low somehow. This prevents me from being able to ...
-1
votes
1answer
48 views

Can't compile program for PIC because of a define statement

I am trying to compile an example program from Microchip using MPLABX. It looks like the IDE is not including the "xc.h" file becuase of the following code: if defined(__XC) inlcude xc.h The "...
1
vote
2answers
79 views

Ways to multiplex the output of a DAC?

Part searching in microcontrollers, it looks like most small ones have at most one DAC. What is the just way or ways to output multiple slow signals from a microcontroller with at most a single DAC? ...
0
votes
1answer
118 views

How to run a circuit with both 5V and 3V3 supply voltage?

I'm currently designing a circuit requiring 3V3 (an ARM MCU) which should run on both 5V and 3V3 input. Since the power requirements are fairly low, a linear voltage regulator should suffice. I want ...
0
votes
0answers
38 views

Microcontroller with SATA III interface [duplicate]

im new in here go easy on me, I plan to securely erase an HDD with a microcontroller. The ATA secure erase commands can be used to securely wipe HDD, is there a way that it can be reproduced by a ...
0
votes
0answers
28 views

Can't write anything on QUADSPI data register (QUADSPI_DR)-stm32l452

I am using stm32l452 and toshiba 4Gbit flash ic, and I am trying to write and read data from flash via quadspi. I achieved reading flash and manufacturar id from flash(with commands, not with using ...
0
votes
1answer
48 views

How to free up memory in a CircuitPython board?

I'm using a Feather M0 Express from Adafruit with a DS3231 Precision RTC FeatherWing for a custom clock project that displays time with LEDs. The clock works as follows: When the clock gets plugged ...
0
votes
2answers
113 views

which IC produces PWM that can be filter into sine wave?

For a DC to AC transformerless power supply, I am trying to find a specific type of IC that produces PWM that can be filtered into sine wave. What I can find in most website is MCU that has to be ...
0
votes
0answers
19 views

Lora Ra-02(SX1278) Module Maximum Transmission Distance (Non LOS)

I was trying Lora Communication for a Project and i m having trouble getting the required range. Im using an Ra-02 module (433Mhz) with antenna(433MHz 3db 5cm) and i was able to get a 300m range(Not ...
0
votes
0answers
64 views

STM32L151 - ADC is too slow

I want to measure water conductivity at the alternating current, so i set two pins to vcc and gnd, wait some time, measure some points, toggle the pins, wait, measure etc. Manuals say the ADC should ...
0
votes
2answers
60 views

Misra C or other code standard compliance in TI CCS

If I need to do Static Code analysis of my code or check for Misra C compliance for my code in TI's CCS for MCU RM57 then how can I do that? I can see 'Code Analysis' in the project preferences but I ...
0
votes
0answers
29 views

Core stucks in blocking handler STM32F103C8T6 libopencm3

I have problem with my STM and the libopencm3. After the reset handler is called, there is immediately jump into blocking handler. I suppose that the hard fault occurs. Here is the call stack: <...
0
votes
0answers
67 views

Logic-level square wave to transformer

I try to power EL wire at a chosen frequency. For this I have a microcontroller generating a square wave signal at the given frequency; this signal oscillates between 0 and 3.7V and the current is ...
0
votes
0answers
54 views

What is XCLR and EOC

As the title says, looking at IC9 (BMP085), could someone explain why XLCR and EOC are connected to P-XCLR/P-EOP and why there is no other match in the schematic? Are these connected at all? If not, ...
0
votes
1answer
63 views

spwm look up table {For bldc control}

I am trying to implement sinusoidal control in BLDC motor. After doing some research about sine wave controller. spwm and svpwm are the better controlling methods for sine wave controller. So I first ...
15
votes
10answers
3k views

Best practice in transmitting sensor analog signal over longer distances (approx. 100') — in cost sensitive products for microcontrollers

I'm looking for best practices for transmitting an analog sensor signal over long distances to a microcontroller such as the Arduino running at 3.3v or 5v. Keeping costs low is imperative. SPI and ...
1
vote
1answer
221 views

General question about safety-critical use of microcontrollers

I was wondering if microcontrollers that hobbyists use, such as the 8-bit Atmel AVR ATMega328 which is used in many of my small projects, can be used in sensitive things, for example a life-dependent ...
-1
votes
2answers
99 views

Electronic Controller Unit (ECU) Vs. MCU

Isn't the Electronic Controller Unit (which are used in automotive applications) a Microcontroller it self? What is the difference between them in architectural point of view?
0
votes
3answers
105 views

Stuck with deciding the location and the type of variable declarations for this MCU code

I'm using ATmega328P with Atmel Studio. In the following code I declare almost all the variables inside the while loop: ...
0
votes
1answer
48 views

Can I send an SSH command via Nucleo Board?

I'm in a very embryonal phase of my project, so I'm just putting the pillar on possible solutions. I'd like to have an opinion or suggestion by experts about this question: For the above-mentioned ...
0
votes
0answers
31 views

SD card sharing between atmega2560 and sim800

I am designing a data logging system that uploads its data via 2G, and downloads new firmware from a server to the SD card, which the mcu boots from. So far, I have achieved Over The air update by ...
3
votes
2answers
58 views

Controlling a 0-20mA transmitter from an isolated PWM signal

I'm trying to generate a 0-20mA signal for controlling an industrial actuator (the position of a 3-way valve) from a Teensy 3.2 system. Preferably, the mA-output should be galvanically isolated from ...
0
votes
2answers
57 views

Delaying a TTL signal on the falling edge

I have a microcontroller (uC1) which outputs a TTL signal that simultaneously closes a switch on another microcontroller (uC2) AND controls a power MOSFET that cuts power to the entire system. I need ...