Questions tagged [timer]

Circuit to generate a signal a specific time after a trigger event. The timing can be defined by an RC time constant, or by clock pulses from an oscillator.

Filter by
Sorted by
Tagged with
0 votes
0 answers
37 views

Can I reprogram the XY-BJ Timer Relay Module?

I have a XY-BJ Timer Module and I would like to know if that's even possible to access its source code and reprogram it to my own desired delays. What application do I need to install to access/modify ...
user avatar
0 votes
1 answer
28 views

STM32H7 DMA not transferring correct values into TIM15 CCR1 register, why?

I feel like I am running out of options as to why this is occurring as the RM isn't that accurate to setup DMA + PWM using Timers. The goal is to use TIM15 as a PWM generator running @ 800kHz running ...
user avatar
  • 1,337
2 votes
3 answers
171 views

Arduino Uno prescaler, not measuring what I expected

I'm using the following code to set a pin high or low (each cycle.) I measure that pin with a logic analyzer. I use an Arduino Uno with 16MHz frequency. I set a timer interrupt with a prescaler of 64, ...
user avatar
  • 206
-1 votes
0 answers
19 views

Timer fade LED lamp [duplicate]

I have installed a 50 W LED lamp next to my bed and plugged it into a timer, so it works as a light supplement to my alarmclock. I love the intensity of the light, but I would like to have it fade ...
user avatar
  • 3
-2 votes
1 answer
37 views

Dimmer that takes LED from 0 to 50 W over a defined time-period [closed]

I have installed a 50 W LED lamp next to my bed and plugged it into a timer, so it works as a light supplement to my alarmclock. I love the intensity of the light, but I would like to have it fade ...
user avatar
  • 3
-2 votes
1 answer
29 views

Combined timer/RTCC [closed]

