91 lines
1.8 KiB
Markdown
91 lines
1.8 KiB
Markdown
### Instalar pantalla LCD 3.5
|
|
|
|
```sh
|
|
sudo rm -rf LCD-show
|
|
sudo apt install git
|
|
git clone https://github.com/goodtft/LCD-show.git
|
|
chmod -R 755 LCD-show
|
|
cd LCD-show/
|
|
sudo ./LCD35-show
|
|
```
|
|
Touch
|
|
```sh
|
|
cd LCD-show/
|
|
sudo dpkg -i -B xinput-calibrator_0.7.5-1_armhf.deb
|
|
```
|
|
**Calibración**
|
|
```sh
|
|
DISPLAY=:0.0 xinput_calibrator
|
|
```
|
|
|
|
Para volver a HDMI
|
|
|
|
```sh
|
|
cd LCD-show/
|
|
sudo ./LCD-hdmi
|
|
```
|
|
|
|
### Activar ssh
|
|
Se crea un archivo con nombre **sh** en la partición **boot**
|
|
|
|
En le nuevo OS nos toca generar el password creando un archivo **userconf.txt** en la particion boot
|
|
con la siguiente estructura *username:pasword_encriptada*
|
|
para encriptar una contraseña usar la siguiente linea:
|
|
```sh
|
|
echo 'mypassword' | openssl passwd -6 -stdin
|
|
```
|
|
|
|
reiniciar X
|
|
```sh
|
|
sudo systemctl restart display-manager
|
|
|
|
```
|
|
### Autoconectar el WIFI
|
|
crear un archivo wpa_supplicant.conf en la particion boot
|
|
|
|
```sh
|
|
country=CO
|
|
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
|
|
update_config=1
|
|
network={
|
|
ssid="YOURSSID"
|
|
scan_ssid=1
|
|
psk="YOURPASSWORD"
|
|
key_mgmt=WPA-PSK
|
|
}
|
|
|
|
```
|
|
**Ip Fija**
|
|
sudo nano /etc/dhcpcd.conf
|
|
```sh
|
|
interface wlan0
|
|
static ip_address=192.168.1.10/24
|
|
static routers=192.168.1.1
|
|
static domain_name_servers=8.8.8.8
|
|
```
|
|
|
|
### Camara
|
|
|
|
#### Crear un timelapse
|
|
##### Captura imagenes
|
|
|
|
```sh
|
|
libcamera-still -t 60000 --timelapse 2000 -o image%04d.jpg
|
|
|
|
```
|
|
Donde **t** es el tiempo de captura total, **timelapse** tiempo entre imagenes
|
|
|
|
##### Compilar video
|
|
|
|
```sh
|
|
ffmpeg -r 10 -f image2 -pattern_type glob -i 'image*.jpg' -s 1280x720 -vcodec libx264 time.mp4
|
|
|
|
```
|
|
**r** fps
|
|
|
|
**s** scala del video
|
|
|
|
|
|
[http://www.lcdwiki.com/3.5inch_RPi_Display](http://www.lcdwiki.com/3.5inch_RPi_Display)
|
|
|
|
[https://www.waveshare.com/wiki/3.5inch_RPi_LCD_(A)](https://www.waveshare.com/wiki/3.5inch_RPi_LCD_(A)) |