Uživatelské nástroje

Nástroje pro tento web


raspberry-pi-zero-w

Raspberry Pi Zero W

Raspberry Pi Zero W external antenna mod

Basic system install

Download

Flash image to SD card

System update

shell# apt-get update;apt-get upgrade;apt-get dist-upgrade;apt-get clean
shell# rpi-update

WiFi

Scan

Scan Access Points

shell# iwlist wlan0 scan

Client

shell# vi /etc/wpa_supplicant/wpa_supplicant.conf
/etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=CZ
 
network={
        ssid="--ssid-name--"
        psk="--secret-password--"
}

AP

TODO

SSH server enable

shell# systemctl enable ssh
shell# systemctl start ssh

Camera

Enable camera

shell# raspi-config
  • 5 Interfacing Options Configure connections to peripherals
  • P1 Camera Enable/Disable connection to the Raspberry Pi Camera

Load kernel driver

shell# modprobe bcm2835-v4l2

Camera info

shell# v4l2-ctl --info
Driver Info (not using libv4l2):
        Driver name   : bm2835 mmal
        Card type     : mmal service 16.1
        Bus info      : platform:bcm2835-v4l2
        Driver version: 4.14.33
        Capabilities  : 0x85200005
                Video Capture
                Video Overlay
                Read/Write
                Streaming
                Extended Pix Format
                Device Capabilities
        Device Caps   : 0x05200005
                Video Capture
                Video Overlay
                Read/Write
                Streaming
                Extended Pix Format

Motion

TODO

GPIO

Pinout

Official tutorial

Install

shell# apt-get install pigpio
shell# apt-get install python3-gpiozero python3-pigpio

Button

TODO

OLED

shell# git clone https://github.com/adafruit/Adafruit_Python_SSD1306
shell# cd Adafruit_Python_SSD1306
shell# apt-get install build-essential python-dev python-pip python-imaging python-smbus
shell# python setup.py install
shell# cd examples
shell# python image.py

IRF520 MOSFET

TODO

I2C

Install tools

shell# apt-get install i2c-tools

Detect devices

shell# i2cdetect -y 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- 3c -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
raspberry-pi-zero-w.txt · Poslední úprava: 2018/05/09 23:25 autor: blazek