CSS Submit Button Hover Css3Menu.com

 

Control via GPIO (Raspberry PI)


 

To control the ArcheryClock system on Raspberry PI with physical buttons, it is possible to use the GPIO pins.

 

 

Hardware connection to GPIO input:

To connect switch (a button to trigger for example the next function), connect a switch between the 3.3 Volt, and the related pin with the function. (In this example pin 1 for 3.3V and pin 33 for the "Next" function.).

 

Important:

Only for very short cables applicable (max. 250mm). With longer cables there is a risk the cables act as an antenna picking up a low voltage from air resulting in triggering the button. In this case leading to unexpected triggers of the timer.

 

Important:

To use longer cables (more than 250mm), use a "pull down" resistor. A simple small 150KΩ resistor connected between Ground (pin 9) and the function pin (pin 33 in this example with next function) ensures zero voltage on the function in when the button is not pressed. If the button is pressed, the function pin still get 3.3 Volt to trigger the function. The current as result of this through the resistor is low (22μA) will not lead to power usage issues.

 

 

 

Table on the right side shows the functions per GPIO pin. The pins marked with "i" in the in/out columns, show the possible pins to connect input buttons.

 

Changing input (button) functions for GPIO:

Although the table above shows the function per input pin, it is possible to change the function per pin.

Changing input (button) functions for GPIO:

To select the correct function,

  • go to the settings menu
  • select control settings (1).
  • Go to "GPIO input settings" and select the preferable function per button (2)
  • click "save as startup settings" to store the functions for next sessions. (3)

 

 

 

For more details about usage of ArcheryClock with Raspberry PI, see Link

 

 

 



© 2019, Henk Jegers