Repurposing a CB2S Module (BK7231N_1.0.1) for a DIY Watering System with OpenBK
Key Goals:
Control a water pump based on soil moisture levels, using a CB2S module flashed with OpenBK.
Monitor moisture levels and manually control the pump through a web interface.
Challenges and Questions:
OpenBK Compatibility:
Does OpenBK support the CB2S module and provide the following features:
Analog sensor input
Reliable timing mechanisms
Web interface customization
Moisture Sensor Input:
Does OpenBK directly support analog input on the ADC pin (P8)?
If not, are PWM-based techniques or external ADCs feasible?
How to configure the ADC channel in OpenBK's code or settings (if applicable)?
Relay Control:
How to configure OpenBK to control the relay on pin 9 or P24, with activation on low signal?
Web Interface Integration:
How to implement the following elements in OpenBK's web interface:
Moisture level display
Relay control button
Manual toggle button
Timing:
What are reliable timing mechanisms within OpenBK for controlling watering cycles?
Can the web interface's running counter be used for basic timing?
Progress and Information:
Successfully flashed OpenBK on the CB2S module and accessed the web interface.
Identified potential pin assignments for relay and sensor.
Discovered a running counter on the web interface.
Confident in basic coding and eager to learn OpenBK.
Personal Motivation:
Passionate about DIY projects and reducing e-waste.
Request for Assistance:
Seeking guidance from the community on the specific questions and challenges outlined above.
Appreciate any insights, code examples, or resources to aid in this project.
Additional Considerations:
Simplified web version goals:
Monitor moisture level, turning the relay on below 40% and off at 70%.
Continuously display moisture value on the web interface.
Provide a toggle button for manual relay control.
I'm excited to collaborate and learn from the community to achieve this project!
Key Goals:
Control a water pump based on soil moisture levels, using a CB2S module flashed with OpenBK.
Monitor moisture levels and manually control the pump through a web interface.
Challenges and Questions:
OpenBK Compatibility:
Does OpenBK support the CB2S module and provide the following features:
Analog sensor input
Reliable timing mechanisms
Web interface customization
Moisture Sensor Input:
Does OpenBK directly support analog input on the ADC pin (P8)?
If not, are PWM-based techniques or external ADCs feasible?
How to configure the ADC channel in OpenBK's code or settings (if applicable)?
Relay Control:
How to configure OpenBK to control the relay on pin 9 or P24, with activation on low signal?
Web Interface Integration:
How to implement the following elements in OpenBK's web interface:
Moisture level display
Relay control button
Manual toggle button
Timing:
What are reliable timing mechanisms within OpenBK for controlling watering cycles?
Can the web interface's running counter be used for basic timing?
Progress and Information:
Successfully flashed OpenBK on the CB2S module and accessed the web interface.
Identified potential pin assignments for relay and sensor.
Discovered a running counter on the web interface.
Confident in basic coding and eager to learn OpenBK.
Personal Motivation:
Passionate about DIY projects and reducing e-waste.
Request for Assistance:
Seeking guidance from the community on the specific questions and challenges outlined above.
Appreciate any insights, code examples, or resources to aid in this project.
Additional Considerations:
Simplified web version goals:
Monitor moisture level, turning the relay on below 40% and off at 70%.
Continuously display moisture value on the web interface.
Provide a toggle button for manual relay control.
I'm excited to collaborate and learn from the community to achieve this project!