Badcaps.net Forum
Go Back   Badcaps Forums > Troubleshooting Hardware & Devices and Electronics Theory > General Electronics Technical Discussion
Register FAQ Calendar Search Today's Posts Mark Forums Read

 
Thread Tools Display Modes
Old 01-10-2021, 07:05 AM   #1
barry wilkins
Senior Member
 
Join Date: Aug 2009
City & State: Maidstone Kent
Posts: 164
Default 4017 counter reset problem

I have been trying to make a counter for my vehicle alarm .I need to reduce the pulses that operate the hazard warning lights.
Because of the ECU you cannot connect directly to the lamps ,so I fitted a relay across the hazard switch. This works ,but because the number of pulses are odd this causes the lamps stay on ,and you have to switch them off by pushing the switch once.
I had a couple of ideas ,one was to use a couple of 74121 monostable ICs to give me 2 pulses.
The circuit I came up with is a Decade counter that uses counts 0 and 3 summing these together gives me the 2 pulses I need if I feed back count 4 or 5 as a reset
Occasionaly the second pulse returns to a high causing the relay to stay on, ,it seems like the reset might the the problem .
On the TI data sheet it does show a circuit using a 4001 to reset the IC.
Any thought on how I could solve this ?

Barry Wilkins
barry wilkins is offline   Reply With Quote
Old 01-10-2021, 07:42 AM   #2
televizora
ghettomodmaster
 
Join Date: Nov 2016
City & State: Bulgaria
My Country: Bulgaria
Line Voltage: 230VAC 50Hz
I'm a: Student Tech
Posts: 824
Default Re: 4017 counter reset problem

Can you provide a schematic of your alarm? Or at least detailed explanation how everything is connected and what you commutate.
Because there might be a much simpler solution or different solution.
__________________
Useful conversions. I don't "speak" imperial. Please use metric, if you want to address me.
1km=1000m=100000cm, 1inch=2.54cm, 1mile=1609.344meters, 1ft=30.48cm 1gal(US)=3.785liters, 1lb=453grams, 1oz=28.34grams

Last edited by televizora; 01-10-2021 at 07:47 AM..
televizora is offline   Reply With Quote
Old 01-11-2021, 04:54 AM   #3
barry wilkins
Senior Member
 
Join Date: Aug 2009
City & State: Maidstone Kent
Posts: 164
Default Re: 4017 counter reset problem

Hi not able to get multisim to work at the moment .
Soon as the weather improves I will first check the pusles that come out of the alarm with one of my scopes, sure that it was 5 pulses certainley an odd number which is causing the hazard light to stay on .If you set the alarm twice it cures the flashing problem.
At the moment I am testing the counter indoors using a 555 monostable with a run down control, think that might be my problem the clock is not stopping at the correct time.
So I am thinking of a redesign of the 555 circuit ,idealy it would be best if the reset from the counter stopped the clock pulses from the oscillator circuit.

Barry
barry wilkins is offline   Reply With Quote
Old 01-11-2021, 04:09 PM   #4
stj
Great Sage 齊天大聖
 
stj's Avatar
 
Join Date: Dec 2009
City & State: Europe
My Country: some shithole run by Israeli agents
I'm a: Professional Tech
Posts: 24,129
Default Re: 4017 counter reset problem

most alarms flash the lights a different number of times for "arm", and "disarm".
you should just make a board with some fets or "high-side drivers" on it to drive the light circuits.
stj is offline   Reply With Quote
Old 01-11-2021, 06:09 PM   #5
petehall347
Badcaps Veteran
 
Join Date: Jan 2015
City & State: worcester
My Country: United Kingdom
I'm a: Knowledge Seeker
Posts: 2,590
Default Re: 4017 counter reset problem

is this a can bus system ?
petehall347 is offline   Reply With Quote
Old 01-13-2021, 04:17 AM   #6
barry wilkins
Senior Member
 
Join Date: Aug 2009
City & State: Maidstone Kent
Posts: 164
Default Re: 4017 counter reset problem

No the alarm is not can bus ,but I expect the hazard lamps are ,as the lights seem to be controlled by an ECU.
What I did think ,if I changed the output to AC coupled it would not matter if the counter output remained at high.
As I said when the weather improves I will test the circuit in the vehicle .
Some reason I seem to have alot of time on my hands at the moment.

Barry
barry wilkins is offline   Reply With Quote
Old 01-13-2021, 11:13 AM   #7
barry wilkins
Senior Member
 
Join Date: Aug 2009
City & State: Maidstone Kent
Posts: 164
Default Re: 4017 counter reset problem

Here is a picture of my first designalarm cct 1.JPG
barry wilkins is offline   Reply With Quote
Old 01-13-2021, 12:39 PM   #8
televizora
ghettomodmaster
 
Join Date: Nov 2016
City & State: Bulgaria
My Country: Bulgaria
Line Voltage: 230VAC 50Hz
I'm a: Student Tech
Posts: 824
Default Re: 4017 counter reset problem

Just command the hazard lights via relay, while supplying them 12V directly from the battery. Use the original electrical wiring as control signal for the relay, then commutate 12V from the battery. So when you turn them on, they work. Then use a second relay, so you can command them via the alarm. So when either the alarm sends a signal to the relay to close or turn them on, they will work.
You need 2 relays and 1 plus wire from the battery.

Last edited by televizora; 01-13-2021 at 12:50 PM..
televizora is offline   Reply With Quote
Old 01-13-2021, 01:29 PM   #9
barry wilkins
Senior Member
 
Join Date: Aug 2009
City & State: Maidstone Kent
Posts: 164
Default Re: 4017 counter reset problem

wont work the switch is binary ,the lamps are controlled by the ecu
barry wilkins is offline   Reply With Quote
Old 01-13-2021, 01:36 PM   #10
redwire
Badcaps Veteran
 
Join Date: Dec 2010
City & State: Alberta
My Country: Canada
Posts: 1,944
Default Re: 4017 counter reset problem

In your first circuit, I would make some changes, such as adding a driver transistor for the relay because a 4017 has weak output drive a few mA. It would be a circuit that either counts to one or two. It depends if the alarm has a signal with a level for when "on", so you could add a gate to make the counter go to one or two depending if the alarm is set on or off.
redwire is offline   Reply With Quote
Old 01-14-2021, 10:22 AM   #11
barry wilkins
Senior Member
 
Join Date: Aug 2009
City & State: Maidstone Kent
Posts: 164
Default Re: 4017 counter reset problem

Hi think you are right about the transistor ,just knocked up a circuit to try ,a capacitor about 10 uF and a IRFBC30 mosfet (got lts of these) .
The output from the counter is now AC coupled so if the last count stays high it should not matter
Been thinking I am using the wrong type of counter,perhaps one that has a clear input would have been better
Been very busy last couple of day sorting out the SOVOS Tv for a friend ,what a pig to work on.
What I do need to do is to get Multisim working on this pc which is new.

Barry
barry wilkins is offline   Reply With Quote
Old 01-14-2021, 02:52 PM   #12
barry wilkins
Senior Member
 
Join Date: Aug 2009
City & State: Maidstone Kent
Posts: 164
Default Re: 4017 counter reset problem

Thinking about it I decided to use two transistors in a darlington configuration .seems to work OK .
Next step is to try it out.
barry wilkins is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Badcaps.net Technical Forums 2003 - 2021
Powered by vBulletin ®
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
All times are GMT -6. The time now is 03:49 PM.
Did you find this forum helpful?