Skip to main content

Using Densitron UReady 1U and UReady 2U Displays for with Raw Panel

As already showcasedThe here, with SKAARHOJ'sSKAARHOJ xpanel-touch package for our controllers,allows users canto create browser-accessible software UIsUIs, accessible through browsers, which appearappearing on the local network as Raw Panel devices. 

Densitron Productpresents rangecompelling cantouch offerscreen someoptions interestingfor options:use with xpanel-touch. Their rack-mountable designs are notable. Additionally, certain screens come equipped with an internal computer, enabling direct web browser operation on the screen without requiring an external driving computer.

Our Product Rance.png

OneOptions couldinclude:

build
  • Build a smallcompact “rack”"rack" style touch panel withusing a 1RU USB display and a Raspberry Pi,Pi ordriving justit.
  • go
  • Choose witha 2RU unit whichwith alreadyan hasintegrated acomputer.
  • “computer”
built

This in.guide will assist in quickly setting up such configurations.

ThisUReady document1U will+ help you to quickly build such setup.

1. 1RU+Raspberry Pi4Pi setup.

4 setup

image.png

Prerequisites :

  • Raspberr yRaspberry Pi 4
  • PSU 5V/3A PSU with typeUSB Type C cable
  • DM-066GN-OPUR01 1RUUReady 1U Single Monitor
  • microSD card for the operating system
  • USB keyboard/mouse *(only needed during initial setup)
  • Monitor *(only needed during initial setup)
  • USB FlashDrive (optional)*

*neededoptional, only needed during initial setup

setup)

Extra Power for Densitron Screen

UnfortunatelyIt has been observed that powering the Densitron screen justsolely usingvia USB seemed tocan be unstable,unstable. soTo resolve this, we encouragerecommend tothe makefollowing this little "tweak" in ordermodification to provide moreadditional power to the Densitron screen.screen:

You
    should
  • Prepare preparetwo 2wires, wires (Almostapproximately the same length as the micro USB cable you plan to use between RPIthe Raspberry Pi and Densitron),the solderDensitron themscreen.
  • Solder these wires to 5the V pin5V and GND pinpins on RPIthe andRaspberry Pi.
  • solder
  • Solder themthe respectivelyother ends of these wires to the Densitronrespective 5V input port on the Densitron screen, which canis be foundlocated on the backsideback of the screen.

Pasted Graphic 35.png

image.png

1. Operating System

Tested,

    verified
  • We recommend andusing proposed OS  will bethe Raspbian OS (Buster) 2020version 08dated 2020-08-24. CanIt can be downloaded here.

  • We suggest using the Raspberry Pi Imager tofor performflashing the flashing.OS. YouIt's can download itavailable for various Operatingoperating Systemssystems and can be downloaded here.

  • If youyou're endunsure upabout feelingthe lostprocess at this stage, youhelpful willguidance mostcan likelybe get hints how to proceedfound in this article.
  • article.

2.Setting PreUp setupYour Touch Panel:

  1. AssumingInitial youSetup:

    have
      already flashed your SD card with
    • Insert the OS image, we can start setting up our touch panel.

      Install thepre-flashed SD card into the RPI,Raspberry connectPi your(RPI).

    • HDMI
    • Connect a HDMI-compatible screenmonitor asand wellthe asUSB keyboard and mouse,mouse.
    • you can also already plugin
    • Connect the Densitron screen to the RPI withusing a USB-A to microUSB cable,cable although(into it will not display anything yet.(Either toeither USB 2.0 or USB 3.0 Portport). Note: The Densitron screen won't display anything at this stage.
    • Power on RPI,the shouldRPI.
    • note
    play
  2. any role). Power it on !

  3. Once the device boots, finish the installation of theComplete Raspbian OS followingInstallation:

    • Follow the onscreen instructions.instructions Youto will havecomplete the possibilityinstallation. toThis setincludes setting up the user,time- time zone,WIFI network...WiFi Oncenetwork, thatetc.
    • is
    complete,
  4. we
  5. also

    Enable proposeRemote toAccess:

    leave
    • To facilitate future adjustments without needing a "backdoor" for yourselfkeyboard and mouse, enable the SHHSSH and VNC servers on the RPI,RPI.
    • so in future you do not need to connect mouse and keyboard to make any tweaks. To do so, find
    • Click the raspberry icon in the upper left corner of the screen,screen.
    • click it, and in preferences you will find "Raspberry pi Configuration" application. Launch it, navigate
    • Navigate to "Interfaces"Preferences -> Raspberry Pi Configuration.
    • In the 'Interfaces' tab, enable SSH and/or VNCVNC.
    • Click 'OK' and clickreboot ok.the Reboot!RPI.
    • You

