I'm new to Arduino, electronics, and this forum.
I have made up a little project that connects an HC-SR04 ultrasonic range detector, and displays the distance on a 4 digit, 7 segment LED display.
When I have it plugged into my laptop for power, it runs beautifully on an Uno board.
But I want to mount all this in a Nerf gun (Nerf N-Strike Elite Firestrike) using a Nano board.
The Nerf gun has a built in "laser" (red light) that is powered by 2 x AAA batteries, which makes 3 V, I think. I want to rig this up so that pulling the laser/light trigger also triggers the range detector and display.
I want to run the range sensor and the display off the Nerf guns batteries, but they both use 5 V. Is there a way to do this? Or do I need a separate 5 V power supply?