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
1answer
44 views

AUX input or microcontroller in a musical tesla coil?

Alright so I am making a musical tesla coil. I have seen some online tutorials and what I noticed is that some people are giving the audio input using a microcontroller and programming it to produce ...
0
votes
1answer
53 views

Micro controller clock speed requirement for delay measurement

I am trying to measure the absolute time between two 1Hz clocks (GPS PPS events) to within 50 nanoseconds. I do not necessarily care which clock occurs first, I am only looking for the delta T between ...
0
votes
1answer
29 views

Proteus simulation problem (beginner) - “Power rails 'VCC/VDD' and 'GND' are interconnected in net GND” errors

I'm a beginner to microcontroller programming and the Proteus simulator. I'm following this "PIC MicroController Volume Adjuster Program(Proteus 8 Stimulation)" Instructables project. When I pressed ...
0
votes
1answer
28 views

TMOD value for timer 1 in mode 0 in 8051 microcontroller

What will be result of this statement: MOV TMOD,#00H Will it set it to timer 0 in mode 0 or to timer 1 in mode 0? Other statements like: ...
0
votes
0answers
18 views

Issue with programming Atmega32u4 (lfuse memory not accessible using FLIP)

From my last question, I've managed to connect my Atmega32u4 to my computer. Now, when attempted to initialise the bootloader using avrdude, I get the following error message: ...
0
votes
2answers
85 views

Reverse engineering SREC firmware

I have a firmware from a long discontinued product that I would like to improve on. The firmware is in a .mot file format (SREC from my research) and is uploaded using a tool called M16C asynchronous ...
2
votes
2answers
75 views

How can I program an Atmega32u4 over USB with this schematic?

This is my first time trying to program an Atmega32u4. I made a PCB with the following schematic: Now I've soldered all the parts onto the PCB, and I've plugged a micro usb cable from my computer ...
1
vote
4answers
144 views

Using enameled copper wire as a capacitor for measuring water level in a tank?

