Stack Exchange Network

Stack Exchange network consists of 175 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
3answers
103 views

How to define a microcontroller pin as open collector or open drain?

Source I have understood the fundamental theory of open collector and open drain configuration. But the problem is how to define/make a micro controller's pin as open drain? Can any pin of a micro ...
0
votes
2answers
52 views

USB EC vs PIC MCU [closed]

I'm trying to make a peripheral with an embedded USB hub, which will include USB-C 3.1. As I've been researching USB I've found that Microchip has a whole slew of embedded controllers dedicated to USB,...
0
votes
3answers
98 views

how to avoid brownout caused by a multimeter on esp32

I am using the VOLTCRAFT VC130 multimeter for measurement of current through my esp32. The microcontroller runs perfectly with two 1.5V batteries(~3V as read by multimeter in voltage mode). But when I ...
2
votes
0answers
54 views

What is the use of GPIO Locking mechanism? [closed]

I came across this on one of the STM32 uC's reference manual and I really have no idea about the use case of this feature. I might be having a very narrow approach because I feel that it doesn't have ...
0
votes
0answers
39 views

Passive (or very low power sensor) sensor to wirelessly receive wake signal

Context. I am using an ESP32 and a small circuit to control an electronic lock on my one of my exterior doors. It is powered by batteries. It has a door magnet sensor to detect when the door is open ...
0
votes
2answers
75 views

Analog Potentiometer Output to USB Serial [closed]

I‘m working on a project which has several switches and potentiometers that will be used to control parameters in software via (e.g.) MIDI and would like to know how to get the pots set up without ...
1
vote
3answers
66 views

digital current monitor/sensor for monitoring ~0.1 uA to mA current from a MCU and sensor [closed]

Hello I am in need of a current monitor/sensor like INA219 for monitoring current in the range of 0.1 uA to ~ mA. Kindly suggest a way to monitor current in such lower range. I have a microcontroller ...
0
votes
2answers
116 views

Software needed for ATMEL ATMEGA8A-PU microcontroller in Ubuntu 18.04? [duplicate]

A few days ago I discovered a ATMEL ATMEGA8A-PU microcontroller and I wanted to write code on it . But I don't know what software to use in Ubuntu 18.04 for the microcontroller. Can I use the Arduino ...
0
votes
1answer
73 views

Driving MOSFET from MCU with BJT

