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
0answers
29 views

STM32F303 timer interrupt randomly caused if started in main loop

I am experiencing a really odd behavior of the STM32s timer interrupt. I have two timers. tim3 runs at a fixed 40 Hz and calls a registered function if updated. tim2 is started after tim3 caused an ...
1
vote
1answer
31 views

Reduce power consumption and schedule power on and off with RTC module?

I work on an Arduino based beehive scale project. My circuit is wired and it works perfectly (measure temperature, humidity, weight every day at 6 AM, 2 PM and 10 PM and sends it to the server by ...
0
votes
0answers
16 views

Timer vs PWM channel in variant.cpp (SAMD)

Looking at an example variant file such as this one for an ItsyBitsy M4, what is the difference between the PWM channel and the timer channel? My understanding was that they correspond to the same ...
-1
votes
0answers
55 views

Cyclic operation using Microcontroller [closed]

I am using 4Mhz crystal with pic16F886 using timer interrupt 1ms. In below Here i could able to display set value and process value.During ontime Setvalue displayed on bottom Dissect(value) & ...
0
votes
2answers
49 views

DS1307 RTC module using without arduino?

Is it possible to use RTC module DS1307 to schedule swtiching lights on and off? I am not supposed to use arduino but all tutorials on internet are with arduino. The main problem for me is power ...
0
votes
1answer
69 views

What is the best way to turn on 12V light at specific time for 5 minutes? [closed]

I have 12V/3A power supply which is supplying 12V light. I need to turn on light at 6am, 14pm and 20pm for 5 minutes. What is the best way to do that? I was thinking about RTC module which has it's ...
0
votes
1answer
36 views

TImer1 interrupt Setting

I am using PIC16F886/ 4MHz external Frequency/ timer 1 (100ms)/prescaler is 1. I am trying to turn on off LED for every 100ms. In below code I need to change any setting to get exact value. or my ...
0
votes
1answer
17 views

How to Terminate DONE pin on TPL5110 when unused?

I'm using a TI TPL5110 in One_shot mode and do not need the DONE signal to shut down the timer. I would leave it alone but static often makes it trigger,turning the timer off. Since the tpl5110 ...
1
vote
1answer
71 views

Arduino based digital to AC conversion schematic

I am trying to build an Arduino based system for sending electric pulses, of 24V, 40mA sinusoidal. Each pulse is in a burst of 5000 microsecond, and each pulse is about 20 - 800 microsecond. These ...
0
votes
0answers
9 views

Using LPC1768 QEI in Ticker

Can the QEI on the LPC1768 be used inside a Timer (the mbed's Ticker)? I didn't have problems reading the Position register outside the Ticker.
0
votes
1answer
125 views

Power Latching Relay off/on in response to 12V ignition and 1 second ground pulse

I have the following sample schematic of a 12 volt automotive circuit to trigger about 60 seconds of power output to a latching relay on output pin 3 of the 555 Timer chip. The schematic below is a ...
0
votes
0answers
40 views

produce timer counter with 10 nanosecend duration in stm32F7

I want to set timer counetr every 10 nanosecend and finaly use that as delay to toggle GPIO in stm 32f7. I use external clock and use pll to produce 200 mhz clock to TIM1. this timer counter set to ...
1
vote
2answers
85 views

Wake up circuit - keep the circuit off when not in use

Goal: As the power supply is a battery, I want to shut down the circuit when it is not in use. Circuit description: Basic 555 timer circuit. By pressing the switch, the light turns on. What I have ...
0
votes
0answers
44 views

stm32 timer synchronization between output compare and timer interrupt

I need to have timer output compare synchronized with timer global interrupt ,they start separately with two lines below HAL_TIM_OC_Start(&htim3,TIM_CHANNEL_2); HAL_TIM_Base_Start_IT(&htim3);...
0
votes
0answers
24 views

Order of disabling in `HAL_TIM_IC_Stop_DMA` function -STM32 HAL library-

Here is the function body of HAL_TIM_IC_Stop_DMA: ...
0
votes
2answers
40 views

pic16f877a problem in timers with proteus simulation

I used PIC16f877A at proteus to do timer interrupt. The code is pretty simple it has nothing to do rather than setting the timer1 registers , the while(1) loop is ...
0
votes
1answer
67 views

AC dimming with STM32 timers

I'm using an STM32 for AC dimming, for which I use a GPIO output (or timer channel out) to drive a triac, whenever I get a zero crossing detection (rising edge). Is there a way to solve this only ...
2
votes
1answer
77 views

555 Timer Output Always V+ or Ground?

If the output of the 555 timer is not trigger to high, is it ground? Or is the output left floating?
0
votes
1answer
36 views

pausing d flip flop output

I want to make a digital timer that counts to 99 minutes 59 seconds the problem is that i want to use 4 digit 7 segment display so i have to oscillate the input of the bcd to 7 segment display between ...
0
votes
0answers
64 views

PPS Timer on STM32

The MCU used is a STM32F042 which is clocked by an OCXO oscillator (Abracon 10 MHz - 20 ppb). The subject of this thread is to get the best accuracy on one PPS Timer. For my application, I need to ...
1
vote
1answer
70 views

Setting up STM32 timer for UART IDLE detection

I am trying to implement IDLE detection described in AN3109. The idea is simple: Run timer in slave reset mode with maximum possible period; Configure CH2 for input capture on rising edge, however do ...
0
votes
1answer
71 views

STM32 DAC Trigger

I am Trying to use the DAC output on my STM32L053R8 NUCLEO Board. I generate the corresponding Sin-Wave values to set the DAC Values like this. ...
0
votes
5answers
115 views

Delayed ON level on pulse

I need a circuit which outputs a LOW level on power-up state. INPUT stays LOW. Once INPUT goes HIGH I need to run a delay which will set OUTPUT to HIGH after timed delay T (which is measured in ...
1
vote
1answer
147 views

stm32 which timer and DMA channel should I use?

I am trying to control two lines of digital LEDs (WS2812b) with my STM32F103 using Timers with DMA and PWM. LED strips data lines are connected to PB5 and ...
0
votes
0answers
29 views

Total Power Cutoff circuit

I'm designing a battery controlled circuit using a 555 timer to control a mosfet to provide power to a load. The problem I'm trying to solve is to reduce the current draw while the circuit is not ...
0
votes
2answers
40 views

(Micro) USB Timed Relay

I am currently trying to build a low power server with a Raspberry Pi I don't use any more (3B) but I am struggling to find a way to cut down it's power usage in it's off hours. Since the Pi uses ~...
0
votes
0answers
33 views

Timer/Counter Compare match event fired on next clock tick

I'm using ATmega2560's timer-counter3 to count external pulses. I need to switch some output pin to logical 1, wait for some amount of input pulses at T3 pin and then immediately disable output. I've ...
0
votes
1answer
74 views

PIC16F57 timer how to trigger an interrupt

I'm trying to make a simple delay turn-on function using Timer0 inside the PIC16F57 itself.All the example I can find on internet mostly come with build-in interrupt function which the PIC16F57 doesn'...
0
votes
1answer
17 views

Triggering event from timer compare channel on ATXmega when timer is set to single-slope PWM mode

I am writing firmware for an ATXmega. I have a timer configured in single-slope mode to output a PWM signal. I need one of the xmega's event channels to trigger in the middle of that signal. I thought ...
0
votes
0answers
49 views

Comparing the results of two electronic dice

I made two electronic circuits each consisting of a 555 Timer, a CD4017 and 7 leds in the shape of what you'd find on a dice. They work great and all, but I want to "compare" the results of both and ...
0
votes
0answers
29 views

Arduino Pulse Generation

I have a Arduino sketch that can rotate 2 stepper motor using a stepper driver that has 256 micro stepping. I used Arduino MEGA timer 1 and timer 3 with fCLK/8 prescaller for generating step pulse ...
0
votes
0answers
31 views

ATmega328p: Does SPI conflict with timers TC1, TC2 or interrupts PCINT2, PCINT0?

My code - based on my library MultiTrans - uses timers TC1 and TC2 as well as interrupts ...
0
votes
2answers
69 views

How do you make a digital counter circuit which counts to 10 minutes and 15 minutes, it will give a signs buzzer? [duplicate]

I asked in this site before, but apperantly I don't quite understand. I want to make a digital counter circuit which it counts to 15 minutes for my big project in my campus . When the circuit counts ...
0
votes
2answers
137 views

How can I make a 10 minute and 15 minute buzzer timer? [closed]

Basically, I have a big project going on in my campus which we were told to make digital counter. So when the timer counts reach at 10 minutes (by this case, the timer counts is shown by 7-segment ...
0
votes
0answers
40 views

Simple LDR circuit calculate average time between triggers

I am a beginner with some past experience in electronics. I have a circuit that uses an LDR and 555 to display the time (lap time) between the LDR being triggered - start / stop - on a 7 segment unit. ...
0
votes
1answer
81 views

What is the problem in my timeout implementation?

I'm trying to use a DHT22 (temperature and humidity sensor). Here is its datasheet: DHT22 Datasheet In first few seconds, I can get values. But after a while it gets stuck in here: So I tried to ...
0
votes
2answers
80 views

555 PWM motor driver controlled by external analog signal

I used the below 555 timer PWM circuit to control the speed of a dc motor, and it works like a charm :) now i have a requirement to change the PWM speed externally from another module, that module ...
0
votes
2answers
64 views

2-Bit timer with 1 ms period

I am trying to find a simple hardware solution to implement a 2-bit timer that gives out 2-bits continuously repeating data 00, 01, 10, 11, 00, 01.... whose time period is approx 1ms. The accuracy and ...
0
votes
1answer
39 views

PIC18F26J50: timer0 issues

I'm implementing timer routines using timer0. The goal is to have a 1ms timer routine so I can use it for general proposes. The problem is that I'm getting a 13kHz waveform in RA6 and I intended to ...
0
votes
1answer
53 views

Simple blinking Led with control over both the pause rate and flash time?

I was hoping someone could help me understand a very simple approach to creating a flashing led. While many simple examples exist, I cant quite find one that allows me to control both the pause rate ...
0
votes
2answers
47 views

Help with 74HC393

I'm learning how to use ICs and am currently playing with a 74HC393. Since it contains 2 independent 4 bit binary counters I am trying to connect both sides of the chip to make them work together. ...
0
votes
1answer
48 views

Why should we charge the capacitor halfway in 555 timer circuit(as given in datasheet)?

In the Texas Instruments datasheet for LM555 IC, at Page 11 below Figure 15, the calculations for charging and discharging of the capacitor are given. In those calculations, the capacitor is made to ...
1
vote
3answers
62 views

Adding different voltage battery to same circuit

I have 9 volt battery to get 5 volt using step down converter. I want to enable the step down using a timer IC max input voltage 6 volt. I will use 3.7 v battery for this. So my question is: Can I ...
1
vote
1answer
41 views

M2P DMA transfer with trigger from a different peripheral

The microcontroller on my board is STM32F429IGT6 and I want to use a timer as a trigger of a DMA -e.g. HTIM_SOUND_SAMPLER- and transfer my data from an array to CCP of another timer -e.g. ...
0
votes
3answers
292 views

STM32 ADC and timer(s): Measuring moving average peak voltage of PWM signal with varying amplitude

I want to measure a moving average of the amplitude of a fix frequency, fixed dutycyle PWM signal with slowly varying amplitude but in a noisy environment (DC motors). I want to use as little as ...
0
votes
2answers
80 views

555 Timer - How to quickly discharge RC capacitor

I'm using a 555 timer to turn off an LED with delay. Here is the circuit. All I want to implement is, to get the input voltage changes in output with a constant delay. When I close the switch, the ...
0
votes
0answers
44 views

Convert NE555 square wave output to triangular wave using op-amp(s)

I want to generate a square wave with 45% duty cycle and 465Hz on an NE555 timer and then convert that wave into a triangular wave using op amps. I have a circuit schematic but the output generates ...
0
votes
0answers
27 views

How to calculate Pulse width using TIMER in Capture Mode

i am trying to implement Atmel example about using TIMER0 Capture Mode to measure duty and frequency, you can find the full example at Github At (CCA ISR) we have the following code: ...
0
votes
1answer
124 views

timer input capture for really low frequencies

How low of a frequency can a timer be used to measure an external signal in "input capture" mode? If I need to measure something that has a frequency of say 1hz - 2hz... or even slower for that ...
0
votes
1answer
60 views

PWM frequency and sine waveform generation

I am trying to follow some guides (for instance this) to generate some analog signals (for instance a sine wave of 50 Hz) with Arduino (but my questions are general). But I have two basic questions: ...

1 2 3 4 5 17