How tatobari/hx711py works
Main Components
a) Hardware Layer:
• HX711 ADC Load Cell Amplifier
• Load Cell Sensor
• Raspberry Pi GPIO Interface
b) Software Layer:
• Two Main Implementation Versions:
• Legacy Version (hx711.py)
• Modern Version (hx711v0_5_1.py)
• Emulator Component (hx711_emulator.py)
Physical Layer
• HX711's two channels (A & B) with their respective gains:
• Channel A: 128/64 gain options
• Channel B: Fixed 32 gain
Communication Layer
• GPIO pins connection between HX711 and Raspberry Pi
• Bi-directional data flow:
• Clock signal (output from Pi)
• Data signal (input to Pi)
Software Layer
• Split into two parallel implementations:
a) Modern Implementation (v0.5.1):
• Two operation modes:
• Interrupt-based path
• Polling-based path
• 10 SPS (Samples Per Second) timing
b) Legacy Implementation:
• Slower 1 SPS operation
• Channel switching capability
Testing/Simulation Layer
• Emulator component
• How it can replace the hardware layer for testing
Use these visual elements:
• Blue: Hardware components
• Green: Software components
• Yellow: Communication interfaces
• Red: Critical timing-sensitive paths
Important Notes to Include:
1. A warning symbol near the timing-sensitive operations, indicating the potential issues with Linux-based timing
Gain settings for different channels
Special Considerations: