User Tools

Site Tools

Sidebar

hal9k

Mailing lists

  • Announcements of talks, and major events. 1-2 mails/month.
  • Discussion of projects and other stuff. About 20-30 mails/month.

Chat
IRC channel #hal9k at Freenode. You can use Freenodes web-chat in your browser.

sommerhack:led_dingo

LED Dingo

Notes from Sommerhack 2017

Notes from Sommerhack 2016

The sommerhack LED sign and the LED poles all over the camp can be controlled over the network.

The LEDs are controlled by sending commands in the form of UDP packets to the LED controllers.

There are 3 controllers:

  • skilt.sommerhack.dk (10.103.197.80)
  • strip1.sommerhack.dk (10.103.193.55)
  • strip2.sommerhack.dk

For the sign there's a virtual controller on dingo.sommerhack.dk that multiplexes all incoming connections in 20 second chunks and forward the selected clients messages to the sign.

And (surprise), skilt.sommerhack.dk controls the Sommerhack sign, and the two others controls all the LED poles.

Commands must be send to port 7890.

The command format is

  • 16 bit (little-endian byte ordering) magic value 1111 (decimal)
  • 16 bit (little-endian byte ordering) offset to first LED to control (value between 0 and 300)
  • 24 bit x N colors. This is 3 x 8 bit RGB values, for the first LED and auto-incrementing forward.

The LED sign has 245 LED's.

See more about the LED strips used at https://learn.adafruit.com/adafruit-neopixel-uberguide/advanced-coding

The firmware running on the LED controllers: https://github.com/rolfrm/sommerhack_led

