Vibration sensor alarm for campervan

Hi, does anyone know of an existing project or if it's possible to achieve this please?

I'd like to create a project for the security of a camper van. When vibration is detected, or two stages of vibration in a short time frame, a light comes on in the van for a set period then switches off. This would give the impression someone is sleeping in the campervan and has been awoken by the movement and hopefully deter anyone trying to break into the van.
The project and lightwouldn't need to be wired to any of the vans standard electrics but would run from the 12v leisure battery.

Would be good if the project can be activated/deactivated via a remote/wireless key fob.

Even better if a SIM module can be used to control activation and receive notifications on a phone via text.

Does anyone know where to start or if any of that is even possible?

Thanks

Joe

Look for a vibration sensor that meets Your needs.

Adafruit sells very cheap, simple vibration sensor switches with different sensitivities. Buy one of each and decide which one would be best.

It is very doable. Lets just list the areas of knowledge you will need.

  1. Phone app
  2. Internet access via SIM
  3. Wireless communications
  4. Vibration sensor
  5. General Arduino skills
    It's doable, but there is a lot to learn. As a former RV owner and with 50+ years of software/hardware experience, I would look for an off-the-shelf solution first to use as a guide and even to make a build/buy decision.

Thank you!

Ok, maybe I should start with the vibration sensor activating after a set period, so the light comes on for a few minutes.

Do you know where I should start looking for code and kit?

Ive had a look on the UK market and there's a vibration alarm but some thieves won't let that stop them, if they think someone is occupying there are 'more likely ' to scoot.

Thanks again

Joe

Well, the code comes from your mind and experience. I would Google vibration sensor. If/when you find something, look for a library, and that library will come with examples. This will be the easiest part of the project by far. I just spent 2 minutes and found the library and an example. The operating code is 1 line, there are some print statements as well. Now the hard part, how to get the information to your phone.

Thanks again, I'll get my head down and start looking into it. If nothing else it will be a bit of fun!
Any idea how good AI is at helping you design and code something like this? Thanks!

I tested AI with a couple of real-world projects, and it failed big time. It is ok for simplifying code and other small tasks, but it is not a replacement for the creative human mind. Learn to do it yourself, then maybe in 5 to 10 years you can use AI for those special occasions.