August 11, 2017 11:58 PM CEST
in the topic
Car blinker in the forum
Support
Hi all,
for my current project I was looking for this feature. I would like implement blinker triggered by button or steering. In addition to this I want to support hazard flasher by button.
I solved all requirement with the current SBrick software.
First you need to define the following controls in GUI:
Slider for Steering
Sequence Control "blinker left" with
one Channel "blinker left" with Time frame 0,7 sec and three marks
Time: 0 ; Value: 0
Time: 0,3 ; Value: 0,6 (defines density value)
Time: 0,7 ; Value: 0
Sequence Control "blinker right" with sequence settings similar to "blinker left"
Sequence Control "hazard flasher" with two channels "blinker left" and "blinker right" each channel similar to "blinker left"
Slider as "Dummy" (This connector should be left empty, but is important for correct behaviour)It is recommended to set width and height to 0 so it is not visble.
Now you need three circuits to to run your blinkers triggered by steering:
Circuit "Dummy Circuit" (Without this circuit my left blinker will not be activated by steering)
Input: Steering
Logic: linear
a: -1
b: 0
Target: Dummy
Circuit "Blinker Left"
Input: Dummy
Logic: event
upper limit: 1
lower limit: 0,1
Target
in: Blinker Left
mode: on
out: Blinker Left
mode: off
Circuit "Blinker Right"
Input: Steering
Logic: event
upper limit: 1
lower limit: 0,1
Target
in: Blinker Right
mode: on
out: Blinker Right
mode: off
Sorry for not having a link for you but currently I am not allowed to change my profile to public, so I cannot share it with you.
Feel free to comment my solution or contact me for questions.
I do not like the Dummy, but I think there is a bug in firmware of SBrick so it is a workaround but you will be able to enhance your MOCs with this solution.
Best RegardsDirk