Showing posts with label Projects. Show all posts
Showing posts with label Projects. Show all posts

Sunday, June 29, 2014

Device Controlling Using Android

The purpose of this project is to demonstrate the basic principles of external device controlling using your android phone.

The basic principle in this project is that by interfacing an Android phone with a Arduino Board we can turn "off" or "on" some relays.
Components Required

  •           Serial Port Bluetooth Module( TTL )
  •           Arduino Microcontroller Board (ET-BASEAVR EASY328 ) Arduino Compatible Board
  •           8 channel Output Relay Board
 Connection Diagrams








Source Code For Arduino Board



For Arduino Microcontroller Board Source code

#define LED_PIN1  4
#define LED_PIN2  5
#define LED_PIN3  6
#define LED_PIN4  7

#define LED_PIN5  8
#define LED_PIN6  9
#define LED_PIN7  10
#define LED_PIN8  11

int firstSensor = 0;         // first analog sensor
int secondSensor = 0;    // second analog sensor
int thirdSensor = 0;        // digital sensor
int inByte = 0;               // incoming serial byte
boolean status_unlock;
boolean status_bluetooth;

long interval = 1000;           // interval at which to blink (milliseconds)
long previousMillis = 0;        // will store last time LED was update
int minite,sec;


void setup()
{
  // start serial port at 9600 bps:
  Serial.begin(9600);
  //pinMode(2, INPUT);   // digital sensor is on digital pin 2
  //establishContact();    // send a byte to establish contact until receiver responds
 
  pinMode(LED_PIN1, OUTPUT);
  pinMode(LED_PIN2, OUTPUT);
  pinMode(LED_PIN3, OUTPUT);
  pinMode(LED_PIN4, OUTPUT);

  pinMode(LED_PIN5, OUTPUT);
  pinMode(LED_PIN6, OUTPUT);
  pinMode(LED_PIN7, OUTPUT);
  pinMode(LED_PIN8, OUTPUT);
 
  digitalWrite(LED_PIN1, LOW);  // switch off LED
  digitalWrite(LED_PIN2, LOW);  // switch off LED
  digitalWrite(LED_PIN3, LOW);  // switch off LED
  digitalWrite(LED_PIN4, LOW);  // switch off LED
   
  digitalWrite(LED_PIN5, LOW);  // switch off LED
  digitalWrite(LED_PIN6, LOW);  // switch off LED
  digitalWrite(LED_PIN7, LOW);  // switch off LED
  digitalWrite(LED_PIN8, LOW);  // switch off LED
 
  status_bluetooth = true;
  status_unlock = false;
  sec = 0;
}

