Open Panzer

Open Panzer Help & Info => Open Panzer Help => Topic started by: Gummikaiser on February 24, 2019, 08:13:59 AM

Title: Camouflage Stop-Light and Camouflage Front/Rear Light
Post by: Gummikaiser on February 24, 2019, 08:13:59 AM
Hello Luke,
can you implement a function, when all Lights off, another Led‘s For camouflage Front/rear light burns and for camouflage brake lights when brake?

Best regards
Rainer
Title: Re: Camouflage Stop-Light and Camouflage Front/Rear Light
Post by: LukeZ on February 24, 2019, 01:26:33 PM
Hi Rainer, I'm sorry but I do not understand the request. We have several German speakers on the forum, feel free to write your request in German and one of them can translate, if that helps.
Title: Re: Camouflage Stop-Light and Camouflage Front/Rear Light
Post by: Gummikaiser on February 25, 2019, 03:01:39 PM
Hallo Freunde,
ich möchte das bei meinem Leopard 2a6 sobald die Lichter ausgeschaltet werden ein Tarnlichtmodus eingeschaltet wird.
Das heißt, Tarnscheinwerfer vorne, Tarnrücklichter und das Leitkreuz.

Dazu beim Bremsen das Tarnbremslicht.

Ist es möglich diese Funktion in der Firmware der TCB zu integrieren?

Grüße
Rainer
Title: Re: Camouflage Stop-Light and Camouflage Front/Rear Light
Post by: LukeZ on February 25, 2019, 06:38:21 PM
I hope my friend Jürgen will also respond, but in the meantime, if I understand correctly, you want some lights to come on when others turn off. This is easy to do when you understand that you can assign multiple functions to a single trigger.

If you have a trigger (for example an aux channel switch) assigned to turn normal lights on/off, use that same trigger to also turn stealth lights off/on. For example:
Switch position 1 - normal lights on, stealth lights off
Switch position 2 - normal lights off, stealth lights on

You can turn your camouflage brake lights on by using the Brakes Applied trigger, and then turn them off by using something like the Vehicle Stopped trigger. Or you could turn them off with the Moving Forward and Moving Reverse triggers, that way the stealth brake light will remain on until the vehicle starts to move again (you can assign multiple triggers to the same function).

Here is a list of all triggers (http://openpanzer.org/wiki/doku.php?id=wiki:tcb:operation:triggerlist).
Title: Re: Camouflage Stop-Light and Camouflage Front/Rear Light
Post by: jhamm on February 26, 2019, 01:57:32 AM
Hallo Rainer,
diese gewünschte Funktion kann man über Trigger lösen, eine spezielle Firmeware ist dafür nicht erforderlich.
Das TCB hat für die Beleuchtung fünf dedizierte Ausgänge, auf dem Bild unter "Light Outputs" sind vier:
(http://openpanzer.org/wiki/lib/exe/fetch.php?media=wiki:boardlayout.jpg)

L1 = kann man frei zuweisen, Funktion AN/AUS und Umschalten
L2 = kann man frei zuweisen, Funktion AN/AUS und Umschalten
Brk = Bremslicht ist der Funktion Bewegung zugeordnet, man kann es automatisch leuchten lassen wenn das Fzg. steht und man kann die intensität beeinflussen
MG = Maschinengewehr, hier kann man die Blinkfreqzuenz einstellen.
AUX = Ausgang = vielfältig nutzbar, ist im Wiki beschrieben =>  http://openpanzer.org/wiki/doku.php?id=wiki:tcb:tcbinstall:special_aux_output (http://openpanzer.org/wiki/doku.php?id=wiki:tcb:tcbinstall:special_aux_output)

Zu den Triggern hat Luke schon das erforderliche geschrieben.
Du musst Dich aber bitte mit den Funktionen vertraut machen, im WIKI findest Du alles sehr gut beschrieben - in english, aber da hilft der Google Übersetzer.
Wenn Du Fragen hast, dann schreibe diese hier rein und wir klären das.

Grüße aus dem Norden

Jürgen
Title: Re: Camouflage Stop-Light and Camouflage Front/Rear Light
Post by: Gummikaiser on March 02, 2019, 03:04:55 PM
Hallo LukeZ,
Hallo Jürgen,

Vielen Dank für die Antwort, das ist es was ich wollte.

Werde ich dann in Kürze testen.

Grüße aus Halle in Westfalen.

Rainer
Title: Re: Camouflage Stop-Light and Camouflage Front/Rear Lightß
Post by: Gummikaiser on March 10, 2019, 04:19:11 PM
Hallo,
das habe ich soweit verstanden.
Im groben läuft das ganze jetzt.

Aber mir fehlt jetzt noch das Blinken beim Links/Rechts abbiegen.
Geht das auch irgendwie, habe ja eigentlich keine Ausgänge dafür.

Grüße
Rainer
Title: Re: Camouflage Stop-Light and Camouflage Front/Rear Light
Post by: LukeZ on March 10, 2019, 06:25:48 PM
You need to link turn triggers to a blinking output.

The triggers are Right Turn, Left Turn and Turn Stop (http://openpanzer.org/wiki/doku.php?id=wiki:tcb:operation:triggerlist#ad-hoc_triggers).

As for outputs there are five with blink capability:
- MG1
- MG2
- Aux output
- IO A
- IO B

You may already be using MG1 for machine gun but you still have the other outputs to choose from. IO A & B do have a current limit of 20mA, but even that should be adequate for most LED lights if you choose the correct current-limiting resistor.

In short you have many options, it depends on what other outputs you already have assigned.
Title: Re: Camouflage Stop-Light and Camouflage Front/Rear Light
Post by: Gummikaiser on March 11, 2019, 03:45:47 PM
Hello LukeZ,

Thanks, that is my question, 20 mA per Channel, but the LED must have Resistor for power limit.

Isn‘t it ?

Best regards
Rainer
Title: Re: Camouflage Stop-Light and Camouflage Front/Rear Light
Post by: LukeZ on March 11, 2019, 04:44:11 PM
You are correct. You can use a calculator like this one (http://ledcalc.com/#calc). Supply voltage = 5 volts. Desired current = 20 mA (or less). Voltage drop you can find from your LED specification.

Of course the other outputs (Aux, MG, L2, etc) can supply more current, but you still need to provide a resistor or else your LED will burn out.