Spynet Laser Trip Wire

£12.495
FREE Shipping

Spynet Laser Trip Wire

Spynet Laser Trip Wire

RRP: £24.99
Price: £12.495
£12.495 FREE Shipping

In stock

We accept the following payment methods

Description

Push the code to the Arduino with the following steps. Ensure the switch on the breadboard is set to off so the device does not start bombarding you with alerts as soon as the code is uploaded. The main power buses on the breadboard are regulated. Unregulated power from the power adapter goes into the power regulator on the Arduino is there a resonable way to do a reset with just vanilla items? I saw one guy trying to explain how to use a pressure plate to do the reset. I do not understand what he did. Does a pressure plate automatically reset after a time? If you enjoyed making this project, then you can find many more GPIO Zero guides in our GPIO Zero Essentials book!

If you prefer, you can remove the breadboard and instead connect the circuit up directly by poking the legs of the components into female-to-female jumper wires, with the long capacitor leg and an LDR leg together in one wire end, connected to the relevant pins. Installing synergy on the raspberry pi. In case you are not familiar, this software will allow you to control the raspberry pi's mouse and keyboard with another computer. This is nice if you are like me and are more comfortable on a different computer. Also this is software that everybody should have. Save the code. At the start, we import the LightSensor class from GPIO Zero. We then assign the variable ldr to the LDR input on the GPIO 4 pin. Unless you’re working in a darkened room, you’ll probably notice little difference between the measured light level when the laser pointer is directed onto the LDR and when it’s not. This can be fixed by reducing the amount of light that the LDR receives from other light sources in the room, which will be essential for our laser tripwire device to work effectively. We’ll achieve this by cutting off a short section – between 2cm and 5cm – of an opaque drinking straw, and inserting the head of the LDR into one end. Now try the test code again and see how the measured light level changes when you shine the laser pointer into the other end of the straw. You should notice a larger difference in values. Wire up the buzzerPay close attention to the 10K Ω resistors. These implement a voltage divider. This is because the laser receiver module outputs 5V to indicate the beam is broken. Raspberry Pi only supports up to 3.3V for GPIO input. Since sending the full 5V to the pin could damage the Raspberry Pi, the current from the receiver module is passed through a voltage divider to halve the voltage to 2.5V. Apply source code updates By placing a capacitor in series with a light-dependent resistor (LDR), the capacitor will charge at different speeds depending on whether it is light or dark. We can use this to create a laser tripwire! As noted earlier, when the laser is shining on the resistor it reads about 620, so in the sketch I’ve set the buzzer to sound only if the value is more than 850. This value is between our laser value and our nonlaser value, so we know the laser beam to the resistor has been broken if the value reaches 850.

An analogue input can have a range of voltages from 0V up to 3.3V, however, and the Raspberry Pi is unable to detect exactly what that voltage is. One way of getting around this is by using a capacitor, and timing how long it takes to charge up above 1.8V.

4 Comments

Unless you’re working in a darkened room, you’ll probably notice little difference between the measured light level when the laser pointer is directed onto the LDR and when it’s not. Breadboard hookup wire kit (only a few needed for this tutorial but the set is good for an electronics kit) I will attach the kicad files for the circuit board but will not go over the manufacturing of the board in this instructable.



  • Fruugo ID: 258392218-563234582
  • EAN: 764486781913
  • Sold by: Fruugo

Delivery & Returns

Fruugo

Address: UK
All products: Visit Fruugo Shop