Chien D'Arren D'Or
Registered:1395641537 Posts: 5
Posted 1400551524
Reply with quote
#1
So, I went a little crazy, and, after buying a DMX RGB LED light from Amazon.com , which was cool, but I wanted more. So, I went out and bought an addressable LED RGB light strip and an Arduino, and with a modest amount of soldering and an astonishingly small amount of easy Arduino Code, I created an LED Artemis Power Meter! (Please let me know if you would like to know more about how I made this work...I think it's kinda cool, but I don't know if anyone else would) The Arduino responds to a single DMX signal (17, or 16 from the point of view of Artemis) and based the signal value, sets the following LED blocks, from top to bottom, with an expectation of mapping them to the given Artemis DMX events... yellow (>= 225) => ENERGY_200 blue (>= 200) => ENERGY_100 green (>= 175) => ENERGY_80 green (>= 150) => ENERGY_60 green (>= 125) => ENERGY_40 red (>= 100) => ENERGY_20 flashing red (< 100) => ENERGY_LOW The Arduino works as designed, I have tested it repeatedly with the DMX tool mentioned in the forum thread here: http://artemis.forumchitchat.com/post/dmx-commander-tool-6649349 However, when I start playing Artemis, the ENERGY_x events don't appear to fire. I have mapped the Power Bar DMX signal to set to certain values for NORMAL_CONDITION_1 and PLAYER_SHIELDS_ON and seen it change appropriately, so Artemis DMX is actually capable of sending the signal values to set the lights on the bar... Has anyone had any experience with the ENERGY_x events that might be able to tell me what I am doing wrong? below is my current DMXcommands.xml file. <?xml version="1.0" encoding="utf-8"?> <DMX_CONTROL version="2.00"> <event type="NORMAL_CONDITION_1" continuous="yes"> <timeblock mseconds="1000"> <setvalue index="1" value="0" change="0"/> <setvalue index="2" value="0" change="0"/> <setvalue index="3" value="0" change="0"/> <setvalue index="16" value="210" change="0" /> </timeblock> </event> <event type="PLAYER_SHIELDS_ON" continuous="yes"> <timeblock mseconds="1000"> <setvalue index="1" value="0" change="0"/> <setvalue index="2" value="0" change="0"/> <setvalue index="3" value="200" change="0"/> </timeblock> </event> <event type="WITHIN_NEBULA" continuous="yes"> <timeblock mseconds="1000"> <setvalue index="1" value="255" change="0"/> <setvalue index="2" value="0" change="0"/> <setvalue index="3" value="52" change="0"/> </timeblock> </event> <event type="TRACTORED_FOR_DOCKED" continuous="yes"> <timeblock mseconds="500"> <setvalue index="1" value="0" change="0"/> <setvalue index="2" value="155" change="200"/> <setvalue index="3" value="0" change="0"/> </timeblock> <timeblock mseconds="500"> <setvalue index="1" value="0" change="0"/> <setvalue index="2" value="255" change="-200"/> <setvalue index="3" value="0" change="0"/> </timeblock> </event> <event type="COMPLETELY_DOCKED" continuous="yes"> <timeblock mseconds="500"> <setvalue index="1" value="255" change="0"/> <setvalue index="2" value="255" change="0"/> <setvalue index="3" value="0" change="0"/> </timeblock> </event> <event type="RED_ALERT" continuous="no"> <timeblock mseconds="250"> <setvalue index="1" value="55" change="800"/> <setvalue index="2" value="0" change="0"/> <setvalue index="3" value="0" change="0"/> </timeblock> <timeblock mseconds="250"> <setvalue index="1" value="255" change="-800"/> <setvalue index="2" value="0" change="0"/> <setvalue index="3" value="0" change="0"/> </timeblock> <timeblock mseconds="250"> <setvalue index="1" value="55" change="800"/> <setvalue index="2" value="0" change="0"/> <setvalue index="3" value="0" change="0"/> </timeblock> <timeblock mseconds="250"> <setvalue index="1" value="255" change="-800"/> <setvalue index="2" value="0" change="0"/> <setvalue index="3" value="0" change="0"/> </timeblock> <timeblock mseconds="250"> <setvalue index="1" value="55" change="800"/> <setvalue index="2" value="0" change="0"/> <setvalue index="3" value="0" change="0"/> </timeblock> <timeblock mseconds="250"> <setvalue index="1" value="255" change="-800"/> <setvalue index="2" value="0" change="0"/> <setvalue index="3" value="0" change="0"/> </timeblock> <timeblock mseconds="250"> <setvalue index="1" value="55" change="800"/> <setvalue index="2" value="0" change="0"/> <setvalue index="3" value="0" change="0"/> </timeblock> <timeblock mseconds="250"> <setvalue index="1" value="255" change="-800"/> <setvalue index="2" value="0" change="0"/> <setvalue index="3" value="0" change="0"/> </timeblock> </event> <event type="PLAYER_TAKES_SHIELD_DAMAGE" continuous="no"> <timeblock mseconds="20"> <setvalue index="1" value="0" change="0"/> <setvalue index="2" value="0" change="0"/> <setvalue index="3" value="255" change="0"/> </timeblock> <timeblock mseconds="80"> <setvalue index="1" value="0" change="0"/> <setvalue index="2" value="0" change="0"/> <setvalue index="3" value="255" change="0"/> </timeblock> </event> <event type="PLAYER_TAKES_INTERNAL_DAMAGE" continuous="no"> <timeblock mseconds="100"> <setvalue index="1" value="255" change="0"/> <setvalue index="2" value="0" change="0"/> <setvalue index="3" value="0" change="0"/> </timeblock> </event> <event type="ENERGY_LOW" continuous="yes"> <timeblock mseconds="500"> <setvalue index="16" value="75" change="0" /> </timeblock> </event> <event type="ENERGY_20" continuous="yes"> <timeblock mseconds="500"> <setvalue index="16" value="110" change="0" /> </timeblock> </event> <event type="ENERGY_40" continuous="yes"> <timeblock mseconds="500"> <setvalue index="16" value="135" change="0" /> </timeblock> </event> <event type="ENERGY_60" continuous="yes"> <timeblock mseconds="500"> <setvalue index="16" value="160" change="0" /> </timeblock> </event> <event type="ENERGY_80" continuous="yes"> <timeblock mseconds="500"> <setvalue index="16" value="187" change="0" /> </timeblock> </event> <event type="ENERGY_100" continuous="yes"> <timeblock mseconds="500"> <setvalue index="16" value="210" change="0" /> </timeblock> </event> <event type="ENERGY_200" continuous="yes"> <timeblock mseconds="500"> <setvalue index="16" value="240" change="0" /> </timeblock> </event> </DMX_CONTROL> <!-- channel 0: RGB Mode --> <!-- channel 1: red --> <!-- channel 2: green --> <!-- channel 3: blue --> <!-- channel 4: strobing, higher = faster --> <!-- channel 5: dimming, higher = more dim --> <!-- channel 16: Arduino Energy Bar -->
Chien D'Arren D'Or
Registered:1395641537 Posts: 5
Posted 1400558086
Reply with quote
#2
A bit more information: I tried reversing the order so that the ENERGY_200 was first in the file and ENERGY_LOW was last, this worked better, as I drove around and hit the various energy levels, the bars disappeared as I expected....unfortunately, when I docked to get more fuel, the bars didn't go back up again....
Badgeguy
Registered:1375080733 Posts: 316
Posted 1400564227
Reply with quote
#3
Chien, The ENERGY_XX series of triggers (with the exception of ENERGY_20) are known to not be functioning properly. There is not a work around at the present. Additionally, GAME_OVER, FRONT_SHIELD_LOW, and REAR_SHIELD_LOW also do not function properly.
Badgeguy
Registered:1375080733 Posts: 316
Posted 1400595631
Reply with quote
#4
Chien, I am posting here in response to your PM. It appears that due to the apostrophes in your user name, it is impossible to send you a PM. I hope it is not an issue that this is being responded to publicly, but I felt that this would be the best place to get the answer to your question as well. In regards to how this type of information would get added to the Artemis Wiki for others to discover in the future, I honestly don't know. There are members here who maintain and add to the wiki, but it is not something that I have looked into for add information personally. Perhaps someone who does edit the wiki could chime in.
LawsonThompson
Registered:1375038367 Posts: 827
Posted 1400646261
Reply with quote
#5
Regarding the wiki: anyone can log in, then create your own ID for editing with your own name in the credits. This old forum post at http://px2owffng8.talkiforum.com/20110509/artemis-wiki-mark-ii-is-up-564964/ has the details. Like any wiki, the Artemis Wiki has no official editor or owner per se; it's a collaboration between all members of the Artemis fan base. Edit away!
__________________ ----https://LTEBridge.com