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.

3
votes
0answers
412 views

My First Circuit Diagram - How to improve it

I started taking more of an interest in micro-controllers and electronics last year, I started to design a circuit (which I hoped to have created as a custom PCB - Though I don't know how to go about ...
3
votes
0answers
82 views

Running Application on SIM808 GNSS module beside it's internal firmware

I'm trying to load my written program to SIM808 and the module will responsible to run my program beside it's internal firmware,does any one here with such experiences? SIMCOM has a document about ...
3
votes
0answers
809 views

How to disable USB mass-storage in STLink on Nucleo?

Is it possible to disable the USB Mass Storage option on the STLink hardware of the Nucleo board? I want to prevent mounting the device when I plug it into computers (while keeping the virtual com ...
2
votes
0answers
70 views

Embedded design with USB 3.1

I am trying to design a system that will transfer data between two storage devices on a PCB, preferably using USB 3.1 as speed is a major concern in this design. However, my understanding is that I ...
2
votes
0answers
35 views

Preventing inadvertent feeding of an external watchdog

Most internal watchdog timers found on microcontrollers contain mechanisms to prevent an inadvertent feed, usually requiring the write of a specific key-value to the feed register, although some ...
2
votes
0answers
135 views

BDM (Background Debug Mode) with Arduino

I'm trying to talk to a 68HC(9)12D60 (Motorola/Freescale/NXP) via BDM protocol. This chip is a 112-pin TQFP. On the PCB, there is a 6-pin header (which is not the standard BDM 2*3 pins header). The 6 ...
2
votes
0answers
101 views

Can a PC motherboard be used as an uber microcontroller?

I'm aware of the differences between a common microcontroller and a full blown motherboard from a computer server. But consider what happens when the PC memory testing tool memtest86 is run:- Here ...
2
votes
0answers
46 views

Audio Sampling for Reactive Lighting

I'm trying to work on a reactive lighting project and I'm confused about a couple topics when it comes to sampling audio. I want to be able to have RGB reactive lighting controlled by a ...
2
votes
0answers
120 views

DC motor speed control

I am trying to control the speed of motor using ADC value received using ATMega16, the system works well with 12V. But when I go for 24V the motor runs continuously, even when ADC value is 0. I have ...
2
votes
0answers
116 views

How to create a Program Log in Readable format

Im looking for a way in which the program can log specific errors/conditions(user-defined) as and when such conditions occur, and while the code is running I can give command to read it and interpret ...
2
votes
0answers
100 views

PIC32MX350F256 Errata , IO open Drain Issue

In one of our Product we used Microchip micro controller “ PIC32MX350F256L”. Attached image is small part of circuit showing uC interfacing with a SPI device. We are using bit banging communication ...
2
votes
0answers
281 views

Strange behaviour using PWM on CortexM3

I have a board with the ATSAM3S2BA-AU, which is a Cortex M3 uC. I need to use 2 PWM channel , here how I've done it : ...
2
votes
0answers
373 views

Is there an online resource for finding microcontroller with specific requirements?

When looking at digikey with the advanced search chrome extension (Link) on I noticed that some features of the microcontrollers are not recorded (such as MIPI, PCIe, UBC, etc). Is there a website ...
2
votes
0answers
5k views

How to get an ENC28J60 to work?

For starters: Yes I know I'm about to reinvent the wheel with the following task ahead. I want to create my own library for the ENC28J60 for an AVR (ATMEGA1284P). So I've been browsing the net for ...
2
votes
0answers
644 views

AVR: Usage of Force Output Compare bits

Currently I'm dealing with Tiny2313 for my project. Timer runs in CTC (WGM12) mode so OCR1A is used to set TOP of the timer. I want to use OCR1B to generate output signal. In documentation is ...
2
votes
0answers
301 views

Float calculations hangs on Kinetis K20 (arm-m4-no-fpu) when PWM interrupt is on

I will use this ARM to control Induction Motor with three-phase inverter. When the program encounters any float operations, like simple plus operation, the system hangs but the pause of debug works ...
2
votes
0answers
3k views

Constructing Excess 3 BCD to 7 segment decoder - circuit hints needed

I am currently trying to construct a circut for an Excess 3 BCD to 7 Segment decoder. Therefore the input range ranges from 0011 to 1100 in binary inclusive with the rest of the inputs being don't ...
2
votes
0answers
779 views

LIS302DL Accelerometer WHO_AM_I command

I've setup the behaviour of LIS302DL accelerometer IC using following code: ...
2
votes
0answers
486 views

Data logger using ARM 9 (Friendly ARM Mini 2440 kit)

I have been working on this kit for the past month and have simulated some basic programs using Keil (non os using just C). I was assigned a project of making a data logger which stores the data in ...
2
votes
0answers
489 views

clocking MSP430 UART from DCO

I'm designing a simple remote-controlled sensor. It's going to be connected with others and a master device using RS485. All it's going to be doing is transmitting the status of a few digital lines ...
2
votes
0answers
257 views

Are there any metastability issues with microcontroller SPI slave ports that can operate during sleep?

If one is using SPI to interface two microcontrollers that may spend much of their time sleeping, and if the SPI slave port is supposed to wake up its controller when data is received, that would ...
2
votes
0answers
116 views

Generate audio driver hi current from MCU & DAC

I am very very new to microcontroller use. I am looking for a way to generate 2 different VLF frequencies that alternate for set time periods that will be pushed into an audio amplifier device to ...
1
vote
0answers
66 views

PIC10F222 Failed to program device please help

Every time I try to program my hex file I get an error: The following memory area(s) will be programmed: program memory: start address = 0x0, end address = 0x3b configuration memory program memory ...
1
vote
0answers
33 views

Help required regarding Cypress 4200 coding

I am a newbie when it comes to Cypress chips. I am developing a capsense keypad. I recently started with CY8kit049. I can code into the chip on board. How can I code other PSOC 4200 chips too using ...
1
vote
0answers
103 views

STM32 SDMMC & SDIO - why max 1 SD card only?

I'm writing an SDMMC driver for my C++ RTOS for microcontrollers and there is one thing which really puzzles me, making it hard to decide about class hierarchy. In the Reference Manual for STM32F7 (...
1
vote
0answers
35 views

USB CDC device send response of first for second data

I'm working using atmel studio 7.0, the code which i'm using is USB Communication Device Class (CDC) for ATSAMD21. My application is to read the command from the host to the device and perform the ...
1
vote
0answers
73 views

Controlling Buck converter (XL4016) with microcontroller

Briefly the project I'm working on is made up of a blue pill, rotary encoder, acs712 30 amp current sensor and an OLED display. Everything is in functional state. The aim is to provide a stable ...
1
vote
0answers
119 views

WS2812b LEDs intermittently do not respond to data signal

I have wired up permanent holiday LEDs on the front of my home, using a 5V 60A power supply and several strips of WS2812b's (generic Neopixels), controlled by a Wemos D1 mini. The Wemos is powered ...
1
vote
0answers
45 views

Unexplained Data Enable Pin

Looking at This datasheet for the LSM9DS1TR 9-axis IMU, there is a pin labeled DEN_A/G with the description "Accelerometer and gyroscope data enable" on page 11. I can find no further explanation ...
1
vote
0answers
104 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 How to solve ...
1
vote
0answers
32 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 ...
1
vote
0answers
47 views

MPU6050 hangs on ESP32 when operated using a battery on custom board

We are facing a very peculiar problem. We are designing a board based on ESP32 with various peripherals like motor drivers, sensors etc. We are using GPIO 4,5 on the ESP32 as I2C lines and have hooked ...
1
vote
0answers
204 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
0answers
44 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
0answers
64 views

I2C stuck on waiting for 8 cycles on DSPIC33ev128

I am new to I2C communication and after reading a number of tutorials on the protocol I attempted to interface a QMC5883L (Chinese Honeywell HMC5883L) to a Microchip DSpic 33ev128gm002 microcontroller ...
1
vote
0answers
25 views

TIVA Injection Current

I want to understand how the GPIO pins of my TIVA uC will behave when the voltage is above Vcc or below GND. I assumed I could just Ctrl+F "injection current" in the datasheet and that would give me "...
1
vote
0answers
84 views

strange array values (C, psoc, usbuart)

I am still fairly new to programming, so I'm sorry in advance if my terminology/formatting isn't up to scratch. I am currently working on an element of a musical instrument that will allow me to ...
1
vote
0answers
17 views

What does PCTL32_PUB_SMCTL mean?

I am trying to decode some serial log messages from a monitor scaler board which isn't quite working correctly. The processor is a STDP9320-BB which looks to be running on a x186 architecture. Here's ...
1
vote
0answers
97 views

switching between two similar power sources - solar battery and cr2032

I'm trying to create a circuit powered by two alternative power sources. The first one is a Li-Po battery charged by a solar panel and the second one - standard 3v battery, ie. CR2032. The circuit ...
1
vote
0answers
62 views

ADXL343 data read

I am using a ADXL343 accelerometer in one of my designs and I am getting strange readings from the device. Just to be sure, I would like to confirm that I am formatting the data properly. (I get the ...
1
vote
0answers
144 views

Why more codes do not work with PIC microcontroller when RAM and ROM have free spaces

I code for reading EEPROM and edit those EEPROM data and work with those data. Normally I am coding something and upload to PIC and check that code. When I am code more than some point it is not ...
1
vote
0answers
89 views

Control variable external power supply with Arduino

I'm currently working on an air pollution controller project and I have a problem to control an external power supply to supply 5V, 1.5V or 0V to an MQ7 gas sensor. Using the direct PWM output to ...
1
vote
0answers
85 views

Write to File in Computer running IAR Workbench

I am currently writing and testing an embedded system in which I need to collect data from an accelerometer over a period of time. I already have functions that can read the data at a point in time ...
1
vote
0answers
110 views

Put the crystal on the bottom with thru-vias, or on the top with a blind via?

I'm using an STM32L155 in a very small (0.4 mm pitch) WLCSP package (6x9 array). At this scale there is no room for traces between the balls, so the design requires HDI and/or blind vias to fanout the ...
1
vote
0answers
211 views

how to control peltier element with microcontroller

I need a little help from experienced people. I want to control a Peltier element with a microcontroller, with PWM. May? The peltier element has the following parameters: Imax=8.3 A, Vmax=3.8V.Ok... ...
1
vote
0answers
58 views

Independently scaling the max/min readings of an analog sensor?

I'm currently working on a project that entails reading an analog signal with an AVR microcontroller and using it to control the brightness of some string LEDs. The signal is generated by a ...
1
vote
0answers
61 views

How to go about decoding baseband from RF?

I'm designing the avionics portion of an ADS-B transponder and have everything done except the one thing I just can't figure out is decoding and encoding the baseband signal. I'm kind of under the gun ...
1
vote
0answers
65 views

Piezoelectric transducer to bluetooth transmitter

I understand that it is common to use microcontroller such as arduino to read in sensor input from the piezoelectric transducer and convert the analog to digital data and send it to the bluetooth ...
1
vote
0answers
724 views

HC 05 bluetooth module not working with stm32

I'm trying to get a HC-05 bluetooth module working with stm32f103c8t6 module(blue pill). I used this usb to serial module to test each of the aforementioned boards and this Android app to connect to ...
1
vote
0answers
221 views

Samd21g18a Bootloader upload with ST link V2

I was wondering if anyone had any success with uploading a bootloader with an ST Link V2 to a Samd21 chip using OpenOCD or any relevant IDE and was willing to send me in the right direction. I have ...