Processing...

Electronics and Electrical Engineering Design Forum

 

General

Time delay ON/OFF circuit required

guys i need a 2 circuit the one is
when power applied the timer will trigger and the relay will remain off
when the timer runs out the relay will turn on and close the 2nd ciruit (time could be 30sec)

and the 2nd circuit should b ON/OFF relay drive 4 times only and the ON/OFF delay should be adjustable, after 4 time repeatation it should stopped

l2adiant@gmail.com
Asked By:
Radiant Man
1 year ago
 
 
{username}
Score: 0

Or use a micro with real-time clock much easier still then you can control the delay programmatically even add LCD readout for elapsed and set minutes plus memory

My condolences to people in the USA who have lost thier lives in the recent breakout of terror our thoughts are with you at this present moment in time

We hope you catch them “now you know how I feel about people who dish out high levels of violence I hate them!! Which is ironic when you think that what we do in return is exactly the same we do no different do we !! Mindless stupidity however killing innocent civilians is both despicable and appalling Cowards in the real sense of the word They deserve no mercy

Unfortunately who have we to blame and how little do we think when we place constructional plans on the net illustrating how to manufacture your very own personal anti personal land mines Not that we should not be able to see this but more importantly we should also be able to refrain from building such devices knowing full well what their capability is but then I guess that’s down to state of mind and what people must and will do in order to defend themselves Just mindless stupidity What else could you say to this given the technology that we have at hand

I guess now we not only need to know but also to recognize when we do see this Stupid and vastly ironic since in any war that evolves from these outbreaks of violance we send out men into so called zones of the world which seem to be a threat and in return we exchange fire killing innocent civilians in the process

Does make you wonder doesent it Are we any different So much for engineering

I thought this was interesting as well it comes up with a password and logon id which i dont quite understand

The title of the entry is:
Small 12v Auto circuit for on/off switch – Newbie help

You can see the comment at the following URL:
http://dev.eeweb.com/electronics-forum/small-12v-auto-circuit-for-onoff-switch-newbie-help/

Theres your next bit of coding to work on Light level meters for close proximity You can choose to do what you want with this either negative or positive up to you !! Thinking yet

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
'****************************************************************
'*  Name    : LightMeter.BAS                                      *
'*  Author  : MD Harrington                                     *
'*  Notice  : Copyright (c) 2013 @www.harrington.force9.co.uk   *
'*          : All Rights Reserved                               *
'*  Date    : 14/04/2013                                        *
'*  Version : 1.0                                               *
'*  Notes   :                                                   *
'*          :                                                   *
'****************************************************************
 
Device = 16F84A 
Config  RC_OSC ,  WDT_OFF , PWRTE_OFF, CP_OFF   
Xtal = 4 
On_Interrupt GoTo INTPROC
 
' Variable declaration 
Dim FLAGS As Byte 
 
 
Symbol T0IE = INTCON.5          ' TMR0 Overflow Interrupt Enable
Symbol T0IF = INTCON.2          ' TMR0 Overflow Interrupt Flag
Symbol GIE =  INTCON.7          ' Global Interrupt Enable
Symbol PS0 =  OPTION_REG.0      ' Prescaler ratio bit-0
Symbol PS1 =  OPTION_REG.1      ' Prescaler ratio bit-1
Symbol PS2 =  OPTION_REG.2      ' Prescaler ratio bit-2
Symbol PSA =  OPTION_REG.3      ' Prescaler Assignment (1=assigned to WDT 0=assigned to oscillator)
Symbol T0CS = OPTION_REG.5      ' Timer0 Clock Source Select (0=Internal clock 1=External PORTA.4)
Symbol RPBU = OPTION_REG.7      ' weak pull ups clearing set these to on
Symbol LIGHTFLAG =  FLAGS.0     ' Flag for detecting if we should check light intensity 
 
 
 
Dim LIGHTVAR As Word 
Dim REPEATS As Byte 
Dim PORTVAL As Byte 
Dim TMRCOUNT As Byte 
Dim NEWVAL As Byte 
Dim CURVAL As Byte 
 
GoTo Over_Int 
 
 
'--------------------------------------------------------------------------------------
 
' interrupt procedure starts here 
 
 
INTPROC:
Context Save 
 
 
If TMRCOUNT >= 0 And TMRCOUNT < 30 Then 
PORTB.7 = 1 
End If 
 
