Author Topic: Please help with electrical figurin!  (Read 2786 times)

0 Members and 1 Guest are viewing this topic.

Offline darthekai

  • Rivaling ZZ-TOP
  • *****
  • Posts: 3729
  • I CANT STOP POOPING
    • My Webpage
  • Location: Calgary, AB
  • Ride: 2002 toyota tacoma 4dr (RTT crowdsourced with NFTs)
Please help with electrical figurin!
« on: March 10, 2016, 12:29:24 am »
two questions for any not-as-retarded-as-me people with any sort of electrical knowledge:
1) will this work?
2) is there a simpler way of doing it that im missing? (my goal is to reduce relay usage)

it goes like
Code: [Select]
onEvent(){
if(switch1)
switch2unlock = 1;

if(switch2unlock && switch2)
switch3unlock = 1;

if(switch3unlock && switch3)
switch4unlock = 1;

if(switch4unlock && switch4)
win();

else
kill();
}

win(){
enableStarterRelay = 1;
}

kill(){
while(1){
enableStarterRelay = 0;
}
}

So a guy turns the key to 'on'. he then has to push all 4 momentary buttons in the correct order. If he doesnt, and tries to start the car, the horn will sound instead. If he presses ANY button out of order, the horn will sound and he can press all the buttons he wants, the car will not start. This state is re settable ONLY if the car is turned all the way off and turned back on. Once the buttons are all correctly pressed, the car may be started normally.

It seems like there should be a simpler way to do this, im just not seeing it.

 
What man put together, man can rend asunder and then also put it together sometimes what's all this left over stuff
Subaru(sold) Ford (sold) Toyota

DaDuke99

  • Guest
Re: Please help with electrical figurin!
« Reply #1 on: March 10, 2016, 02:09:10 am »
I really have no clue how to help, but I want you to build me one too.

Offline jellynuts

  • Vendor
  • Rivaling ZZ-TOP
  • *
  • Posts: 8168
  • Delay No More
  • Location: Airdrie
  • Ride: 07 STI, 15 Odyssey
Re: Please help with electrical figurin!
« Reply #2 on: March 10, 2016, 07:06:07 am »
I really have no clue how to help, but I want you to build me one too.

Me too.  What will your buttons looks like?
uckfay, Johnny with the back-handed slap. You're clearly the Oracle.

Check out my work on:  Instagram  FaceBook  Flickr  YouTube

Offline nosale

  • Patchy Faced
  • ***
  • Posts: 422
  • Location: Calgary
  • Ride: SG XTi
Re: Please help with electrical figurin!
« Reply #3 on: March 10, 2016, 09:53:32 am »
You could "simplify" your circuit by using a PIC. This looks relatively close to what you need:

http://www.gadgetronicx.com/electronic-code-locking-system-pic-microcontroller/

Has the added benefit of being able to sound the horn like an alarm if u want. Also, I'd recommend a fail-safe so that you can always start the car in case the circuit fails.

I'd be interested in making one :) been thinking about a good way to immobilizer my car. Would be cool to also enter a pass code and the car just starts.

Offline darthekai

  • Rivaling ZZ-TOP
  • *****
  • Posts: 3729
  • I CANT STOP POOPING
    • My Webpage
  • Location: Calgary, AB
  • Ride: 2002 toyota tacoma 4dr (RTT crowdsourced with NFTs)
Re: Please help with electrical figurin!
« Reply #4 on: March 10, 2016, 10:02:43 am »
I was sort of actively trying to avoid plcs, as they kind of aren't in the 'spirit of the mod' hahha.

You're right though, and we've got like 60 simple ones and various microcontrollers sitting around at work I could have for free.

It kind of purposefully fails unsafe as well.

Me too.  What will your buttons looks like?

If I told you, I'd have to die very shortly afterwards.
What man put together, man can rend asunder and then also put it together sometimes what's all this left over stuff
Subaru(sold) Ford (sold) Toyota

Offline diamondedge

  • Rivaling ZZ-TOP
  • *****
  • Posts: 2348
  • stir fryin' noobs
  • Location: Calgary, AB
  • Ride: 2007 WRX, 2008 spec.B
Re: Please help with electrical figurin!
« Reply #5 on: March 10, 2016, 11:51:59 am »
Ekai

This is most interesting. Let me ponder this and I'll get back to you...to spur you on though, it's AND logic happening - cascaded logic circuits. I'm sure they have analog IC chip w/ AND gates in it that you can do up. These IC chips probably also come in dual in line packages so they'll be easy to solder, etc. No programming..

 

^Click^
sig by shpixx x diamondedge

