car mirror in/out with locking the doors, but i'm stuck.
i'm new arduino, started simple project's, of course, took on school project i'm doing @ work use point me in right direction.
the thing want when lock car door mirrors go in, , when put ignition op mirrors should go in drive position.
there module turns mirrors in , out, gets pulse button. push button , go in. push again , go out.
i use door locking signal comes remote turn mirrors in.
but when start driving doors lock can use signal when ignition off.
when turn on ignition mirrors should go in driving position when turn on. because should able use normal, existing, button move mirrors. if mirrors go in ignition on not work more.
that why need counter of short know position of mirror, counter needs know if button pressed new position is, , remember data until changes new value.
i'm working on project time now, tried many different things, non of them work. of course reason i'm here. in hope help.
i attach program have , hope take time me out here.
the thing want when lock car door mirrors go in, , when put ignition op mirrors should go in drive position.
there module turns mirrors in , out, gets pulse button. push button , go in. push again , go out.
i use door locking signal comes remote turn mirrors in.
but when start driving doors lock can use signal when ignition off.
when turn on ignition mirrors should go in driving position when turn on. because should able use normal, existing, button move mirrors. if mirrors go in ignition on not work more.
that why need counter of short know position of mirror, counter needs know if button pressed new position is, , remember data until changes new value.
i'm working on project time now, tried many different things, non of them work. of course reason i'm here. in hope help.
i attach program have , hope take time me out here.
quote
that why need counter of short know position of mirror, counter needs know if button pressed new position is, , remember data until changes new value.i'm not sure counter going work. if mirrors out-of-sequence counter out-of sequence too.
there's limit-sensor in mirror tell when stop motor or when it's in "home position". if can tap-into sensor arduino knows if mirrors in or out, should help.
the key making thing foolproof knowing if mirrors in or out before "do anything"... that's how work now... you know if mirrors in "wrong" position , if are, push button.
quote
i use door locking signal comes remote turn mirrors in.i'm not sure i've comprehended that... i'd have make chart... if make chart of conditions , required result each condition, should able use logic (if, and, or) in code results want.
but when start driving doors lock can use signal when ignition off.
when turn on ignition mirrors should go in driving position when turn on. because should able use normal, existing, button move mirrors. if mirrors go in ignition on not work more.
there 3 inputs, right? lock state, mirror state, , ignition state. means there 7 static states. ...you might need read , "remember" active state (such door-lock pulse , door-unlock pulse) know if doors locked or unlocked.
it might difficult know current state of mirrors , state of locks (you can check state if ignition) if mirrors end-up in wrong state, pushing manual button reverse , should on track.
p.s.
do door locks matter? how moving mirrors out when ignition turned-on , back-in when it's switched-off? (and if need override that, can push button.)
Arduino Forum > Using Arduino > Project Guidance > car mirror in/out with locking the doors, but i'm stuck.
arduino
Comments
Post a Comment