Help with a project

Hello everyone, I'm trying to build a device that will pick up movement using a parking sensor, when movement is detected it will trigger off an led light and a mechanical misic box, I have the items I think I need but I obviously need help and guidance as its not working. This is the specs of the parking sensor :- Specifications:-
Working Voltage: DC5V
Quiescent Working Current: 5mA
Total Working Current: 30mA
Wave Transmit Frequency: 40kHz
Maximum. Measuring Distance: 5m
Blind Zone: 25cm
Size: 28.5*41mm
Resolution: Approx 0.5cm
Angle: <50 degree
Working Temperature: -10℃~70℃
Storage Temperature: -20℃~80℃
Wiring:
+5V (power supply positive)
Trig (control) RX
Echo (receive) TX
GND (power supply negative)
Specs for led lights :- Specification:
20cm Pre Wired 5mm LED Diodes Light:
Lamp Bead Diameter: 5mm
Wire Length: 20CM
Forward Voltage (V): 12VDC
Forward Current (mA): 20mA
Lifespan: 50,000 Hours
Viewing Angle: 25 Degree. The led specs
Specs for the music box :- Music box specs Specification:
Item Type: Music Box Movement
Battery: 2 x AA Battery (Battery Not Included)
Movement Size: Approx. 5 x 4.5 x 2.3cm / 2.0 x 1.8 x 0.9in. A point in the right direction and the items I need to make this work would be most appreciated. Thank you

Welcome to the forum

The problem is either in your sketch, your circuit, or your power supply

We need to know about all 3 in detail

Hi UKHeliBob, I have no circuit and the only power supply is with the music box that is 2 x AA batteries, I would like to run it all from a 9v battery if its possible, I can add a link to the parking sensor as that has a circuit board that the sensor plugs into

Link to the parking sensor is https://www.amazon.co.uk/gp/aw/d/B08BLQQCVQ?psc=1&ref=ppx_pop_mob_b_asin_title

How do you turn the music box on and off?
Is there an external control signal?

To turn the music box on and off there is a on/off switch on the battery compartment

What kind of movement? Those sensors are ultrasonic distance sensors. You can pick up movement if the movement is towards or away from the sensor, but it can't detect movement perpendicular to that.

Ah, that's why it's not working. You have to connect the components together with wires. Electricity cannot flow from the battery through the components and back to the battery without wires. That's why it's called a circuit.

2 Likes

Hello PaulRB, Well I would like to pick up movement just like a PIR sensored security light, I did not know the parking sensor wont pick up side movement, I do have a PIR sensor to use if that would be a better result

I did wire up the parking sensor with 3xAA and had a red light come on the sensor circuit

What is moving that you want to detect?

PIR sensors detect warm objects like human and animal bodies. A moving object that is the same temperature as the background will be invisible.

Im trying to make a ghost hunting device that cost a ridiculous amount of money that Im sure I could make at the fraction of yhe cost, so it needs to pick up movement, shadow movement, any heat discrepancies

You do understand that ghosts don't actually exist, right?

If this is to be a ghost debunking device, it might have some value.

Well you will need to hack the music box, disconnect the switch and use a relay or simple MOSFET circuit to turn it on/off.
Have you decided which Arduino you will use?

Ghosts are a totally different conversation but yes, its for debunking as well as trying to understand the unexplainable

Hi jim-p, yes Ive all ready disconnected the music box, when you ask what Arduino, I am at a lose there as this is the first time I have looked into this, I can solder, and know a basic kevel of electricsso MOSFET is alien to me at this level lol

If you want something small I would use the Arduino Nano. An Uno would also work but it's a little bigger.
Also, don't use anything that requires 12V because you will need a 12V supply. Use a 5V LED or a plain LED with a current limiting resistor.

Thank you Jim, so the Arduino nano because I want it small, the music box is 3v, the the led are 12v I believe but they work on the 3v, does the music box get wired into the sensor or the nano?

To the Nano but through some kind of control circuit.
Will this thing be powered from batteries?
Do you want to keep the 2AA is the music box or use external batteries?

I was thinking of keeping the 2xAA as if I increase the volts the music box goes faster, I was thinking of putting a geared motor to turn the music box so I could increase the volts,but as it us now when you nention a control box I'm lost. Would that be a control box by Arduino?