Offline diamondedge

  • Rivaling ZZ-TOP
  • *****
  • Posts: 2348
  • stir fryin' noobs
  • Location: Calgary, AB
  • Ride: 2007 WRX, 2008 spec.B
Re: Please help with electrical figurin!
« Reply #6 on: March 10, 2016, 01:00:31 pm »
uckfay I'm in over my head. The horn part of the circuit has confuzzled me. I only got a B in digital circuits. Will ponder more. Will I need latches? *strokes chin*

^Click^
sig by shpixx x diamondedge

Offline newyorkreload

  • Stubbly Faced
  • **
  • Posts: 74
  • Location: Red Deer
  • Ride: Silver Bug-Eye Wagon
Re: Please help with electrical figurin!
« Reply #7 on: March 10, 2016, 01:03:05 pm »
Even with out pushing any buttons it looks like the horn will go off at relay #9. which will close the circuit at relay #8 because they are in parallel. Also Relay #9 will have to be pretty beefy to handle the amp rating of your starter. unless you hook it in parallel instead of series with said relay.

Offline darthekai

  • Rivaling ZZ-TOP
  • *****
  • Posts: 3729
  • I CANT STOP POOPING
    • My Webpage
  • Location: Calgary, AB
  • Ride: 2002 toyota tacoma 4dr (RTT crowdsourced with NFTs)
Re: Please help with electrical figurin!
« Reply #8 on: March 10, 2016, 01:34:22 pm »
If the key is turned to start without pressing ANY buttons, it will power the horn and also trigger the 'kill' relay, meaning the upper circuit is broken but the lower circuit remains intact and holds as long as there's power. 
I don't think this will cause problems,  because although you are depowering relay 9 immediately after powering it, nothing happens with the coil and the horn remains powered from the 'starr'  switch.
Could be wrong though...
I only wish I could hold relay 8 with 'on' power so everything stays static until a power cycle. As it is, the guy could keep trying to start with the key and relay 8 would cycle each time.

Relay 9 will only feed the trigger for the oem starter relay. Kinda cheesy because a guy could just pop the hood and short the oem relay but idgaf
What man put together, man can rend asunder and then also put it together sometimes what's all this left over stuff
Subaru(sold) Ford (sold) Toyota

Offline darthekai

  • Rivaling ZZ-TOP
  • *****
  • Posts: 3729
  • I CANT STOP POOPING
    • My Webpage
  • Location: Calgary, AB
  • Ride: 2002 toyota tacoma 4dr (RTT crowdsourced with NFTs)
Re: Please help with electrical figurin!
« Reply #9 on: March 10, 2016, 01:36:18 pm »
uckfay I'm in over my head. The horn part of the circuit has confuzzled me. I only got a B in digital circuits. Will ponder more. Will I need latches? *strokes chin*

If it helps, ignore the horn and just leave it floating.
What man put together, man can rend asunder and then also put it together sometimes what's all this left over stuff
Subaru(sold) Ford (sold) Toyota

Offline nosale

  • Patchy Faced
  • ***
  • Posts: 422
  • Location: Calgary
  • Ride: SG XTi
Re: Please help with electrical figurin!
« Reply #10 on: March 10, 2016, 02:35:22 pm »
uckfay I'm in over my head. The horn part of the circuit has confuzzled me. I only got a B in digital circuits. Will ponder more. Will I need latches? *strokes chin*
Yeah use a couple of flip flops. You'll have to be able to store the result of one 'level' before moving into the next.

Offline GrantC

  • WSC Moderator
  • Rivaling ZZ-TOP
  • *
  • Posts: 13908
  • Motorsports is fun.
  • Location: St. Albert
  • Ride: Fender stripes, a high flow cat, yellow high beams, and an exhaust.
Re: Please help with electrical figurin!
« Reply #11 on: March 10, 2016, 04:12:43 pm »
If you're making an entire War Rig with working kill switch, I think you're taking your Fury Road cosplay too far.

Offline nosale

  • Patchy Faced
  • ***
  • Posts: 422
  • Location: Calgary
  • Ride: SG XTi
Re: Please help with electrical figurin!
« Reply #12 on: March 10, 2016, 04:16:56 pm »
If you're making an entire War Rig with working kill switch, I think you're taking your Fury Road cosplay too far.
I feel like if there would be a motto for this board it would be "we take things too far"

Offline darthekai

  • Rivaling ZZ-TOP
  • *****
  • Posts: 3729
  • I CANT STOP POOPING
    • My Webpage
  • Location: Calgary, AB
  • Ride: 2002 toyota tacoma 4dr (RTT crowdsourced with NFTs)
