GSM Alarm
GSM based motorcycle alarm based on sensing if the bike is lifted from sidestand

Short users guide

Operation:

A call will be made every time the bike is raised from sidestand after at least 3 min

- A tilt sensor senses if the bike is on sidestand or in vertical position
- If the bike is parked (put on sidestand) the device waits for 3min - After 3min it is armed
   - In this state if the bike is lifted to vertical position the device calls the programmed number
     - The call starts in about 5s
     - The call lasts for 50s (Don't answer the call, so it is free)
- If no event happens then after 2hours the device turns itself OFF to zero current consumption
   - In this state if the bike is lifted to vertical position the device calls the programmed number
     - The call starts in about 30s

Connection:
- 12V and GND from battery through a fuse

Other info:
- A prepaid SIM card is needed which is periodically filled with the appropriate amount
- The tilt sensor has to be precisely placed
- The GSM antenna must be precisely placed
- All the configuration information is hardcoded in the software
- You can leave it on all the winter, because after 2hours the current consumption is zero
- The operation status and the errors are displayed via the Atmel LED. See C code.
- The device fits into the 15mm space between the airbox and the seat

Don't forget! This code is not fully tested.


Video

Operation test
In the bike

Components

Arduino Nano clone with ATMega328P microcontroller is used
SIM800L GSM module
Schematic of the device.
C software code