Multi input fading output

Ok, first project was a succes. Now a second one, again railroad related.
Sign command, Red light is lit, puls on a input and redlight fades out and the other light lights up fading in. As a Belgian sign has 4 light colours on the main board (red, green, yellow, white) only these 4 outputs should interact with eachother. Extra feature, when the sign is for the opposit driving direction the lights need to blink, fanding in/out (pulse extra input) The other 2 PWM outputs will be used for 2 additional light indications on the sign and need to be switched on by puls fading in and off fading out.
Who wants to spend time on this?

  1. You

Would you show an example or a "sequence" of the activity with these six? two? lights.

Example would be a video or a hand drawing... showing direction, light, activity.
Sequence, like an audio-vide-sequencer.

   T1  T2  T3  T4
L1 on  off off on
L2 0...fade...max
L3 off on  off on

may be you give yourself a try?

For example you could start defining each single face including what light is on - what light is off, what light is blinking. Do that for each face!
what commands do you want to send to your light (define your interface)
are there any automatic changes from one face to another, after a specific time or after a specific amount of blinks ...

And as we know the result from your other thread, tell up front how many signals you plan to operate.

It is my opinion (not speaking for anyone else) Topics should be self-supporting, unless references are given to previous topics.


This is what needs to be contolled. I made it now with simple electronics and it runs now on a timer for display. Electronics are easy, fading, add capacitor, blinking, take NE555, speed, potmeter .....
I will try to make a table with the functions.
(4) Facebook

1 Like

Four LEDs and three "pulse" inputs? Also... show LED states (what all LEDs look like with every combination of "pulse").

I'm already aware that I have a big lack on knowledge about programming to understand all the functions that are used and the general setup of a sketch. Maybe in a year I can create my own stuff but for the moment it won't do. So if this a wrong place for me to be just let me know. I can come back later when I got my Gold member master license diploma.
So, I want to use all the 6 PWM outputs from the arduino board for switching on leds by fading in and off by fading out. 3 of those outputs (Green, red, yellow) need to be linked with eachother so that only 1 can be on, so it fades out when another one is on and fades in. These 3 outputs and 1 extra on/off output (white), also should blink when on (fading in/out) when an input (7) has been tiggerd by a puls. The other 2 outputs are just on/off outputs (fading in/out) by triggering the input. Does this make sense?
Behind the fb link is an example.

input

The fb link doesn't work currently.

If I were you I would do it in two steps:

  • a simple class to dimm up or down a single LED softly. Reuse some code already available from the class Lamp.
  • combine several Soft-LEDs objects into a class for the signal

Sorry for the FB link
I found an other link
https://www.google.com/search?sca_esv=74c3c93a61ef7e5d&sca_upv=1&rlz=1C1GCEB_enBE1091BE1091&sxsrf=ADLYWIJFEbuvbMf2WJEcynravBjFmIMFUA:1724827953159&q=NMBS+SEINEN&tbm=vid&source=lnms&fbs=AEQNm0A6bwEop21ehxKWq5cj-cHaxUZOSO72WoU7KkLyB7O1BBVOWnG_fwlCX9sUS03MS9OnxWUMSSLx6yB4KrJy3b6n9WE-d7iuDbio_dL47wroLCOEDSusSAn3Cji-saVMr2qRVEdKgnWGvYc_vH3l_kW3pRO25bORnlDXI9689JAepn_dqAY&sa=X&ved=2ahUKEwihiMnrjJeIAxVj2wIHHWGXDIMQ0pQJegQIEBAB&biw=1707&bih=762&dpr=1.13#fpstate=ive&vld=cid:4484f730,vid:1sIp28MAc5Q,st:0

A standard fade in/out is easy to find, an on/off push button also, but then how to combine those two? Next then, multiple of those in a sketch, making them blink and making some
of them interact with each other so only 1 can be on :crazy_face: :crazy_face: :crazy_face: