# sensorboard
Sensor board using ESP8266
==========================
This is a simple sensor board using an ESP8266.
It is designed to run from 6 volts, or 4xAA batteries. The software uses the
deep sleep functions of the ESP8266 for power savings, and applies power to the
sensors only when the ESP8266 is powered on. It posts the sensor data to a
[prometheus](http://prometheus.io/) [pushgateway](https://github.com/prometheus/pushgateway).
A copy of this sensor has run for more than two months on 4xAA batteries.
Longer life can be achieved by using a longer sleep interval; the ESP8266
consumes quite a bit of power at bootup and when communicating over wifi.
Hardware:
---------
* [ESP8266](https://github.com/esp8266/Arduino) is a fully featured wifi
module with embedded microcontroller. This project can make use of the
[ESP-07](http://www.banggood.com/ESP8266-ESP-07-Remote-Serial-Port-WIFI-Transceiver-Wireless-Module-p-961247.html)
module or any of the
[ESP-12](http://www.banggood.com/ESP8266-ESP-12E-Remote-Serial-Port-WIFI-Transceiver-Wireless-Module-p-980984.html)
variants - the extra pins at the bottom are unused. If using the ESP-07
with the always-on status LED, you may want to desolder / pry off the
status LED to extend your battery life.
* [DHT22](http://www.electrodragon.com/product/dht22-pre-order-link/) is a
temperature and humidity sensor. It is actually the most expensive part
of this board, even more expensive than the ESP8266.
* [BMP180](http://www.banggood.com/BMP180-Digital-Barometric-Pressure-Sensor-Module-Board-p-930690.html)
is a barometric pressure and altitude sensor.
* [LMR16006YDDCR](http://www.ti.com/lit/ds/symlink/lmr16006.pdf) is a 600ma
adjustable voltage switching power regulator. While much more expensive
than the LDO, batteries will last ~twice as long.
* [NR4018T100M](http://www.yuden.co.jp/productdata/catalog/en/wound04_e.pdf)
is the 10uh inductor used as L1.
* [BME280](http://www.mouser.com/ds/2/783/BST-BME280_DS001-11-844833.pdf) is
an integrated pressure, humidity, and temperature sensor. Replaces the
DHT22 and BMP180 in version 4.0.
* Onboard voltage meter to track the battery voltage. R4 and R5 make up
the voltage divider so should be 1% or better tolerance that are
fairly stable with temperature.
* Everything else on the board is simple and common.
* This board is intended to be hand-solderable. The smallest components are
0603 and are marked with hand-soldering pads.
Software:
---------
* This is programmed in the Arduino environment. It includes some standard
Adafruit libraries (for DHT22 and BMP085). The newer "unified" sensor
libraries don't work with the ESP8266 yet, but the older ones work well.
* This sensorboard posts the data to a prometheus gateway for easy graphing
and alerting. The code to get the sensor values is pretty straightforward
and could be pretty easily adapted to other monitoring systems such as
Thingspeak or MQTT.
* The [prometheus libraries](https://github.com/z2amiller/libraries/tree/master/prometheus)
libraries are available in my [libraries](https://github.com/z2amiller/libraries)
repository. The required i2c library is there as well.
Programming:
------------
* The sensorboard has a 6 pin programming header, and included in this
repository is a sensorboard\_programmer module intended to be connected to
this programming header.
* The sensorboard programmer pulls out the reset and programming pins. To
flash a new software version, connect the programmer and press and hold
the 'PROG' button while hitting reset. This will reboot the ESP8266 into
flash mode.
* The sensorboard is designed to use this
[CP2102 board](http://www.banggood.com/5Pcs-CJMCU-CP2102-USB-To-TTLSerial-Module-UART-STC-Downloader-p-980102.html)
for the USB interface, and
[these](http://www.banggood.com/100pcs-Mini-Micro-Momentary-Tactile-Tact-Switch-Push-Button-DIP-P4-p-917570.html)
cheap tactile switches. That USB module solders right into the programmer
board but you could also wire up any USB breakout that supports 3.3 volts.
* Unfortunately the configuration is part of the code. You'll have to change
some of the constants in the code to use your wifi SSID/password,
prometheus pushgateway, etc.
Versions:
---------
Check out the following branches for these released versions:
* [sensorboard-4.0](https://github.com/z2amiller/sensorboard/tree/sensorboard-4.0)
[oshpark](https://oshpark.com/shared_projects/D1xuf056) UNTESTED:
Replace the DHT22 and BMP180 with a BME280. No longer hand-solderable,
needs a hot air station for the FGA-8 footprint BME280.
* [sensorboard-3.1](https://github.com/z2amiller/sensorboard/tree/sensorboard-3.1)
[oshpark](https://oshpark.com/shared_projects/4DUu3wyO) TESTED:
Sensorboard with a switching power supply. Higher parts cost but ~1.6x
battery life.
* [sensorboard-2.2](https://github.com/z2amiller/sensorboard/tree/sensorboard-2.2)
[oshpark](https://oshpark.com/shared_projects/rGc3bDv8) TESTED:
Sensorboard using a LDO for simple build and lower parts cost.
More Links:
-----------
* Order the [sensorboard programmer](https://oshpark.com/shared_projects/fjlzVR1e)
on OSHPark!
* Check out the [ESP8266 commmunity](http://reddit.com/r/ESP8266) on Reddit!
TODO(z2amiller):
---------------
* Add a picture of the sensorboard in action.
* Add some screenshots of Prometheus graphs.
* Create a prometheus setup tutuorial.
* Create a prometheus dashboard for the ESP8266 sensor data.
* Finish up the code for sensorboard-4.0 with the BME280 sensor.
* Create a sensorboard programmer with a regulator to power the ESP8266
through the 3v3 pin while programming.
没有合适的资源?快使用搜索试试~ 我知道了~
使用 ESP8266 的 传感器板_设计_文档_相关文件 KiCad 布局
共25个文件
lib:5个
md:3个
kicad_pcb:2个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 175 浏览量
2022-07-13
18:02:41
上传
评论
收藏 71KB ZIP 举报
温馨提示
使用 ESP8266 的传感器板 这是一个使用 ESP8266 的简单传感器板。 它设计为使用 6 伏或 4xAA 电池运行。该软件使用 ESP8266 的深度睡眠功能来节省电量,并且仅在 ESP8266 上电时才为传感器供电。它将传感器数据发布到 prometheus pushgateway。该传感器的副本已使用 4 节 AA 电池运行了两个多月。使用更长的睡眠间隔可以实现更长的寿命;ESP8266 在启动和通过 wifi 通信时会消耗相当多的电量。 硬件: ESP8266是一款功能齐全的 wifi 模块,带有嵌入式微控制器。该项目可以使用 ESP-07 模块或任何 ESP-12 变体 - 底部的额外引脚未使用。如果使用带有常亮状态 LED 的 ESP-07,您可能需要拆焊/撬开状态 LED 以延长电池寿命。 DHT22是一款温湿度传感器。它实际上是这块板上最昂贵的部分,甚至比 ESP8266 还要贵。 BMP180 是气压和高度传感器。 更多详情、使用方法,请下载后细读README.md文件
资源推荐
资源详情
资源评论
收起资源包目录
sensorboard-master.zip (25个子文件)
sensorboard-master
hardware
sensorboard
nr8040.pretty
TY NR8040.kicad_mod 739B
sensorboard.sch 17KB
sensorboard.kicad_pcb 73KB
sensorboard-rescue.lib 453B
lmr16006y.lib 472B
sensorboard.bak 17KB
tc1262.dcm 48B
sensorboard.xml 17KB
lmr16006y.dcm 48B
sensorboard.kicad_pcb-bak 73KB
sensorboard.pro 1KB
sensorboard.net 14KB
tc1262.lib 396B
sensorboard-cache.lib 6KB
sensorboard_programmer
SensorboardProgrammer.pro 1KB
SensorboardProgrammer.kicad_pcb-bak 45KB
SensorboardProgrammer.net 5KB
SensorboardProgrammer-cache.lib 3KB
SensorboardProgrammer.bak 7KB
SensorboardProgrammer.kicad_pcb 45KB
SensorboardProgrammer.sch 7KB
PowerSaving.md 7KB
code
PrometheusSensor
PrometheusSensor.ino 4KB
LICENSE.md 1KB
README.md 6KB
共 25 条
- 1
资源评论
快撑死的鱼
- 粉丝: 1w+
- 资源: 9150
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- Linux环境下Nginx服务器的源码安装与自动启动配置指南
- 【Unity 插件】DLSS - Upscaling for Unity 将低分辨率图像提升为高分辨率图像,接近或超越原生分辨率
- 基于角色访问控制的Linux安全模块+项目源码+文档说明
- 基于uniapp构建的顺风车、约车、拼车、通勤、滴滴微信小程序(源码+文档说明)
- 【Unity 插件】Invector FSM AI Template 易用的 AI 模板, 轻松实现敌人的巡逻、追击、攻击等动作
- 文本数据可视化tocsv.csv
- 基于HSV色彩空间和樽海鞘群优化算法的低照度图像增强
- Fine-BI考试全量题库(含答案)
- yolo的xtx数据集增强
- 技术资料分享RDA5820很好的技术资料.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功