Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
system_administration:manual_installation:1_basic_system [2020/01/11 11:32]
franzunix [Install additional packages for stream component]
system_administration:manual_installation:1_basic_system [2020/07/26 12:45] (current)
franzunix [GPIO: d-diot image v.1.4 and above]
Line 32: Line 32:
 pi@raspberrypi:​~ $ sudo useradd -rm homeassistant -G dialout pi@raspberrypi:​~ $ sudo useradd -rm homeassistant -G dialout
 </​cli>​ </​cli>​
 +In the d-diot image v.1.4 and above add the "​homeassistant"​ user to the "​gpio"​ group
 +<cli>
 +pi@raspberrypi:​~ $ sudo usermod -a -G gpio homeassistant
 +pi@raspberrypi:​~ $ sudo groupmems -g gpio -l
 +</​cli>​
 +
 Create a directory for the installation of Home Assistant and change the owner to the homeassistant account Create a directory for the installation of Home Assistant and change the owner to the homeassistant account
 <cli> <cli>
Line 55: Line 61:
 In the [[system_administration:​manual_installation:​8_home_assistant_configuration#​Panel iFrame|next steps]] we will integrate shellinabox in the Home Assistant home page with a [[https://​www.home-assistant.io/​components/​panel_iframe/​|Panel iFrame]]. In the [[system_administration:​manual_installation:​8_home_assistant_configuration#​Panel iFrame|next steps]] we will integrate shellinabox in the Home Assistant home page with a [[https://​www.home-assistant.io/​components/​panel_iframe/​|Panel iFrame]].
  
-==== d-diot image 1.2 ====+==== d-diot image 1.2 and above ====
  
 With the kernel 4.19.X and [[https://​www.raspberrypi.org/​blog/​buster-the-new-version-of-raspbian/​|Raspbian Buster]] the installation process of LIRC is a bit different, but thanks to the [[https://​github.com/​neuralassembly/​raspi/​blob/​master/​lirc-gpio-ir.patch|patch]] provided by the user neuralassembly (see this [[https://​www.raspberrypi.org/​forums/​viewtopic.php?​t=235256|post]]) it is possible to use LIRC in the usual way. With the kernel 4.19.X and [[https://​www.raspberrypi.org/​blog/​buster-the-new-version-of-raspbian/​|Raspbian Buster]] the installation process of LIRC is a bit different, but thanks to the [[https://​github.com/​neuralassembly/​raspi/​blob/​master/​lirc-gpio-ir.patch|patch]] provided by the user neuralassembly (see this [[https://​www.raspberrypi.org/​forums/​viewtopic.php?​t=235256|post]]) it is possible to use LIRC in the usual way.
Line 100: Line 106:
 pi@raspberrypi:​~/​build $ sudo nano /​boot/​config.txt pi@raspberrypi:​~/​build $ sudo nano /​boot/​config.txt
 </​cli>​ </​cli>​
-Add the following lines at the end of the file:+For the d-diot image 1.3 add the following lines at the end of the file:
 <file text /​boot/​config.txt> ​ <file text /​boot/​config.txt> ​
 dtoverlay=gpio-ir,​gpio_pin=22 dtoverlay=gpio-ir,​gpio_pin=22
 dtoverlay=gpio-ir-tx,​gpio_pin=12 dtoverlay=gpio-ir-tx,​gpio_pin=12
 +</​file>​
 +For the d-diot image 1.4 and above add the following lines at the end of the file:
 +<file text /​boot/​config.txt> ​
 +dtoverlay=gpio-ir,​gpio_pin=22
 +dtoverlay=gpio-ir-tx,​gpio_pin=26
 </​file>​ </​file>​
 Exit (CTRL+x) and save the changes (y). Exit (CTRL+x) and save the changes (y).
Line 154: Line 165:
   * I2 Change Timezone   * I2 Change Timezone
   * I3 Change Keyboard Layout   * I3 Change Keyboard Layout
-Don't change Wifi country ​because ​it will be covered later.\\+In the d-diot images before v.1.4 the wifi country ​is not set, while in v.1.4 it is set to Italy. This apect will be covered ​more in depth later and this setting has to be changed by the final user during the first installation.\\
 Select option 2 "​Network Options"​ and change the hostname to "​d-diot":​ Select option 2 "​Network Options"​ and change the hostname to "​d-diot":​
   * N1 Hostname   * N1 Hostname
Line 191: Line 202:
 Exit (CTRL+x) and save the changes (y). Exit (CTRL+x) and save the changes (y).
  
-==== GPIO: d-diot image v.1.2 ====+==== GPIO: d-diot image v.1.2 and v.1.3 ====
  
 Edit the config.txt file to set GPIO pin for MySensors radio modules (SPI), ATmega2560 serial communication (RFlink), Lirc (ir receiver and blaster), SHUTDOWN and POWEROFF functionalities. ​ Edit the config.txt file to set GPIO pin for MySensors radio modules (SPI), ATmega2560 serial communication (RFlink), Lirc (ir receiver and blaster), SHUTDOWN and POWEROFF functionalities. ​
Line 227: Line 238:
 Exit (CTRL+x) and save the changes (y). Exit (CTRL+x) and save the changes (y).
  
 +==== GPIO: d-diot image v.1.4 and above ====
 +
 +Edit the config.txt file to set GPIO pin for MySensors RFM69 radio modules (SPI), MySensors NRF24 serial gateway, ATMega328P (mainmcu) serial communication. ATmega2560 serial communication (RFlink), ​ Lirc (ir receiver and blaster), SHUTDOWN and POWEROFF functionalities. ​
 +<cli>
 +pi@raspberrypi:​~ $ sudo nano /​boot/​config.txt
 +</​cli>​
 +Add the following lines at the end of the file. Remember to delete the lines
 +<code text>
 +dtoverlay=gpio-ir,​gpio_pin=22
 +dtoverlay=gpio-ir-tx,​gpio_pin=26
 +</​code>​
 +before re-addingh them in block
 +<file text /​boot/​config.txt>​
 +### d.diot settings
 +
 +# Enable serial (uart1 = mainmcu, uart3 = RFLink, uart 5 = MySensors NRF24)
 +enable_uart=1
 +dtoverlay=uart3
 +dtoverlay=uart5
 +
 +# Enable spi0 for MySensors RFM69 radio module and set the cs pins (GPIO pin 8 and 7 = PIN 24 and PIN 26)
 +dtoverlay=spi0-cs,​cs0_pin=8,​cs1_pin=7
 +
 +# Enable shutdown pin (GPIO pin 16 = PIN 36)
 +dtoverlay=gpio-shutdown,​gpio_pin=16,​active_low=1,​gpio_pull="​up"​
 +
 +# Enable poweroff pin (GPIO pin 6 = PIN 31)
 +dtoverlay=gpio-poweroff,​gpiopin=6
 +
 +# Enable lirc-rpi and set IN and OUT pins (GPIO pin 22 and 26 = PIN 15 and PIN 37)
 +dtoverlay=gpio-ir,​gpio_pin=22
 +dtoverlay=gpio-ir-tx,​gpio_pin=26
 +</​file>​
 +Exit (CTRL+x) and save the changes (y).
 ==== Mount the doard ==== ==== Mount the doard ====
  
  • system_administration/manual_installation/1_basic_system.1578742324.txt.gz
  • Last modified: 2020/01/11 11:32
  • by franzunix