Main > Driving & Racing Cabinets
Adding Race Leader lights - advice needed
JVDV1:
So guys i kinda got my race leader lights working using mamehooker
they come on (by the mamehooker code thats sent) but stay on and need another code sent to turn of
i use a cheap usb relay board
to turn on i use this code:
ghd 1 &H5131 &H2007 65 &h0:&hA0:&h01:&h01:&hA2:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:
to turn off i use this code:
ghd 1 &H5131 &H2007 65 &h0:&hA0:&h01:&h00:&hA1:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:
see picture what i tried but its not working
JVDV1:
never mind the other codes on start vr lamp and brake lamp thats for U-HID board that i'm not gonna use
JVDV1:
so i found it there needed to be a separator ( | ) between the 2 codes for each output state first code state 0 second code state 1
[General]
MameStart=
MameStop=
StateChange=
OnRotate=
OnPause=
[KeyStates]
RefreshTime=
[Output]
Raw_Motor_Data=
Start_VR_Lamp=
Leader_Lamp=ghd 1 &H5131 &H2007 65 &h0:&hA0:&h01:&h00:&hA1:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:|ghd 1 &H5131 &H2007 65 &h0:&hA0:&h01:&h01:&hA2:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:&h0:
Brake_Lamp=
buttersoft:
--- Quote from: JVDV1 on October 21, 2025, 04:13:53 pm ---so i found it there needed to be a separator ( | ) between the 2 codes for each output state first code state 0 second code state 1
--- End quote ---
Ok, glad to hear you got it working. But, i cannot translate anything in that code/config, I'm ashamed to say, and I'm curious! That's from the manxxtt.ini file, yes? Or the model2.ini file? Any chance you could unpack precisely how you are addressing the USB relay device (via com port, or what?) and what the code is doing when the output-lamp changes state?
JVDV1:
this code needs to go in the mamehooker directory Model2 manxtt.ini
if you get Troubleshooter 2 and mamehooker working :)
i'm not much of a code specialist but hours of searching and trying i finaly found it
replaced the relays on the USBRelay PCB with solid state relay and have it working in the cabinet now
put LEDs in the leader lights
BUT :) its to bright now, because when you are race laeder it blinks 1 second on / 1 second off
realy anoying if you are trying to focus on the screen just undernaeth
so annyone know a code to make a 1 second delay in the 1 states ?
so it will on full time ?
there will be a second overlap when the 2 lights are on when you overtake but i can live with that more than the blinking
ill post a video soon
Thanks
Navigation
[0] Message Index
[*] Previous page
Go to full version