1- What is the purpose of D1 in this circuit? 2- Can i connect the PWM output of MCU to Vi through a diode, to protect the MCU from 12V supply of the drive circuit? (e.g. if Vi got accidentally ...
0
votes
1answer
105 views

Library for driving P10 LED Display with ESP32

I am trying to make a 10 digit cricket scoreboard for which, I want to use P10 LED modules as digits. My objective is to change the score from Mobile Phone via BLE. ESP32 microcontroller suits best ...
2
votes
1answer
437 views

What's missing in this development board? [closed]

I came across an old development board with an ATMEL ATMEGA8A-PU . I am not an expert but I want to use this board. But something is missing in this board as seen in this photo:
-2
votes
1answer
45 views

74HC595 Inconsistent Outputs [closed]

I'm fairly new to electrical circuitry, and while trying to test out and use a 74HC595 Shift register I ran into some issues. I'm not using a micro-controller, just push buttons to control to the ...
0
votes
1answer
40 views

How to measure small AC mains currents from a microcontroller?

I'd like to build a battery charger control circuit using an Arudino, a relay module, and a current sensor. I'd use the relay to turn on AC power to a "smart charger" for one or more sets of lithium ...
0
votes
2answers
79 views

PIC interface with Relay

I am interfacing a PIC16F877 with a 5V DC relay. I hooked up the relay to the same 5v that power up my PIC with the appropriate transistor, diode, voltage to power up an LED to NC and LED to NO, I ...
0
votes
2answers
79 views

1M Ohm Thermistor Circuit voltage drops not adding up

The circuit is wired as follows ...
0
votes
0answers
47 views

Pulse skip modulation vs Phase cutting for AC inductive loads?

What is preferred and safe mode for controlling power to an Inductive AC load when driven by a Triac? I am using a microcontroller with zero crossing optocoupler to drive the control signal and the ...
0
votes
0answers
44 views

Can i use any QSPI device on SPI bus interface

I need to share one QSPI device between one controller and Processor. Processor does support QSPI i/F but controller device only have SPI interface. SO is there a possible way i can share the same ...
0
votes
1answer
51 views

GP4 on a PIC12F683 microcontroller not functioning correctly

I am attempting to make a project wherein I have some LED's on pins GP2 and GP4 of a Microchip PIC12F683 microcontroller flashing in a simple pattern. The problem is that I cannot write to GP4 ...
0
votes
0answers
47 views

Attiny 841 dev board schematic review

I am about to send a custom Attiny841 dev board (aimed at Optiboot) to production and I thought, since I never used netiher this microcontroller nor the USB-UART converter before, I'd come here and ...
0
votes
1answer
49 views

emmc - mcu supports 4.2/4.3 but device is 5.1

I am using a Kinetis mcu (K64) from Freescale now NXP and interface with a SD card. I am looking to replace the SD card with a emmc (8 GB) from Sandisk (WD - Western Digital). Can't get an answer ...
-1
votes
1answer
58 views

How does G-code determine what pins I used to set CNC motors at? [closed]

I want to develop a simple C# application to control a self-made CNC machine using Arduino Uno. I want to use G-code to accomplish that. Now what I don't understand is how G-code is interpreted in ...
0
votes
1answer
47 views

How to control a lightbar with 20 individual modules? [closed]

The TL;DR version of my question is, how do you control 20 pieces of 12V/1A outputs in the most reliable, compact and cost efficient way, with something programmable? The long version: I got a ...
0
votes
1answer
61 views

speed control PWM, DC motor, L298n with LPCxpresso 1549

this is my first post and I'm just asking a little bit about motor control in a team project, where I'm member of. This is a bit of a "not so serious" project so probably the solar panel system ...
0
votes
1answer
53 views

Can tcs3200 be interfaced with msp430? If yes then how?

I am using tcs3200 in my protean I am confused about which controller can I use other then arduino. Kindly help me in this.
3
votes
1answer
71 views

SPI clocking in extra word - STM32F4

I am attempting to interface with the TLE5012B (datasheet here) using SPI. The master in this case is a Nucleo F411RE, which uses an STM32F4 processor. The sensor communicates in 16-bit words, so I ...
0
votes
2answers
77 views

PIC simple LED ON not working

I have been trying really hard to just get a PIC to turn on an LED, i know its super simple but for some reason i just cant figure out, its not turning ON! I am using an old fashion PIC16F877, I am ...
0
votes
2answers
61 views

Can I use MCU's internal oscillator when communicating with GPS and cellular modules?

Can I use MCU's internal oscillator when communicating with GPS and cellular modules? I want to avoid connecting external crystals for the MCU since they generate noise, extra components, extra costs, ...
0
votes
2answers
114 views

LCD Backlight Control Circuit

I'm trying to control the back-light of a TC1602A-09T 16X2 Character LCD by using an output pin on a Teensy 3.2 microcontroller. This is the circuit I have at the moment: The LED- pin would be ...
0
votes
0answers
65 views

Receiving data from SIM808

I am trying to use SIM808 module but I have no response even after sending only "AT". I am using 5V/2.5A AC/DC adapter. The board (ecb-v3.2) is rather connected well because two diodes are on all the ...
1
vote
1answer
109 views

MAX7221 not always powering on

I have a MAX7221 SPI 7-seg. LED driver linked to an AVR168P microcontroller. Sometimes when powering on, everything works as expected. Other times the display blanks and remains blank. Other times ...
0
votes
0answers
23 views

Can a PlayFusion Fusion core be repurposed into a general purpose microcontroller?

The specs for this widget look pretty good, and you can find them for a few dollars on Amazon. I found pics of the guts on an FCC id webpage, but I can't see the chip number. I just bought one of ...
0
votes
1answer
25 views

EFM8 Sleepy Bee USB connection

I have a EFM8 Sleepy Bee chip (EFM8SB20F32G-B-QFP32 specifically). I would like to connect USB for programing etc. and I assume I connect the Data+ to pin 7(P2.7 / C2D) and Data- to pin 6(RSTb / C2CK)...
1
vote
1answer
70 views

AVR SPI slave first byte problem

I have written a simple SPI slave on an ATMEGA328PB. It mostly works, however, I can't seem to get the first byte to be what I want. The difference between the first, second, and all other attempts ...
1
vote
2answers
69 views

Image memory on micro controller [closed]

I am trying to specify a microcontroller for a very simple task. All it does is show an image at boot up (which will most likely be black and white). The display itself is 240*240 and 12bit color ...
0
votes
1answer
153 views

Small microcontroller with USB host peripheral [closed]

I'm trying to find microcontroller with low pin coutn that has USB host capabilities. I know this can be done with big PIC24 or PIC33 microcontrollers, but I wonder if there are others chips that ...
0
votes
0answers
24 views

What is 1315 HUL 5CX3 99063 that written on IC means in automated blood pressure monitor?

I am currently working on automated blood pressure monitor project and using Omron HEM-7111 as a standard for comparison with my built instruments. But there is an IC in HEM-7111 board that until now ...
0
votes
1answer
67 views

From which circuit, I will be able to measure high frequency signal (in MHz) by using micro controller with 200 Ksps ADC?

I want to measure 20 MHz signal by using microcontroller with 12 bit ADC And 200 Ksps sampling rate. Which circuit should I design in order to measure it accurately?
1
vote
4answers
127 views

Multi master SPI mode? Or any intelligent way to switch only time between two masters?

I have an LCD display which is powered from a pretty powerful micro, with GPU and all sorts of stuff. However, it turns out that it will take it over 5 seconds to boot the core. From a user experience ...
0
votes
0answers
19 views

PIC32 mplab interrupt harmony

I am trying to use interrupt for PIC32MZ2048ECH100 microcontroller mounted on explorer 16. ...
-1
votes
1answer
58 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 ...
1
vote
1answer
75 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
57 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
38 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
15 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-...
1
vote
1answer
55 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
46 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. ...
2
votes
1answer
420 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
79 views

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

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
1answer
64 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
83 views

Easiest way to control a led remotely [closed]

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 (...