void loop()
{
  if (Serial.available() > 0) {  
      
    inByte = Serial.read();                      // get incoming byte: 

    if(inByte == 'A'){   
      digitalWrite(LED_PIN1, HIGH);        // switch on LED
      Serial.print('A', BYTE);                    // send a char
      delay(800);
      digitalWrite(LED_PIN1, LOW);        // switch off LED
      status_unlock = false;
      inByte = 0;    
    }
   
    if(inByte == 'a'){   
      digitalWrite(LED_PIN2, HIGH);        // switch on LED
      Serial.print('a', BYTE);                    // send a char
      delay(800);
      digitalWrite(LED_PIN2, LOW);        // switch off LED
     
      status_unlock = true;
      sec = 0;
      inByte = 0;    
    }
   
    if(inByte == 'B'){   
      digitalWrite(LED_PIN3, HIGH);        // switch on LED
      Serial.print('B', BYTE);                    // send a char
      inByte = 0;    
    }
   
    if(inByte == 'b'){   
      digitalWrite(LED_PIN3, LOW);        // switch off LED
      Serial.print('b', BYTE);                   // send a char
      inByte = 0;    
    }
   
    if(inByte == 'C'){   
      digitalWrite(LED_PIN4, HIGH);        // switch on LED
      Serial.print('C', BYTE);                    // send a char
      inByte = 0;    
    }
   
    if(inByte == 'c'){   
      digitalWrite(LED_PIN4, LOW);        // switch off LED
      Serial.print('c', BYTE);                    // send a char
      inByte = 0;    
    }
   
    if(inByte == 'D'){   
      digitalWrite(LED_PIN5, HIGH);        // switch on LED
      Serial.print('D', BYTE);                    // send a char
      inByte = 0;    
    }
   
    if(inByte == 'd'){   
      digitalWrite(LED_PIN5, LOW);        // switch off LED
      Serial.print('d', BYTE);                   // send a char
      inByte = 0;    
    }
   
    if(inByte == 'E'){   
      digitalWrite(LED_PIN6, HIGH);        // switch on LED
      Serial.print('E', BYTE);                    // send a char
      inByte = 0;    
    }
   
    if(inByte == 'e'){   
      digitalWrite(LED_PIN6, LOW);        // switch off LED
      Serial.print('e', BYTE);                   // send a char
      inByte = 0;    
    }
   
    if(inByte == 'F'){   
      digitalWrite(LED_PIN7, HIGH);        // switch on LED
      Serial.print('F', BYTE);                    // send a char
      inByte = 0;    
    }
   
    if(inByte == 'f'){   
      digitalWrite(LED_PIN7, LOW);        // switch off LED
      Serial.print('f', BYTE);                    // send a char
      inByte = 0;    
    }
   
    if(inByte == 'G'){   
      digitalWrite(LED_PIN8, HIGH);        // switch on LED
      Serial.print('G', BYTE);                    // send a char
      inByte = 0;    
    }
   
    if(inByte == 'g'){   
      digitalWrite(LED_PIN8, LOW);        // switch off LED
      Serial.print('g', BYTE);                   // send a char
      inByte = 0;    
    }   
   
    if(inByte == 'S'){   
     
      Serial.print('S', BYTE);                  // send a char
      status_bluetooth = true;
      sec = 0;
         
    }   
  } // if(Serial
 
  /*
  unsigned long currentMillis = millis();
     
              if(currentMillis - previousMillis > interval) {           
                previousMillis = currentMillis;         // save the last time you blinked the LED
               
                sec++;
               
                if(status_unlock==true){
               
                  if(sec== 11){
               
                      digitalWrite(LED_PIN1, HIGH);        // switch on LED
               
                      delay(800);
                      digitalWrite(LED_PIN1, LOW);        // switch off LED
               
                      status_unlock = false;                 
                      sec = 0;
                  }
                }
                else sec = 0;               
               
              }
 
 */
   
} //Loop

void establishContact() {
  while (Serial.available() <= 0) {
    Serial.print('.', BYTE);                   // send a capital A
    delay(500);
  }
}
ANDROID BLUETOOTH CONTROLLED DEVICE
 Android Bluetooth control application helps to control up to 8 external electrical or electronic devices. Use Android Bluetooth mobile device to  remote control your device with Bluetooth Receiver hardware Device.
Main features of the program
  • It can control  up to  8 devices.
    These devices can be turned off /on by setting Timer to ON / OFF the device and show the time.(the timer can be set to 1 minute, 15 minutes, 30 minutes, 1 hour, 2 hours, 4 hours).
    Use with Receiving device (Bluetooth Receiver Hardware Device see below).
  • Design for the Android version 4 and a screen resolution of 480 x 800 (WVGA).
  • Freeware with AD (free software)

Sunday, June 16, 2013

STM32F4 Discovery Tutorial 1 Using NETMF - Setting Up the Environment



STM32F4 Discovery








I received my STM32F4 Discovery board few days ago. During these days I am searching for a good compiler for the STM32 which is free or provide a better code sized free version. I am already working in .Net environment using C#, and I it is pretty good. In Google search I saw STM32F4 programming using  .Net, the below link.
We are using a .net port for STM32F4, it is .Net micro framework. 
I am using Visual Studio Ultimate 2010 (Compatibility of others is not known).
I hope you have an STM32F4 Discovery Board.
Necessary Tools
1.      STM32 ST-LINK Utility            Get It ->
2.      USB Micro and USB Mini cable.
3.      .NET MicroFramework SDK  Get It ->  
4.      Download these files (Evaluation purpose only driver)
                                                              i.      If you are not a member, join
