Personal Assistant - Intellect Machine
by DilpreetS in Circuits > Linux
655 Views, 5 Favorites, 0 Comments
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.
Video Demonstration
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
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).
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
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 ..
Run code
$ 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.
Downloads
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"
Software Setup for Voice
Till now I have link these features to my Machine. Very soon I will going to link more API's With machine.
1. About the Machine
2. Date and Time (More Information Link1 Link 2)
3. Twitter (Twitter Linkage)
4. Day Schedule
Rest We can Link : Gmail, Facebook Notifier, Weather, Google Search Engine etc.