Skip to main content

Featured

My Jarvis Ai pt 2

   What’s up readers, hobbyists and experimenters, it’s been a while since my last post. But I’m back and can get these articles and experimentations back rolling.   One of the first updates I’m excited to tell you about, was an update to how I use my “Jarvis” program. From the previous article , I told you I was able to use Jarvis casually, and that was true , however not that effective. Although hands free, any help I wanted from the program had to be given near the computer. The microphone was attached and therefore stationary.  In order to solve this problem I purchased a conference microphone/ speaker. This device would allow me to travel around the house, giving Jarvis a more omnipresent feel. By stationing the conference microphone in the living area I could enjoy a book or movie etc and still have access to basic information.  This feature has come in handy while I read, providing clear and detailed explanations about things I need to understand. For exa...

Raspberry Pi 4 Talking Robot Car






    In a step towards building a full fledged robot from scratch, I decided to put together a raspberry pi robotic car. I didn't have any formal training on circuits or electrical engineering, so a project like this would force me to gain some knowledge. Watch it in action

 I never like making things from scratch when I don't have to , so I started with the Freenove Raspberry Pi 4 Robotic Car Kit. The kit came with four motors, a circuit board for the motors, servo, ultrasonic sensor battery holder, and camera. 

My plan was to add my logic and Natural Language code to the car to have a rolling talking bot.

Additional Components

Gpio Extender

Mic

Speaker(any small speaker will work, aux or bluetooth)

In order to create this rolling, talking bot, I would need both a speaker and a mic which didn't come included with the kit. In order to add those, it turns out I would need a gpio extender hat to hook up the power etc from the freenove setup to the additional components. 

After my amazon items came, I mounted the speaker hat, installed its code and tested it out. I liked the idea of it just rolling around aimlessly utilizing the ultrasonic sensor, but I also thought identifying a person and following them might be a needed function as well. I would need OpenCV object detection.

Power

After installing OpenCV and utilizing the object detection, I had a problem powering the system. The freenove kit powered the computer , motors, ultrasonic sensor and line following modules.  The power requirements had now increased thanks to the microphone module I had added, so I would need a small battery pack ($5 at Walmart) as a backup power supply for the raspberry pi. The raspberry pi and its hats would be powered from the pack while the robot car motors and its components would be powered via rechargeable batteries. This power change increased the fps(frames per second).

Talking while rolling 

         Noise has become an enemy. The motors at a certain speed were too loud for the microphone. I also had not trained the speech recognition to hear me in spite of surrounding noise. In order to get a good test I placed the car outside and let it roam at a lower speed while testing commands. It worked a little better.

A Smarter smart car

Soon after completing my project I came across articles on mapping the environment using ultrasonic sensors and cameras. I also came across some cool innovations as far as algorithms and machine learning models go. I’ll have to test those and let you all know how it goes.


Conclusion

Single board computers are a great way to bring a project to life. With a small amount of funds, patience and a research addiction, you can make some pretty useful stuff. I’ll make sure I update this post with videos etc as I update the code.


Comments

Popular Posts