If  TMRCOUNT >= 30 And TMRCOUNT< 60 Then  
PORTB.7 = 0 
End If 
 
If TMRCOUNT = 60 Then 
TMRCOUNT = 0 
End If 
 
TMRCOUNT = TMRCOUNT + 1
   
T0IF = 0 ' clear the timer overflow flag  
T0IE = 0   
      
TMR0 = 0 ' clear the timer 
 
 
Context Restore 
Retfie
' this is the end of the interrupt service routine 
 ' ------------------------------------------------------------------------------------
 
 
 
Over_Int:
START:
GoSub INIT:    ' call init this is the procedure that sets up ports etc 


MAIN:




High PORTA.2
      
       

       LIGHTVAR = RCIn PORTA.2, High ' read the value from the LDR 
                       ' store this in light value 
       GIE = 0 ' disable Global interupt here 
       T0IF = 0 ' clear the timer overflow flag  
       TMR0 =0 ' Clear the timer
       
       
 
 
      
 
 
PORTVAL = LIGHTVAR.HighByte
 
' Assign to NEWVAL 
If PORTVAL > 0  And NEWVAL != PORTVAL Then 
NEWVAL = PORTVAL 
End If 
 
If NEWVAL = 0 Then 
    CURVAL = 0 
   
    Else If NEWVAL   >= 1  And NEWVAL < 3  Then 
        CURVAL = 1
        
        Else If NEWVAL >= 3 And NEWVAL < 5 Then 
            CURVAL = 3 
                   
                 Else If NEWVAL >= 5 And NEWVAL < 8 Then 
                      CURVAL = 7
                     
                         Else If NEWVAL >= 8 And NEWVAL < 11 Then 
                            CURVAL = 15
 
                         Else If NEWVAL >= 10 And NEWVAL < 14 Then 
                            CURVAL = 31
                   
                      Else If  NEWVAL >= 14 And NEWVAL < 20 Then 
                           CURVAL = 63
  
                 Else If  NEWVAL >= 20 And NEWVAL < 30 Then 
                    CURVAL = 127
                      
 
End If
 
DelayUS 50
PORTB = CURVAL 
 
 
T0IF = 0
 
 
 
 
 
 
GoTo MAIN 
 
 
 
 
INIT:
All_Digital = true  ' turn off analogue module 



' clear all interrupt flags etc 
 
        Clear INTCON
        Clear PORTB '  make shure no output on port b
        Clear PORTA '  make shure no output on port a
        Clear PORTVAL ' Clear PORTVAL variable 
        Clear OPTION_REG ' Clear option register 
 
'clear all the variables

CURVAL =$00
NEWVAL =$00 
LIGHTVAR = $00
LIGHTFLAG = 0 
TMRCOUNT = $00

TRISB = $00  ' make all port B output 
 
 
 
' Set up the prescaler 
' 15 times per second   prescaler setting  so in 30 counts  2s econds will elapse 
' 15 counts 1 second has elapsed 

        PS0 = 1
        PS1 = 1
        PS2 = 0
        PSA = 0


' start interrupt procedure 
    
    RPBU = 0
    TMR0 = $00 
 
Return

» Reply
 
{username}
Score: 0

Theres a movie of this Just shows you what you can do with a simple LDR and a PIC Micro

What happened to the LM3914 then ?? Aaaah Interesting Voltage hmm Audio level Hmmm Proximity Hmmm Interesting very interesting must be the EGG Factor

You will need http://www.videolan.org for the download to view this wonderfull movie

What was the next interesting point about today Two visits Both required router setups Both from BT Both login’s failed as per the key on the modems Both had to be reset What could this mean BT is sending out refurbished units and not bothering to check logon passwords for modems Thats what that tells me !! Bothe had to be completley reset with new logon ID’s

Hmmm We getting close to this one now arnt we !! They must be sweating Someones getting nervous Very nervous Has a horrible habit of catching up with you

whats was the scond point I found odd The fisrt person I went to see was an oxfor student with a masters degree thats some going that !! Masters degree no joke Very well educated but couldnt tell me how to set up a printer on a network with apple

The scond visist watched me try to logon to the DHCP server 3 or 4 times with the logon provided by BT so they know Im telling the truth Two routers One day Both coulnt log on despite the key and the instructions left by BT

Not exactly good security either by BT Not very clever at all

