From Hentschel
Revision as of 22:51, 6 December 2019 by Thomas (Talk | contribs)

Jump to: navigation, search

Lam modified

  • use 14400 as baud rate for FTDI; on Mac:
  screen /dev/cu.usbserial-FTFO858O 115200
  • default login is debian:
  debian:temppwd
  • P9 header is off by one, counting from 1. There is a extra GND row in position 3-4 ?

Time

  • change time zone: sudo timedatectl set-timezone America/Los_Angeles
  • install ntp: sudo apt-get install ntp

Networking

  • the ethernet interfaces don't appear to work. Using Edimax wifi
  • set manually
 sudo ifconfig eth0 192.168.1.16 netmask 255.255.255.0
  • permanent in in /etc/network/interfaces
allow-hotplug wlan0
iface wlan0 inet static
   address 192.168.1.16
   netmask 255.255.255.252
   network 192.168.1.0
   gateway 192.168.1.1
   dns-nameserver 192.168.1.2
   dns-search home.hentschel.net
   wpa-ssid hentschel
   wpa-psk bb78bbaa6a8425255774e5d49b51b4038d55c0c3e493334abbecec31c27096b6

reset switch

  • BBB:
 P8, GPIO 67 <-> GND
  • RasPi
 GPIO 4

install software

Raspberry Pi

 sudo apt-get install build-essential python-dev python-setuptools python-pip python-smbus -y
 sudo pip install Adafruit_GPIO
 sudo pip install Adafruit_SSD1306
 sudo apt-get install python-pil
 sudo pip install gpiozero
 sudo pip install psutil

also enable i2c in /boot/config.txt

 dtparam=i2c_arm=on

enable systemd service

Raspberry Pi

  • create file /lib/systemd/system/lcd.service with following content
[Unit]
Description=LCD Display Service
After=multi-user.target
Conflicts=getty@tty1.service

[Service]
Type=simple
ExecStart=/usr/bin/python /home/pi/script/lcd/lcd.py
StandardInput=tty-force
 
[Install]
WantedBy=multi-user.target
  • then:
 sudo systemctl daemon-reload
 sudo systemctl enable lcd.service
 sudo systemctl start lcd.service