After rebooting, you should now be able to remotely access the RPI remotely either via SSH or VNC.

image.png

3.PostPost-Setup setupProcess

AtNow, thisour pointnext allsteps we haveare to do, is to enableactivate the Densitron screen and makeconfigure ourthe browser autostartto onautomatically neededopen at the required URL address. InTo order to makesimplify this a bit easierprocess, we have madecreated a small shell script whichthat will modifyautomatically make the needednecessary thingsmodifications for you.

Easy way.Setup Method

  1. Open the Terminal appapplication on your Raspberry Pi.
  2. ExecuteRun the following command below, this willto download the script(script. (If noyour Raspberry Pi doesn't have internet access on RPI,access, download the file belowon manually onanother machine with internet access and transfer it to your RPIRaspberry onPi using a USB Flashflash drive. ThenThen, proceedcontinue from step 3)3.)
curl -O https://raw.githubusercontent.com/SKAARHOJ/Support/master/Files/Densitron/DensitronSetup1U.sh

     3. Next we need to give permissions to execute the file we have just downloaded. Execute following command:

sudo chmod 777 ./DensitronSetup1U.sh

      4. Now we are ready to execute the script. Execute following command:

sudo ./DensitronSetup1U.sh

YouWhen willprompted, be asked to typeenter the ipIP address and port of your XTOUCHxpanel-touch web server,server do(the soBlue Pill device where it's installed) and hitthen press ENTER. 

image.png

       5. That is it, you can now power down your RPI, disconnect keyboard,mouse and HDMI screen. Next time you power it on the browser should open in full screen mode on the Densitron screen.

Advanced way.Setup Method

AdvancedFor advanced users mightinterested wantin to buildcreating a more custom setupsetup, such as combining 2two Densitron screens,screens or pairing a Densitron screen andwith an HDMI screen-Howscreen, exactlydetailed to do so,guidance is outbeyond ofthe scope of this getting startedintroductory tutorial. AlthoughHowever, we will provide some basic hints willto beget provided:you started:

  • Edit or create /etc/X11//xorg.conf - in order to "describe" your multi monitor setup.
  • Edit or create /etc/xdg/autostart/display.desktop for browser auto startup "tuning".
  • Edit /etc/xdg/lxsession/LXDE-pi/autostart. It is crucial to add the following parameters:
@xset s off
@xset -dpms

Without adding thisIf you willdon't experienceapply the recommended modifications, you may encounter USB Dropoutsdropouts, (disconnectwhere the device disconnects and then connect)reconnects eitherduring whenscreen RPIsaver goes to "screensaver/blank screen"activation or whenwake-up. itThis wakesissue up(Wecan experiencedresult both situations). Asin a result'green' you will be left with "green"and unresponsive screen. The Light Display Manager doesdoesn't notautomatically detect this issue,problem. soTherefore, oneyou'll hasneed to either manually restart the Light Display Manager manually or create a udev rule to restart the service automatically when this condition occurs.

sudo service lightdm restart

2. 2RU

setup.

UReady 2U setup

Luckily, the units ship with Lubuntu distribution installed and should already "work" out of the box. That minimizes the effort needed to get it up and running, the only thing we need to do is to set up autostart flow to open the browser in full screen mode. Our unit came with SSH server not installed, so we will need a keyboard and preferably mouse in order to set it up. The username and password are densitron/densitron.

    1. Plugin your keyboard and mouse to the unit and power it on.
    2. Once device has booted, find terminal icon in taskbar and launch it.
    3. We need to create a new autostart entry, to do so type the following command :
sudo nano /etc/xdg/autostart/display.desktop

Enter the password if asked. We should end-up with an empty file open. Lubuntu has Firefox Browser installed by default, so this is what we are going to use. The content of the file should look like below, except of ip and port of your XTOUCH server :

[Desktop Entry]
Name=Firefox
Exec=firefox  --kiosk http://192.168.11.5:7952

Save and exit! Basically this is it! Next time the panel restarts the Firefox browser will be opened in "full screen" on the address you have entered in the config.

If at some point you need to change the ip, just edit the file again.

sudo nano /etc/xdg/autostart/display.desktop

If you want to stop autostarting the browser:

sudo rm /etc/xdg/autostart/display.desktop