car alarm with bluetooth and rf remote - car alarm remote

by:Kingcobra     2019-09-22
car alarm with bluetooth and rf remote  -  car alarm remote
This project is about building a car alarm with remote control and Bluetooth, armed and unalarm with remote control and Android system phone and Arduino through an App created with App Inventor
To complete this project, all you need is another bit of basic knowledge about App Digito and Arduino as well as automotive electronics.
I made this project as simple as possible so that everyone can understand it, but if anyone is interested, I also have a more complete version of the output of the horn and lights, as well as vibration sensors and open door detectors and relays for cutting off the motor current, in addition, there are additional buttons in the application to open the suitcase, lift windows si bought all parts on ebay for a good price from China, but if you don't want to wait 3 weeks, you can buy them from sellers in your own country, or in the local Bluetooth module, there is a module of this type that is fed with 3.
3 v, but what we need must be 3 v.
315 MHz/433 MHzWe can use the remote control of any model we want and can be used at any frequency, 315 Mhz or 433 Mhz, but the remote control must match the frequency of the receiver 315/433 Mhz RFTransmitter and the receiver module. This module is sold in pairs on a regular basis, including the transmitter and receiver, but we only need the receiver, the only condition is that it works at the same frequency as the remote control we chose the Arduino nano. The Arduino is chosen because it is the most harassing of the numerous pins4 Channel relay boards. Convert the 5 v signal of arduino to 12 v output and directly control the car conversation steps-
The lower adjustable converter power module regulator lm2596 this widget will be used to convert the 12 v power supply from the car to 5 v to power the Arduino Nano and Bluetooth modules. There is no need to use this connector, but I like it because so I can easily connect and disconnect the entire system Plastic project housing, you can use the box that best convinces you, I prefer these things in order to be able to accommodate them where jumper kitsindispens can be easily connected. The required knowledge of App Inventor is basic, only a few buttons are occupied, and shopthclient and some block scode: 5766043192655872 download the App: simplifies the project to the maximum extent for easy understanding, basic knowledge of Arduino is only required.
Library: "RCSwitch.
I downloaded this library from the Internet, which is responsible for RF remote control. You need to download this library, decompress it and copy it to the Arduino library folder, which is usually located in the download library of the "My Documents" folder: ALARM */include int Arm = 13; int Desarm=12; Ignition = 11; int Star=10;
RCSwitch mySwitch = RCSwitch (); void setup(){pinMode(Arm,OUTPUT); pinMode(Desarm,OUTPUT); pinMode(Output ignition; pinMode(Star,OUTPUT); Serial. begin(9600); mySwitch. enableReceive(0); }void loop(){if (mySwitch. available()){
Long int value = mySwitch.
Getstringedvalue (); if (value == 0){Serial. println("code error"); }else {Serial. print(Receive code]; Serial. println(value);
First control/signal 1 if (
Value = 8481906)
/Bunton to dessarm {
digitalWrite(Desarm,HIGH);
Serial. println("led ON"); delay(100);
digitalWrite(Desarm,LOW);
Serial. println("led OFF"); }
/Signal month such (
Value = 8481905)
/Buton armed {
digitalWrite(Arm,HIGH);
Serial. println("led ON"); delay(100);
digitalWrite(Arm,LOW);
Serial. println("led OFF"); }
/
Value = 9150562)
/Bunton to dessarm {
digitalWrite(Desarm,HIGH);
Serial. println("led ON"); delay(100);
digitalWrite(Desarm,LOW);
Serial. println("led OFF"); }
/If (
Value = 9150561)
/Buton armed {
digitalWrite(Arm,HIGH);
Serial. println("led ON"); delay(100);
digitalWrite(Arm,LOW);
Serial. println("led OFF"); }
//////////////////////////////////}mySwitch. resetAvailable(); }
Char dato = Serial. read(); if(dato == 'A')
/Bunton to dessarm {digitalWrite(Desarm,HIGH); delay (100); digitalWrite(Desarm,LOW); }if(dato == 'B')
/Buton armed {digitalWrite(Arm,HIGH); delay(100); digitalWrite(Arm,LOW); }if(dato == 'I')digitalWrite(Ignition,HIGH); //IGNITION if(dato == 'S')digitalWrite(Star,HIGH); //STAR delay (2000); digitalWrite(Star,LOW); if(dato == 'E')digitalWrite(Ignition,LOW); //CUT IGNICION}
Download Code: the way to connect the device is a bit complicated, but it doesn't take much, you just need a car current tester, stripping tape and insulating tape. Red Wire (Positive)
The power supply current can be obtained directly from any cable under the battery or steering wheel with constant current, which is the current that always exists, even if the key is in the OFF potitionBlack Wire (Ground)
You can also remove this from the negative pole of the battery or from any wire under the yellow line of the steering wheel or part of the fixed iron, you need to remove the cover under the steering wheel and look for the wire from the key switch, look for the ignition current, which is the current that appears when you turn on the blue line of the key switch. This is the start current, this is a short pulse, when we turn and hold the key, it will send out from the key switch, this wire will signal to unlock the car, you will find it on the left or in the middle of the car, right where the unlock button isWhite wire is the line that sends the signal to lock the car, once you find all the lines, it is also the correct position of the lock button, only peel and spliceRemote control RF 315 Mhz or 433 MhzThe remote control has two buttons, one is arm and the other is to remove the alarm when the alarm is equipped with the remote control, this one locks the car when the alarm is lifted by control, this one unlocks the carAndroid phone with the AppThe Android app. The Android app has more features than the controls, and it can be installed with Bluetooth receivers on all the phones you want the first time you use this app.
Custom message

Chat Online 编辑模式下无法使用
Chat Online inputting...