Connecting a motion sensor to a 12 channel mini servo controller

If you have set up a sequence to get the motion you want in the “Sequence” tab of the Maestro Control Center, you can use the “Copy Sequence to Script” button, then manually edit the script to make it use the PIR sensor.

You can find some details about connecting the PIR sensor to the Maestro in this post by Ryantm. After that, if it is configured and working properly, you should be able to see the PIR sensor respond by monitoring the channel you used in the “Status” tab of the Maestro Control Center. The PIR sensor should give you a low signal when motion is detected and a high signal otherwise, so you can essentially treat it a button. Depending on how you want it to work, you might be able to use the snippet of code I posted about here for starting a script with the push of a button as a starting point.

For the Adafruit audio board, I recommend reading through their Audio FX Sound Board guide for how to set it up. It has a couple different methods of triggering audio, so you could set it up so driving individual pins low causes specific audio files to play (which you can do from individual Maestro pins configured as “output”), or it can be configured to accept serial commands to trigger the audio (which you can send from a Maestro script using the serial_send_byte command as long as you are using a Mini Maestro).

If you get stuck while progressing through any of these steps, you can post more information about what you have done so far and I would be happy to help further. It would probably be helpful to post a copy of your Maestro settings file as well, which will allow me to see how everything is configured on your Maestro, including your script. You can save a copy of your Maestro settings from the “File” drop-down menu of the Maestro Control Center while the controller is connected.

Brandon

1 Like