Step 5Setup the ioBridge IO-204 Controller
The IO-204 acts as the controller taking input from the PIR sensor and controlling the MP3 Trigger. I used two different channels in my demo, but afterwards I figured out how to use one channel.
Make Connections
Each channel has Serial Out, Analog Input, and Digital Input. The PIR sensor connects to the Digital Input (pin 2) and the MP3 Trigger's receiver connects to the digital output (pin 3) of any open channel.
Create Onboard Rules
The IO-204 is programmed via a web interface. You want to create "Onboard Rules". They are "programming-lite" or "logical triggers - if then", if you will. Once the rules are programmed, they reside on the IO-204 with or without a network connection. That feature came out in one of the recent firmware revs, so make sure you're up to date. The IO-204 has a dual red/green LED to indicate it's network status. RED is offline and GREEN is online.
I wanted the IO-204 to change the volume of the MP3 track as motion is detected. As more motion is detected, the volume should increase to a maximum level by stepping through volume levels. I decided on 4 volume levels as a first attempt. When the MP3 player starts a track the volume is low. I also decided to check the motion status every two seconds. If there is continuous motion, over 8 seconds the MP3 player will reach the highest volume level. The volume will step down in volume as activity decreases.
When you have created your states, make sure you click "Sync Rules" to transfer your rules to the IO-204 module.
Log Your Activity
When the IO-204 is online, the module can push data to the ioBridge servers to be data logged. I created a digital input log (for both the high and low states). The data is accessible via an API. With a simple PHP script my friend was kind enough to assist with, I added up all of the the high states to see how much activity the system logged.
| « Previous Step | Download PDFView All Steps | Next Step » |
![]() |
Add Comment
|












































