generating square wave signal +12v/-12v(!) - is it possible?

Hello,

so, the full story. I have another topic here on how to detect a square wave signal +12v/-12v. That topic is solved, I received a lot of great suggestions.

However, The full story is that once I detect that the 12v/-12v 1Khz square wave signal a car ECU generates stopped, I want another device (arduino) to take over the ask from the ECU and to generate similar +12v/-12v signal - at 1Khz, duty cycle is 50%.

As I know, it is not possible to generate negative voltage with arduino - is there anyone who knows how to make such a signal?

For how long time will this second controller have to be generating its +/- signal?
I think about tapping that +/-12 volt into suitable capacitors and use those stored voltages for outputting voltage, not current.

Do you have access to +12V and -12V supplies?
You could use PVT312 opto isolators to switch the 2 supplies to the output.
(Or PVT212, PVT412, depends on how much current is being switched)
https://www.mouser.com/Search/Refine?Keyword=pvt312

What does the load look like?

...and... why would a car circuit generate negative signal voltages? It's sounds terribly wasteful of resources, because it's not (as you are discovering) very easy.

Do you have any links that could educate us about your ECU signals to better answer your question?

It is easy to generate such a signal, if you have a bipolar power supply, providing +12 and -12V.

I would use an optocoupler for safety and isolation. This would be for a very light load (logic signals):
bipolar_sqw.png

bipolar_sqw.png

aarg:
What does the load look like?

...and... why would a car circuit generate negative signal voltages? It's sounds terribly wasteful of resources, because it's not (as you are discovering) very easy.

Do you have any links that could educate us about your ECU signals to better answer your question?

it is the pilot signal every electric car needs to provide through the J1772 connector to command the charger to supply charging.

IS this +- 12 volts in relation to the vehicle ground, or some other common wire?
Paul

Paul_KD7HB:
IS this +- 12 volts in relation to the vehicle ground, or some other common wire?
Paul

the negative ground wire is also coming from the ECU, just like the positive wire.

Tiborx8:
the negative ground wire is also coming from the ECU, just like the positive wire.

Sorry, That make no sense, at all. Where are you measuring the voltages? Between which two points for each measurement.
You have a signal wire and a ground wire. Or do you have two signal wires and a ground wire. Or do you have a single wire that alternates voltages when referenced to a common or ground wire.
Paul

I'm curious, could you, OP, provide the make, year, model of the car so I can look it up to see how they are generating the -12V signal?

Sorry to be blunt, but I suspect a measurement error here.

aarg:
Sorry to be blunt, but I suspect a measurement error here.

or a language, nomenclature error?

This might be of interest. I followed the other thread and never did convince myself y’all were actually talking about a +12/-12 with respect to ground (0) volt signal, seemed odd.

But that it is:

a7

In their other thread the OP is adamant it's a signal that goes indeed all the way from +12 to -12 and is at 0V when there's no signal. Odd, but for lack of other ways to confirm it (such as tecnical datasheets of the ECU in question) I'll take their word for it.

The circuit from the instructable in #12 looks simple enough to me. The only question I have is... why would you even want to fake this signal?

A +/- 12 volts signal from a device in a vehicle electrical system could simply be derived from an H bridge or similar. The output would look like -12v 0v +12v on an oscilloscope. To recreate it, if required, another H bridge.

Idahowalker:
I'm curious, could you, OP, provide the make, year, model of the car so I can look it up to see how they are generating the -12V signal?

it is a 2014 citroen c-zero (same as the mitsubishi i-miev)

There’s no need to take anyone’s word for it. I appreciate the stubbornness, I had torble myself.

Try google.

It’s just how signaling works in this circumstance. Why is probably interesting.

a7

Oi!

From the link in post #17

A 1 kHz square wave at ±12 volts generated by the EVSE on the control pilot line to detect the presence of the vehicle, communicate the maximum allowable charging current, and control charging begin/end

for the charging system.

I did find one link to the service manual for the year make model but they want 29.99USD, not happening.

Yes, it is possible to generate a +/- 12V signal at 1Khz using an Uno and some external components.

The specific mention in that article of +/-12 volts, -12 volts and 0 volts convinced me it was a competent exposition of truth.

About an H bridge, I basically understand using it for greater peak to peak voltage, and have done similar things with two i/o lines for “AC” excitation of piezo discs. But

will an H bridge ever yield a negative voltage measured wrt to ground?

The hacks I’ve come across so far use DC/DC converters to develop +12 and -12 volts.

a7