2017年7月13日 星期四

[RPi] GY-801

馬上會用到, 筆記一下, 要修改 import 和 i2c address

https://github.com/peterjc/longsight/blob/master/gy80.py
https://github.com/bitify/raspi/tree/master/i2c-sensors/bitify/python/sensors
https://github.com/bitify/raspi/tree/master/i2c-sensors/bitify/python/utils

http://astrobeano.blogspot.tw/2014/01/gy-80-orientation-sensor-on-raspberry-pi.html


不過有些數值好像還沒讀到?

Gyroscope/Accl/Comp q (nan, nan, nan, nan), yaw nan, pitch nan, roll nan (degrees)
Gyro-only quaternion  (nan, nan, nan, nan), yaw nan, pitch nan, roll nan (degrees)
Accel/Comp quaternion (0.03, 0.16, 0.99, 0.00), yaw 161.5, pitch 3.54, roll 179.1 (degrees)


2017年7月11日 星期二

[RPi] 使用Pi 3序列埠

Raspbian Jessie 的 GPIO 串口配置

http://harttle.com/2017/01/14/raspberrypi-uart.html

有空把文章完成吧

2017年7月10日 星期一

[RPi] How to speed up X11 forwarding in SSH

還沒有明顯的差距, 但先紀錄一下幾個方法或是方向應該是有用的

1. 超頻
force_turbo=1

2. 關掉 X-Server

3. 用比較簡單的 cipher
ssh -X -c arcfour pi@192.168.2.2

需要先安裝 libgcrypt20-dev
並且修改 /etc/ssh/sshd_config
ciphers         arcfour,blowfish-cbc

4. 壓縮(或是不壓縮) ==> 眾說紛紜
不過實際測試, 壓縮比較悲劇


參考資料:
* http://xmodulo.com/how-to-speed-up-x11-forwarding-in-ssh.html
* https://serverfault.com/questions/116875/how-can-i-disable-encryption-on-openssh
* https://www.devolve.net/blog/2014/03/27/raspberry-pi-ssh-cipher-speed/