Congradulations! You are almost done! Now it's the time to have some serious fun!
Run this command from the terminal:
sudo node stt.js
You should be able to speak to TJBot and ask him to change the color of the LED.
Say "Turn the light blue" to change the light to blue. You can try other colors: yellow, green, orange, purple, magenta, red, blue, aqua, white). You can either say "Turn the light on" or "Turn the light off"!
Enjoy! Don't forget to share a picture/video of your setup #TJBot! :-)
You can either run one of the available recipes or create your own. My favorite recipe is to connect TJBot to twitter and have him understand emotions. Here are a set of simple things you can do with TJBot! https://www.instructables.com/howto/tjbot/
TJBot is open source and we'd love to see what you can make with it. If you have created your own recipe, I would love to include it as a featured recipe!
I cannot wait to see what you build with TJBot!
No worries, you can easily fix it.
You may test your LED setup to make sure the connections are correct and the library is properly installed. When you run the test module, it should turn your LED on.
cd tjbot/bootstrap/tests npm install sudo node test.led.js
If the LED does not light up, you can try moving the power from 3.3 to 5 volts, by moving the jumper wire one pin to the right (pin 2). If neither the 3.3v or 5v pins work, you will need a 1N4001 diode. The diode is inserted between the power pin of the LED (the shorter of the two middle pins) and the 5v pin on the Raspberry Pi. Make sure the cathode (striped end) is facing the LED. If you have problems with the setup, please refer to Adafruit's Neopixel on Raspberry Pi guide to troubleshoot.
The LED library uses the PWM module (GPIO 18) to drive the data line of the LEDs. This conflicts with the built-in audio hardware, which uses the same pin to drive the audio output. Depending on your configuration of Raspbian, the sound drivers may be more aggressive in taking away control of GPIO 18 from other processes. If your LED shows random colors instead of the expected color, use this trick to fix it.
sudo cp tjbot-blacklist-snd.conf /etc/modprobe.d/ sudo update-initramfs -u
Reboot and confirm no "snd" modules are running by executing the command "lsmod".
When you speak with TJBot, it records your voice command (audio) through the microphone and sends it to "Watson Speech to Text" to convert the audio to text. Sometimes, when the environment is noisy, TJBot has a hard time differentiating your voice from the background noise. If you have a better quality microphone, please feel free to use it. Otherwise, we recommend speaking clearly in a relatively quiet space.
Also if you have accent, TJBot may have a hard time understanding you. TJbot gets better everyday. So hopefully one day your TJBot friend will be able to understand %100 of what you say!