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.

0
votes
1answer
72 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 ...
2
votes
2answers
149 views

Controlling LP Gas burner with microcontroller: flame sensor ideas needed

I'm building a system using a microcontroller (like an Arduino maybe) to automatically control the temperature of a kettle of liquid being heated by an LP gas burner with a PID algorithm to turn the ...
0
votes
1answer
172 views

STM32 F4 max GPIO toggle frequency [duplicate]

I just started using the STM32 F401VC Discovery Evaluation board and I'm trying to get the maximum GPIO toggling frequency without assambler. So my tought process is following: The code I was ...
6
votes
3answers
1k views

Difference between internal and external oscillator for a microcontroller?

I am a beginner with respect to microcontrollers, so I just want to ask is there two option for choosing the frequency of the microcontroller: to be internal or external? If there is internal ...
1
vote
3answers
62 views

Maximum CPU Frequency of PIC24FJ256GA705 That I Can Get with 8MHz Crystal

I'm used to run PIC24 device family (e.g PIC24FJ256GB) at CPU freq 32MHz using the PLL. Recently I got to use PIC24FJ256GA705 on my new project and when I read the datasheet, I found out that the PLL ...
0
votes
1answer
60 views

Output impedance for microcontroller minimum 5kOhm

So I'm looking into the stm32f469 series of chips (datasheet here), and see if I can play good audio with one with the build in DAC. To my knowledge, the built-in ones on chips usually aren't that ...
0
votes
1answer
56 views

How do I learn-by-practicing digital circuits - MIPS R2000 (or similar) processor or board? [closed]

I already do have a book which I am studying for a university course. I've searched online to buy a development kit for MIPS R2000 (or similar) and have been suggested the MIPS CI20. Don't know if or ...
1
vote
1answer
47 views

Doing logical operations on Port PINS in Assembly

I'm trying to do those following the operations on PINS, but not sure how to do the not operation on a port, do xor ..etc? would someone show me an excrept psesuod code ?
0
votes
1answer
61 views

i2c bus sniffing and spoofing

Some Background: I am working on an embedded c project for a samd21j18a MCU. The MCU communicates with 2 crypto eeproms on the i2c bus. All the data is encrypted with AES in CCM and additional ...
1
vote
2answers
76 views

Creating a vibration device based on bass in audio [closed]

First, I'll admit that I haven't done any real electrical engineering in years so I'm quite rusty. But here's a fun project to contemplate: I'm building a device that "rumbles" with the bass in the ...
0
votes
1answer
45 views

Redundant system question

so in short. I am building a redundant system of multiple atmega micro controllers. The way it works is that they are all connected to a single bar, when the system is booted, the first micro ...
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
2answers
161 views

Multiplexing LEDs

I’m doing a 16X32 LED matrix system. Controls via a PIC micro controller. The whole circuit is operating from a 5V source. For easy understand I have drawn a single Row/column how my hardware is ...
0
votes
1answer
121 views

What are IC made of?

Is that black material made of silicon? What about the red, green, yellow material? What about the blue material?
0
votes
2answers
242 views

Is this CANbus wiring reasonable?

above is the wiring of my CANbus. D1 is where the sensor values are coming from the robot. D4 is the radio receiver for the remote controller of the robot. The problem that I have is, the CANbus 1 is ...
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 "...
0
votes
2answers
120 views

How to drive a 1MHz Ultrasound-TD1000KA

I want to measure the Sediment of water. So I chose a 1MHz Ultrasonic Transducer sensor with the ability to work underwater and also can recognize the sediment under water. The output of the sensor ...
4
votes
1answer
107 views

Using a zener diode and a bjt to regulate voltage received by a controller

Okay, here goes… I’m trying to create a circuit that will prevent low conductance (from rain water exposure) which occasionally shorts a particular switch, from triggering a controller input that the ...
1
vote
1answer
48 views

Accurate localization of a remote vehicle

I've been working on a project where I'm supposed to design a vehicle that carries antennas to perform SAR (Synthetic-aperture radar) imaging. This vehicle has 3 wheels which 2 of them steered by a DC ...
1
vote
2answers
76 views

Why there is a voltage drop while connect multiple 12 V or 24 V solenoid valve with a 24 V DC adapter

I am doing a water plant project. I need to control multiple solenoid valves with my micro controller circuit using relays. When I connect more than 4 solenoid valves (12 V) with a 15 V adapter it ...
-1
votes
1answer
47 views

CANopen CANmessage blocking

Is there a trick to block CAN messages from a specific device? I have to block some of CAN messages of my remote controller so that I can send my CAN messages via my Laptop. Otherwise my messages gets ...
0
votes
1answer
58 views

Slow clock speed with Atmega328P AVR microcontroller on breadboard

