BananaPI + Raspbian + fhem + 7″ Touch panel

Last week i installed fhem and the 7″ Touch panel from www.pollin.de on my BananaPI running the Beta 1 Raspbian with Kernel.

Here’s the setup:

First you have to put the Raspbian Image (downloaded from bananapi.com the Raspbian beta 1 with Kernel 3.19-rc5) on your 8GB SD card (recommended, 4GB also works). You can do this with the Win32DiskImager.

After that, prepare your BananaPi, plug in the hdmi cable and prepare the touchpanel for the first run like in this youtube video.

Start the BananaPI and it should display some startup-code out-of-the-box.

I modified the the config.txt (/boot/config.txt) like this:

framebuffer_width=1024
framebuffer_height=600

hdmi_force_hotplug=1
hdmi_cvt=1024 600 60 3 0 0 0

hdmi_group=2
hdmi_mode=87

Like described here and in this video. But in fact, that did not work, because the gpu does not provide this resolution. It will remain on 1360×768

Install the touch feature:

Here is the original How-To: http://forum.lemaker.org/thread-3517-1-2-_tutorial_7_inch_touch_display.html

sudo apt-get update
sudo apt-get install libx11-dev libxext-dev libxi-dev x11proto-input-dev
wget http://github.com/downloads/tias/xinput_calibrator/xinput_calibrator-0.7.5.tar.gz
tar -zxf xinput_calibrator-0.7.5.tar.gz
cd xinput_calibrator-0.7.5
./configure
make
sudo make install

call the configuration software

xinput_calibrator

The touchpanel is now calibrated but it won’t keep the settings across the reboot. Here is how to fix it :
The software should indicate you some details in the console window. You should see a part like this one :

Section "InputClass"
     Identifier    "calibration"
     MatchProduct    "eGalax Inc. USB TouchController"
     Option    "Calibration"    "121 1917 317 1741"
EndSection

Create a 01-input.conf file :

sudo nano /usr/share/X11/xorg.conf.d/01-input.conf

Copy paste the previous settings in the file, save and exit.
Your panel should remain calibrated across reboots.
Touch panel only has a single click (obviously), so we have to emulate the right click with a long pressure.
Open the previously created file and copy paste these settings somewhere between Section „InputClass“ and EndSection :

sudo nano /usr/share/X11/xorg.conf.d/01-input.conf
#copy the following text:
Option "EmulateThirdButton" "1"
Option "EmulateThirdButtonTimeout" "750"
Option "EmulateThirdButtonThreshold" "30"

Modify parameters as desired.

Virtual Keyboard

There are a few Virtual keyboard software projects, you are free to test a different one.

sudo apt-get install florence
# use german country code:
setxkbmap de

Install fhem

See: https://debian.fhem.de/

Import repository gpg key:

sudo apt-get install apt-transport-https
wget -qO - https://debian.fhem.de/archive.key | apt-key add -
#If line above does not work (certificate or gpg error), try this:
wget --no-check-certificate -qO - https://debian.fhem.de/archive.key | apt-key add -
#If it stil not works, execute this line before line above again
echo 'Acquire::https::debian.fhem.de::Verify-Peer "false";' > /etc/apt/apt.conf.d/30nohttps

No you can access fhem via your browser:
Web: :8083
WebPhone: 8084
WebTablet: 8085

BananaPi 7″ Touchdisplay direct connect

Some hints how to connect a 7″ Touch display (the LS-7T from www.pollin.de) to the lvds connector of the BananaPi

Modify script.bin

http://www.rdklein.eu/rdpiforum/viewtopic.php?f=61&t=2641

Connect Display:

http://wiki.lemaker.org/index.php?title=BananaPro/Pi:LCD_Module&curid=124&diff=1971&oldid=1969

Did not work under Raspbian, because it did not contain a script.bin in the /boot folder

Did not work under Debian. Replaces 50kb script.bin with the ~5mb script.bin…black display, did not work.

Bautz 200c – Elektrik – Mach neu

Die Elektrik im Bautz lässt zu wünschen übrig, sind doch einige Kabel entweder total verwirrend angeschlossen oder es wurden einfach die Kabelfarben nicht eingehalten. Für den Winter hab ich mir vorgenommen, da mal ein bisschen aufzuräumen.

In dem Zug sollen auch die Torpedosicherungen gegen Stecksicherungen ausgetauscht werden.

Angefangen hab ich schon mal mit dem Öldruckschalter (grau) und dem Plus-Kabel vom Zündschloss (weiß)

Eventuell kann mich jemand noch sagen, was dieses Kabel aus der Temperatur-Armatur überhaupt macht? Die Lampe in der Armatur leuchtet und die Nadel bewegt sich bei einsteigender Temperatur. Für was brauch ich also dann das Kabel? (rot markiert=

Fix ghost double click on Logitech’s G500 mouse

My Logitech G500 sometimes did double-clicks instead of single-clicks. Problem was a little copper plate inside the mouse. If you want to fix it, too, watch the video or look at the diy page:

http://www.overclockers.com/mouse-clicking-troubles-diy-repair/


Closer look to copper refitting: https://www.youtube.com/watch?v=AbIuWNYP-kk

Bautz – Final inspection (vorerst)

Bevor der Bautz seinen großen Auftritt hatte, musste ich nochmal ordentlich ran mit der Poliermaschine und der neuen Polierkugel. Auch der neue Polierteller von 3M feierte sein Debut.
Zuerst wurden die Kanten, an die man mit dem Polierteller nicht hinkommt mit der Kugel bearbeitet. Danach nochmal ein Durchgang mit 400er Paste und dem Polierteller und danach noch ein Durchgang mit der 2500er fürs Finish Composer

Danach erstmal reinigen mit Shampoo und abrunden mit einer Schicht NXT Tech Wachs 2.0 von Meguiars.