Go Down

Topic: Change impulse signal to the straight signal (Read 4577 times) previous topic - next topic

nexusprime

Helo

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?


Cheers!

larryd

Google: bistable multivibrator images.
For Arduino you will have to have 5 volt o/p.
Will need to reset the bistable with your code.
No technical PMs.
The last thing you did is where you should start looking.

nexusprime

#2
Apr 05, 2015, 01:08 am Last Edit: Apr 05, 2015, 01:09 am by nexusprime
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 ?

Anders53

#3
Apr 05, 2015, 01:13 am Last Edit: Apr 05, 2015, 01:13 am by Anders53
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.

nexusprime

#4
Apr 05, 2015, 01:29 am Last Edit: Apr 05, 2015, 01:38 am by nexusprime
Ok Anders i can read it because i know the english but i cant figure out what to think about what i read :D

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.

aarg

#5
Apr 05, 2015, 03:18 am Last Edit: Apr 05, 2015, 03:31 am by aarg
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.

It's not more complicated than that.
  ... with a transistor and a large sum of money to spend ...
Please don't PM me with technical questions. Post them in the forum.

nexusprime

Now i understand. Do You saw over here similar project? i am a very greeny in Arduino case.


raschemmel

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
Arduino UNOs, Pro-Minis, ATMega328, ATtiny85, LCDs, MCP4162, keypads,<br />DS18B20s,74c922,nRF24L01, RS232, SD card, RC fixed wing, quadcopter

TomGeorge

Hi,


Quote
I have an impulse signal from my car turn light and i want to change it to the straight signal without the pulses.
You have the pulsed DC voltage that makes your turn signal blink and  you want to get a Full DC Voltage when ever the indicator is being used?

Use a diode, capacitor and a resistor.

Not sure how smooth you need the DC output, what are you aiming to do with the DC?

Tom..... :)
Everything runs on smoke, let the smoke out, it stops running....

michael_x

#10
Apr 07, 2015, 04:15 pm Last Edit: Apr 07, 2015, 11:07 pm by michael_x
flipflop is something different.

I guess you think of such a code  (aargs suggestion):

Code: [Select]
#define BLINKDURATION 1000 // time (ms) to detect blinker is off
#define BLINKPIN 2           // INPUT blinking signal pin
#define STRAIGHTSIGNALPIN 3  // OUTPUT non blinking
 
void setup() { pinmode(STRAIGTHSIGNALPIN, OUTPUT); }

void loop () {
 static unsigned long lasttime;
 boolean blinking_input = digitalRead(BLINKPIN);
 static boolean output;
 if (blinking_input == HIGH)
 {
   lasttime = millis();
   output = HIGH;
 else
 {
   if (millis() -  lasttime > BLINKDURATION )
   {
   output = LOW;
   }
 }
 digitalWrite(STRAIGHTSIGNALPIN, output);
}


assuming a properly blinking signal on BLINKPIN ( 5V-0V when blinking, 0V when not blinking)

[ edit : fixed my favorite error getting the elapsed time ]

Can of course be solved in electronics as well.

raschemmel

Quote
You have the pulsed DC voltage that makes your turn signal blink and  you want to get a Full DC Voltage when ever the indicator is being used?
Thanks TomGeorge,
I didn't know what the OP was talking about until I read your comment above. I still don't know how the OP plans to turn it off.
Arduino UNOs, Pro-Minis, ATMega328, ATtiny85, LCDs, MCP4162, keypads,<br />DS18B20s,74c922,nRF24L01, RS232, SD card, RC fixed wing, quadcopter

nexusprime

#12
Apr 07, 2015, 06:44 pm Last Edit: Apr 07, 2015, 06:47 pm by nexusprime
Helo Guys!

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.

Grumpy_Mike

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.

nexusprime

#14
Apr 07, 2015, 09:02 pm Last Edit: Apr 07, 2015, 09:05 pm by nexusprime
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 ?

That one looks interesting...
http://www.indiabix.com/_files/images/electronics-circuits/555-missing-pulse-detector.png

What is that element on the input?

Go Up