Using two circuit boards, connected through copper pillars and pin headers, it can realize the functions of heating the hamster nest in winter, fan cooling in summer, lighting, bedding replacement reminder, and recording the number of running wheels, etc., providing a smart home for mice at home.
The hamster version of the smart home provides a more comfortable living environment for hamsters and a more convenient control method for the poop collector. With this device, you no longer have to worry about the life problems of rats and mice at home.
The main control chips of this project are atmega328p and wb3s, which are connected to the Tuya server and combined with the Tuya APP and various sensors and actuators to achieve:
LED lighting is provided for the poop scooper to facilitate observation of the rat's status and poop scooping.
If you don’t want to open the APP to check at home, this device also provides two 4-digit digital tubes and control buttons. The digital tube switches in turn to display real-time temperature, humidity, the number of laps of the running wheel and the number of days for litter replacement. The buttons can control the corresponding functions locally.
In order to complete this project, I also transformed into a new shit shoveler. This is the new member of my family - Tutu. After all, it was because of the activities of Tuya and Lichuang that she came to my house.
The main control chip uses atmega328p-au minimum system:
The networking module uses WB3S, which cooperates with the serial port level conversion circuit and MCU main control communication. Through this training camp, I discovered that there is such a convenient networking module. The bottom layer and server part are all written by Tuya’s official website. You don’t have to worry about it at all. You can just follow the instructions step by step. Tuya APP also provides public version and graphical creation. Anyone who uses the platform will know it. It has no threshold for beginners and is super convenient. I love it.
Both the fan and water pump are driven by RZ7899 and cooperate with PWM to achieve speed adjustment function.
Through two 4-digit digital tubes. It can cycle through to display real-time temperature, humidity, the number of laps of the running wheel, and the time since the last litter change. If the excavator is at home, he can control the corresponding functions directly through various buttons on the operation panel without opening the mobile APP.
Tuya's engineers can be said to be the most conscientious in the industry. They not only provide library transplants for various platforms, but also thoughtfully mark the areas that need attention and changes:
For a software novice, it can be said that there is no threshold to get started. There is no need to worry about not understanding the underlying library, because there is no need for complicated operations at all. Combining the routines and error reporting guidance on the official website, I successfully uploaded the data to the Tuya APP. Tuya's work order function is also great. If you have a problem, you can directly submit a work order. After a while, a Tuya engineer will solve it one-on-one remotely. He is very patient and likes it! The specific code can be obtained by visiting the github link at the bottom.
The production part is a series of smooth operations, such as drawing the schematic diagram, converting it to sorting out the position and wiring of the PCB, and finally presenting the finished picture of the control board.
Finally, attach all the parts to the hamster cage and secure it. Attached is a global picture and a detailed video below.
Controller photo
Hall sensor with running wheel
Because hamsters are nocturnal animals, they usually sleep during the day. Initially, I set the maximum value for the number of running laps to 9999 laps, because the running wheel records will be cleared at 12 noon every day, and for a hamster with a small body, it should be enough to record the amount of exercise for one night.
As a result, I woke up the next morning and opened the Tuya Smart APP. I was stunned. The APP displayed 9999, which was directly beyond the counting range. In the end, I had to change the counting unit to x10 and the upper limit to 99990 circles. Never underestimate little hamsters again. Attached pictures:
Attached is the video address (this is my first time cutting a video, I can’t bear to watch it, sorry): https://www.bilibili.com/video/BV1AZ4y1A7Fi/
Attached is the GITHUB address: https://github.com/baymax1500466550/hamster_smart_home
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