License

MIT

Recommend Projects

THUMBL-P

3 months ago 71
  • Description
  • Documents
  • BOM
  • Attachments
  • Members
  • Comments

Description

Source code and more info about this project on GitHub

THUMBL-P

Temperature HUmidity Motion Buzzer Light - Pressure

THUMBL-P is a device with the following sensors and actuators:

  • SwitchNode aka Led
  • BME280Node aka Temperature, Humidity and Pressure
  • BinarySensorNode aka Motion or Pir
  • ButtonNode aka Button for user input
  • GL5528Node extend AdcNode aka photoresistor for luminosity
  • Buzzer, implemented in the Homie "classic way" HomieNode

All the sensor are published on MQTT topic and will be updated following the given RetentionVar policies (eg. 0.8 lux absolute variation). Buzzer can playback rtttl format melodies. These can be preset or sent in a json payload through /play topic, eg:

  • Raw text for preset melodies tetris
  • Json for preset or custom melodies, enriched with number of repetition and ms gap:
{
  "preset": "siren",
  "loop-count": 3,
  "loop-gap": 1000
}
{
  "rtttl": "The Simpsons:d=4,o=5,b=160:c.6,e6,f#6,8a6,g.6,e6,c6,8a,8f#,8f#,8f#,2g,8p,8p,8f#,8f#,8f#,8g,a#.,8c6,8c6,8c6,c6",
  "loop-count": 2,
  "loop-gap": 2000
}

It can work also without a connection: switch on led on motion detected (pir) during night (photoresistor).

The led light timeout and lux treshold can be set by HomieSetting: lightOnMotionTimeout, lightOnMotionMaxLux

Getting Started

Compile and upload with PlatformIO:

pio run --target upload

Notes

It should be taken as example to explain the YAHNC (Yet Another Homie Node Collection) libs. So mainly to compare a classic HomieNode implementation (eg Buzzer) with the other Nodes (eg BME280Node)

Credits

https://oshwlab.com/Miraculix200/esp12-minimal-with-headers_copy_copy

Documents

Light-sim

Photoresistor-buzzer-sim

Main

BOM

ID Name Designator Quantity
1 HDR-M-2.54_1x2 BUTTON 1
2 100n C1 1
3 10u C4 1
4 22u C5 1
5 1N4148 D1 1
6 1N4148 D3 1
7 3x6x2.5mm FLASH,RESET 2
8 HDR-F-2.54_1x5 H1 1
9 Status LED2 1
10 Power LED3 1
11 Light LED4 1
12 2N2222 Q1,Q2 2
13 SS8050 Q3,Q5 2
14 10k R1,R2,R3,R4 4
15 1K R1,R5 2
16 75 R2 1
17 435 R3 1
18 GL5528 R7 1
19 1k R8,R9,R11,R13 4
20 75 R10 1
21 435 R12 1
22 16 RBUZZER 1
23 R=1K+(1K*1K*time) RPHOTORESISTOR 1
24 SPST_Open S1 1
25 BUZZER SG1 1
26 resmeas U1 1
27 ESP-12F(ESP8266MOD) U1 1
28 BME280 U2 1
29 AMS1117-3.3 U3 1
30 AM312 U4 1
31 3.3 V2,V6 2
32 5 V3,V5 2
33 Multimeter VBUZZER,VLED1 2

Attachments

None

Members

Success
The owner does not allow comments in this project now

Comments (0)

goToTop
你现在访问的是EasyEDA海外版,使用建立访问速度更快的国内版 https://lceda.cn(需要重新注册)
如果需要转移工程请在个人中心 - 工程 - 工程高级设置 - 下载工程,下载后在https://lceda.cn/editor 打开保存即可。
有问题联系QQ 3001956291 不再提醒
svg-battery svg-battery-wifi svg-books svg-more svg-paste svg-pencil svg-plant svg-ruler svg-share svg-user svg-logo-cn svg-double-arrow
We use cookies to offer you a better experience. Detailed information on the use of cookies on this website is provided in our Privacy Policy. By using this site, you consent to the use of our cookies.