Install all the softwares.
 
Steps to follow: Click here

Smart Home : The Project

ABSTRACT
Smart home technology has proved to contribute to increased independence and safety. Smart Home Technology is a collective term for information and communication technology in homes, where the components are communicating through a local network. The technology may be used for monitoring, alarming and executing actions, according to the programmed criteria. These project includes a high level security system informs the authorized person and to the police station by a dedicated software using internet. The heart of the project is a Web Server running on an ARM Cortex M4 microcontroller. There are various sensors, devices connected to this device for security system, control and monitoring. Dedicated softwares are there for user (.Net and Android) and police station (.Net). The user software can control the devices in home, view various sensor readings, status of security system, change configuration etc. The application used in the police station use maps of local area to provide the intruder alert. The software used in police station will be communicating with this home server and if an intruder is detected, it will be shown in the software as a location in map and a notification message which makes their duty easily. Same time the house owner will be informed by the user software. The software communicates to the Smart Home Device using UDP protocol. The user software is compatible for future developments like camera interfaces. 





courtesy : http://microcontrollerprojects00.blogspot.in
read full

Saturday, September 15, 2012

Presentation Topics on POWER GENERATION FROM ROAD SPEED BREAKER AND FROM SHOES

Energy is subject to the law of conservation of energy. According to this law, energy can neither be created (produced) nor destroyed by itself. It can only be transformed.
Most kinds of energy (with gravitational energy being a notable exception)[10] are subject to strict local conservation laws as well. In this case, energy can only be exchanged between adjacent regions of space, and all observers agree as to the volumetric density of energy in any given space. There is also a global law of conservation of energy, stating that the total energy of the universe cannot change; this is a corollary of the local law, but not vice versa.[6][11] Conservation of energy is the mathematical consequence of translational symmetry of time (that is, the indistinguishability of time intervals taken at different time)[12] - see Noether's theorem.
According to Conservation of energy the total inflow of energy into a system must equal the total outflow of energy from the system, plus the change in the energy contained within the system.
This law is a fundamental principle of physics. It follows from the translational symmetry of time, a property of most phenomena below the cosmic scale that makes them independent of their locations on the time coordinate. Put differently, yesterday, today, and tomorrow are physically indistinguishable.
This is because energy is the quantity which is canonical conjugate to time. This mathematical entanglement of energy and time also results in the uncertainty principle - it is impossible to define the exact amount of energy during any definite time interval. The uncertainty principle should not be confused with energy conservation - rather it provides mathematical limits to which energy can in principle be defined and measured.
Researches show that the world has already had its enough shares of its energy resources. Fossil fuels pollute the environment. Nuclear energy requires careful handling of both raw as well as waste material. The focus now is shifting more and more towards the renewable sources of energy, which are essentially, nonpolluting.
Mechanical Seminar Topics
presentation Topics on recent trends in power generation
Energy conservation is the cheapest new source of energy. It is an attractive technology for optimal use of available sources. This project attempts to show how energy can be tapped and used at a commonly used system, the road-speed breakers. The number of vehicles passing over the speed breaker in roads is increasing day by day. There is possibility of tapping the energy and generating power by making the speed breaker as a power generation unit.
  •  The generated power can be used for the lamps near the speed breakers.
Hence, a project work has been done in our institution, implementing this idea practically under the title “Design and Development of Power Generation Unit in Speed Breakers”. This project explains clearly, the working principle of the designed system, its practical implementation, and its advantages.
Mechanical mini projects
Power generation with shoe
Design of each component has been carried out using standard procedures, and the components have been fabricated and assembled. A similar model of the system has been modeled using Pro-E. Practical testing of the system has been done with different loads at different speeds. Taking the various criteria that determine the power generation, graphs have been plotted. The second project will show you how to create a shoe that generates electricity. It does this by using your energy when you walk and converts it into electricity. Its just a simple craft that every one should know it.


