Process Square Wave and Out

I am working on a project where I need to read a set of square waves then based on the pattern output +12V or -12V for a set amount of time on 1 of 2 different wires. The square waves go from 0V Low to 8V high so an example of a message might be a 12mS high(8V)-6mS low(0V)-9mS sequence repeated 14 times. That might mean wire 2 output 12V positive for 1 second.

This is going to live in a car and talk to systems in the car so I would also need to figure out how to power the unit without having a ton of bulky voltage converters etc.

Ideally I just want a little black box with 5 wires coming out of it. The first two would be 12v power & 12v ground to run it and turn it on, the second would be my input wire for reading the messages made up of the square waves and the last 2 would be the outputs wires that would output 12V pos or neg independently for X amount of time based on the message.

Is Arduino the right thing to use here? If it is how would I do this and what would I need? Is there a better way to go if Arduino isn't the right choice? Thanks in advance for your help!

The only signifiant problem is the power supplies . For -12v you'll need a seperate power supply .
And do you need EXACTLY +/-12 out , or would +/- the positive supply supply do?

And are the outputs always +/- 12, or sometimes 0?

regards

Allan

It would always be 12V either positive or negative for the ouput, but I could use relays for the +12V output.

12mS high(8V)-6mS low(0V)-9mS sequence

Relays don't switch that quickly, and they bounce.

You could use an H-bridge and one +12V supply, if the signal can be isolated from the +12V ground.

RS232? CAN bus? (more information needed)

The relay was for the output not the input. Also not sure if it is rs232 or can bus. It is just label as RDA.

Here is some more information on the project and the goal.

The project is based around my 2008 Toyota 4runner. I am going to install a remote start on it and plan to use the factory fob to control the remote start ( click lock 3 times to start it ). The problem is once the car is running the lock controller ignores signals from the fob to lock and unlock the car. So once the car remote starts you are locked out of the now running car unless you use the key.

The good news is the wireless module that receives the signal from the remote still receives the wireless signal and sends the messages to lock/unlock the car at all times on this RDA line regardless of if the car is running or not. When the car is running the lock module just ignores the messages.

Because the module is needed for the car to run tricking it into thinking the car isn't running is not an option.

So to solve this I want to monitor the RDA wire that carries the messages from the wireless module if the car is running under the remote start and then just bypass the lock module and actuate the locks. That is why I need the two output wires. One for lock and one for unlock.

The system in the car looks like this:

[Wireless Receiver] --RDA Messages--> [Lock Controller] -- +/-12V12V pulse --> [analog lock actuators]

My Arduino board would connect to the RDA Messages line and then output to the analog locks based on the messages. This would essentially cut out the lock controller.

Here is the research I read that got me started down this road.
http://www.the12volt.com/installbay/forum_posts.asp?tid=134461