Headband With Servo Motor
Our CPX uses sensors to determine the level of light in the surrounding area. When it's dark outside, the lights turn on so the user can see where they are going. The CPX rotates to the left and right so the user can see not just what's ahead of them, but next to them as well. When it's light outside, only half of the light set turns on to save battery. When our CPX is turned on, it lets off a noise to alert the user it is turned on. Two fabric straps are sewn onto the CPX holder. The straps can then be tied behind the user's head and can be adjusted for different sizes.
Supplies
2 pieces of fabric
Battery holder
CPX
Servo Motor
Our own 3d printed servo motor attachment
Battery
Hot glue gun
3D printer
Sewing machine
3D Design Download
To download the 3D design, just download the STL file from your dashboard by clicking the model thumbnail. Just click Export, then choose the STL filetype. STL is the standard file for most printers and the one you will be choosing. Then you can import that STL into your printer's slicing application so the 3D printer understands how to print your design. Then select the downloaded STL file from your computer. Select the desired units, scale, and dimensions of the design. Lastly, click import. Our design needs to be printed on a 3D printer with supports.
Circuit Code
First we created a variable for the button and the motor. Then we told the Servo motor to move to the right when the on button is pressed. Then we told it to pause. Then move all the way to the left and pause. Then repeat.
Servo Motor Assembly
Using hot glue, the servo motor will be attached on its side to the battery holder's base. After that, wired clamps will be used to attach the servo's wires to the CPX.
Servo Motor Function
The servo motor will constantly rotate the CPX to the right and then to the left until it shuts off. Rather than turning your own head, allowing the Light to observe everything that is in front of it from all angles.
Final Assembly
The battery holder is the base of the components. The servo is attached to the battery holder on its side allowing the CPX holder and the CPX itself to rotate to the sides.