I have been using a Maxim DS3231 as a RTCC with its alarms used to "wake up" certain hardware. Now I need to wake up the hardware periodically, say every hour, so I actually need a timer (...
user avatar
  • 1
2 votes
1 answer
112 views

What does LSB mean in PWM?

I have this PWM exam preparation question in Computer Engineering where it says "What is one V_LSB?". However we've discussed nothing about LSB in the PWM section. What does it means?
user avatar
1 vote
1 answer
43 views

An over- and under-voltage protection system

How can the block diagram below operate as an over and under voltage protection system? I thought it will work as follows: A step-down transformer is used to bring down the alternating current supply ...
user avatar
0 votes
1 answer
96 views

How to create 4-bit asynchronous counter?

I am new to Multimedia Logic and am trying to create a 4-bit asynchronous counter. I did something like this, but it doesn't work. I'm not sure if everything is properly connected and if I was using a ...
user avatar
-2 votes
2 answers
82 views

How to design an analog circuit that turns on a dripping irrigation systems? [closed]

...
user avatar
2 votes
2 answers
47 views

Low power way to extend a short pulse [closed]

How would I extend a short active high digital pulse (around 1 us) to about a couple of ms with few uA of current consumption? The exact time of extension isn't important. I am working in the 3.3V ...
user avatar
  • 310
0 votes
1 answer
69 views

TLC555 Timer very Low or No Output

I am trying to simulate TLC555. Simulation results don't show any issue except that the out is almost negligible.
user avatar
0 votes
0 answers
20 views

Determine BRK Input State or Generating Interrupt on BRK in STM32G0 Timer 1 (STMCUBE IDE, HAL)

I am using an external BRK input for TIM1. I want to count how many BRK events occurred. I have tried callbacks unsuccessfully. Maybe I am not able to understand how to apply them. Tried reading HAL ...
user avatar
3 votes
3 answers
161 views

"Idle State" Not Respected after PWM on STM32

I am playing a tune on a speaker on an STM32G0B1 using PWM, however, sometimes after playing a tune the speaker continues to be driven despite Stop being called and ...
user avatar
0 votes
1 answer
62 views

Watchdog timer circuit without continual re-trigger

The STWD100 is a watchdog timer, if a pulse from a microprocessor isn't received in X amount of time, it pulls it's output low. This is useful to detect if a processor has experienced an upset (...
user avatar
  • 63.7k
0 votes
1 answer
72 views

Minimum time pulse for the NE555

I want to know if the pulse period of the monostable multivibrator using NE555 can go down to around 200ns. I don't have necessary equipment to test it and I'm afraid the timer can't work with that ...
user avatar
3 votes
5 answers
619 views

What is the functional difference between 4049 and 4069 hex inverters? (The 40106 IC's too)

For simple R/C oscillator circuits driving LED's - I would like to run 6 independent frequencies with one 4069 IC for random flashing "super computer" display with around 450 LED's in total. ...
user avatar
-1 votes
2 answers
172 views

STM32: How can i poll a GPIO pin until 100ms using timer interrupt?

I am currently use nucleo-board and I try to poll a pin until 100ms. I activated timer interrupt. So basically if pin is not high (digital '1') until 100ms the function must returns false. I share my ...
user avatar
3 votes
1 answer
76 views

Toggle Circuit with Pause

I am working to replicate a timer circuit for an oxygen concentrator. It has 2 relays, each needs to go on for 4 seconds, off for 6, with a 1 second pause between each, picture isn't to scale, but ...
user avatar
  • 179
2 votes
2 answers
103 views

Is it possible to send data through I2C with TIM without CPU interrupt and just DMA Interrupt

Because I've seen HAL_TIM_Base_DMA_START() in the STM32F7 HAL timer library, I though maybe it is possible to, for example, call HAL_TIM_Base_DMA_START() and timer continually requesting DMA to ...
user avatar
0 votes
2 answers
164 views

How to 'retrigger' 555 timer, when already triggered/high?

I wanted to ask for some help regarding the setup of a 555 timer. I'm using it in the standard monostable mode, running at 5 V, basically as a 1 min timer, using a simple momentary pushbutton to ...
user avatar
  • 775
0 votes
1 answer
96 views

Can you replicate a Trimpot with a 555 timer?

I'm currently a senior ME major and just entered the EE world to complete project so I'm a little lost. I am building a circuit powered by an Arduino Mega Chip. The circuit is to control ...
user avatar
3 votes
2 answers
598 views

How to add some μs delay inside the for loop for this STM32 code?

I'm using HAL library and the finction called HAL_TIM_PWM_PulseFinishedCallback to update DAC output at the end of each pulse. Here is the related section of the code: ...
user avatar
  • 1,503
1 vote
2 answers
83 views

Send current to LED only after a specific duration

I would like to know how I could do this 100% with basic electronic components (Transistor, LED, NE 555, batteries...): Count 2 minutes (exactly) Then after 2 minutes... the LED lights up I know that ...
user avatar
  • 11
1 vote
0 answers
171 views

How to timer-triggered multi-channel ADC conversion run in STMH7

I've managed to get the timer-triggered ADC to run for single-channel conversions where an interrupt routine is called upon completion of the conversion. However, I need three channels to be converted ...
user avatar
  • 186
2 votes
1 answer
226 views

STM32 : set APB1 and APB2 to same clock frequency

When configuring a STM32 (or at least my STM32F722ZE based nucleo board), there are 2 clock frequencies, one for APB1, the other for APB2. The annoying thing is that some timers use APB1, other use ...
user avatar
  • 2,646
1 vote
3 answers
743 views

How to increase STM32 Timer (encoder mode) counter value?

I am developing mobile robot. Hear i required to read quadrature encoder.So i am using stm32F401 using 16bit timer(encoder mode) to read the count.After 65535 count goes to 0. My question is how to ...
user avatar
1 vote
1 answer
34 views

STM32F7 Two Timer Channels Share One DMA Channel

I am trying to write a driver that sends DShot commands to an ESC. I am using an STM32F722 MCU. The DShot protocol is similar to addressable LEDs where 1/3 duty cycle represents a 0 and a 2/3 duty ...
user avatar
0 votes
1 answer
98 views

Making duty cycle with CTC mode in AVR without using interrupt

I am writing a program to make an output with a 30% duty cycle and a frequency of 3 kHz using an ATmega32 microcontroller. My controller's frequency is 8 MHz and I am going to decrease it to 1 MHz by ...
user avatar
  • 53
0 votes
0 answers
18 views

Configuration space for the PIC18F66K40 timer 0

I wrote a utility to accelerate analysis of timer configuration in embedded systems. This is not a replacement for testing; it's a convenience visualisation. The default configuration on load ...
user avatar
  • 3,022
0 votes
0 answers
65 views

Counting hours from closed circuit

A complete ignorant here. I am trying to custom-build some sort of lab timer with an external trigger (the longest-running one that I found to buy was up to 24 hr and I need one that is up to 72 hr). ...
user avatar
  • 1
0 votes
4 answers
115 views

How can a lidar achieve cm-level resolution?

In order to achieve cm-level resolution, it seems like a lidar would need to have extremely high sampling rates. Here's my thinking: Light travels at roughly 3·108 m/s, or 3·1010 cm/s. We need to ...
user avatar
2 votes
1 answer
165 views

stm32f051 - Config Timer14 to Interrupt only by counter overflow, not by counter initialization

I'm new to the world of embedded and I'm implementing a short, long and two-click on a button logic in my project on a stm32f051 I'm having a problem with the timer interrupt, I want it to generate ...
user avatar
0 votes
1 answer
30 views

Connect DC 6-30V 1-Way Relay Module Power-off Trigger Delay Cycle Timer Switch with PIR Motion sensor?

I am trying to connect a DC 6-30V 1-Way Relay Module Power-off Trigger Delay Cycle Timer Switch with an HC-SR501 Infrared PIR Motion Sensor Module. The output of the motion sensor is only 3 V. Do you ...
user avatar
  • 1
1 vote
2 answers
67 views

How to locate timer channels for this uC board?

I'm trying to visualize and point on diagram where timer channels at this datasheet. STM32 uses the term channels. I guess what mean by timer channels are timer outputs. What is meant by channel? Can ...
user avatar
  • 3,420
3 votes
4 answers
149 views

Make a string of Christmas lights slowly brighten and dim

OK, here's my Christmas light project and I didn't see this one asked yet on StackExchange. What I am trying to achieve: have a single string of incandescent Christmas lights slowly dim and brighten ...
user avatar
0 votes
0 answers
66 views

6V-12V to on/off switch conversion

In order to connect/disconnet a battery pack I need to use a timer (https://www.highwildoutdoors.com/products/6v-12v-universal-digital-timer) which seems has 6v-12v output. I am not sure which relay I ...
user avatar
2 votes
4 answers
273 views

Resettable timer with opamp

I need to make a circuit with an opamp and passive components that has those constraints : When it receives a pulse on one input, its output should be high. After a predefined duration T, it should ...
user avatar
  • 203
0 votes
1 answer
109 views

Faster Timer0 overflow than 2 ms on Attiny85

I'm trying to get a Timer0 overflow with an overflow every 500us, but can't find a solution to get it so low. I'm running the Attiny85 on its internal 1 MHz clock, so I know it is not gonna be the ...
user avatar
  • 309
1 vote
0 answers
57 views

Triggering 3ADC's simultaneously in continuous mode by a timer in STM32

I have 3 ADCs (ADC1, ADC2, ADC3) configured with 3 different channels for 3 gpio pins to collect the data and all 3 ADC's are triggered simultaneously by TIM1 at the rising edge of the pulse. It is ...
user avatar
0 votes
1 answer
56 views

Momentary on for one minute

I’ve built a dumb waiter using a 12 V electric over hydraulic pump and a cylinder. Currently using the wired remote to send it up and down. I would like to be able to push a button mounted to the wall ...
user avatar
  • 11
0 votes
0 answers
419 views

How to update period of a timer every interrupt on stm32 with preload enabled?

I'd like to change timer period inside interrupt handler that is equivalent to AVR code ISR(TIMER0_COMP_vect){ OCR0 == new_value } As I undestand the documentation,...
user avatar
  • 101
0 votes
2 answers
101 views

High power to low power timed switch with microcontroller clocking

I am new to this circuit things and still currently learning. I am trying to build a circuit with a heater and fan that switches to low power mode after 12 hours. Currently I am also trying to learn ...
user avatar
  • 13
0 votes
1 answer
151 views

MSP430 Timer Interrupt Not Happening

I recently starting learning how to program a MSP430 and thought I'd start by writing a program to turn a LED on and off every second. However, when I run my code the LED goes on an stays on. When I ...
user avatar
  • 31
1 vote
0 answers
136 views

Question regarding STM32 timer trigger mode for synchronization

I am using STM32L4R5 and need a specific case of synchronization: I am using TIM15 to generate a PWM signal with 50% duty cycle. In my application I have to stop PWM from time to time using the pin as ...
user avatar
  • 79
1 vote
3 answers
227 views

Starting and stopping timers with a button

I want to start and stop timers from the button state. I am using an STM32F407VG. This it the circuit I designed: When the button is pushed there is 0.45 V. When I release the button there will be 4....
user avatar
  • 113
0 votes
2 answers
75 views

How can I provide time-controlled current protection?

I need a component name or solution. I have a fan motor that I run with AC. I am controlling with MCU and driver. Operation logic: 0.75 s on, 9.25 s off. My circuit works flawlessly with this logic. ...
user avatar
1 vote
0 answers
92 views

Capacitor Time Delay circuit not working

simulate this circuit – Schematic created using CircuitLab I made a circuit schematic for a simple discrete capacitor+resistor time delay circuit, using a 1500uf capacitor and a 100kOhm resistor ...
user avatar
1 vote
2 answers
234 views

How to Have Two PWM Signals with Adjustable Duty Cycle

I am using Mosfets as switches in half bridge application. I use STM32F407VG as PWM generator. I used TIM1(TIM1 CH1 and TIM1 CH1N) in order to generate two complementary PWM signals to switch Mosfets. ...
user avatar
  • 113
-1 votes
1 answer
438 views

Algorithm for calculating prescaler and period of a timer

I want to set frequency of a timer in a microcontroller. Frequency is determined by Prescaler and Period (ARR). Both of these are 16bit integer numbers. $$f_{tim}=\frac{f_{clock}}{prescaler\cdot ...
user avatar
  • 1,242

1
2 3 4 5
20