Saturday, August 18, 2012

Railway Track Snap Notification



A Prototypic Implementation of  Wireless Based Railway Track Snap Notification with Alarm Systems 
SYNOPSIS:
The Safety Risk Model (SRM) is RF Based representation of risk on Rail track controlled infrastructure (RCI). It provides a structured representation of the causes and consequences of potential accidents arising from railway operations and maintenance the over bridge for river.
PROBLEM STATEMENT:
In railway bridges, any time the bridge its striking due to weather condition, floods, earthquake, cyclone, etc. Now days system have some limitations, if the bridge or track damaged, that information goes to railway authority people, they notifies and informs to the corresponding trains it will takes more time informing those information. So to avoid delays, our proposed system will immediately notifies and informs the current train comes on the track through wireless medium.

Thursday, August 16, 2012

Smart Car




SYNOPSIS:

In modern world, many new techniques such as biometric recognition technique, image processing technique, communication technique and so on, have been integrated into car security systems. At the same time, the amount of accident of cars still remains high, specially, lost. Traditional car security systems rely on many sensors and cost a lot. When one car is really lost, no more feedback could be valid to help people to find it back.

PROBLEM STATEMENT:
       No information to the Owner if Car get Lost
       Traditional car security systems rely on many sensors and cost a lot
        Physical Key.
       Alarm System

PROPOSED SYSTEM:

In proposed system we introduced a low-cost extendable framework for embedded smart car security system is proposed, which consists of a face detection subsystem(FDS), a GPS (Global Positioning System) module, a GSM (Global System for Mobile Communications) module and a control platform. The face detection technique to be applied in car security system because this kind of technique is effective and fast, and one alarm signal could be given to make an alarm or “call” the police and the host soundlessly with the help of other modules in the system prototype. Experimental results illuminate the validity of this car security system, and it is also much cheaper and ‘smarter’ than traditional ones.
FDS (face detection subsystem) is used to detect the face of the driver and compare it with the predefined face, for example, in the night when the car’s owner is sleeping and someone theft the car then FDS obtains images by one tiny web camera which can be hidden easily in somewhere in one car. FDS compares the obtained image with the predefined images if the image doesn’t match then the information is send to the owner through MMS. So now owner can obtain the image of the theft in his mobile as well as he can trace the location through GPS.  The location of the car as well as its speed can be displayed to the owner through SMS. So by using this system owner can identify the theft image as well as the location of the car.
Block Diagram:

Vehicle Section:

 
                                                                    






 

HARDWARE REQUIREMENTS:
      Microcontroller
      Power supply
      Keypad section
      GSM module
      Web Camera
      Ignition unit | Driver unit

SOFTWARE REQUIREMENTS:
      Keil C cross compiler IDE
      Flash magic programmer tool
      Orcad hardware design tool
      Visual basic 6.0
      Matlab7.5
      Languages:
     Embedded C
     Visual Basic

APPLICATIONS:
      Security applications
      Image processing applications
      Banking applications

Wednesday, August 15, 2012

HEAD INTERFACE SYSTEM






Abstract
The head interface system (HIS) consists of a tablet model device in which the operations on it can be performed by interfacing the movements of our head. The main part of the system is a tablet computer like device of which the mouse pointer can be controlled by the movements of our head. So physically handicapped people can use this device for several purposes. The device has several features in it. Some the features are that it can share video files with a television set through wireless media, It can share sound files with a music system or a speaker , Functions as a television remote. It can control all household electrical devices such as light, fan, air conditioner, water pump, It can access security cameras, it can control a mini robot or a wheel chair with motors . Also it can interface with pc. These features are achieved by the Bluetooth modules in the device and also there should be Bluetooth modules attached with those devices that we want to control with the HIS system.









Block Diagram



Processor: Arm processor development board

Challenges in this project




·         To invent a system to sense the movements of head
·         To build a tablet like device with a processor and display
·         Programming the device
·         To interface various devices