That's fine if you have the programming hardware and know how to program a PIC.I'd use a 10F200 and be done with it.
That's fine if you have the programming hardware and know how to program a PIC.I'd use a 10F200 and be done with it.
Yes, probably the best solution.You don't even need a relay I bet the motor stall current is nothing maybe 400mA run probably 100mA or less
I'd use a 10F200 and be done with it.
2 resistors one diode a 2n2222 and 1 cap
Run the 10F200 off the 3 volt supply set to sleep till button pressed
That's probably because you know what a 10F200 is and you have a development system and a compiler and a programmer and programming experience - all of that assuming that a 10F200 is a programmable device of some kind..You don't even need a relay I bet the motor stall current is nothing maybe 400mA run probably 100mA or less
I'd use a 10F200 and be done with it.
/*
* File: newmain.c
* Author: burt
*
* Created on January 15, 2018, 7:29 AM
*/
// CONFIG
#pragma config WDTE = OFF // Watchdog Timer (WDT disabled)
#pragma config CP = OFF // Code Protect (Code protection off)
#pragma config MCLRE = ON // Master Clear Enable (GP3/MCLR pin function is MCLR)
// #pragma config statements should precede project file includes.
// Use project enums instead of #define for ON and OFF.
#define _XTAL_FREQ 4000000
#include <xc.h>
void init (){
TRISGPIO = 0B00000001;
}
void main(void) {
init();
if (GP0 =1){
int i = 0;
do {
GP1 = 1; // LED ON or motor for 3 minutes
__delay_ms(1000); // 1 Second Delay
i++;
}while (i<180); //sets on time
GP1 = 0; // LED OFF or motor
}
}