FBTFT and Device Tree

I’ve remounted my TFT touch display and connected it to another Raspberry Pi. During the installation process I realized, that the FBTFT Kernel is now Device Tree enabled, this makes the installation and configuration process a lot easier. (https://github.com/notro/fbtft/wiki#install)

Therefore you only need to install the FBTFT enabled Firmware (https://github.com/notro/rpi-firmware) and after that you can enable the TFT display HY-28B:

Add the following statement to /boot/config.txt to enable the hy28b overlay:

dtoverlay=hy28b, rotate=90

The overlays can be found on https://github.com/notro/rpi-firmware/tree/master/overlays.

To enable the console output on the display you had to add the following to the first line of /boot/cmdline.txt:

fbcon=map:10 fbcon=font:VGA8X8

After a reboot the display should be recognized and working. You can check it in dmesg.

To use the display with pygame you need to install the following packages and calibrate the touchpanel:

apt-get update
apt-get install libts-bin evtest xinput python-dev python-pip
pip install evdev
sudo TSLIB_FBDEVICE=/dev/fb1 TSLIB_TSDEVICE=/dev/input/event0 ts_calibrate

Update 1:
With the integration of the FBTFT drivers in the Raspberry Pi kernel (https://github.com/notro/fbtft/wiki) it is no longer neccessary to install notro’s FBTFT kernel.

Update 2:
I run in some problems with the display showing no content. The backlight was on but there were no image visible. I was able to fix the problem by setting the GPIO configuration fixed and not automatically:

dtoverlay=hy28b, rotate=90, resetgpio=25, ledgpio=18

TinyTX LDR Sensors

To monitor the control light of my cooker and oven I mounted two LDRs (light dependent resistor) on a TinyTX sender. The LDR recognizes changes of the light and the TinxTX sensor is redirecting this information to my Raspberry Pi. The Raspberry Pi is checking the local network for my mobile phone and notifies me with my android app when I am no longer at home and the cooker is still on.

Raspberry Pi TinyTX Sensors

With the help of Nathan and the german Raspberry Pi Forum I’ve adapted the development process for remote sensors which are connected via 433Mhz senders. The describtion for the installation and manufactoring of the sensors is described on the Website of Nathan and the german Raspberry Pi Forum. The TinyTX sketched from the Raspberry-Pi Forum are published on github:  https://github.com/meigrafd/TinyRX4,  https://github.com/meigrafd/TinyTX4

I have currently a DHT22 sensor which measures the temperature and the humidity, a DS18B20 temperature sensor and a PIR Sensor. Next I’m planning to add a LDR sensor.

The sender modules work with 3,3V which lead to problems with the PIR Sensor which only works accurate with 5V. I’ve discovered the solution for this problem on the following site: http://techgurka.blogspot.de/2013/05/cheap-pyroelectric-infrared-pir-motion.html