User Tools

Site Tools


raspberry

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
raspberry [2021/02/12 20:24] – [Habilitar SSH] joseraspberry [2022/01/14 22:11] – [Script] jose
Line 15: Line 15:
 ===== Habilitar wifi ===== ===== Habilitar wifi =====
 En la pertición boot creamos el fichero wpa_supplicant.conf con los datos de nuestro wifi En la pertición boot creamos el fichero wpa_supplicant.conf con los datos de nuestro wifi
-  Partición boot+  boot/wpa_supplicant.conf
  
-  wpa_supplicant.conf 
 <code> <code>
 country=ES country=ES
Line 86: Line 85:
 | 0x50000 | ha habido under voltage desde el último reinicio | | 0x50000 | ha habido under voltage desde el último reinicio |
 | 0x50005 | actualmente under voltage | | 0x50005 | actualmente under voltage |
 +
 +===== Script =====
 +
 +<code>
 +#!/bin/bash
 +
 +fecha=`date +\%Y\%m\%d_\%H\%M\%S`
 +voltios=`vcgencmd measure_volts`
 +test="`vcgencmd get_throttled`"
 +case $test in 
 + throttled=0x50005) estado="Under Voltage";; 
 + throttled=0x50000) estado="Ha habido under voltage";; 
 + throttled=0x0) estado="OK";; 
 + *) estado=$test;;
 +esac
 +
 +echo $fecha" "$voltios" "$estado >> /home/pi/uptime
 +</code>
 +
 +====== Pantallas TFT ======
 +Pantalla tàctil de 10" con resolución 1024x600
 +
 +Modificar el fichero /boot/config.txt y añadir:
 +  hdmi_group=2 
 +  hdmi_mode=87 
 +  hdmi_cvt 1024 600 60 6 0 0 0
 +Puede que con Raspberry 4 falle. También funciona con esto:
 +  disable_overscan=1
 +  hdmi_cvt=1024 600 3 0 0 0
  
raspberry.txt · Last modified: 2022/01/29 15:54 by jose