Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
-Ride_Op
> 3 lighted buttons (2xdispatch,reset), $2,95 each
> 2 rotary switches (gates,harness) $2,72 each
> 1 key switch, $3,69
> 1 E-stop switch, $2,83
> 1 indicator light, $1,08
> 1 case, $19
> 10-pack button labels, $2,88
> ESP8266 (Lolin D1 Mini), $3,50
> MOSFET Modules*, $0,90 each
+ Shipping
Totals to about $55.
*To keep things simple, I will power all lights through the controller, therefore I need mosfets to switch the 5V, as 8266's have outputs high @ 3,3V.
I'll come back when everything arrived. In the meantime I will be taking a look at the telemetry server and put together a rough sketch, to see if I can read and write data. If so, I will write a class, so we can program object-oriented.
For now I completed the class, which can conveniently be used to access all of the telemetry server functions; it handles the complete connection/communication.
Using this class, my basic sketch will do the following:
> Check if keyswitch is on
> Automatically force NL2 to manual mode, whenever in automatic.
> Synchronize Gate, Harness and E-Stop states according to their switches.
> Automatically lower/raise the floor.
> Take care of button handling, prepared to add multiple functions to the same buttons (short/long press).
> Set LEDs
---> Green Control LED will light if connection can be established and game is in play.
---> Reset button will blink when E-Stop is active, respectively light if keyswitch is off.
---> Dispatch buttons will blink when dispatch is possible
So long... waitin' for my parts from China.
Unfortunately the LED modules in the switches and indicators came all in random voltages (not as ordered), so I had to solder white LEDs and suitable resistors in. This way I could also avoid using mosfet modules and drive the LEDs directly from the board; 3,3V is bright enough, current drawn is about 15mA.
Sketch works as intended. Now it's time for some beauty work, like putting a nice USB socket in the side etc.
After all it cost me around $60 (extra LEDs...).
What do you guys think?
-Ride_Op
@mierengamer2: No, I don't sell panels, but the coding is fairly easy, even for beginners. You'd be much cheaper off to buy some parts from aliexpress ;)
https://github.com/laserir/NL2Client
Feel free to add to all link compilations and tool's lists.