One Wire/Single Wire Sensors
The One Wire/Single Wire Sensors feature provides support for Tibbo's proprietary One Wire/Single Wire sensor protocol, enabling simple and efficient connectivity with Tibbo sensor modules (Tibbits).
Overview
One Wire/Single Wire is a specialized protocol for:
- Simplified sensor integration
- Automatic sensor detection
- Efficient multi-sensor communication
Supported Sensors
One Wire/Single Wire works with Tibbit 62
Configuration
Configure UnoWire with these properties:
- One Wire/Single Wire Port: Hardware port for sensor connection
- Scan Interval: Automatic sensor detection frequency
- Poll Rate: Sensor reading update frequency
- Timeout: Sensor communication timeout
Automatic Detection
One Wire/Single Wire automatically detects connected sensors:
- Plug in Tibbit sensor module
- System automatically identifies sensor type
- Variables created for sensor readings
- Sensor immediately available in application
No manual configuration required for basic operation.
Sensor Variables
Each detected sensor creates variables:
- Sensor reading value (temperature, humidity, etc.)
- Sensor status (connected, error, etc.)
- Sensor ID and type
- Last update timestamp
Use these variables in your application logic.
Hot-Plug Support
One Wire/Single Wire supports hot-plugging:
- Connect sensors while device is running
- Disconnect sensors without stopping application
- Automatic variable creation/removal
- Application adapts to sensor changes
Multi-Sensor Support
Connect multiple sensors simultaneously:
- Each sensor gets unique identifier
- Independent polling for each sensor
- Parallel reading operations
- Efficient bus utilization
Sensor Calibration
Calibrate sensors for accuracy:
- Offset adjustment
- Scale factor correction
- Temperature compensation
- Application-specific calibration values
Store calibration in settings for runtime adjustment.
Data Polling
Configure sensor polling:
- Continuous: Constant reading updates
- On-Demand: Read when triggered
- Scheduled: Periodic readings at intervals
- Event-Driven: Read on specific conditions
Balance polling rate with:
- Power consumption requirements
- Data resolution needs
- Application responsiveness
Error Handling
One Wire/Single Wire handles sensor errors:
- Communication failures
- Sensor disconnection
- Invalid readings
- Timeout conditions
Monitor sensor status variables to detect issues.
Power Management
Optimize sensor power usage:
- Reduce polling frequency
- Disable unused sensors
- Use sleep modes between readings
- Power cycle sensors on errors
Integration with Application
Use sensor data in your application:
- Monitor with Web Dashboard
- Log to Data Tables
- Send via MQTT or Azure
- Trigger automation with comparison blocks
Related Blocks
Work with sensor data using:
- On Variable Changed: React to sensor changes
- Comparison: Compare sensor values
- Variable Set: Process sensor data
Use Cases
Common One Wire/Single Wire sensor applications:
- Environmental monitoring (temperature, humidity)
- Indoor air quality monitoring (CO2, particles)
- Proximity detection and counting
- Light level control for automation
- Industrial process monitoring
Tibbit Hardware
One Wire/Single Wire requires compatible hardware:
- Tibbo Project System (TPS) boards
- Tibbit sensor modules
- Appropriate Tibbit slots on TPS
- Proper power supply for sensors
Refer to Tibbo hardware documentation for details.
Sensor Specifications
Each Tibbit sensor has:
- Measurement range
- Accuracy specifications
- Response time
- Operating conditions
- Power requirements
Consult individual Tibbit datasheets for details.
Linking to Settings
One Wire/Single Wire properties can be linked to settings for:
- Runtime poll rate adjustment
- Calibration values
- Enable/disable sensors
Troubleshooting
Common One Wire/Single Wire issues:
- Sensor not detected: Check physical connection and slot
- Intermittent readings: Verify power supply stability
- Incorrect values: Check calibration settings
- Communication errors: Reduce poll rate or check wiring