I have a small breadboard with an Atmega328p 28 pin microcontroller with a 16 MHz crystal and two 20 pF capacitors on it (similar to this demo: https://www.arduino.cc/en/Tutorial/ArduinoToBreadboard). ...
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
1answer
71 views

AVR - strange communication between ATmega8A and bluetooth module

I'm using ATmega8A-PU AVR microcontroller, and HC-05 bluetooth module on a breadboard. What I'm doing here, is to connect to BT module from my mobile phone and toggle the LED state by sending ...
-1
votes
1answer
87 views

How to implement coulomb counter method for battery capacity using any micro-controller? [closed]

I trying to implement coulomb counter method in any micro-controller. suggest me, any circuit ? Or Any give idea how to implement?
0
votes
0answers
48 views

AT89S52 microcontroller only starts when extra 22uF capacitor touches board

I made simple code for the microcontroller that prints a simple message on the LCD once the microcontroller starts. I arranged my board so that the pull-up resistors and reset resistor (100K) and ...
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 ...
2
votes
1answer
144 views

CAN bus reverse-engineering

I am struggling with CAN bus reverse-engineering. It might be a silly question, but it irritates me. These are traffics that arise from pressing buttons A and B which is lifting up the 1. Axis of the ...
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 ...
0
votes
1answer
45 views

In ADCs, what is the number of conversions per sequence?

I'm dealing with a microcontroller's Analog to Digital Converter (ATD_10B8C) that has a control register who's bit values determine the "number of conversions per sequence". What exactly does this ...
-4
votes
2answers
130 views

how to excecute of code written for one microcontroller on another micro controller? [closed]

i have written code for NXP LPC802 micro controller but now i want to test it on lpc824 micro controller. is it possible to run the code. if yes what are the changes need to do. please suggest me ...
4
votes
1answer
373 views

Frequency response of MCU decoupling capacitor

I'm designing a board that contains an MCU and an 8 MHz crystal. I was planning on keeping the MCU power/ground localized and isolated from the main power supply power/ground except at a single point. ...
0
votes
2answers
57 views

Map file analysis

I have been writing a software for an embedded controller in C++. I have noticed that I have some problems with ram memory (I have probably run out of the available memory). I have decided to inspect ...
1
vote
1answer
25 views

Data Shift problem for Q6 & Q7 (starting from Q0) while using the 4094 I.C with a Micro-controller

Currently I am using a PIC micro-controller with a 4094 IC but when I WANT to shift data to Q6 or Q7 it shifts it on Q0 & Q1 and when I shift it to Q0 & Q1 it turns on Q6 & Q7. So I do not ...
0
votes
4answers
168 views

CANopen transmission to multiple IDs at the same time

I am asking myself, whether it is possible that I simultaneously send multiple signals to my robot via CANopen. edit : I am trying to build a CANopen connection with my robot. I can turn the motor ...
0
votes
2answers
61 views

Not getting acknowledgement from MPU 9250 I2C slave using STM32F401RE

I am using an STM32F401RE development board to communicate over I2C to an MPU9250 based breakout board sensor. So far I have set the start condition, and sent the slave address/write bit to the device,...
2
votes
1answer
96 views

Switching a 3v motor with a MOSFET using a 3.3v signal

****I have knowledge of programming but VERY little experience with electronics.**** I'm attempting to switch a MOSFET using a 3.3v signal from an Adafruit MCU module (Adafruit Module here). The ...
0
votes
2answers
151 views

Using a microcontroller to produce a shock

I am currently working on a project for school and we are creating a mock pavlock although much simpler. We basically want a microcontroller to be able to keep time and shock at specific times. We ...
5
votes
7answers
3k views

Sub microsecond jitter accuracy - what to use?

I have four TTL level signals that must change state in a particular order. From the “go” signal on one of the lines, all toggling of the other lines will be done within 100 us. The other three ...
0
votes
3answers
46 views

Current flow from pull-up resistor in MCU

According to the circuit diagram here, when the switch is on, the current directly flows to the ground, but shouldn’t it split at the junction and some of it go to the MCU, as well as the ground, if ...
1
vote
2answers
55 views

Smaller apa106 led, more smd style [closed]

This is going to sound like a childish question as it is not a very long one, but is there anything like a apa106 led or at least follows the same protocol coding wise that is more smd style and ...
0
votes
3answers
111 views

Remove 0 Ohm resistor (solder bridge jumper)

I have an STM Nucleo-64 board that I want to power from my own 3v3 rail. To do so you must remove two solder bridges (SB2 and SB12 in the photos), both made with what appear to be size 805, \$0\Omega\$...
2
votes
1answer
64 views

UART stop bit baud timing error

On PIC micro controller UART, Baud rate was set to 38400 (No parity,, 8 data bits), ...
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 ...
0
votes
1answer
101 views

Why dust sensor is throwing different values on change of usb cable? [closed]

I have a dust sensor(particulate matter sensor) from Honeywell and which is connected to Vin(5v) of ESP32 dev board. The problem I am facing is sensor throwing ...
4
votes
3answers
965 views

Using a transistor as a switch between RX and TX

I have a microcontroller(arduino) connected via its serial output(RX/TX) to a bluetooth module. i want to be able to program the microcontroller when the two are still connected but unless i ...
0
votes
1answer
33 views

Using a PCA9306 voltage-leveler with an MCU and a 5.5v arduino sensor

This is what I'm trying to do: I have an MSP430G2553 chip and I'd like to write an ADC program to translate some input from an arduino sensor (I have a few analog sensors that use 5.5v - some work ...
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 ...
0
votes
2answers
84 views

LED Blink is not working but code can program with PIC18F4550 and MikroC

I tried to code LED on-off program for test PIC18F4550 microcontroller. The code can program to IC using Pikkit 2 but a program is not working. I code by using MikroC Pro for Pic 6.6.1. I am using ...
5
votes
2answers
992 views

Does a microcontroller fetch instructions in blocks?

It seems that the flash memory on most microcontrollers that stores the assembly code is NAND flash, which is only accessible on a per-block basis. Does the CPU has to fetch an entire block to execute ...