Train TJBot to Pulse the LED in Node-RED

JeanCarl Bisson
2 min readAug 4, 2017

--

Today we’ll train TJBot to pulse it’s LED the color red. This uses the shine node, which we covered yesterday. Today, we’ll use the Pulse mode which turns the LED to the color red and then off over a specified duration.

Before we begin, let’s talk a little bit more about the hardware that makes this happen. The LED light on top of TJBot can pulse a variety of colors.

Before you can use the shine node, you need to enable the LED hardware in the TJBot configuration.

Select a color from the color dropdown menu. Not all the colors can be rendered by the LED, so staying with the primary colors can be a good best practice. Black and off are equivalent.

Choose a duration, between a half-a-second and two seconds in length, to control how long the pulse takes.

Here’s a video of how to control the TJBot LED with the shine node using the pulse mode.

That’s it for today’s skill. What can you train TJBot to do now that it can pulse the LED?

Come back tomorrow and we’ll talk about using the microphone to listen to speech.

This post is part of a series of skills you can train TJBot to perform.

--

--

JeanCarl Bisson

I’m an IBM Technical Innovation Lead. I love to build prototypes and then share how I designed and built what I made so others can try it too.