I'm trying to make a capacitive water level sensor using two enameled copper wires used in transformers. I've used sanitary silicone to insulate the bottoms of the wires. (Coating is insulated by ...
1
vote
2answers
135 views

How to read this Microcontroller table? [closed]

I am a beginner in Microcontroller electronics. MPC5606S MCU Datasheet I want to understand how to read the table 8 - Port Pin Summary. Can you please explain clearly the each word present in the ...
0
votes
1answer
40 views

Avrisp mkii not recognizing atmega 328p chips

I have three different sets of chips, the attiny85, 328p, 328p-au. Initially, the avrisp mkii, was programming the atmega328p, however now it is not recognizing this chip (i.e. 328p) or the 328p-au. ...
1
vote
2answers
84 views

Analog Isolation Question

There appears to be several options out there when it comes to isolating analog signals. This topic has been addressed on this website in a few forums as well. The problem for someone such as myself....
-5
votes
1answer
38 views

I need a conditioning circuit for audio signal for input of microcontroller 3Vdd power supply and voltage reference? [closed]

what is the Best circuit to amplify and condition a audio signal from a microphone to microcontroller analog input ?
1
vote
3answers
88 views

Circular buffer in flash

I have been facing following problem. I have implemented a datalogger i.e. software running on a MCU which creates periodic snapshots of a system state (values of some quantities of the system). ...
0
votes
1answer
38 views

RETLW 0 and RETURN command on PIC10F222 microcontroller

When I am building a code in MPLAB X IDE v5.15 I get an Warning "Substituting RETLW 0 for RETURN pseudo-op". As I have researched the PIC10 series don't have return command so it changes to RETLW 0. ...
0
votes
1answer
122 views

Developing an embedded system; from arduino to microcontroller?

Can I develop an embedded system; starting with prototyping by using an arduino board. Then extract the hex code that I verified on the arduino board and load it on to a microcontroller. (Of course ...
0
votes
2answers
52 views

Improve Brightness in LED Multiplex

I’m doing a 16 rows & 48 column LED matrix design. The attachment shows only one row & some columns. I’m scanning rows @ 1/16th rate. Designed for 4mA average current to the LEDs. I’m doing a ...
0
votes
2answers
52 views

Multiple inputs for driving a reset (RST) pin

I have an active high reset (RST) pin that is connected to a push-pull output. I am trying to connect another input to this RST pin, but this input is unable to drive the RST line high. Is this not ...
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 ...
-2
votes
0answers
42 views

How to control 12v relay using ULN2803 and esp32

I am connecting 8 relay to ULN2803 IC and controlling it using 3.3V input voltage. The problem is that when I am switching it using 3.3 it affecting on my ESP32 operation. All the interrupts get ...
0
votes
0answers
23 views

LiPo-management and alarm-clock sharing on same MCU

I am working on a wake-up light alarm clock project using a small 3.7V LiPo battery (5V USB charger). I am considering using a microcontroller to do the alarm clock function rather than a dedicated ...
0
votes
1answer
43 views

Interchangeability of SWD programmers

I am a newbie when it comes to Cypress cortex M0 and ARM chips in general. The chip I am using supports SWD. I only know the basic of SWD like IO pins required for it. Does ARM support ...
0
votes
2answers
60 views

PIC12F675 micro controller programming

I want to use PIC12F675 to control a relay such that when a switch is pressed, it should generate an output signal which should be ON for 2 seconds and then OFF for 15 seconds. This should continue ...
1
vote
1answer
33 views

What are ADC channel “map,” “max,” and “amount” used for on a Microchip ATSAML21 ARM MCU?

I'm working with a Microchip ATSAML21J18B ARM microcontroller and learning how to set up an ADC input. Coming from the AVR world, things are rather more complicated. The ADC features (datasheet pg ...
0
votes
0answers
57 views

Microcontroller resets with motor driver (L293D)

I am making a simple robot with 2 BO motors driven by L293D on ATmega328P (took out from Arduino Uno). The robot when tested on Uno works fine. But when I put it on the board that I have designed (as ...
1
vote
2answers
55 views

Analog signal exchange between microcontroller and PLC

Overview I need to create an analog voltage of 0V-24V for the PLC ( s7-1200) with a microcontroller with operating voltage 5V. Approach I've been doing this research since yesterday. I'll share ...
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 ...
0
votes
0answers
36 views

Can we store hex data through UART into flash and RUN it from that particular location

I am trying to store my hex file in another sector of the flash memory i.e (0x00050000) I want to store a hex file at different sector of the flash and to change the execution point to that address ...
0
votes
0answers
32 views

How to Send s.bus signal from an arduino

i cant seam to find much for what i want on google. Im building a custom control panel for one of our wireless cameras, i can control it via S.BUS. just wondering if there was a way i can send an s....
4
votes
1answer
619 views

STM32 PWM problem

Using a STM32F407 board. I want to generate a PWM signal. I have the following function: ...
2
votes
2answers
81 views

Trouble getting I2C working on STM32 (stm32f103c8t6)

I'm starting out with I2C. I have a development board with stm32f103c8t6 to which I have connected GY-68 board with BMP180 barometric pressure sensor. Documentation of BMP180 describes Chip-id ...
2
votes
4answers
112 views

How can we determine memory usage of a microcontroller

How can we determine how much memory is being used, or will be used by firmware in a microcontroller? What tools can support this? Generally we don't use dynamic memory in embedded systems, but how ...
-3
votes
1answer
65 views

How to write STM32F4 OTP Area

I am reading the reference manual page 75 that shows the flash memory organization of STM32F4 MCUs. There is an OTP area of 528 Bytes in it as shown in the image: Is it possible to write on this OTP ...
0
votes
1answer
54 views

Nautical map model navigation lights

I would like to create navigation light sequences on old admiralty map of my local area. There are lighthouses and channel markers in area with mix of flashing and times. The single flashes I can use ...
0
votes
1answer
51 views

PIC MCU and LCD display 16x2 - strange behavior

I have a LCD display 16x2 connected to a PIC32MX470F512L. On PIC32 I configure all the 6 pins used to interface with the LCD as open drain outputs on 5V tolerant pins, I have 4.7K pull-up on each line ...
0
votes
1answer
24 views

Charge Measurement for Piezoelectric Sensor

I want to measure the charge displaced by a force acting on a piezoelectric sensor. The problem is I don't know the sensor so I have no idea how big the current generated by the sensor may be nor what ...
1
vote
2answers
163 views

How to analyze Microcontroller input-logic-signal without ADC?

I have a signal which is fed to one of the digital inputs of a microcontroller (PIC16F18326). The signal is shown in the image-1 below. This is during the normal operation of the circuit, that means ...
0
votes
1answer
97 views

Logic Analysis of a 8 bit mcu [closed]

I would like to sample the logic on the pins out out of a toy robot's processor and the MCU is an 8 bit processor that operates a max clock speed of 5 Mhz. Does anyone have any recommendations on how ...
0
votes
0answers
49 views

STM32CubeProg vs STLINK Utility

There are 2 software tools provided by ST to flash their STM32 MCUs namely STM32CubeProg and STLINK Utility STM32CubeProg Page says: STM32CubeProgrammer (STM32CubeProg) is an all-in-one multi-OS ...
0
votes
1answer
45 views

ST-LINK and PA13,14 Pins on STM32F407

If I use PA13,14 pins for flashing my MCU via ST-LINK programmer then can I also use these pins as GPIO in the same circuit? Will that not disturb the ST-Link if some analog or digital circuit is ...
-1
votes
0answers
36 views

STM32F407 Selectable External or Internal Oscillator

I wonder if its possible to switch between external and internal oscillators at runtime? Can I do that configuration in CubeMX? The idea in to put a jumper on a GPIO pin to do the selection at runtime....
0
votes
1answer
35 views

Minimal circuit to flash STM32F4 using STLINK

I wonder if I need to put some circuit between STLINK and STM32F4 MCU to flash it or does it simply require to connect the wires 1:1 directly? I cannot find it in the datasheet.
5
votes
3answers
1k views

Why isn't there any EEPROM in STM32F4 MCUs? [closed]

Why isn't there any EEPROM in the STM32F4 series MCUs? Mostly I have Microchip MCUs and they have EEPROM available in them, but I just found out that it is not available in the STM32F4 MCUs... And it ...
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 ...
0
votes
2answers
105 views

RS485 vs RS232 similarity vs differences

I have used UART RS232 communication between MCUs extensively. Now I need to interface my STM32F407 MCU over RS485 bus with with devices. I have understood few things about RS485 but not-clear about ...
0
votes
2answers
46 views

How to operate 1602 LCD on 3.3V [closed]

I wonder if its possible to run a common 16x2 LCD with 3.3v power supply. Its datasheet shows supply voltage = 5V. Are there any 3.3V variants of 16x2 LCD modules?
0
votes
3answers
140 views

PIC16f88 not debugging

Disclaimer, i am more or a hardware designer and not so much a coder, i can code but i'm not the most proficient at it. I have a project I'm working on that has a portion of the code that appears to ...
1
vote
2answers
104 views

How to calculate bus load of CAN bus?

I have a few questions regarding CAN bus load Is there any derived equation/formula to calculate the bus load? I need transmit below frames(Assume Standard frame format) at baud rate 500 kbps on the ...
0
votes
0answers
53 views

LPC1768 internal RTC time register is not incrementing

Value is read right,but time is not incrementing. ...
4
votes
3answers
1k views

Does ATtiny RESET pin need a resistor?

I need to make sure that my ATtiny does not reset unexpectedly. To do that, I am planning on connecting the RESET pin directly to VCC. However, I have heard some places that you need a 10k resistor ...
-3
votes
0answers
39 views

ADC to PWM problem [duplicate]

everyone, I hope you are all are having a good time... I am trying to write the code that applies PWM on leds according to the reading of a POTENTIOMETER, I faced a problem that the leds' lights do ...