• 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 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

Boda avatarBoda

August 17, 2023

printables-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.

Category: Electronics

License:

Creative Commons — Attribution

Related Models

Thor Mjolnir Hammer Bic Pen preview image

Thor Mjolnir Hammer Bic Pen

effektz profile image

effektz

9,085

Diverse Schilder / various labels  for hobby & makers preview image

Diverse Schilder / various labels for hobby & makers

RPK profile image

RPK

2

Customizable EU License Plate Keychain preview image

Customizable EU License Plate Keychain

John_M profile image

John_M

32

Vorpal The Hexapod Walking Robot preview image

Vorpal The Hexapod Walking Robot

vorpal profile image

vorpal

4,982

MakerZ – Open Source 1/28 RC Drift Chassis by Fails & Makes | Açık Kaynak 1/28 RC Drift Şasisi preview image

MakerZ – Open Source 1/28 RC Drift Chassis by Fails & Makes | Açık Kaynak 1/28 RC Drift Şasisi

Fails&Makes profile image

Fails&Makes

Cacciavite Portachiavi - Scewdriver keychain preview image

Cacciavite Portachiavi - Scewdriver keychain

Butti Maker Studio profile image

Butti Maker Studio

23

Snap-Together Mini Minecraft Jack-O-Lantern with integrated LED preview image

Snap-Together Mini Minecraft Jack-O-Lantern with integrated LED

scottrlindsey profile image

scottrlindsey

4,448

Small Parts Storage Drawers - Organizer preview image

Small Parts Storage Drawers - Organizer

GT 3D Makers profile image

GT 3D Makers

29

8