# Vibration sensor to switch on a light

**URL:** <https://forum.core-electronics.com.au/t/vibration-sensor-to-switch-on-a-light/9339>\
**Category:** Uncategorized\
**Created:** [4 February 2021 05:24 UTC](https://forum.core-electronics.com.au/t/vibration-sensor-to-switch-on-a-light/9339 "2021-02-04T05:24:24Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Elvis153428](https://avatars.discourse-cdn.com/v4/letter/e/858c86/32.png) [@Elvis153428](https://forum.core-electronics.com.au/u/Elvis153428)\
**Post date:** [4 February 2021 05:24 UTC](https://forum.core-electronics.com.au/t/vibration-sensor-to-switch-on-a-light/9339/1 "2021-02-04T05:24:24Z")

</div>

Hello  
Hopefully someone can help.  
I do long range target shooting and seeing whether you have hit the target ( generally a ply board , 1mtr x 1 mtr ) is not possible.  
Is there a vibration sensor which can trigger a "bright light "- say 10-15w led as minimum , when the target is hit ?  
The light would need to be visible from approx 800mtrs during the day  
Can be powered by any dc power source ( 12v batt , aaa batteries , etc )  
If so , what goodies would i need to buy and can you provide a detailed wiring / build diagram.  
Your assistance would be appreciated.

---

<div class="post-metadata">

**Author:** ![James46717](https://avatars.discourse-cdn.com/v4/letter/j/e5b9ba/32.png) [@James46717](https://forum.core-electronics.com.au/u/James46717)\
**Post date:** [4 February 2021 20:35 UTC](https://forum.core-electronics.com.au/t/vibration-sensor-to-switch-on-a-light/9339/2 "2021-02-04T20:35:46Z")

</div>

Update:  
Tested the piezo devices I have, simple basic bench test. Tapping the device works good but attached to a board and tapping the board it does not. Found a web site detailing construction of what may help you. The sensor used in the project is stocked by Core electronics. I don’t have any of these sensors but might buy some in my next order.

Piezo Vibration Sensor - Large SKU: SEN-09196  
Piezo Vibration Sensor - Large with Mass SKU: SEN-09197

Any of the Arduino Micros would work. Using a micro allows you to make adjustments to sensor trigger level and to activate a light for longer than the instant the bullet hits. The output of the Arduino can drive a mosfet which then drives a high wattage light. The LED used in the web link is really not bright enough in my opinion.

> **[Arduino Steel Target Impact Sensor](https://www.instructables.com/Arduino-Steel-Target-Impact-Sensor/)**
>
> Arduino Steel Target Impact Sensor: I started doing local Practical Precision Rifle competitions at my nearby range, and have been having a great time. If you aren't aware, practical matches differentiate themselves by having steel targets are...

================================================  
I have used the smaller of the two devices linked below. It is very sensitive. A bullet hitting a piece of ply should easily trigger it. You could then use a mosfet to drive a high wattage light. 10 to 15W might not be enough over 800mtrs on a sunny day. I’ll have a look through my parts bin and see if I can come up with a workable design.  
Cheers  
Jim

> **[Small Enclosed Piezo w/Wires](https://core-electronics.com.au/small-enclosed-piezo-w-wires.html)**
>
> This small (14mm diameter) piezo element is nicely enclosed so you can attach easily. Piezo elements convert vibration to voltage or voltage to vibration. That means .. read more

> **[Large Enclosed Piezo Element w/Wires](https://core-electronics.com.au/large-enclosed-piezo-element-w-wires.html)**
>
> This large (30mm diameter) piezo element is nicely enclosed with mounting holes so you can attach easily. Piezo elements convert vibration to voltage or voltage .. read more

---

<div class="post-metadata">

**Author:** ![Elvis153428](https://avatars.discourse-cdn.com/v4/letter/e/858c86/32.png) [@Elvis153428](https://forum.core-electronics.com.au/u/Elvis153428)\
**Post date:** [5 February 2021 01:09 UTC](https://forum.core-electronics.com.au/t/vibration-sensor-to-switch-on-a-light/9339/3 "2021-02-05T01:09:34Z")

</div>

Thanks for your prompt response James.  
If possible could i get a detailed parts list with your part no’s,cost etc required and a “hand drawn” assembly diagram ( as i have not constructed one of these kits before )  
Cheers

---

<div class="post-metadata">

**Author:** ![Oliver](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/oliver/32/3315_2.png) [@Oliver](https://forum.core-electronics.com.au/u/Oliver)\
**Post date:** [5 February 2021 02:43 UTC](https://forum.core-electronics.com.au/t/vibration-sensor-to-switch-on-a-light/9339/4 "2021-02-05T02:43:37Z")

</div>

Hi Elvis,

Thanks for making a post! 🙂

My suggestion is exactly the same as James - set up a Vibration sensor as an input to a microcontroller, then switch the LED via a relay or Power transistor.

Sparkfun have a really good hook-up guide here:  
[https://learn.sparkfun.com/tutorials/piezo-vibration-sensor-hookup-guide/](https://learn.sparkfun.com/tutorials/piezo-vibration-sensor-hookup-guide/)

As for switching the light on and off, check out our article on using relays:

> **[Relay Operation and the Arduino Uno - Tutorial](https://core-electronics.com.au/tutorials/relay-operation-with-arduino.html)**
>
> If you could operate your switch without physically toggling it on and off, you would open yourself up to an entire section of electronics. Relays are one of the best ways of doing this. A relay is essentially just a switch, controlled by an...

Or there’s a really good article here on using a MOSFET as a switch:  
[https://www.electronics-tutorials.ws/transistor/tran\_7.html](https://www.electronics-tutorials.ws/transistor/tran_7.html)

I’d recommend having a look at our Arduino for beginners workshop for the coding side of things:

> **[Arduino Workshop for Beginners - Tutorial](https://core-electronics.com.au/tutorials/arduino-workshop-for-beginners.html)**
>
> Welcome to the Arduino Workshop, where you'll be able to follow our guided course which covers everything you'll need to know in order to create your own Arduino projects and become a leveled up maker. My name is Sam and along with being a maker...

As for equipment, you’ll want to start off with some basic prototyping gear:

- [Breadboard](https://core-electronics.com.au/solderless-breadboard-830-tie-point-zy-102.html)
- Jumper wires (Male-Male, Male-Female, and Female-Female
- [Resistor Kit](https://core-electronics.com.au/resistor-kit-1-4w-500-total.html)

And of course an Uno R3:

> **[Uno R3](https://core-electronics.com.au/uno-r3.html)**
>
> The Uno is a microcontroller board based on the ATmega328. It has 14 digital input/output pins (of which 6 can be used as PWM outputs), 6 analogue inputs, a 16 MHz crystal oscillator, a USB connection, a power jack, an ICSP header, and a reset...

You’ll also want your LEDs, a way to power the whole setup, and MOSFETs or Relays depending on what you decide to go with.  
I’d suggest picking a red LED, as the human eye will be able to pick it out better than blue or green:  
 ![image](https://canada1.discourse-cdn.com/flex028/uploads/core_electronics/original/2X/7/7529f8cac2a607e9c88941f977069f612af40992.jpeg)  
From [https://www.olympus-lifescience.com/en/microscope-resource/primer/lightandcolor/humanvisionintro](https://www.olympus-lifescience.com/en/microscope-resource/primer/lightandcolor/humanvisionintro)

Also checkout our Arduino workshop for beginners:

> **[Arduino Workshop for Beginners - Tutorial](https://core-electronics.com.au/tutorials/arduino-workshop-for-beginners.html)**
>
> Welcome to the Arduino Workshop, where you'll be able to follow our guided course which covers everything you'll need to know in order to create your own Arduino projects and become a leveled up maker. My name is Sam and along with being a maker...

---

<div class="post-metadata">

**Author:** ![Elvis153428](https://avatars.discourse-cdn.com/v4/letter/e/858c86/32.png) [@Elvis153428](https://forum.core-electronics.com.au/u/Elvis153428)\
**Post date:** [5 February 2021 04:11 UTC](https://forum.core-electronics.com.au/t/vibration-sensor-to-switch-on-a-light/9339/5 "2021-02-05T04:11:52Z")

</div>

Thanks Oliver,  
Don’t think it will work with a few Led’s ( won’t be visible from 800 mtrs)  
I’ll do some more homework as i’d like to power at least a 10-15 w led globe / light

---

<div class="post-metadata">

**Author:** ![Oliver](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/oliver/32/3315_2.png) [@Oliver](https://forum.core-electronics.com.au/u/Oliver)\
**Post date:** [5 February 2021 04:13 UTC](https://forum.core-electronics.com.au/t/vibration-sensor-to-switch-on-a-light/9339/6 "2021-02-05T04:13:11Z")

</div>

I was thinking high power LEDs like this:

> **[LED - 3W Aluminum PCB (5 Pack, Red)](https://core-electronics.com.au/led-3w-aluminum-pcb-5-pack-red.html)**
>
> So much power and light from such a small package. This 5 pack of red 3 Watt aluminum backed PCBs is sure to shed a lot of light on any project you add it to. These LEDs act as any other LED except these little guys require much more power while...

---

<div class="post-metadata">

**Author:** ![James46717](https://avatars.discourse-cdn.com/v4/letter/j/e5b9ba/32.png) [@James46717](https://forum.core-electronics.com.au/u/James46717)\
**Post date:** [5 February 2021 05:33 UTC](https://forum.core-electronics.com.au/t/vibration-sensor-to-switch-on-a-light/9339/7 "2021-02-05T05:33:03Z")

</div>

Your best option is to have a look through the tutorials linked by Oliver.  
Using and programming an Arduino UNO can be a tall ask if you have no experience in this area.  
Also if you have never built anything electronic there are many pitfalls.  
The first objective in designing an electronic device is safety. (of people and the equipment)  
It is very easy to connect things wrong and something goes bang. (my past experience)

I do intend to look into the vibration sensor triggered when a board is hit. It has been in the back of my mind for some time. It would be for my grandkids, a nerf gun shot at a target on a board in the garage. So it would not have the same impact as a bullet from a gun. But similar.

I am also interested as how far the bright LEDS linked by Oliver can be seen. I have one, never used it at full brightness inside, it leaves spots on your eyes if looked at directly, even on a low intensity. I intended to use it as a headlight on a robot cart but the intensity worried me when little kids are playing with it. I opted for bright LEDs not super bright ones.

I will post my findings in here, but it might take a while, I need to get the sensors first. The piezo sensor I have is good for sound vibration not physical vibration of the object it is attached to.

This kind of trial and error experimentation can take some time, stay tuned. I will post here progress as it occurs.

btw there are very good kits that can do what you want and better with Wifi to a tablet or PC but they are rather expensive and the target is highly specialised. The one I saw could place where the bullet hit on the target. If you can get it shipped from USA. (think it was around $800USD)

Cheers  
Jim

---

<div class="post-metadata">

**Author:** ![James46717](https://avatars.discourse-cdn.com/v4/letter/j/e5b9ba/32.png) [@James46717](https://forum.core-electronics.com.au/u/James46717)\
**Post date:** [6 February 2021 00:01 UTC](https://forum.core-electronics.com.au/t/vibration-sensor-to-switch-on-a-light/9339/8 "2021-02-06T00:01:02Z")

</div>

I built a test unit for the super bight LED (1W) I have using the old board from the robot cart. Alas it is raining, so I went searching and found some maths for calculating wattage needed for distance.

The only product I can see on Core Electronics web site that might do is linked below.  
The specification you need is the luminance (lm). You need something over 350 lm. This device achieves it by multiple LEDs. Unfortunately it has a narrow viewing angle, 60 degrees. It would need careful alignment.

It is also quite dangerous at 500lm, you could suffer permanent vision impairment if you looked directly at it when close to.

Anyway …  
Jim

> **[10W Super Bright LED - Warm White with 60 Degrees Lens](https://core-electronics.com.au/10w-super-bright-led-warm-white-with-60-degrees-lens.html)**
>
> This 10W super bright LED can be used as a flash searchlight for your robot projects. It consists of 9 separate LEDs and has a luminance of 500LM. The 60 degrees lens for focusing the light. Comes in various colors.

---

<div class="post-metadata">

**Author:** ![Elvis153428](https://avatars.discourse-cdn.com/v4/letter/e/858c86/32.png) [@Elvis153428](https://forum.core-electronics.com.au/u/Elvis153428)\
**Post date:** [8 February 2021 00:54 UTC](https://forum.core-electronics.com.au/t/vibration-sensor-to-switch-on-a-light/9339/9 "2021-02-08T00:54:34Z")

</div>

Thanks for your reply.

---

<div class="post-metadata">

**Author:** ![Elvis153428](https://avatars.discourse-cdn.com/v4/letter/e/858c86/32.png) [@Elvis153428](https://forum.core-electronics.com.au/u/Elvis153428)\
**Post date:** [8 February 2021 00:55 UTC](https://forum.core-electronics.com.au/t/vibration-sensor-to-switch-on-a-light/9339/10 "2021-02-08T00:55:54Z")

</div>

Hi Jim  
Thanks for your replies.  
I will do some more homework.  
cheers
