# To simulate a smart cradle

**URL:** <https://discourse.nodered.org/t/to-simulate-a-smart-cradle/18785>\
**Category:** General\
**Created:** [4 December 2019 11:14 UTC](https://discourse.nodered.org/t/to-simulate-a-smart-cradle/18785 "2019-12-04T11:14:17Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [4 December 2019 11:29 UTC](https://discourse.nodered.org/t/to-simulate-a-smart-cradle/18785/3 "2019-12-04T11:29:21Z")

</div>

You might want to have a quick look at this tutorial I wrote for my IoT students.

> [@Controlling NeoPixels](https://discourse.nodered.org/t/controlling-neopixels/4560):
>
> [Controlling NeoPixels](http://resources-area.co.uk/node-red-flows/controlling_neopixels.pdf) I've just finished writing an instruction sheet, for my IoT students, on how to control NeoPixel strips. Note: This exercise uses a WeMos D1 Mini, Node-RED and MQTT (mosquitto) and of course a NeoPixel strip. I hope you enjoy reading this as much as I enjoyed writing it. Regards from David. PS: The document, in the above link, has been updated to implement the comments from various people.

It controls a strip of NeoPixels using a Wemos D1 Mini (ESP8266 microcontroller flashed with ESP Easy) and Node-RED running on a Raspberry Pi.

I'm sure ESP Easy used-to-have some device drivers for the NeoPixel candle.  
Just looked at the firmware and can't find them.  
Suggest you ask in the ESP forum.. [ESP Easy Forum - Let's Control It](https://www.letscontrolit.com/forum/viewforum.php?f=1)

[https://www.letscontrolit.com/forum/viewtopic.php?f=6&t=7270&p=41146&hilit=candle#p41146](https://www.letscontrolit.com/forum/viewtopic.php?f=6&t=7270&p=41146&hilit=candle#p41146)

PS:  
As it's Christmas, a couple of my students are working on using a ultrasonic distance sensor (HC-SR05) to change the colour of some RGB lights on a Christmas tree. The idea is as you walk nearer to the tree the colour changes from green, to blue to RED. Another group are going to control the brightness as you walk nearer to another tree.

Hope this helps.

---

_[View the full topic](https://discourse.nodered.org/t/to-simulate-a-smart-cradle/18785)._
