Skip to content

Using a Servo as Diverter

Related Config File Sections:

You can use a servo as a diverter by tying it into a diverter using events. Specifically, we are using diverter_(name)_deactivating and diverter_(name)_activating. This is an example:

#! switches:
#!   s_ball1:
#!     number:
#!   s_ball2:
#!     number:
#! coils:
#!   c_eject1:
#!     number:
#!   c_eject2:
#!     number:
#! ball_devices:
#!   bd_trough:
#!     eject_coil: c_eject1
#!     ball_switches: s_ball1
#!   bd_target:
#!     eject_coil: c_eject2
#!     ball_switches: s_ball2
diverters:
  d_diverter:
    debug: true
    feeder_devices: bd_trough
    targets_when_active: playfield
    targets_when_inactive: bd_target
servos:
  s_diverter:
    number:
    positions:
      0.7: diverter_d_diverter_activating
      0.2: diverter_d_diverter_deactivating

This diverter will not wait for the servo to reach the position. If you need that let us know in the forum.


Something missing or wrong? You can fix it!

This website is edited by people like you! Is something wrong or missing? Is something out of date, or can you explain it better?

Please help us! You can fix it yourself and be an official "open source" contributor!

It's easy! See our Beginner's guide to editing the docs.

Page navigation via the keyboard: < >

You can navigate this site via the keyboard. There are two modes:

General navigation, when search is not focused:

  • F , S , / : open search dialog
  • P , , : go to previous page
  • N , . : go to next page

While using the search function:

  • Down , Up : select next / previous result
  • Esc , Tab : close search
  • Enter : go to highlighted page in the results