Bullroarers
From Robert-Depot
Addressing Scheme
21 bullroarer nodes with single server/controller system.
- Node Addresses: 192.168.3.1 - 192.168.3.21
- Server/Controller Address: 192.168.3.100
OSC Addressing
Introduction to Open Sound Control - http://opensoundcontrol.org/introduction-osc
- Each bullroarer node has a base address /br/num where num is in 1-21.
- They can send 4 messages:
- /br/1/range, integer, 0-1024. Analog sensor reading from ultrasonic rangefinder from 0-1024.
- /br/1/limit, integer, 0 or 1. State of limit switch, sent when button is pressed or released. Switches are active low, so the value is 0 (LOW) when the button is pressed, 1 (HIGH) when the button is released.
- /br/1/relay, integer, 0 or 1. State of motor control relay. Sent when relay state changes. Relays are active low, so a value of 0 (LOW) means the relay is on, 1 (HIGH) means the relay is off.
- /br/1/config, integer, integer, integer.
- First value is auto mode, 0 for "off", 1 for "on".
- Second value is max range, 0 - 1024. This is a threshold value for the lower limit of bullroarer travel. When in auto mode, a sensor reading larger than this value will trigger the relay to turn the motor back on and raise the bullroarer.
- Third value is cycle timeout, 0 - max long int. In auto mode, this is the amount of time the system will wait after threshold is reached before turning the motor back on. This adjusts the amount of "rest time" at the bottom fo the cycle.