• Models
  • Contests
  • Slicer
  • Login
  • Start Here
    thingiverse-iconprintables-iconcults3d-iconmakerworld-iconmyminifactory-icon

    3D GO

    3D ModelsContestsCollectionsSaved ModelsOn a mobile device?

3D GO

Privacy Policy
Light with ultrasonic sensor 3D Printer File Image 1
Light with ultrasonic sensor 3D Printer File Image 2
Light with ultrasonic sensor 3D Printer File Image 3
Light with ultrasonic sensor 3D Printer File Image 4
Light with ultrasonic sensor 3D Printer File Image 5
Light with ultrasonic sensor 3D Printer File Image 6
Light with ultrasonic sensor 3D Printer File Thumbnail 1
Light with ultrasonic sensor 3D Printer File Thumbnail 2
Light with ultrasonic sensor 3D Printer File Thumbnail 3
Light with ultrasonic sensor 3D Printer File Thumbnail 4
Light with ultrasonic sensor 3D Printer File Thumbnail 5
Light with ultrasonic sensor 3D Printer File Thumbnail 6

Light with ultrasonic sensor

akosboda avatarakosboda

August 16, 2023

thingiverse-icon
DescriptionCommentsTags

Description

Sensor using the HCSR04 ultrasonic module. The sensor will turn the light on in a specified area. The light source could be a LED strip (12V) or a 230V normal bulb.

The Arduino stores the average of 1000 distance samples. If the measured distance falls below 30% of the average, meaning somebody crosses the active area, it reacts and turns on the light. For instance, in a kitchen the sensor's distance is 3m from the reflecting wall, so the reference distance is 3m, the distance to trigger the light is approx. 0.9 meter, 30% of the 3 m. If a person comes to the table, which is near the sensor, this will activate the light above the table but if the person moves in the remaining 2.1m, nothing will happen.

If the light source is a LED strip, the output is PWM controlled and turns the light on and off gradually in a soft manner. Depending on the load, consider an external 12V supply.
The 230V bulb uses a relay.

Take good care of isolating the modules, if the thing uses mains voltage. Safer to use an external supply with 5.5mm plug / socket in case of a LED strip.

To drive the LED or the relay, any similar NMOS FET can be used.

License:

Creative Commons - Attribution

Related Models

Spotmicro - robot dog preview image

Spotmicro - robot dog

KDY0523 profile image

KDY0523

5,209

Hinged Case for Ultrasonic Sensor (HC-SR04) preview image

Hinged Case for Ultrasonic Sensor (HC-SR04)

zidnorclover profile image

zidnorclover

124

Vorpal The Hexapod Walking Robot preview image

Vorpal The Hexapod Walking Robot

vorpal profile image

vorpal

4,982

HD Radar – Live-Ultraschall-Scanner mit 1.8" TFT preview image

HD Radar – Live-Ultraschall-Scanner mit 1.8" TFT

HD Robotics Electronics profile image

HD Robotics Electronics

142

my arduino boxes preview image

my arduino boxes

Old-Steve profile image

Old-Steve

2,088

holder/mounting bracket ultrasonic sensor HC-SR04 preview image

holder/mounting bracket ultrasonic sensor HC-SR04

ZapLab profile image

ZapLab

102