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.

3
votes
0answers
383 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
738 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
31 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
102 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
97 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
43 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
82 views

How to write or generate test cases(or vectors) for automated production testing of embedded electronics?

My question is following: Assuming I have developed some embedded controller(board) which has some tens of digital inputs and outputs. It has embedded firmware, which performs some logical functions. ...
2
votes
0answers
116 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
73 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 ...
2
votes
0answers
110 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
93 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
267 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
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
620 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
300 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
762 views

LIS302DL Accelerometer WHO_AM_I command

I've setup the behaviour of LIS302DL accelerometer IC using following code: ...
2
votes
0answers
485 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
488 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
251 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
115 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
40 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
84 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
31 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
27 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
180 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
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
0answers
44 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
22 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
78 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
76 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
53 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
136 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
71 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
56 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
99 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
189 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
56 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
59 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
53 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
644 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
197 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 ...
1
vote
0answers
135 views

QuadSPI indirect read mode with just data phase

I am trying to use the QuadSPI of STM32H743 as a classic SPI but using four lines. The point is that QuadSPI uses several phases (instrucction, direction, dummy, alternative, data) and I would like to ...
1
vote
0answers
69 views

CCP PWM Strange behavior - Brief failing

I am trying generate a PWM using CCP and change its frequency on the fly, going from 1.15KHz to 3.28kHz in 180ms. I am using: PIC: 16F887 Frequency: 4MHz (internal) Compiler: CCS PCM C ...
1
vote
0answers
38 views

Torque Sensor Project

My group and I have been working on a Torque Sensor project using the PIC18F2431 chip, and we managed to write the code for each individual aspect on MPLAB for the Quadrature, ADC and LCD. Our concern ...
1
vote
0answers
178 views

PIC18F26K80 Interfacing Issue with trinamic TMC5130 Stepper motor Driver

Trinamic TMC5130 is steeper motor driver IC(Datasheet). It has a SPI interfacing with host CPU. My Host controller is PIC18F26K80, an 8 bit PIC micro controller. TMC5130 accept 40 bit data over SPI ...
1
vote
0answers
319 views

interfacing tcs3200 color sensor with STM32f746zg

I want to interface TCS3200 color sensor with STM32f746ZG. Since the TCS3200 outputs a frequency based on the amount of light received, I need some way to count the number of pulses for different ...
1
vote
0answers
97 views

Interrupt priority in STM32F103RB

I got a doubt about an interrupt grouping in stm32f103. In programming manual of microcontroller I found 5 ways to configure it. But, while debugging, I found 8 ways. How is it possible to get ...
1
vote
0answers
299 views

Can UPDI Enabled AVRs be Programmed at 1.8V?

Microchip's new line of Tiny AVRs use the new UPDI programming interface. After looking at the datasheets for the ATtiny817/1617, the Atmel ICE interface document, and the internet, it's still ...