Navigation


Mobile software

Mobile software

Python for S60 is used to write the mobile application. Its a open source software.

For more details about pys60 please check here.

Python is used because of its ease of programming, even a new comer can create mobile applications using python. All you need is an S60 mobile phone and the latest python interpreter that compiles the code and runs it and the shell script to test the application.

PyS60 provides access to many of the phone's uniquely smartphone functions, such as camera, contacts, calendar, audio recording and playing, TCP/IP and Bluetooth communications and simple telephony.

In this project the bluetooth socket module is used to communicate with the hardware. The hardware is connected to mobile through the SPP (Serial Port Profile) for data communication.

When the application is opened, it will check for the mobile bluetooth for on/off. If it is off then it will ask the user to switch on the bluetooth. Then it will search for the bluetooth devices nearby and then it will connect to the device through SPP profile.

     

After getting connected it will get a frame of data from the hardware which contains the data about the device status. The status are updated on the mobile device.The details about 7 sensors are updated to the mobile for every 2 seconds.

Automatic Temperature control

There are two temperature sensors connected to the microcontroller. One sensor is used to sense the Indoor temperature, and the other is used to sense the outdoor temperature in centigrade. The screen shot clearly explains the operation.

  

For each 2 seconds, the microcontroller picks both the temperatures (“Temp1 and Temp 2 in screen shot”) and passes it to the mobile phone via Bluetooth, without any enquiry from the user. So, it can be said as the automated message which changes for every two seconds.

At the same time the microcontroller will be continuously checking the indoor temperature. When the indoor temperature goes below a preset level, (set by the user) say here 25 centigrade, the microcontroller automatically switches ON the A.C machine. It is represented as "Low Temp:25" in the screen shot. If it goes above the preset level, represented as "High Temp:45" in the screen shot, it switches OFF the A.C machine.This option will surely help the disabled and aged one. The temperature values can also be changed by entering the new value Screen shot. The user can also change this option if it is not necessary, by switching OFF the alarm option. (Refer- screen shot)

Automatic Light control

This Light sensor continuously calculates the light intensity of the room and passes it to microcontroller. The microcontroller automatically updates the light intensity in the mobile for every 2 seconds (Refer screen shot).

   

When the light intensity goes below a preset level set by the user, the microcontroller automatically switches ON the light. ("Light Limit  - in screen shot"). This helps the disabled user by automatically switching ON the light at evening hours. This option can also  be enabled or disabled by the user. (Refer screen shot )

Automatic Motion sensing

The motion sensor is added in the circuit mainly for the purpose of security for the disabled and aged. This sensor continuously checks for the human IR rays, which can be only detected from the human body. To detect this, a PIR sensor is connected to the hardware and is left out in the unsecured area.Till there is no strange movement in the protected area, the mobile will display “Motion: Normal”. When any human movement is detected in the sensor, it informs to the microcontroller. The microcontroller immediately displays “Motion: Detected” in the mobile phone and alarms with a voice “Motion Detected”. (Refer video and screenshot)

    

Automatic Door sensing

This sensor is also for the security purpose. This switch can be called as a magnetic sensor or reed switch. It is used to check whether any door/ window is opened or closed. If the closed door suddenly opens without the knowledge of the user, it alarms the user with a voice signal “Door1 opened” and displays “DOOR1: Opened” in the mobile (Refer video and screenshot). It is designed that the user can connect three windows/doors with the sensor.

NOTE: The voice alarm functions can be enabled or disabled for each and every sensor individually. To enable or disable the alarm function, just select the sensor tab, scroll to the particular option and press the Enter key. If it is already in the disabled mode, it can be identified by a [X] near to it. Just pressing the option once again will enable it. (Refer Screenshot).