Your EasyEDA usage duration is brief. In order to avoid advertising information, this action is not supported at present. Please extend your EasyEDA usage duration and try again.
Editor Version×
Standard
1.Easy to use and quick to get started
2.The process supports design scales of 300 devices or 1000 pads
3.Supports simple circuit simulation
4.For students, teachers, creators
Profession
1.Brand new interactions and interfaces
2.Smooth support for design sizes of over 5,000 devices or 10,000 pads
3.More rigorous design constraints, more standardized processes
**Source code and more info about this project on [GitHub](https://github.com/elbowz/thumbl-p)**
## 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:
``` json
{
"preset": "siren",
"loop-count": 3,
"loop-gap": 1000
}
```
``` json
{
"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](https://platformio.org/):
`pio run --target upload`
### Notes
It should be taken as example to explain the [YAHNC](https://github.com/elbowz/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](https://oshwlab.com/Miraculix200/esp12-minimal-with-headers_copy_copy)
Forked project will be set private in personal workspace. Do you continue?
Clone
Project
The Pro editor is about to be opened to save as. Do you want to continue?
private message
Send message to muttley
Delete
Comment
Are you sure to delete the comment?
Report
THUMBL-P
ESP8266 sensor with full source code, based on Homie (YAHNC)
Announcer: muttley
Creation time: 2021-07-19 17:36:14
Published time:
2022-05-31 13:25:28
*
Report type:
Please select report type
*
Report reason:
Please fill in the reason for your report and the content is 2-1000
words
*
Upload image:
+
Upload image
*
Email address:
Please fill in your email address
Report
*
Report type:
Please select report type
*
Report reason:
Please fill in the reason for your report and the content is 2-1000
words
*
Upload image:
+
Upload image
*
Email address:
Please fill in your email address
Report
Submitted successfully! The review result can be viewed in the personal
center, review notification.
Kind tips
Your EasyEDA usage duration is brief. In order to avoid advertising information, this action is
not supported at present. Please extend your EasyEDA usage duration and try again.
Share
Project
Copy
Copy
Scan the QR code and open it on the mobile terminal