I wanted to add voice control to RoboSapien. At first, I was thinking, just create an app on the phone, but that’s been done before! Then I saw the Amazon IOT Challenge. How about make an IOT Robosapien. The next generation – Internet of Toys! Connect RoboSapien to the Internet. That would be Awesome, don’t you think?
That’s what I did; I started looking into the Amazon IOT service, try their sample apps. Very interesting indeed. I like the way they presented the diagram. Here’s what I want to do…. Replace RGB controller with Amazon Echo, Replace the LightBulb with RoboSapien… Amazon Echo sends the command, RoboSapien follows. That’s it.
Amazon Echo … echo … echo ..
Last year, I started looking at Amazon Echo. I got one because I attended a hackathon and worked on an Amazon Echo. It was my first introduction to the AWS Lambda, and I was hooked. I like the idea where I can focus on my code and not the infrastructure.
WowWee RoboSapien
I’ve always liked the RoboSapien, I’m amazed on it’s engineering and it’s capabilities. Last year also, I started to research how to expand it’s capabilities. I have RoboSapien X which doesn’t have any bluetooth capabilities. It communicates through it’s IR Remote but they gave you this dongle to connect it to your phone so you can use the app. I found out that there’s a way to control the robot by playing WAV files. I saw it on WowWeeLabs github page. Here’s the link
So I downloaded the WAV files and started playing it on my phone connected with IR Dongle to audio jack. The RoboSapien is ALIVE!
That brings me to an idea. What if I can connect it to a Raspberry Pi? Raspberry Pi has Audio jack, then I can attach it to the back of the RoboSapien. That’s great news! No more heart bypass operation for the poor Robot. No soldering!
At first, I tried running the example on my laptop. I opened two shell window, one is acting as mobile app (value updater), the other acting as a device (update receiver)
it worked! Send update RGB colors from one window, the other receives the updates.
Now I tried it on the Raspberry Pi with a Wifi connection.
It also worked!
The idea is, instead of RGB colors, how about send COMMANDS like Walk, High Five, Dance, etc… etc…
Then once the Command is received from Amazon IOT thru the “delta” event, play the correct WAV files.
Playing WAV files on Raspberry Pi in NodeJS.
I am new to NodeJS, I was able to update node on my raspberry pi with this link.
I looked at some npm packages to play WAV files on raspberry pi, I am familiar with CylonJS. So I followed instructions on how to install CylonJS audio module.
I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt out if you wish.ACCEPTCheck Privacy Policy
Manage consent
Privacy Overview
This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.