Raspberry Pi 3
Raspberry Pi 3 model B, 7" LCD Touch screen, Inverted mount
The advantages of inverted mount:
- HDMI, Audio and video output direction up.
- Reducing the space under the display.
(číslo pi=3.1415926535897932384626433832795)
Fig. 1: The first caseing
#Before installing the programs...
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get install <SW like cmake, cmake-gui, ...>
-With Automatic confirmation:
-Update your system and install rpi-update:
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install -y rpi-update
-KERNEL UPDATE:
sudo rpi-update
Set date and time
sudo date 0701120016 #1.7.2016 12:00
#format: MMDDhhmmYY
#(Raspberry pi does not have RTC, it can be made by adding a DS3231 Real Time Clock OR via internet)
Audio
sudo nano /boot/config.txt
#add this to config.txt
#improove audio quality - no noise
audio_pwm_mode=2
LCD backlight
#write this in root console
#ON:
echo 0 > /sys/class/backlight/rpi_backlight/bl_power
#OFF - be carefull nothing will be visible
echo 1 > /sys/class/backlight/rpi_backlight/bl_power
#ADJUST:
echo n > /sys/class/backlight/rpi_backlight/brightness
#where n is some value between 0 and 255.
Example: echo 150 > /sys/class/backlight/rpi_backlight/brightness
#The easiest way to disable screen blanking in the Raspbian GUI is to install xscreensaver then configure it #to disable:
sudo apt-get update
sudo apt-get install xscreensaver
LCD rotate
#otočit obraz o 180 st:
sudo nano /boot/config.txt
lcd_rotate=2
Use HDMI instead of 7" LCD
#If you want to use HDMI instead of DSI,
#DSI display autodetection is disabled by default on these boards. To enable detection, add the following line to /boot/config.txt:
ignore_lcd=0
hdmi_force_hotplug=1
Use AV
hdmi_ignore_hotplug=1
#hdmi_force_hotplug=1
sdtv_mode=0 Normal NTSC
#sdtv_mode=1 Japanese version of NTSC
#sdtv_mode=2 Normal PAL
#sdtv_mode=3 Brazilian version of PAL#sdtv_aspect=1
#
4:3#
sdtv_aspect=2 #
14:9#
sdtv_aspect=3 #
16:9
Case
http://www.thingiverse.com/thing:1384316 (Download Solidworks files for 3D printer)
VNC
sudo raspi-config
-
Advanced Options --> VNC > Yes.
LCD/HDMI
config.txt_HDMI
display_default_lcd=0
hdmi_drive=2
hdmi_mode=82
Real time linux on Raspberry pi
Building the kerneel takes 3 hours. (using all RPi3 cores: -j4, some cooler (fan) is neeted)
WEB: https://www.raspberrypi.org/documentation/linux/kernel/building.md
pi@raspberrypi:~ $ uname -a
Linux raspberrypi 4.4.32-rt43-v7+ #2 SMP PREEMPT RT Sat Nov 19 09:10:34 UTC 2016 armv7l GNU/Linux
TEST:
git clone git://git.kernel.org/pub/scm/linux/kernel/git/clrkwllms/rt-tests.git
cd rt-tests/
make -j4 all
sudo ./cyclictest -m -t1 -p 80 -n -i 500 -l 100000
T: 0 ( 1529) P:80 I:500 C: 100000 Min: 6 Act: 6 Avg: 7 Max: 42
Max: 42us (The test before RT kernel was Avg: 14, max: 502)
DOWNLOAD RPI kernel and RT patch:
Last tested RT kernel: rpi_4.4.39 kernel and patch_4.4.39_RT50
ON/OFF switch
... comming soon...
Useful links:
https://www.raspbian.org/PiscesImages
https://www.raspberrypi.org/downloads/raspbian/
https://www.raspberrypi.org/documentation/linux/kernel/building.md
https://www.raspberrypi.org/documentation/linux/kernel/patching.md
https://www.raspberrypi.org/documentation/linux/kernel/configuring.md
Previous page: Mince