Connections

External hardware connected to the AVR is listed below.

Figure 1. External Pin Connection

In addition, there are internal connections done in the code as described below:

The PIR sensor needs to be connected to one of the input pins on LUT0. The I/O Multiplexing and Considerations chapter in the ATtiny1617 data sheet shows that the RESET and the LUT0-IN0 are on the same pin and that the SPI is sharing pins with the other LUT0 inputs. Moving the SPI to the alternate pin location can be done, but it will come into conflict with LUT1 out. To solve this problem, it is possible to use the Event system to route any other free I/O pin to the event input of LUT0.

Figure 2. Event System Setup