waterzhou / dabainb-iot_stm32l051 Goto Github PK
View Code? Open in Web Editor NEWThis project forked from xuhuiwang/dabainb-iot_stm32l051
大白NB-IOT stm32L051开发板官方例程
This project forked from xuhuiwang/dabainb-iot_stm32l051
大白NB-IOT stm32L051开发板官方例程
* 说明: * 本例程配套大白stm32开发板DaBai_L051_V1.0使用。 * 大白淘宝网址:https://dabairobot.taobao.com 下面是对本开发板基本操作的说明: ////////////////////////////////////////////////////// 1、供电说明: 在接入电池后,系统不会自动开机,需要短按key1(S1)按键才会开机。 在不接入电池时,可以直接用USB线供电,插入USB线后,系统会自动上电开机。 ////////////////////////////////////////////////////// 2、开关机逻辑: 开机:短按key1(S1)按键,系统会开机,蜂鸣器会响0.3s,5个LED灯全亮0.3s,随后系统运行指示灯LED1以1Hz的频率闪烁 关机:长按key1(S1)按键1s以上,蜂鸣器会响1s左右,蜂鸣器鸣响结束后松开key1(S1)按键,系统会自动关机 ////////////////////////////////////////////////////// 3、电池管理任务: 充电:充电的时候电量指示灯LED5会1s闪烁一次,充满电后LED5常亮并且蜂鸣器鸣响5次提示 放电:放电的时候 电池电量 >= 10% : LED5熄灭 7% <= 电池电量 < 10% : LED5以5Hz频率闪烁,并且蜂鸣器以5Hz频率报警 电池电量 < 7% : 蜂鸣器响1s后自动关机 ////////////////////////////////////////////////////// 4、传感器: 光敏:当g_lightValue > 700时(光线越暗g_lightValue数值越大),蜂鸣器响 温度:当温度值g_Sht20Temp > 31摄氏度时(g_Sht20Temp的数值就是表示实际的温度),蜂鸣器响 湿度:当湿度值g_Sht20RH > 70时(湿度越大g_Sht20RH的数值就越大),蜂鸣器响 ////////////////////////////////////////////////////// 5、按键和灯接口: key4(S4)按键是MCU的复位按键。 key1(S1)、key2(S2)、key3(S3)都可以作为MCU的按键输入接口来使用 当key2(S2)、key3(S3)不作为MCU的按键接口使用时,可当作普通的IO口来使用 LED5作为电池电量和充电相关的指示灯,请勿用这个灯作为其他状态的指示 LED1、LED2、LED3、LED4用户可以用来自定义状态指示灯。 当LED1、LED2、LED3、LED4不作为MCU的LED灯接口来使用时,可以当作普通的IO口来使用 * 版权归大白物联网所有。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.