The creativity of the work comes from the work of foreign netizen makeTVee, project address: https://hackaday.io/project/186402-ws2812b-neopixel-earring
The biggest difference in the reset here is that the original parts of the original project have been greatly simplified. The original author said that the ws2812b 2020 lamp beads cannot light up blue when the voltage is lower than 3.6v. I actually measured that the 2020 lamp beads I bought did not have this problem. The original work There is no need for the boost circuit. In the end, it is basically minimalist, with one MCU, one switch, one button, one battery, and 16 lamp beads. There are two capacitor positions left on the circuit, and there was no problem without soldering in the actual test.
In the end, minimalism has come to an end and can no longer be reduced.
The MCU uses the simplest and cheapest ATTiny13A-ssu. In order to reduce the difficulty of welding, the PCB is larger than the original one so that the MCU can be directly attached to the PCB. The 2032 battery holder is also used to reduce the difficulty of production.
The most troublesome part is welding a circle of lamp beads, so I used 3D printing to make a mold. The welding needs to be done quickly, otherwise the mold will be burned.
The code is developed using Arduino. You need to install the atting13A development board extension first. Add it to the Preferences-Accessories development board extension: https://mcudude.github.io/MicroCore/package_MCUdude_MicroCore_index.json
Then search for atting13 in the development board manager and install it.
You need to use the Arduino ISP tool to burn the program, and use UNO or nano to make the burner. The specific method can be found on Baidu, it is very simple.
For the SPI download port, I use a spring frame burning fixture with a pitch of 1.27mm and 6p. This is more convenient. Of course, you can also use a method, as long as the 6 lines used for SPI programming can be connected to the writer.
The flash of attiny13A only needs 1k, and every byte must be carefully calculated. The code is borrowed from a Russian brother, and it is very easy to use.
Please note that the 2032 battery holder is installed backwards and directly embedded into the opening in the middle of the PCB!
Select BOD:disable when burning
The project is very simple, but the finished product is fun and cool.
It's released just in time for the Chinese Valentine's Day. I saw how many Tiehanhan would give this thing to their girlfriends. Leave a message to sign up. If you are beaten, you must remember to come back and say it! Hahahahaha
ws2812b 2020 lamp bead address: https://item.taobao.com/item.htm?spm=a1z09.2.0.0.67002e8dp5kRko&id=635162819740&_u=22oqo1kf8782
attiny13A-ssu small size address: https://item.taobao.com/item.htm?spm=a1z09.2.0.0.67002e8dp5kRko&id=571335562536&_u=22oqo1kfdcae
MSK12C01 toggle switch: https://item.taobao.com/item.htm?spm=a1z09.2.0.0.67002e8dp5kRko&id=610672773158&_u=22oqo1kf66a7
2032 battery holder: https://detail.tmall.com/item.htm?id=14591684757&spm=a1z09.2.0.0.67002e8dp5kRko&_u=22oqo1kfa329
Tact switch 3*4*2.0MM: https://item.taobao.com/item.htm?spm=a1z09.2.0.0.ee112e8d51ME88&id=564930809858&_u=22oqo1kf26d2
Source code and 3D printed welding mold are in the attachment
All reference designs on this site are sourced from major semiconductor manufacturers or collected online for learning and research. The copyright belongs to the semiconductor manufacturer or the original author. If you believe that the reference design of this site infringes upon your relevant rights and interests, please send us a rights notice. As a neutral platform service provider, we will take measures to delete the relevant content in accordance with relevant laws after receiving the relevant notice from the rights holder. Please send relevant notifications to email: bbs_service@eeworld.com.cn.
It is your responsibility to test the circuit yourself and determine its suitability for you. EEWorld will not be liable for direct, indirect, special, incidental, consequential or punitive damages arising from any cause or anything connected to any reference design used.
Supported by EEWorld Datasheet