溼度計的規格定義版定義如下
第一版先定義主板的功能,接收端還咬再想想應該還有更好的方式可以接受通知,不然變成兩個工作,變成大工程,雖然又靠近商品化一步,但不用這樣也可以,功能先做出來再繼續調整也不錯,先講求效果,才叫做EVT阿
ID:
.Drill oil platform(area too much)
.put out platform, wire to farm.
HW:
Block diagram
A. system
keypad--->platform <---> sensor -> soil
(option)
B. platform
18650 battery -- Power
-- usb to 3V3
-- VBat keep
MCU -- LED *3
-- ADC *3 humidity path
-- ADC *3 humidity alarm setting
-- ADC *1 env Temperature
-- uart -- BT(HID)
-- SPI -- Flash
-- keypad *2
-- USB CDC
EXT board:
-- LED *3
-- key connector, pin=3
-- battery slot
-- ADC 3ch for humidity,pin=6(ch1+/-,ch2+/-,ch3+/-)
-- ADC 3ch for Alarm, pin=4(ch1,2,3, GND)
MainBoard:
.indicator
LED red = power status
LED Blue = BT status
LED Green= humidity low at night
volt level=RGB >67%, <66%=RG, <33%=R
.keypad
power key, hold=broadcast 30sec
status key, press=volt level, release =idle
//include volt level LED in simple resistor.
.connector:
Keypad should be remove normally. until I use to connect it.(weather effect decrease)
.interface
bluetooth 2.1, proflie=HID
USB full speed for setting update and charging
.battery
18650
keep RTC time when swap battery
.ADC
VCC -> humidity + 100k ->GND, simple test range is 120k(dry) to 30k(wet) in 2 cm range.
alarm setting: vcc-> 47k+47k ->GND, detect value for alarm compare.(not linear)
FW:
. humidity alarm ADC check is not linear. get ADC have to use ratio for sensor range.
.always deep sleep mode, during usb supply keep idle mode.
.wakeup idle 3sec for command coming
.use setting to enable ADC channel
.HID protocol include channel id.
.feedback status
..numLock status 1->0->1 will start download(TBD)
.manual check humidity status
.manual check battery status
.real time sync
each 30min turn on BT RX 20sec, to sync master check alarm happen.
.default setting
..check humidity period in 10min
..download status finish: keep data, erase at each day cross
..LED green light when humidity low at night(on/off), flashing 0.3/5s, 18:00~01:00
..00:00~08:00 BT disconnect to save power
..ADC enable channel 0, disable channel 1 and 2
---------------------------------
Master to check humidity status in independent device:
.MCU + BLE master to check peripheral
.battery device to collect data and alarm in house.
.Another ME/HW/FW job in this case
.May not good idea
