Blinkenwall.com: Unterschied zwischen den Versionen

aus Metalab Wiki, dem offenen Zentrum für meta-disziplinäre Magier und technisch-kreative Enthusiasten.
Zur Navigation springenZur Suche springen
 
(22 dazwischenliegende Versionen von 7 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
[[Bild:Blinkenwall_webinterface.png|thumb|right|300px|Webinterface Screenshot]]  
+
[[Datei:Blinkenwall_logo_001.png|left|300px|Blinkenwall Logo]]
== Blinkenwall.. ==
 
  
* is the wall between our [[Hauptraum|mainroom]] and the [[Bibliothek|library]]
+
[[Blinkenwall.com/history|Blinkenwall v1 Historic Page]]
* in this wall are 9x5=45 glassbricks installed
 
* next to every glassbrick there is one RGB-led with a pretty neat [http://www.allegromicro.com/en/Products/Part_Numbers/6281/6281.pdf chip] attached
 
* these presoldered boards are called [http://macetech.com/store/index.php?main_page=product_info&cPath=1&products_id=1 Shiftbrite]
 
* they are currently controlled from an arduino this may change soon for something with more computational power :)
 
* [http://blinkenwall.com Click here to draw something nice on the wall!!]
 
  
 +
[[Blinkenwall.com/future|Blinkenwall v3 Future Plans]]
  
=== How ===
+
= Blinkenwall v2 =
  
SVN with current software https://whatever.metalab.at/projects/blinkenwall
+
Concept: No glass bricks any more, instead something mounted <s>on</s> <font color="#FF0000;">in</font> the wall. This <s>simplifies a lot of things and also</s> <font color="#FF0000;">makes everything a lot more complicated but</font> allows a higher resolution.
__TOC__
 
We just connected the Arduino to a fonera 2202 over serial.
 
  
Now its possible to stream data for display to the blinkenwall using your favourite webbrowser.
+
[https://hackaday.io/project/19876-blinkenwall-v2 Hackaday.io Project Link ]
  
Lessons learned:
+
== Current State of Project ==
* one can simply connect RX/TX from fonera to arduino
 
* no stty in default openwrt busybox build
 
* openwrt building is an fairly easy task
 
* replacing the busybox binary on a live system during operation is insane and possible! :)
 
  
=== Reference ===
+
=== Already Done ===
 +
[[Bild:Blinkenwall.JPG|200px|left]]
  
* [http://www.allegromicro.com/en/Products/Part_Numbers/6281/6281.pdf Allegro A6281 documentation] 
+
* Ordered & received panels
* [http://macetech.com/store/index.php?main_page=product_info&cPath=1&products_id=1 Shiftbrite]
+
* Created an aluminium frame for mounting the panels, the power supply and the receiver card
 +
* Mounted everything onto the frame
 +
* Mounted the frame into the wall.
 +
* [[ToxBlinkenwall]]
 +
* [https://metalab.at/wiki/ToxBlinkenwall#share_Youtube_links_to_Blinkenwall_via_Android_App Android App]
 +
* Fix the power setup.
 +
* Install an ARM-board for sending video data to the wall.
 +
* Install a relay into the wall to turn off the power supplies when they're not needed to avoid wasting too much power.
 +
* Implement shadertoy.
 +
* Implement online video playback.
 +
* Implement emulation (Gameboy Color).
 +
* Implement poetry wall.
  
=== Who ===
+
Current Status: Hardware is running, video is showing up, software is half finished.
  
* [[Benutzer:Overflo|Overflo]] - electronics, soldering, webinterface, fonera setup
+
=== TODO ===
* [[Benutzer:Wizard23|Wizard23]] - help with electronics, basic software setup
 
* [[Benutzer:Metaz|Metaz]]  - arduino library software for shiftbrites
 
* [[Benutzer:Nex|Nex]] arduino software for webinterface streaming
 
* [[Benutzer:Mactux|Mactux]] CSS + iphone webinterface
 
* [[Benutzer:Natano|Natano]] .C program to decode webinterface streaming files
 
  
 +
* Install the network cable into the patch panel.
 +
* Other emulators like NES?
 +
* Integrate VNC or other screenshare
 +
* Better shadertoy:
 +
** Editing existing scripts, including version history
 +
** Thumbnails in the gallery
 +
** Support for textures
 +
* Frontend rewrite with [https://yew.rs/ Yew]?
  
== Blinkenwall v1.5 ==
+
== Current State of the Budget ==
  
Now with ~30 fps and network mode! Go to http://blinkenwall.in.metalab.at/ to activate network mode and send your [https://secure.wikimedia.org/wikipedia/en/wiki/Netpbm_format P6 PPM] frames to port 1337/tcp. Make sure that all your frames are exactly 146 bytes in size or you'll risk graphics glitches at higher frame rates.
+
{| class="wikitable"
 
+
|-
=== Who ===
+
! Item !! Price !! Delivered
* [[Benutzer:Sqrt2|sqrt2]] - Making it work
+
|-
* [[Benutzer:Amir|Amir]] - Netpbm library for Arduino
+
| 60 panels || €476.28 || {{Yes}}
 
+
|-
=== Lessons learned ===
+
| Controller cards + cables || €146.97 || {{Yes}}
* netcat has fixed-length 8K RX/TX buffers.
+
|-
* The Arduino Duemilanove resets on DTS low (the IDE uses that to reset before programming).
+
| Shipping for panels + controllers || €283.91 || {{Yes}}
* The Arduino Serial class implements an RX ringbuffer of 128 bytes. Patch the Arduino SDK to adjust this to your needs; RX_BUFFER_SIZE in hardware/arduino/cores/arduino/HardwareSerial.cpp.
+
|-
* mkfifo(1) is neat when opening ttyUSB* devices leads to an Arduino reset.
+
| Import tax + toll + fees || €201.16 || {{Yes}}
 
+
|-
=== Applications ===
+
| 6x200W Power supplies || €203.28 || {{Yes}}
* [https://whatever.metalab.at/projects/blinkenwall/v1.5/fonera/ blinkblink] -- old-school animations
+
|-
* [https://whatever.metalab.at/projects/blinkenwall/blinkenfft/ blinkenfft] -- real-time audio FFT
+
| Network cable || reused || {{Yes}}
* [https://whatever.metalab.at/projects/blinkenwall/mplayer_vo/ mplayer -vo blinkenwall] -- watch movies in a stunning resolution of 9x5
+
|-
 
+
| Computer || ~€40 ? || {{No}}
== Upgrade to Raspi ==
+
|-
[[Benutzer:Georg|Georg]] and [[Benutzer:WSys|WSys]] replaced the Fonera/Arduino with a Raspi. Networking capability was restored later by [[Benutzer:Sqrt2|sqrt2]].
+
| Mounting frame || ? || {{Yes}}
 
 
To stream to the Blinkenwall from your computer, open http://10.20.30.26/cgi-bin/togglesocket.cgi and wait for the test frame to appear, then send RGB data for the 45 pixels as before, but without the PPM header (9*5*3 = 135 bytes per frame). Open the URL again to switch back to animations.
 
 
 
=== Wiring ===
 
 
 
Since the Raspi got accidentally disconnected and there was confusion on how to wire it up again, here is how:
 
 
 
* Look at the [http://elinux.org/images/2/2a/GPIOs.png Raspi model B P1 header pin configuration]
 
* Think of the wires of the ribbon cable connecting to the wall as numbered from R1 to R6, where R1 is the red wire and R6 is the blue wire. Connect the orange wires labeled 2 to 5 to the corresponding wires R2 to R5.
 
* The big power supply has two wires, a dark blue one and a grey one. Connect the dark blue wire to the blue wire (R6) on the ribbon cable.
 
* Connect the other connector on the dark blue wire to a ground pin on the Raspi, e.g. pin 6.
 
* Connect orange wire 2 to pin 23 (SCLK) on the Raspi.
 
* Connect orange wire 3 to pin 18 (GPIO24) on the Raspi.
 
* Connect orange wire 4 to pin 22 (GPIO25) on the Raspi.
 
* Connect orange wire 5 to pin 19 (MOSI) on the Raspi.
 
* Connect the red wire on the ribbon cable to the big power supply's grey wire (labeled 1).
 
 
 
== Videos ==
 
First Blinkenwall
 
* http://vimeo.com/2931136
 
* http://vimeo.com/5714761
 
 
 
Blinkenwall after resurrection at [[Hackathon_8]]
 
* https://vimeo.com/45418812
 
 
 
== Photos ==
 
{| width="100%"
 
 
|-
 
|-
|width="33%" valign="top"|[[Bild:Blinkenwall_back_closeup2.JPG|thumb|center|300px|Another Backside close-up]]
+
| Diffusing plate || ~€200 ? || {{Yes}}
|width="33%" valign="top"|[[Bild:Blinkenwall_back_closeup.jpg|thumb|center|300px|Backside close-up]]
 
|width="33%" valign="top"|[[Bild:Blinkenwall_back_closeup_with_flash.JPG|thumb|center|300px|Backside close-up with flashlight]]
 
 
|}
 
|}
 
= Blinkenwall v2 =
 
 
Concept: No glass bricks any more, instead something mounted on the wall. This simplifies a lot of things and also allows a higher resolution.
 
  
 
== HUB75 ==
 
== HUB75 ==
  
One idea: Using the HUB75 panels available for cheap from China.
+
The idea was to use cheap China LED panels that use a connection usually called HUB75. It's a 1/8 scan protocol that's not really documented, but easy to use. The panels do not have a controller, and so need to be PWMed using something fast like an FPGA. [https://learn.adafruit.com/32x16-32x32-rgb-led-matrix/ Adafruit has a tutorial about using these types of panels.]
  
The goal is to have a resolution roughly equivalent to the original Gameboy (160x144). Note that it had an aspect ratio very close to square, which is not feasible on the wall. Thus, the goal is to have at least 160 pixels horizontally, and whatever is suitable vertically (96?).
+
The goal was to have a resolution roughly equivalent to the original Gameboy (160x144). Note that it had an aspect ratio very close to square, which is not feasible on the wall. Thus, the resulting resolution is 192x144.
  
 
HUB75 panels are classified by their pixel distance. The distance chosen for this calculation is P10, which means 10mm distance (in both dimensions). This is the lowest density available for indoor panels.
 
HUB75 panels are classified by their pixel distance. The distance chosen for this calculation is P10, which means 10mm distance (in both dimensions). This is the lowest density available for indoor panels.
  
The old Blinkenwall has a size of 1920x1100mm, but the new one can be significantly taller and a bit wider. HUB75 panels usually have a resolution of 32x16, thus 320x160mm.
+
HUB75 panels usually have a resolution of 32x16, thus 320x160mm. The chosen panel layout is 6x9, which means 6*320mm = 1920mm horizontally and 9*160mm = 1440mm. The resulting resolution is 192x144, which exceeds the target of 160x144.
  
The chosen panel layout is 6x9, which means 6*320mm = 1920mm horizontally and 9*160mm = 1440mm. The resulting resolution is 192x144, which exceeds the target of 160x144.
+
The product description says that the panels draw 15W maximum, so it should be about 860W in total (all pixels bright white). The merchant recommends 1000W in total. Our measurements tell us that a full white wall draws 680W. We used 6x200W power supplies ([http://www.mouser.at/ProductDetail/Mean-Well/LRS-200-5/ LRS-200-5]), so we're well within the limits.
  
The price for the panels alone would be about €710 [https://www.aliexpress.com/item/P10-Indoor-1-8-Scan-SMD3528-3in1-RGB-Full-color-LED-display-module-320-160mm-32/1615047851.html here], including some spares (6*9=54, the price is for 60 panels) and shipping. EUSt (import tax) is not included, and might add another €150 to it.
+
Note that this can be reduced by using a black background for animations (which was done with the old version as well).
 
 
The product description says that the panels draw 15W maximum, so it should be about 860W in total (all pixels bright white). Note that this can be reduced by using a black background for animations (which was done with the old version as well). The panels need 5V (so, PC power supplies can't be used, since they can only supply most of their power on 12V). Multiple power supplies of 200W each could be used for this, and the [http://www.mouser.at/ProductDetail/Mean-Well/LRS-200-5/ LRS-200-5] looks like a good contender for that. As of the time of this writing, they cost €33.88 per piece, and five of them would fit very well. A single more powerful power supply is not a good idea, since they tend to use loud fans.
 
  
 
=== Mounting ===
 
=== Mounting ===
  
The panels have mounting holes in the back, constructing a frame for them is trivial. Cooling is a bit of a concern, since a lot of power is dissipated. A diffusing pane (polycarbonate?) should be mounted in front of the panels so the pixels become larger. Multiple 5V power supplies could be used for powering the whole system. Unlike the current solution, it should be able to turn it off!
+
The panels have mounting holes in the back, constructing a frame for them is trivial. Cooling is a bit of a concern, since a lot of power is dissipated. A diffusing pane is mounted in front of the panels so the pixels become larger.
  
 
=== Controller ===
 
=== Controller ===
  
This is where the real challenge comes in. These panels do not have a controller built in, your have to PWM the rows and columns yourself. The connection is called HUB75, although this is not an official standard per se. There are plenty of explanations available on the web, and it's not very complicated. However, if you want to have more than the primary colors, you can't use an Arduino for it, since it's not fast enough (colors have to be centrally PWMed). You have to send a steady ~7MHz signal, which usually can only be produced by FPGAs.
+
This is where the real challenge comes in. These panels do not have a controller built in, your have to PWM the rows and columns yourself. The connection is called HUB75, although this is not an official standard per se. There are plenty of explanations available on the web, and it's not very complicated. However, if you want to have more than the primary colors, you can't use an Arduino for it, since it's not fast enough (colors have to be centrally PWMed). You have to send a steady ~20MHz signal, which usually can only be produced by FPGAs.
  
 
Panels can be chained, but this reduces the color fidelity (because the input signal is limited to about 7MHz, no matter how many panels are connected. Reduced bandwidth per panel means fewer colors). Also note that these panels need gamma correction, because the perception of LEDs is far from linear. Thus, you need a color depth of about 10bits to get 8bits of real colors. There are a few tricks to alleviate this, for example you can reduce the frame rate to allow more colors, or you can do temporal interpolation. It's a bit of black magic.
 
Panels can be chained, but this reduces the color fidelity (because the input signal is limited to about 7MHz, no matter how many panels are connected. Reduced bandwidth per panel means fewer colors). Also note that these panels need gamma correction, because the perception of LEDs is far from linear. Thus, you need a color depth of about 10bits to get 8bits of real colors. There are a few tricks to alleviate this, for example you can reduce the frame rate to allow more colors, or you can do temporal interpolation. It's a bit of black magic.
  
Thus, the easiest solution is to connect to each panel individually.
+
Luckily, this is not the first project to come across this issue. Thus, there are controllers available for this, like [http://linsn.com/prod_view.aspx?TypeId=12&Id=81&FId=t3:12:3 this one] (featuring a Spartan 6 FPGA, surprise surprise). [[Benutzer:anlumo|anlumo]] is working on a custom Zynq 7020-based solution for controlling these panels, but that project is in the planning stages right now.
 
 
Luckily, this is not the first project to come across this issue. Thus, there are controllers available for this, like [http://www.aliexpress.com/item/New-Arrival-LINSN-RV901-RV908-Full-Color-RGB-LED-Display-Screen-Receiving-Card-Crazy-Price-LED/738813836.html this one] (featuring a Spartan 6 FPGA, surprise surprise). [[Benutzer:anlumo|anlumo]] is working on a custom Zynq 7020-based solution for controlling these panels, but that project is in the planning stages right now.
 
  
 
The controllers expect RAW Ethernet packets (they do not use TCP or UDP). The vendor expects people to buy their much more expensive DVI-to-Ethernet adapters (for example TS901), and so the protocol itself is not documented. Some nice folk have discussed a reverse engineering attempt in [https://www.mikrocontroller.net/topic/352894 a forum] (in German), but it's not fully done yet. If this protocol can be reimplemented, a regular SBC could generate it directly via its Ethernet interface (Raspberry Pi not recommended, since its Ethernet interface is very limited).
 
The controllers expect RAW Ethernet packets (they do not use TCP or UDP). The vendor expects people to buy their much more expensive DVI-to-Ethernet adapters (for example TS901), and so the protocol itself is not documented. Some nice folk have discussed a reverse engineering attempt in [https://www.mikrocontroller.net/topic/352894 a forum] (in German), but it's not fully done yet. If this protocol can be reimplemented, a regular SBC could generate it directly via its Ethernet interface (Raspberry Pi not recommended, since its Ethernet interface is very limited).
  
The sending cards have a serial interface for setup, which you only need in the beginning and to change the brightness of the display. They supply a DVI input port (HDMI compatible) for the image data which could be connected to any SBC, even the already existing Raspberry Pi.
+
The sending cards have a serial interface for setup, which you only need in the beginning and to change the resolution and scaling of the display. They supply a DVI input port (HDMI compatible) for the image data which could be connected to any SBC. The resolution can be set anywhere from 640x480 to 1920x1080. HDMI does not support the native resolution of 192x144!
  
== Various Links ==
+
{{Projekt
* Sample effect - https://whatever.metalab.at/user/meta/blinkenwall/WallSample
+
|image=Blinkenwall_logo_001.png
* SVN with current software https://whatever.metalab.at/projects/blinkenwall
+
|involved=[[Metalab]]
* http://blinkenwall.com
+
|startdate=
 +
|status=active
 +
|wtf=A wall made of blinken.
 +
|lastupdate=
 +
|hidden=true
 +
}}
  
 
[[Kategorie:English]]
 
[[Kategorie:English]]
 
[[Kategorie:Hauptraum]]
 
[[Kategorie:Hauptraum]]
 
[[Kategorie:Projekte]]
 
[[Kategorie:Projekte]]

Aktuelle Version vom 21. November 2021, 21:51 Uhr

Blinkenwall Logo

Blinkenwall v1 Historic Page

Blinkenwall v3 Future Plans

Blinkenwall v2

Concept: No glass bricks any more, instead something mounted on in the wall. This simplifies a lot of things and also makes everything a lot more complicated but allows a higher resolution.

Hackaday.io Project Link

Current State of Project

Already Done

Blinkenwall.JPG
  • Ordered & received panels
  • Created an aluminium frame for mounting the panels, the power supply and the receiver card
  • Mounted everything onto the frame
  • Mounted the frame into the wall.
  • ToxBlinkenwall
  • Android App
  • Fix the power setup.
  • Install an ARM-board for sending video data to the wall.
  • Install a relay into the wall to turn off the power supplies when they're not needed to avoid wasting too much power.
  • Implement shadertoy.
  • Implement online video playback.
  • Implement emulation (Gameboy Color).
  • Implement poetry wall.

Current Status: Hardware is running, video is showing up, software is half finished.

TODO

  • Install the network cable into the patch panel.
  • Other emulators like NES?
  • Integrate VNC or other screenshare
  • Better shadertoy:
    • Editing existing scripts, including version history
    • Thumbnails in the gallery
    • Support for textures
  • Frontend rewrite with Yew?

Current State of the Budget

Item Price Delivered
60 panels €476.28
Controller cards + cables €146.97
Shipping for panels + controllers €283.91
Import tax + toll + fees €201.16
6x200W Power supplies €203.28
Network cable reused
Computer ~€40 ?
Mounting frame ?
Diffusing plate ~€200 ?

HUB75

The idea was to use cheap China LED panels that use a connection usually called HUB75. It's a 1/8 scan protocol that's not really documented, but easy to use. The panels do not have a controller, and so need to be PWMed using something fast like an FPGA. Adafruit has a tutorial about using these types of panels.

The goal was to have a resolution roughly equivalent to the original Gameboy (160x144). Note that it had an aspect ratio very close to square, which is not feasible on the wall. Thus, the resulting resolution is 192x144.

HUB75 panels are classified by their pixel distance. The distance chosen for this calculation is P10, which means 10mm distance (in both dimensions). This is the lowest density available for indoor panels.

HUB75 panels usually have a resolution of 32x16, thus 320x160mm. The chosen panel layout is 6x9, which means 6*320mm = 1920mm horizontally and 9*160mm = 1440mm. The resulting resolution is 192x144, which exceeds the target of 160x144.

The product description says that the panels draw 15W maximum, so it should be about 860W in total (all pixels bright white). The merchant recommends 1000W in total. Our measurements tell us that a full white wall draws 680W. We used 6x200W power supplies (LRS-200-5), so we're well within the limits.

Note that this can be reduced by using a black background for animations (which was done with the old version as well).

Mounting

The panels have mounting holes in the back, constructing a frame for them is trivial. Cooling is a bit of a concern, since a lot of power is dissipated. A diffusing pane is mounted in front of the panels so the pixels become larger.

Controller

This is where the real challenge comes in. These panels do not have a controller built in, your have to PWM the rows and columns yourself. The connection is called HUB75, although this is not an official standard per se. There are plenty of explanations available on the web, and it's not very complicated. However, if you want to have more than the primary colors, you can't use an Arduino for it, since it's not fast enough (colors have to be centrally PWMed). You have to send a steady ~20MHz signal, which usually can only be produced by FPGAs.

Panels can be chained, but this reduces the color fidelity (because the input signal is limited to about 7MHz, no matter how many panels are connected. Reduced bandwidth per panel means fewer colors). Also note that these panels need gamma correction, because the perception of LEDs is far from linear. Thus, you need a color depth of about 10bits to get 8bits of real colors. There are a few tricks to alleviate this, for example you can reduce the frame rate to allow more colors, or you can do temporal interpolation. It's a bit of black magic.

Luckily, this is not the first project to come across this issue. Thus, there are controllers available for this, like this one (featuring a Spartan 6 FPGA, surprise surprise). anlumo is working on a custom Zynq 7020-based solution for controlling these panels, but that project is in the planning stages right now.

The controllers expect RAW Ethernet packets (they do not use TCP or UDP). The vendor expects people to buy their much more expensive DVI-to-Ethernet adapters (for example TS901), and so the protocol itself is not documented. Some nice folk have discussed a reverse engineering attempt in a forum (in German), but it's not fully done yet. If this protocol can be reimplemented, a regular SBC could generate it directly via its Ethernet interface (Raspberry Pi not recommended, since its Ethernet interface is very limited).

The sending cards have a serial interface for setup, which you only need in the beginning and to change the resolution and scaling of the display. They supply a DVI input port (HDMI compatible) for the image data which could be connected to any SBC. The resolution can be set anywhere from 640x480 to 1920x1080. HDMI does not support the native resolution of 192x144!


Blinkenwall.com
Blinkenwall logo 001.png
Involvierte: Metalab
Status: active
Beschreibung: A wall made of blinken.
Shutdownprozedur:
Zuletzt aktualisiert: 2021-11-21