Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Thanks Ramussons. The first link is exactly what I need but the second require a ground at pin 2. The first circuit give a + voltage at it's output. Should I use a transistor as an inverter between both circuits or if there is another way to do this?
Using a 555, not shown, make a 1hz clock.How about a 4017 counter/decoder, with a free-running 555 running at about 1 Hz.
I need a schematic circuit for a timer. I want it to power a relay for one second about 5 to 10 seconds after power is applied to the circuit. Any suggestions? Thanks.
OR, a CD4060 amd no 555. The 4060 is an oscillator and 14-stage divider all in one chip. As with most CMOS parts, you will need an external transistor to drive any load over a few mA. The nice thing about the 4060 is that the capacitor used to set the output periods is 8000 times smaller than the equivalent capacitor for a 555 circuit. This eliminates leakage current and accuracy problems caused by the much larger value electrolytic capacitors.How about a 4017 counter/decoder, with a free-running 555 running at about 1 Hz.
#include <xc.h>
#define _XTAL_FREQ 4000000
#pragma config MCLRE = OFF, config CP = OFF, WDTE = OFF
void main(void) {
GPIO = 0b000000;
TRIS=0b111101; // GPIO1 as output
// wait 5 seconds
__delay_ms(1000);
__delay_ms(1000);
__delay_ms(1000);
__delay_ms(1000);
__delay_ms(1000);
GPIO = 0b000010; // Turn relay on
// wait 1 second
__delay_ms(1000);
GPIO = 0b000000; // Turn relay off
SLEEP();
return;
}
View attachment 114437
Code:#include <xc.h> #define _XTAL_FREQ 4000000 #pragma config MCLRE = OFF, config CP = OFF, WDTE = OFF void main(void) { GPIO = 0b000000; TRIS=0b111101; // GPIO1 as output // wait 5 seconds __delay_ms(1000); __delay_ms(1000); __delay_ms(1000); __delay_ms(1000); __delay_ms(1000); GPIO = 0b000010; // Turn relay on // wait 1 second __delay_ms(1000); GPIO = 0b000000; // Turn relay off SLEEP(); return; }
And now he needs a programmer, instructions to download software, install, select microcontroller, compile your code, build a circuit so he can connect programmer to the chip, transfer said code to the PIC, then build the circuit you propose.
I'm not sure it is easier than using a few extra non-programmable parts. At the price of a PicKit, it certainly won't be cheaper.
I need a schematic circuit for a timer. I want it to power a relay for one second about 5 to 10 seconds after power is applied to the circuit. Any suggestions? Thanks.
connect "9" and "clock inhibit"
PDP-11's are cheap these days.
ak