Using negative voltage signal to activate a sketch


first, arduino wonderful tool , thank fellow techno-babblers, d&d gamers , other nerddom amazing collective knowledge , willingness help.
problem: use -5v signal activate portion of sketch.
alternative 1: convert -5v +5v relay.
alternative 2: use remote radio signal activate sketch.
i'm making adaptive device  kid tactilely defensive, means can't grab controls. attempting modify sit-in electric car remotely controlled parent. have adapted inexpensive remote car controller trigger arduino board. have relays setup control power , polarity @ sit-in car's 12v motor (forward/reverse). can setup move wheels either direction +5v signal need -5v signal turn wheel other direction; however, understand arduino can't read negative signal @ input pins.
the goal use remote, signal motor controller, use motor controller (+5v/-5v output) signal activate different sections in sketch. have managed write code work , can +5vdc activate sketch (+5 move wheel fwd or rev) need alternatives methods use -5v signal or use remote signal directly affect arduino.
i use -5vdc ground primary side of relay, use +5vdc on secondary side trigger pin. use signal remote itself, i'm not sure type of sensor need read signal, how tune sensor remote frequency, or if necessary. want make cost effective diy kit parents use on similar "ride-toys". i'm open suggestions on simpler/cost effective approaches. able use 1 of elegoo joysticks use analog thresholds switch relays fwd/rev, know sketch works @ least analog input hardwired , need remote.
the output/signal motor control simply: +5v in forward, 0v in neutral, -5v in reverse. there no pwm in control. switches instantly 5v +/- both directions. when control switched neutral, can see bleed down 5v 0v on second or two. (i'm guessing it's capacitor discharge?)
as note, car not have mechanical or electronic steering wheel. turns zero-point lawn mower, or tank, in forward of left motor , reverse of right motor causes rotate right , vice versa. tactile kid, ideal since won't want touch steering wheel anyways. ideal since controls simplified 2 fwd/rev joysticks control , sit-in cars less expensive ones mechanical steering. goal teach child use controls instead of parental control. not fun medium overcome disability. pushing lever forward/back easier these kiddos trying turn wheel. times don't have strength turn , simplification solves of difficulty have overwhelming sensory input.
the other thing is, running board in -5vdc test sketch. i'm guessing amps draw small not sure if damaged pins or not. how test diode protection circuit on board?
my experience base: first time using code since high school, basic, in fact think called basic or c not sure. 27 years ago. i'm technical trainer , curriculum developer automotive oems includes electrical troubleshooting , theory. have run , adapted 30 sketches of various sensors elegoo 37-in-1 sensor kit feet wet. have not used ir or radio remote sensors yet intend next challenge. on past couple months, have adapted, combined , used dozens of example sketches site both failure , success equally. i'm getting more proficient @ combining , modifying sketch examples still novice. current sketch on 37th revision. doesn't include fact i've wiped , started on several times realized either code, wire diagram or components incompatible, inefficient or "thermally reactive" (grounded without load :).

i totally oversimplifying, , kinda dense when dont have code and/or schematic in front of me (then again, when can down-right stupid)

what using digitalread , looking low?


Arduino Forum > Using Arduino > Project Guidance > Using negative voltage signal to activate a sketch


arduino

Comments

Popular posts from this blog

Error compiling for board Arduino/Genuino Uno.

Installation database is corrupt

esp8266 (nodemcu 0.9) client.write très lent ???