I need to recognize a pattern, in my case it should do something when the flasher is activated and not the break light as they run over the same wire.
Multivac's only response after much "thinking" is: "INSUFFICIENT DATA FOR MEANINGFUL ANSWER."
Mark
From - "The Last Question" a science fiction short story by Isaac Asimov. It first appeared in the November 1956 issue ....
M
I hope this helps. I'm new to Arduino, and I'm not sure what you're building, but...
Just off the top of my head, can you access the brake light switch in order to run a wire from it?
Perhaps you can use the brake switch output as a separate input to the Arduino (once the voltage is dropped sufficiently).
That way you can program the Arduino to activate only when there is no brake signal AND the turn signal is activated.
Programmers might be able to tell you if or how to do what you were asking, but I'm more of a hardware guy.
I get the input from the trailer plug, and there the break light and the flasher is on the same wire.
As they a both on the same wire then no i don't think you can as its sounds like the flasher is really just an extra brake light and not a turn indicator.
Mark
Well, maybe you could, because there will be two wires, for left and right lights. During braking, they both come on. During turn-signalling, only one comes on.
Satx, what happens if you break while turn-signalling?
And what is it you want to do on turn-signalling?
Paul
On vehicle in the USA it's quite common to use the same light for braking and turning.
So when you turn the for example the left turn signal on and press the brake at the same time the right turn/brake light comes on while the left one is flashing.
While my own vehicle has separate turn lights and break lights, the trailer plug doesn't has it. And this has to be transferable to a different vehicle.
When you have the emergency flasher on and break, only the 3rd brake light stays solid and the left and right one is flashing.
I goolged and found a program that can detect knocks on a door, and I was hoping someone knows that might give me a little help to adapt this function to my problem.
And to the question what I want to do, this is a special project for a volunteer. When he turns on the four way flashers his trailer should have different lights come on. Also when he turns his turn flashers on, some turn signals should come on, but they should stay off while breaking.
It ought to be easy enough to distinguish between 'on solid' and 'on intermittently'. Essentially you're looking for the input being active for longer than your flash period.
I am looking for the flash pattern, as the extra lights should come on while it's flashing it's four way flasher.
So when he pulls his trailer and has to stop in the middle of the road and turn the four way on, some extra flashers on the back of the trailer will start flashing to give more warning.
It's like get blood from a stone.
Answer the following with simple yes's or no's
When the brake is applied does the flasher always come on?
Do you have any control over the flasher which does not require the brake light to be on? If yes - how
Mark
Let me show you a picture first:

I can't answer yes or no as for US trailers there is no separate turning light.
When the brake is applied the brake/turning lights come on.
When the brake is applied and one turning light is used, the other brake/turning light stays steady on, while the applied one flashes.
When the emergency or four way flashers are turned on, and the brake is applied the flashers just flash and ignore the brake lights.