Introduction: Personal Assistant - Intellect Machine
In today’s hectic world, one does not have sufficient time to stay connected with outside as well as social world. One may not have enough time to get daily updates regarding the current affairs as well as social world like facebook or gmail .One often forgets after keeping his things. Given these problems in hand, we have come up with the solution by evolving a talking ROBOT which could prove to be a miracle in our hectic and busy life.
When asked, it can update us regularly about the outside world (eg: current affairs, messages, social life and many more).
Internet of Things (IoT) is ongoing development of the Internet by which everyday 'things' objects have communication capabilities which allow them to send and receive data. It is expected to connect systems, devices, sensors which can communicate without the need of machine-to-machine communication.
Step 1: Video Demonstration
Step 2: Hardware Requirement
- Raspberry Pi
- Internet Connection (Ethernet or WiFi)
- Four Wheels
- Four Motors
- 12v Battery
- L293D (Motor Driver)
- Bot Chasis (Body)
- Jumper wires
- breadboard Soldering Iron
- MDF Wood
Step 3: Circuit Diagram for Motor Movement
Connect the Raspberry pi as given in the Schematic Diagram.
Schematic diagram includes the connection of the Raspberry pins with L293D and Battery (12v).
Step 4: Flask Installation
We are going to use a Python web framework called Flask to turn the Raspberry Pi into a dynamic web server. And from this server we will be able to control our bot and it can move any where we want.
Install Flask Web Framework and follow the commands given below:
Installation of Pip
$ sudo apt-get install python-pip
Installation of Flask
$ sudo pip install flask
Make a python Bot_control.py file and copy & paste code directly on the terminal of Raspbian Jessie. Code is given on my github repository : Code
Step 5: Movement of Machine
Make a python Bot_control.py file and copy & paste code directly.
$ nano Bot_control.py
Then, make a Directory of name templates.
$ mkdir templates
$ nano main.html
$ cd ..
$ python Bot_control.py
Open your browser with a IP address of your Raspberry pi (192.168.0.5 in my case).
Go to the Github link I provided, Downlaod the html code directly for the Jinja flask.
Step 6: Setup Voice Engine : E-Speak
Espeak is a more modern speech synthesis package than Festival. It sounds clearer but does wail a little. If you are making an alien or a RPi witch then it’s the one for you! Seriously it is a good allrounder with great customisation options.
Install Espeak with:
$ sudo apt-get install espeak
Test Espeak with: English female voice, emphasis on capitals (-k), speaking slowly (-s) using direct text:-
$ espeak -ven+f3 -k5 -s150 "E-Speak is Working Properly"