The X, Y coordinates of the LEDs on the sign are:

 3.436423140E-03, 8.824887276E-01
 4.254619591E-03, 9.447007179E-01
 1.489117648E-02, 9.577575326E-01
 2.798232436E-02, 9.708144069E-01
 4.500081763E-02, 9.608297348E-01
 5.694648996E-02, 9.339480400E-01
 6.349206716E-02, 8.809525967E-01
 6.136475503E-02, 8.179726005E-01
 5.121911317E-02, 7.703535557E-01
 3.665521368E-02, 7.642091513E-01
 2.372770384E-02, 7.304149270E-01
 1.440026145E-02, 6.858681440E-01
 4.418261349E-03, 6.451615095E-01
 6.218294613E-03, 5.852536559E-01
 1.587301679E-02, 5.422429442E-01
 2.961872332E-02, 5.268819332E-01
 4.238259047E-02, 5.345623493E-01
 5.678285286E-02, 5.437788963E-01
 5.874652788E-02, 5.960062146E-01
 9.736541659E-02, 8.924731612E-01
 9.376534820E-02, 8.248847723E-01
 1.019473150E-01, 7.634408474E-01
 1.019473150E-01, 6.989247203E-01
 1.156930253E-01, 6.774193645E-01
 1.294387281E-01, 6.559140086E-01
 1.386025399E-01, 6.989247203E-01
 1.477663368E-01, 7.634408474E-01
 1.431844383E-01, 8.494623899E-01
 1.431844383E-01, 9.139785171E-01
 1.340206414E-01, 9.569892883E-01
 1.248568296E-01, 9.784946442E-01
 1.111111194E-01, 9.569892883E-01
 1.752577573E-01, 9.784946442E-01
 1.935853511E-01, 9.784946442E-01
 1.844215542E-01, 9.784946442E-01
 1.844215542E-01, 8.924731612E-01
 1.890034527E-01, 8.279570341E-01
 1.844215542E-01, 7.849462628E-01
 1.890034527E-01, 6.989247203E-01
 1.752577573E-01, 6.774193645E-01
 1.955490261E-01, 7.019969821E-01
 2.063492239E-01, 6.774193645E-01
 2.210767716E-01, 6.774193645E-01
 2.256586701E-01, 7.634408474E-01
 2.256586701E-01, 8.279570341E-01
 2.302405685E-01, 9.139785171E-01
 2.302405685E-01, 9.784946442E-01
 2.164948583E-01, 9.784946442E-01
 2.394043654E-01, 9.784946442E-01
 2.348224521E-01, 7.204301357E-01
 2.531500757E-01, 6.774193645E-01
 2.668957710E-01, 6.774193645E-01
 2.760595679E-01, 7.204301357E-01
 2.714776695E-01, 7.849462628E-01
 2.714776695E-01, 8.494623899E-01
 2.714776695E-01, 9.139785171E-01
 2.714776695E-01, 9.784946442E-01
 2.623138726E-01, 9.569892883E-01
 2.852233648E-01, 9.784946442E-01
 3.035509884E-01, 9.569892883E-01
 3.310423791E-01, 9.784946442E-01
 3.172966838E-01, 9.784946442E-01
 3.172966838E-01, 9.139785171E-01
 3.172966838E-01, 8.279570341E-01
 3.218785822E-01, 7.634408474E-01
 3.218785822E-01, 7.204301357E-01
 3.035509884E-01, 6.774193645E-01
 3.310423791E-01, 7.419354916E-01
 3.356242776E-01, 6.989247203E-01
 3.539519012E-01, 6.774193645E-01
 3.631156981E-01, 7.204301357E-01
 3.631156981E-01, 7.849462628E-01
 3.631156981E-01, 8.494623899E-01
 3.631156981E-01, 9.139785171E-01
 3.631156981E-01, 9.784946442E-01
 3.493700027E-01, 9.784946442E-01
 3.722794950E-01, 9.784946442E-01
 3.722794950E-01, 7.204301357E-01
 3.860252202E-01, 6.989247203E-01
 3.997709155E-01, 6.774193645E-01
 4.089347124E-01, 7.204301357E-01
 4.089347124E-01, 7.849462628E-01
 4.089347124E-01, 8.494623899E-01
 4.089347124E-01, 9.139785171E-01
 4.089347124E-01, 9.784946442E-01
 3.951890171E-01, 9.784946442E-01
 4.180985093E-01, 9.784946442E-01
 5.005727410E-01, 9.354838729E-01
 4.868270457E-01, 9.784946442E-01
 4.730813503E-01, 1.000000000E+00
 4.593356252E-01, 9.784946442E-01
 4.501718283E-01, 9.354838729E-01
 4.501718283E-01, 8.709677458E-01
 4.455899298E-01, 8.064516187E-01
 4.501718283E-01, 7.419354916E-01
 4.639175236E-01, 6.774193645E-01
 4.776632488E-01, 6.774193645E-01
 4.914089441E-01, 6.774193645E-01
 5.005727410E-01, 7.419354916E-01
 5.051546693E-01, 8.064516187E-01
 4.868270457E-01, 8.279570341E-01
 4.730813503E-01, 8.279570341E-01
 4.593356252E-01, 8.279570341E-01
 5.257732272E-01, 1.000000000E+00
 5.418098569E-01, 9.892473221E-01
 5.555555820E-01, 9.892473221E-01
 5.418098569E-01, 9.139785171E-01
 5.395188928E-01, 8.494623899E-01
 5.395188928E-01, 7.741935849E-01
 5.395188928E-01, 7.096774578E-01
 5.441008210E-01, 6.774193645E-01
 5.303550959E-01, 6.666666865E-01
 5.486826897E-01, 7.096774578E-01
 5.624284148E-01, 6.666666865E-01
 5.784651041E-01, 6.666666865E-01
 5.830469728E-01, 7.096774578E-01
 5.967926979E-01, 9.892473221E-01
 6.128293276E-01, 9.892473221E-01
 6.265750527E-01, 9.892473221E-01
 6.128293276E-01, 9.462365508E-01
 6.105383635E-01, 8.709677458E-01
 6.128293276E-01, 7.956989408E-01
 6.128293276E-01, 7.311828136E-01
 6.105383635E-01, 6.666666865E-01
 6.128293276E-01, 5.806451440E-01
 6.105383635E-01, 5.161290169E-01
 6.013745666E-01, 4.946236610E-01
 6.174112558E-01, 7.204301357E-01
 6.288660169E-01, 6.774193645E-01
 6.403207183E-01, 6.666666865E-01
 6.517754793E-01, 6.881720424E-01
 6.563574076E-01, 7.311828136E-01
 6.563574076E-01, 7.956989408E-01
 6.586483717E-01, 8.602150679E-01
 6.586483717E-01, 9.354838729E-01
 6.449026465E-01, 9.784946442E-01
 6.586483717E-01, 9.892473221E-01
 6.746850014E-01, 9.892473221E-01
 6.105383635E-01, 1.075268816E-02
 6.174112558E-01, 3.225806355E-02
 6.174112558E-01, 1.075268835E-01
 6.105383635E-01, 1.612903327E-01
 6.242840886E-01, 1.505376399E-01
 6.357388496E-01, 7.526881993E-02
 6.471936107E-01, 1.397849470E-01
 6.563574076E-01, 7.526881993E-02
 6.449026465E-01, 0.000000000E+00
 6.701031327E-01, 0.000000000E+00
 6.769759655E-01, 2.150537632E-02
 6.769759655E-01, 9.677419811E-02
 6.678121686E-01, 1.505376399E-01
 6.838487983E-01, 1.505376399E-01
 6.975945234E-01, 1.505376399E-01
 7.033335567E-01, 1.559685469E-01
 7.021763921E-01, 2.258064598E-01
 6.975945234E-01, 2.688172162E-01
 7.067583203E-01, 2.795698941E-01
 7.205040455E-01, 2.043010741E-01
 7.296678424E-01, 1.290322542E-01
 7.388316393E-01, 2.043010741E-01
 7.296678424E-01, 2.688172162E-01
 6.517754793E-01, 3.225806653E-01
 6.449026465E-01, 3.978494704E-01
 6.540664434E-01, 4.516129196E-01
 6.632302403E-01, 3.978494704E-01
 6.723940372E-01, 3.333333433E-01
 6.815578341E-01, 3.225806653E-01
 6.815578341E-01, 3.978494704E-01
 6.746850014E-01, 4.516129196E-01
 6.861397624E-01, 4.516129196E-01
 7.113402486E-01, 4.838709831E-01
 7.205040455E-01, 5.376344323E-01
 7.113402486E-01, 6.021505594E-01
 7.021763921E-01, 5.376344323E-01
 6.884307265E-01, 7.096774578E-01
 6.930125952E-01, 7.419354916E-01
 6.998854876E-01, 8.064516187E-01
 6.907216907E-01, 8.064516187E-01
 6.998854876E-01, 9.784946442E-01
 7.067583203E-01, 9.247311950E-01
 7.136311531E-01, 8.602150679E-01
 7.205040455E-01, 7.526881695E-01
 7.296678424E-01, 7.419354916E-01
 7.365406752E-01, 6.881720424E-01
 7.411226034E-01, 6.236559153E-01
 7.502864003E-01, 5.591397882E-01
 7.571592331E-01, 4.946236610E-01
 7.640320659E-01, 4.516129196E-01
 7.709049582E-01, 3.870967925E-01
 7.411226034E-01, 3.763440847E-01
 7.479954362E-01, 4.408602118E-01
 7.640320659E-01, 5.591397882E-01
 7.731959224E-01, 6.236559153E-01
 7.823597193E-01, 6.666666865E-01
 7.915235162E-01, 7.311828136E-01
 7.983963490E-01, 7.956989408E-01
 8.052691817E-01, 8.602150679E-01
 8.144329786E-01, 9.032258391E-01
 8.235968351E-01, 9.784946442E-01
 8.029782772E-01, 9.784946442E-01
 7.869415879E-01, 9.784946442E-01
 7.731959224E-01, 9.784946442E-01
 7.594501972E-01, 9.784946442E-01
 7.434135079E-01, 9.784946442E-01
 7.296678424E-01, 9.892473221E-01
 7.159221172E-01, 9.784946442E-01
 7.686139941E-01, 8.924731612E-01
 7.617411613E-01, 8.279570341E-01
 7.502864003E-01, 8.924731612E-01
 8.946163058E-01, 9.354838729E-01
 8.854525089E-01, 9.784946442E-01
 8.739977479E-01, 9.892473221E-01
 8.579610586E-01, 9.784946442E-01
 8.465062976E-01, 9.247311950E-01
 8.442153931E-01, 8.494623899E-01
 8.396334648E-01, 7.849462628E-01
 8.465062976E-01, 7.204301357E-01
 8.556700945E-01, 6.666666865E-01
 8.717067838E-01, 6.451613307E-01
 8.854525089E-01, 6.666666865E-01
 8.946163058E-01, 7.096774578E-01
 9.198167324E-01, 9.892473221E-01
 9.358534217E-01, 9.784946442E-01
 9.518900514E-01, 9.784946442E-01
 9.358534217E-01, 9.354838729E-01
 9.358534217E-01, 8.602150679E-01
 9.312714934E-01, 7.849462628E-01
 9.335624576E-01, 7.204301357E-01
 9.335624576E-01, 6.451613307E-01
 9.312714934E-01, 5.698924661E-01
 9.312714934E-01, 5.053763390E-01
 9.198167324E-01, 4.838709831E-01
 9.450172186E-01, 8.279570341E-01
 9.541810155E-01, 7.741935849E-01
 9.656357765E-01, 7.419354916E-01
 9.770905375E-01, 6.881720424E-01
 9.646624327E-01, 6.538507938E-01
 9.793814421E-01, 6.484198570E-01
 9.952576160E-01, 6.549369693E-01
 9.610538483E-01, 8.279570341E-01
 9.702176452E-01, 8.709677458E-01
 9.816724062E-01, 9.354838729E-01
 9.702176452E-01, 9.784946442E-01
 9.866939187E-01, 9.849025607E-01
 1.000000000E+00, 9.892473221E-01
Permalink sommerhack/led_dingo.txt · Last modified: 2017/03/16 22:30 by Georg Sluyterman

oeffentlich