Re: Please help with electrical figurin!
« Reply #13 on: March 10, 2016, 04:37:28 pm »
If you're making an entire War Rig with working kill switch, I think you're taking your Fury Road cosplay too far.

I wish, you should see how much twin engine tractors trailer units are going for these days.... Yeesh.
What man put together, man can rend asunder and then also put it together sometimes what's all this left over stuff
Subaru(sold) Ford (sold) Toyota

Offline seat safety switch

  • Rivaling ZZ-TOP
  • *****
  • Posts: 6045
  • Snowmen with fezzes are ardent rally fans.
    • seat safety switch
  • Location: Calgary
  • Ride: Junk
Re: Please help with electrical figurin!
« Reply #14 on: March 10, 2016, 07:21:40 pm »
You basically want a finite state machine, which you can totally describe in a circuit with the magic of flip flops:



But I would just use a microcontroller or PIC as well.

Offline diamondedge

  • Rivaling ZZ-TOP
  • *****
  • Posts: 2348
  • stir fryin' noobs
  • Location: Calgary, AB
  • Ride: 2007 WRX, 2008 spec.B
Re: Please help with electrical figurin!
« Reply #15 on: March 10, 2016, 11:21:00 pm »
I started visualizing the state machine on my drive back from the gym...seat safety switch to the rescue. I'm going to vote PIC/micro. Code is better. uckfay lol @ me suggesting this hahaha

^Click^
sig by shpixx x diamondedge

Offline nosale

  • Patchy Faced
  • ***
  • Posts: 422
  • Location: Calgary
  • Ride: SG XTi
Re: Please help with electrical figurin!
« Reply #16 on: March 10, 2016, 11:37:16 pm »
If u go pic route I can help out.

Offline darthekai

  • Rivaling ZZ-TOP
  • *****
  • Posts: 3729
  • I CANT STOP POOPING
    • My Webpage
  • Location: Calgary, AB
  • Ride: 2002 toyota tacoma 4dr (RTT crowdsourced with NFTs)
Re: Please help with electrical figurin!
« Reply #17 on: March 11, 2016, 09:47:18 am »



you guys are neeeeerds!

hahah i couldnt figure out a way either.
Im leaning towards sticking with the 9 relay package.
What man put together, man can rend asunder and then also put it together sometimes what's all this left over stuff
Subaru(sold) Ford (sold) Toyota

Offline seat safety switch

  • Rivaling ZZ-TOP
  • *****
  • Posts: 6045
  • Snowmen with fezzes are ardent rally fans.
    • seat safety switch
  • Location: Calgary
  • Ride: Junk
Re: Please help with electrical figurin!
« Reply #18 on: March 11, 2016, 06:05:53 pm »
If you use an MSP430 it doesn't need an external clock signal, and they're dirt cheap and draw almost no frickin' current (can be < 1µA) at idle.

Dooooo it. You'd spend more time building the circuit to safely power it than you would writing the code for this.

Offline darthekai

  • Rivaling ZZ-TOP
  • *****
  • Posts: 3729
  • I CANT STOP POOPING
    • My Webpage
  • Location: Calgary, AB
  • Ride: 2002 toyota tacoma 4dr (RTT crowdsourced with NFTs)
Re: Please help with electrical figurin!
« Reply #19 on: March 11, 2016, 06:30:43 pm »
safely power it

Relays with floating legs it is.

Plus the msp has a 16 bit CPU with, you guessed it, a clock.
Aaand you KNOW how I feel about CLOCKS...
What man put together, man can rend asunder and then also put it together sometimes what's all this left over stuff
Subaru(sold) Ford (sold) Toyota

Offline Rathburn

  • Rivaling ZZ-TOP
  • *****
  • Posts: 4829
  • Pork chop sandwiches
  • Location: Calgary, AB
  • Ride: Generic SUV
Re: Please help with electrical figurin!
« Reply #20 on: March 17, 2016, 10:34:29 am »
Me too.  What will your butt hole looks like?

You don't even want to know.
Is illmotion's sunday school where you learn about how Stance Jesus scraped for your sins?
Roxanne - 2015 WRX Ginger - 1990 Civic Si
Avatar courtesy of Wong Photography

Offline jellynuts

  • Vendor
  • Rivaling ZZ-TOP
  • *
  • Posts: 8168
  • Delay No More
  • Location: Airdrie
  • Ride: 07 STI, 15 Odyssey
Re: Please help with electrical figurin!
« Reply #21 on: March 17, 2016, 12:16:19 pm »
lol, you got me.
uckfay, Johnny with the back-handed slap. You're clearly the Oracle.

Check out my work on:  Instagram  FaceBook  Flickr  YouTube