1.Create DynamicMultiprotocolLightSedSoc example from Simplicity Studio.
2. Refer to related codes in DIY SwitchBot using Silicon Labs Thunderboard BG22 Kit to put pwm_turn_on_sg90/pwm_turn_off_sg90 in notifyLight() of DynamicMultiprotocolLightSedSoc_BRD4161A_callbacks.c.
3. Build and download DynamicMultiprotocolLightSedSoc into BRD4001A+BRD4161A.
4. Connect Connect GND/5V/PC10(EXP15) pins on BRD4001A to BROWN(GND)/RED(PWR)/ORANGE(PWM) on SG90.
5. Install Silicon Labs Gecko Wireless BLE App and also pair DynamicMultiprotocolLightSedSoc to a Zigbee Gateway.
6. Then, you can control this SwitchBot DIY BLE+Zigbee dual mode controller by BLE App or Zibgee Gateway UI.
No comments:
Post a Comment