Hi friends we are going to make a blog and I hope this blog become useful for every person.
In this blog we are going to make a GSM latching relay.
In this system firstly the phone is hung and then output is turned on and when again phone is rung then the output is turned off.
Warnings:
At this point the electricity is dangerous and its can kill.
If we are not use the cover then we cant do the internals work in projects nad there will be live contacts exposed when the unit is connected to the mains.
Materials & Parts
To build this system we have some items which is very important for this system.
Shopping List
• Project Box –Biggest size.
• Arduino Uno – visit at - https://www.robomart.com/arduino-uno-online-india
• This module has not lower price but we cnan purchase it minimum price by visit that link
• Arduino Relay – visit at- https://www.robomart.com/single-channel-12v-relay-board
• The small relay connect to the main relay of the Arduino.
• Mains Relay - visit at - https://www.robomart.com/single-channel-12v-relay-board
• This one is rated 30A at 240V and is used to switch the high voltage on and off.
• 12V Power supply - visit at- https://www.robomart.com/12-volt-2a-smps-adaptor
• You don't have to use this one, any 12 volt supply will do, as long as it fits in the project box and can provide 2 amps or so.
• 5V Power supply - visit at - https://www.robomart.com/5-volt-1-amp-smps-adaptor
Wiring Diagram
This wiring diagram shows how I connected everything together to make the project work. Follow this and you should be fine
Mobile Phone Hacking
We are able to interface the mobile phone with the Arduino so for this we are going to hack the way by its own hardware wise.
Vibrator Motor
On The LG side I have a vibrator motor which is connected to the phone’s motherboard with the help of wires. Then I cut off the motor because many wiring are used inside this and then I solder the longer wires to the to this wiring and then covered the area for the help of cable strain and to hold my hack in place.
Nokia mobile phones, which are what I would personally recommend for this task are slightly harder though. You will need to remove the back plastic panel. This contains the vibrator motor. Remove the motor and solder wires carefully to the pads on the phone motherboard.
When the phone receives an incoming call, voltages appears on the wires and what the maximum voltage that appears is and the polarity of the wires and connect the negative to ground.
When incoming call received by the phone then the voltage appear on the wires and then its show that what the maximum voltage and the polarity of the wires and then we connect the negative to the ground terminal.
Battery Contacts
In which we provide the power to the phone in place of give the power to the mobile phone with the help of charging socket and leave the battery.
I found that the easiest option is to remove the battery and connect power straight to the phone itself. However, some phone batteries have on board components which mean the phone will not start without the battery.
The LG required just 4 volts across its battery terminals to start up, all that was needed was a diode to drop the voltage only one volt or so from the 5 volt supply.
Nokia, however are more tricky, they require some extra work.
Arduino Code
Coding is the toughest part of the project so we are going to show how to get work with this and those coding attached in that.
int relaypin = 13; // relay is connected to pin 5
int phonepin = 8; // phone output is on 13
boolean relayon = false; // set up the variable.
void setup()
{
pinMode(relaypin, OUTPUT); // The relay pin is a output from the arduino.
pinMode(phonepin, INPUT); // The phone pin is a input to the arduino.
digitalWrite(phonepin, LOW); // when project is turned on, relay must start off.
}
void loop()
{
if (digitalRead(phonepin)) // when the phone pin is high, when voltage is present, when the phone rings.
{
relayon = !relayon; // change the state of the variable.
delay(1000); // Delay 1 second
digitalWrite(relaypin, relayon); // Change the state of the output pin depending on the variable
delay(5000); // Delay 5 seconds
}
}
Adjustments:-
There are many thing that is very useful and it depend how the phone is working.
Firstly we do first thing we are going to add the additional resistor across the vibrator motor output and it’s this dissipated the voltage and it confuses the arduino that in which states it should be.
Finishing of the Project:-
Afterthoughts & Version 2
Afterthoughts
So when we plugged the relay then there is needs to turned on the phone.
No comments:
Post a Comment