Attached Files:
» Reply
 
{username}
Score: 0

I need to know what supplies you will be using what power you expect to supply to the 2nd circuit what current this should switch That’s if what I’ve said interests you with what I’ve suggested

» Reply
 
{username}
Score: 0

2nd circuit should work on 12v battery

actually i want to activate 2nd circuit when electricity (220v) goes off then then 2nd circuit (ON/OFF) should b activate, it will try to start self start generator (in 4 tries) i hope you got what i want to design now

» Reply
 
{username}
Score: 0

So far so good The first circuit powers up on 220 volts at which stage it triggers the first circuit keeping what you might call the starter relay closed

When 220volts is detected as off then the second circuit should fire and should continue to fire 4 times 30 seconds btw each attempt initially (4 attempts)

The time delay on the second circuit should be variable in other words if this doesn’t work in four attempts 30 seconds period btw each attempt Its should stop

You must also be able to adjust the time delay between each burst so that you can vary the starter time which you MIGHT DO do from setup

WHAT IS YOU MAXIMUM TIME DELAY btw BURSTS?

What current does the starter use in order to start the generator as this must be a starter motor that you are using to fire up the generator

Is my description of what you want correct so far
and finally what time scale do you have in mind in otherwords are you in a massive rush for this because if not this is actually quite a nice little project “Scotland would love this especially in the remote islands where generators are often required to produce electric “ Highly marketable

So would Africa and so would France and Italy and Spain !! and so would many caravan parks , CAMPING SITES ETC etc all over the world Interesting Like it

WORTH WASTING MY TIME ON ALSO WORTH MANUFACTURING hmmm

WILL CREATE EMPLOYMENT “Positive thinking you see, works for me “

You are made in Europe just with this nevermind elsewhere across the continents

Thankyou

Mark http://www.harrington.force9.co.uk

» Reply
 
{username}
Score: 0

I think I would like to ask Cody Miller in on this suggestion as i know Cody will follow this through with us and look after this project for us or Brian Yearwood , Florin Lungu all of whom I can trust and are respectable businessmen

All of whom have helped me and stood by me through thick and thin and then if you like I can find people who are currently unemployed from prospects based in Plumstead whos lives could be made a lot easier and who want to work

You wont have any objection to this will you ? Or signing a contract

If thats ok with you from my side i wont cxharge for development costs but i want a contract drawn up with the provis that your miumum order will be 5000 units to start

fair enough isnt it

 
{username}
Score: 0

u are 100% right i want the same as u described above,
the max time delay between brusts can be 10 to 15 sec
i just want to drive relay 4 times the rest will do that generator’s own self start

 
{username}
Score: 0

Hi Radiant, yes Ive got details just want to clarify one small issue 15 second burst meaning contact relay for 15 seconds IE On the pause 15 seconds on again etc

Now btw burst would have some off time of the relay so you need to account for this as well

What is your spec ie pause or period btw on burst

I still need to know what current you’re pulling through the relay

Once I get this Ill write a full spec and if you could contact me via email be only to happy to put a design together for you however I don’t release the software only the made product demonstrated on camera and If you like I can also add 7 segment display to set plus show countdown

Also memory so that your store initial setup settings

Its really not that difficult at all Its approximately two to 5 weeks to put the design togethher write software produce pcb assemble and test Im fortunately quite busy at the moment so its a case of fitting this in during spare time but Yes no problem

Have a chat with Mark Munday who is on linked in he will be able to tell you what my design material is like very happy man with what I sent , a recent design he asked me to do Exteremly pleased so there you go one happy person which is what counts

http://www.linkedin.com/e/3srsqg-hfjfrac3-24/hom/?hs=false&tok=1aTBASTfJQplI1

You will have to excuse the negative comments

Please contact me on email privately for more details or via linked in

If you would like to see other project work see

http://www.eeweb.com/project/mark_harrington

or visist http://www.harrington.force9.co.uk
and you more than welcome to contact the companies on that site including SAV Greenwhich London a new bussiness Ive just started to contract too All of whom are very pleased with my work

» Reply
Login or Register to discuss this topic.
x
Like Free Stuff? Click Here!
EEWeb Weekly Giveaway Sponsored by Mouser This Week: Intel® Galileo Gen 2 Development Board
Enter Here
Login and enter if you're already a member.
Click Here