I have an impulse signal from my car turn light and i want to change it to the straight signal without the pulses. I heard about multivibrator like C4047
Anybody knows how to plug it ? I knows where put the VCC but how about the impulse signal and rest things?
Well... i need a straight/stable for the transmitter/relay which in one way will power the Arduino, and in other way the other thing. If it is not necessary i would like to avoid the Arduino for drive the multivibrator, beause i will need to add another chip for the board with arduino. Is there a easer way to drive the multiwibrator, by resistor or potentiometer or other device ?
The turn lights pulse is a very long time duration looking form Arduino.
You can very easily have an if statement in your loop() to ask if an input has become high.
Then save this state in a global, and do your code.
At some point you will need to start over, then you reset your state varaibale and look for a change on your input again.
Very easy to do, as you can almost directly use the "Button" example found here.
Ok Anders i can read it because i know the english but i cant figure out what to think about what i read
I ill be straight as possible.
In case of arduino than multiwibrator.
i recieve the pulse signal to the arduino, and when the arduino sense the signal it will send the stable signal to the output. The 5V will be enough to drive the transmitter/relay! but arduino also need after sense the singal delay it because the signal will be high and low in loop. So how can i make it ? i will put it on the Attiny85 maybe.
Here is the logic. Suppose t is the time between blinks (where a blink is the input active time). Any time the input is active, enable the output. If the input has been inactive for greater than time t, disable the output.
If a pulse turns the light on, how does it turn it off ? A 555 monostable will only go high with a negative input signal. If you need it to toggle ON with the first pulse and OFF with the next you need a FLIP FLOP
I need stable DC for the relay. The idea is simple.
Turn the turn signal on, the signal going to the Attiny which make the signal stable, then it goes to the 5V relay which in one way turn the day lights off and turn the signal light on, then when the signal will go off then the relay turn itself and the day light will go on.
So:
1 .after attiny detect the signal it make it stable using own power from VIN.
2. Stable signal going to the relay and change its position.
3. after signal is gone more than i dont know, maybe 2 seconds then the attiny turn off the stabilized signal.
Yes Michael, the 12V from the car will be stabilized to the 5V via 7805 stabilizer.
You need a circuit or algorithm called a "missing pulse detector".
This will output one level if there are no pulses and another level if there are pulses.
You can make this with a capacitor that is charging up and a transistor across it that discharges the capacitor when it gets the pulse. Arrange the time constant so that in the absence of a pulse the capacitor charges up to some threshold voltage that triggers a circuit. This could be monitored on an analogue input.
Alternatively you have a software program that records the millis() time on each pulse. The loop then checks how long it has been since the last pulse and triggers a variable if it has been too long.
i wonder whether hardware solution can be enough precise, and how about durability?
Can the capacitor will charge up enough after one pulse, of course i will put the Schottky diode but will be enough?
I think the software solution will be more flexible and precise ?
Before Arduino times we did this with a simple cmos IC. e.g CD4538.
AFAIK, the circuit is called a "pulse stretcher".
A re-triggerable mono.
Like this.
Leo..