This post ends with S1562315150 Yu 2023-1-16 15:06 edit
1Background
I have experienced many unforgettable things in the past year, including some sad and oppressive moments. So we need to do some psychological construction for ourselves, clean up a bit, in order to make room for happy things in the future. The Lunar Year of the Rabbit is coming soon, let's make a rabbit lamp!
2Functional requirements
The requirements for rabbit lamps include:
2.1 Visually, it should be themed around rabbits to highlight the characteristics of the festival, but it can provide participants with a certain degree of personalized expansion space
2.2 Combine hardware to implement simple interactive functions, and try to be compatible with the actual situations of participants at different levels (with or without boards)
2.3 It can be a tabletop decoration, a cultural and creative toy, or a lantern, so that it can also be used during the Yuanxiao (Filled round balls made of glutinous rice-flour for Lantern Festival) Festival (to save money for mother).
3Structural Design
The structural design of the work is of course completed using laser cutting of wooden boards. The traditional lantern is shaped like a cube, and the design of the rabbit lantern can consider using two wooden boards in the shape of rabbits, connected by a partition in the middle. The hollow area can accommodate the main control board, sensors, or battery compartment.
in useLaserMakerBefore designing laser cutting, we need to first complete the design of the rabbit outline. For beginners, we can first find their favorite pictures online that contain rabbits, such as:
Because the images found usually contain other background elements, we can use Meitu Xiuxiu software to perform a "peel off" operation on them.
After completing the cutout, crop and save to obtain a rabbit image without background. Please note that the save format should be selectedPNGFormat.
Because we need the outline of a rabbit, I have used it herelightburnThe "tracking image" function of the software can obtain the outer contour shape of the graph by adjusting the threshold. Please note to export it asdxfFormat file.
 
openLaserMakerSoftware that outlines the rabbit's silhouetteDXFAfter importing the file and setting it to an appropriate size, participating students can add personalized pattern shapes according to their preferences.
Here is a design example for reference:
Because I have a small turtle shell and a control board in my hands, I mainly considered these two types of user needs when designing. At the same time, in order to increase compatibility, breakpoints were used for the control plate holes in the drawings. Students who do not have a control board can do not remove the wooden board here and use a marker to beautify it.

4Hardware List
You can choose from the following hardware options for matching according to your own situation.
a.Small turtle shell * 1
b.Control board * 1
cLamp strip * 1
d、3VButton battery light strip(10Lamp) * 1

5Write programs
5.1 Control board
A scene has been set up here: during the Chinese New Year, people often visit their homes to pay their respects. When the doorbell rings and the door opens, the sound is loud, sounding an "alarm" for relatives to come. When you sit down and start chatting about daily life, the sound is usually small. At this time, remind relatives and friends to bring red envelopes appropriately. When people leave, the ambient sound is much quieter, and you can't help but count your red envelopes happily.
Combined with the sound detection module of the control board, usemind+Software that can write similar programs:
5.2 Small turtle shell
The small turtle shell can be programmed online using web pages orAppThe way of programming on mobile phones. We use web programming here, and more detailed operations can be found in the online documentation.
First visitwww.guidan.com,choicepythonProgramming menu
After entering the programming page, the following is an example of a running light
#Define Color List
colorLst = [0xff0000,0x00ff00,0x0000ff,0x00ffff,0xffff00,0xff00ff]
while 1:
for j in colorLst: #Traverse the color list
for i in range(10):
car.ws2812.write(a1,[j]*i) # Set current color from1to10lamp Light up one by one
sleep(0.1) #time interval 0.1second
sleep(0.2)
[austglcmp=1,600,500,0 extcredit=0]http%3A%2F%2Fvideo.laserblock.cn%2Fqiniu_e5e3550ee54ce7e4716c20ba17ca9a6e.mp4[/austglcmp]
5.3 Non programming approach
If there is no hardware, it doesn't matter. You can use light strips with button batteries to increase the beauty of the work, or you can use coloring to make the work look better.
 
6 Summary
This simple rabbit lamp is ready. Finally, add some chicken essence for seasoning.
The thoughts that creation brings to people(kuai)examine( le) Yes, even the most mundane life, as long as we are willing to create, there will always be our own color.
Wishing everyone a happy New Year!
|