Thursday, 23 June 2016

DATA LOGGING OF TWO DIFFERENT SENSORS


    DATA LOGGING OF TWO DIFFERENT SENSORS

I have done data logging system using MSP430G2 and Python. In this project I tried to plot the real time graph of two sensors namely LDR (light dependent resistor) and IR (infrared sensor).
Here in this project I am using matplotlib, numpy, drawnow in the place of drawnow we can use deque for plotting live graph.

In order to do this project I need to have a good knowledge of the above mentioned libraries. So ill do some experiments with these libraries
First of all I need to know how to plot the graphs and what all the command that are required to plot the graph with our specifications.

Now ill plot a simple graph using some random values that strikes my mind..!




Now I’ll try all the different command that are related to graphs, bar charts, pie charts etc.






Now I’ll try to import the text file and read the 2 different values which are separated ‘delimiter’ from the text file and plot the graph.
Here ‘delimiter’ is single space



 Here ‘delimiter’ is coma “,”




K good! Now I got enough practice to draw the graph, next my task is to import the continuous serial values and plot the graph. Before that we need to fallow few step to attain that.
First of all I need to do check weather can I do any changes to my serial values.     




 It’s possible to do some changes to my serial values. My next task is to add the serial to one another of single sensor




K good now I can plot the graph with these continuous added values by using ‘drawnow’.first ill try to plot for single sensor.


data analysis of 2 sensors (LDR and IR)

 

here i change the plot label to there specified sensors names so that it will more understandable. 


Tuesday, 21 June 2016

SERVING ROBOT

         
                                                    SERVING ROBOT


Its a latest design  ROBOT which can be controlling using an APP for android mobile.  I had developed the remote buttons in the android app by which we can control the robot motion with them. And in which I use Bluetooth communication to interface controller and android. Controller can be interfaced to the Bluetooth module though UART protocol. According to commands received from android the robot motion can be controlled..






                                     

HAPTIC ARM



                                                               HAPTIC ARM


 In order to represent the robotic technology in the field of human-machine interaction and wireless communication for allows interactivity in real-time with virtual objects it is very necessary to develop some or the other technology that makes the maximum use of robot to help people do their work in an efficient way in their day to day life. The main objective of the project is to design and develop the Robot that is used to move using wireless system by recognizing hand motion that is controlled by haptics technology for virtual environment & human-machine systems capable of haptic interaction.Without risking human life or limb, this research has applications in many areas, Including robot- assisted surgery, simulation and training, rehabilitation, exploration of hazardous or remote environments, enabling technologies, manufacturing, design, mobile computing, and education.









NATURAL HOME AIR COLLER


                                              NATURAL HOME MADE AIR COOLER

Its a simple project.with simple science involved in it.the reason behind to do this is SUMMER!.. by which i am unable to concentrate on work .then i thought why cant i do a natural cooler which serves my purpose and harmless for nature then i did it.

it is a system which consist of a submersible pump along with two CPU fans and a cooling mesh(water observant).
Working:
ice cubes are stored inside the cooler at the bottom. one fan acts as a exhausted fan another acts as a normal fan.and it cools the surrounding when the cube melts and turns into water then submersible pump come into picture it will pumps the water to water observant nothing but a cooling mesh by which you will have more effect i.



In this picture u can have inside view of the cooler:



I have made a stand to fix the submersible pump:



After fixing the submersible pump we need to run the wires carefully for the protection.we need to be careful while doing this be caution and keep this in mind see the perfect place where there is absents of water inside the cooler and run a water resist tape on wires after fixing it for further more protection.



protect your wall in order to avoid the leakage of cooling .




finally the output :
it will decrease the temperature of the surroundings for few degrees.It can works on both AC and DC ...!don't expect this to work as a commercial cooler but it can worthy competitor,because it is good power saver,cost less to build,environmental friendly ..etc..,


Tuesday, 14 June 2016

Microcontroller interfacing with pygame



             Micro controller interfacing with pygame


In this project I have varied the size of the object according to the sensor values using pygame. It is a testing process for my project called “Game operating with sensors”. so let us see the output and working of this project.
I have divided this project into steps

Step1: First I need to download python along with pygame and pyserial library after that I need to
 import those libraries into python. After that I need to set the display height and width and color and caption


Step2: In this step I need to display the object.


Step3: Now I need to vary the size of the objects according to the sensor value







We can change the position too..


Monday, 13 June 2016

Game operating with sensors


                           
                               Game operating with sensors


I have developed a game which can operate with sensors. For this project I choose MSP30G2 and python
In this project I have developed a game in python and I interface it with MSP430G2 to take the sensor values and according that sensor values I just operated the game which I have developed using python.
For this project we need to install pygame. Here I need to tell you people to the develop the game  we need to have a good knowledge of logic, mathematics, programmng skills,etc. it’s a fun topic to develop game that to with our own logic isn’t it great then let us begin!
I will try to do my project in step wise

Step1: First I need to download python along with pygame and pyserial library after that I need to import those libraries into python. After that I need to set the display height and width and color and caption

Step2: Here in this step I draw the character which plays a major role in my game. As I am developing the snake game I will draw the rectangle for my snake and circle as a food for my snake.


Step3: This is the major step for entire project  i.e.,in this step my task is to move the snake according the sensor value which I am sending throw MSP430G2.


Step4: In this step I will add some rule like boundaries when my snake touches the edges of the screen the screen has to display warning


Step5: We finish with snake part now I will concentrate on food after eating the food snake has to be doubled along with we need to produce more food at random position, For this I imported random library.

Step6: Finally I need to decorate my game by adding “start screen” , “end screen” ,“pause screen” and I need to add the images of  snakehead ,apple and game icon



                             

                                                                                                                                                                                   

I have developed other games in the same way with slight difference in the logic.









I need to work more on this project because I am facing the problem while moving snake/car around using sensors may be i need to prefer more accurate sensors and i need to change some part of logic too even though it a successes for certain extent thought of sharing it with you people it may help some or the other for their project..!
But I am happy to tell you it’s working by using keyboard I will share you the executable files for windows installer with you  so that you can download it and enjoy the game..!

 How to install these games:
Step 1: download the folder and click on setup file install it

Step 2: After installing it go to the> program files(x86) as shown in the above figure>there you will find the folder called deepu game folder for snake  and racer folder for racer game as in t




 Step 3(for snake game): Now open the folder there you will find the snake game file as shown in the below picture. double click on it your game will run
 Step 3(for racer): Now open the folder ther you will find the snake game file as shown in the below picture. double click on it your game will run



finally you will get the game.play according to the instruction and enjoy..



 You’re always welcome to give me your valuable suggestion , if you need more information regarding this project please leave a comment so that I can answer you.