GPS vehicle tracker

Abstract: This article introduces a simple way to track the location of a car and verify whether the driver of the car is authorized based on 1-Wire® technology. This method can be used for car anti-theft, automatic establishment of driving logs and freight, bus fleet management, etc. This article gives an example of R & D, which uses Garmin GPS 35 GPS receiver, Siemens TC35 GSM module, DS1990A iButton®, Parallax BASIC Stamp® (BS2P) microcontroller and source code.

This article describes a simple way to track the location of a car and verify that the driver of the car is authorized. This method can be used for car anti-theft, automatic establishment of driving logs and freight, bus fleet management, etc.

The longitude and latitude information of the vehicle is transmitted through standard mobile phone text information, so as to obtain accurate information of the vehicle position.

The code provided for the program can be downloaded from the following website: EPD-v2-01-3E.BSP: BASIC Stamp main program 1WIRE-ID.BSP: Subprogram components that read the serial number of the DS1990A iButton The program consists of the following parts : GPS receiver (Garmin GPS 35), which provides vehicle position information

GSM module (Siemens TC35) for sending SMS (text message) to pre-set mobile phones

iButton (DS1990A), used to verify whether the driver is authorized to use the vehicle

Parallax's BASIC Stamp (BS2P) control module, connected to a BASIC Stamp development board ().

software:

EPD-V2-01-3E.BPS: BASIC Stamp main program 1WIRE-ID.BSP: principle block diagram of reading DS1990A iButton serial number subroutine Figure 1. Functional block diagram
Figure 1. Functional block diagram

The information provided by the GPS receiver is output in the 'NMEA' format (NMEA is the abbreviation of the National Marine Electronics Association), and the latitude and longitude information is extracted from the '$ GPRMC' sentence, (by format: "North Latitude ABC", "West Longitude DEF "Output).

The GSM module sends SMS information (text information) to the preset mobile phone.

The DS1990A iButton (the so-called "serial number iButton") is used for authentication or "key". It contains a globally unique 6-byte long identification number and a 2-byte long CRC check code. The serial number is of the "read-only" type, a system can be equipped with 2 iButton keys, one of which is used as a backup or provided to a second authorized driver. Of course, you can easily equip more keys. Working principle During system startup, the BASIC Stamp continuously scans to detect: Is the iButton inserted into the input? Does the car ignition work? For the car to work properly, the authorized iButton of the car must be inserted into the read-write port, and then the car will start within the set 25 seconds.

If the following situation occurs, it is considered as an illegal intrusion: It has been detected that the car ignition has started to work, and the legal iButton has not started the car within the required 25 seconds. If no iButton is connected to the system within 25 seconds after the car is started, it is also considered illegal to invade. Once it is determined that an illegal intrusion has occurred, the BASIC Stamp starts to query the information from the GPS receiver. Wait for the '$ GPRMC' message to appear on the serial output port of the GPS receiver. BS2P sends SMS information, including information extracted from the 'GPRMC' text received from GPS, to a pre-set mobile phone. The above process is repeated every 2 minutes in order to let the owner know the vehicle position at all times. System Integration The core of the design is the BASIC Stamp, which organically connects the GPS receiver, GSM modem, iButton, and car igniter detection to form a complete system.

The ignition wire is used to detect whether the car is started. Of course, other indicators (such as ultrasonic sensors or other intrusion detectors, etc.) can also be used. The output of the GPS receiver is connected to P0 of the BASIC Stamp.
The input of the GSM receiver module is connected to the 'Sout' or pin 1 of the BASIC Stamp.
The P1 pin of the BASIC Stamp is connected to the igniter. A high input indicates that the igniter is working, and vice versa.
P15 is used to interface with iButton. It should be reminded that the BS2P of the BASIC Stamp series products supports the 1-Wire bus interface protocol of iButton, but the earlier products do not. Log in to the mobile phone number can be programmed as follows, enter the mobile phone number:

================================================== ====
DEBUG "+44 **********" 'Enter the desTInaTIon mobile phone number here
================================================== ====

The input number must be in the following format:

+ Country code (44 in the above example represents the UK code) + Personal mobile phone number.

This number will be the destination number for the system to send management information, including the location information of the vehicle. Log in to the iButton serial number and enter the iButton serial number to be used. If only one iButton is used in the system, you need to repeatedly write the number into the memory reserved for the standby iButton.

The iButton code is written as shown in the following program. In this example, the iButton code used in the example has been entered into the system. When actually writing the code, please replace the number after the '$' symbol in the sample program with the specific iButton code, and the serial number is expressed in hexadecimal.

A separate subroutine can be used to display the serial number of the specified iButton. This serial number is registered in the final program code and then downloaded to the BASIC Stamp processor.

'Login the first iButton serial number:'

IF romData (0) <> $ 03 THEN CheckSecond 'First Byte
IF romData (1) <> $ F0 THEN CheckSecond
IF romData (2) <> $ BC THEN CheckSecond
IF romData (3) <> $ 08 THEN CheckSecond
IF romData (4) <> $ 10 THEN CheckSecond
IF romData (5) <> $ 00 THEN CheckSecond
IF romData (6) <> $ 00 THEN CheckSecond
IF romData (7) <> $ 30 THEN CheckSecond 'Eighth Byte

GOTO ButtonOK

CheckSecond:

'Login the second or other iButton serial number:'

IF romData (0) <> $ 01 THEN BadButton 'First Byte
IF romData (1) <> $ 68 THEN BadButton
IF romData (2) <> $ 21 THEN BadButton
IF romData (3) <> $ 24 THEN BadButton
IF romData (4) <> $ 08 THEN BadButton
IF romData (5) <> $ 00 THEN BadButton
IF romData (6) <> $ 00 THEN BadButton
IF romData (7) <> $ 31 THEN BadButton 'Eighth Byte

After completing the above modifications, you can track the car.

The code for this solution can be downloaded from the following link: EPD-v2-01-3E.BSP: BASIC Stamp main program. 1WIRE-ID.BSP: Read the DS1990A iButton serial number.

Indoor Lighting

LEDER offers a range of modern indoor illumination, including LED down light , Track Light ,Linear Light,Indoor Wall Light,LED Panel Light,strip light,LED tube and bulbs as so on. Our indoor lights and indoor LED lighting solutions are ideal to create an atmosphere that is expected of LED lighting in commercial or residential Settings.

We believe in the aesthetics of indoor design and the role of lighting in enhancing the atmosphere of the indoor space, whether for entertainment or work. The indoor of the home is a place of relaxation, warmth and intimacy, while at work it is a place of creativity, efficiency and collaboration. The basic idea is that indoor space is an area where one can resonate with individuals or professionals and perform at their best. This is the importance of indoor lighting and the role of lamps and lanterns, they are used to enhance the space, bring the best results for the people who use the space. Modern Spaces may be limited by light, and sometimes the use of light in indoor Spaces during the day is almost inevitable. LEDER indoor lighting is by using the method of people-centered, applicability in lighting design and play out the best effect, make the person can achieve the best results in indoor space.

Indoor Lighting

Grow Lamp ,Indoor Grow Lighting ,E27 Indoor Wall Light,Indoor Motion Sensor Light

JIANGMEN LEDER LIGHTING CO., LTD , https://www.lederlight.com