
Awesome! Awesome! Awesome! This simple and cool tutorial has become a hit in the community!
Whether you are a cat owner, dog owner, or a parent,
you can try your hand at it,
and equip your baby with a new wearable gadget,
to walk the cat, walk the dog, or take the kid out (oops… slip of the tongue…)
It will definitely turn heads when you take it out!
The master’s sewing skills have also gained admiration from many netizens!
Netizens exclaimed: The master’s sewing skills are impressive, could he be the legendary master of the sunflower secret manual, the invincible in the east~~
Nowadays, wearables have become a hot topic. Can we also create a simple and cool wearable for pets using Arduino open-source hardware?
The answer is obviously yes.
When your pet wears this device, it will surely catch the eyes of its peers.
1. When the pet walks, the lights on the jacket light up with its movements. (Hope dog walkers enjoy the moment of showing off at night.)
2. Bluetooth wireless pairing with a mobile phone to control the jacket’s lights for colorful effects, quickly locating the pet.
3. Bluetooth remote control from the mobile phone, with a built-in MP3 module that can play the owner’s voice or soothing music for the pet.
Of course, it’s also allowed for cats to emit dog sounds and dogs to act like cats.
Here’s a preview video:
~~~~~~The next video update requires the master to catch a cat.~~
Music for Pets Psychologists Charles Snowdon and Megan Savage from the University of Wisconsin wrote in their research: We propose a theoretical framework, hypothesizing that music only works for animals within the frequency range and rhythm used in their natural communication. Musician David Teie and Snowdon have been collaborating on species-specific music research for nearly ten years. Snowdon and colleagues suggest that music suitable for cats may have rhythms and tones similar to the purring sounds of kittens suckling their mothers. Researchers found that when cats listened to music specially designed for them (like “Cosmo’s Air”, which has a vibration frequency of 1380 times per minute, with 44% containing glissando), they showed great interest, purring in approval, turning their heads towards the sound source, and rubbing and sniffing the speaker. The researchers concluded that “the results reflect how to enrich the auditory experience of non-human beings with more suitable music.”
Source Address: http://www.eurekalert.org/multimedia/pub/88065.php
Thus, we can load this pet-friendly audio onto the wearable jacket, allowing interaction with music that pets can understand when needed.
Hardware List:
1. Bluno Beetle Controller X1 2. Colorful RGB LED Strip X1 3. LilyPad LED Light X1 4. 3.7V Battery X1 5. DFPlayer Mini MP3 Module X1 6. Small Speaker X1All these components can be purchased from the DFRobot official website. Program Logic Flowchart
Note: This device is mainly controlled wirelessly via Bluetooth using the GoBLE App launched by DFRobot, selecting the device mode using the START and SELECT buttons. In normal mode, the controller’s interrupt is enabled to detect the cat’s movements, triggering the light strip effects. In audio mode, the interrupt program needs to be turned off to ensure audio playback and better control of other light strip effects. Button Distribution Diagram
|
Wiring Diagram
Steps to Make Step1 Buy a pet jacket according to your pet’s size
Step2 Remove the pins from the components
Step3 Pre-set the approximate positions of the components
Step4 Sew the vibration sensor onto the shoulder using needle and thread (don’t ask me why I’m good at sewing~)
Step5 Sew the speaker
Step6 Solder the LED strip
Step7 Sew the LED strip, mode indicator LED, and switch module next to the pocket
Step8 Merge the positive terminals of all external devices’ power supply, seal with heat shrink tubing to simplify the wiring.
Step9 Similarly, add a 330-ohm resistor to the I2C port of the MP3 module, sealing with heat shrink tubing.
Step10 Solder the power connector.
Step11 Solder each component to the Bluno Beetle control board, completing the circuit connection. Hide some devices in the pocket.
Program Analysis
1. How to use Software Serial
Since the Bluno series controllers occupy (D0, D1 Pin) during Bluetooth communication, and the controller also uses (D0, D1 Pin) during USB serial debugging and program downloading.
You will find that if the device has already been paired via Bluetooth, an error will occur when downloading the program using the Arduino IDE, resulting in a failed download.
Therefore, we need to pay attention to two points:
a. When downloading the program with the Bluno series controller, disconnect the external device bound to the controller.
b. In scenarios where the GoBLE APP needs to communicate with the controller in real-time via Bluetooth, if a device needs to communicate with the controller via serial, it is recommended to use Software Serial instead of Hardware Serial (D0, D1).
To use virtual serial communication, you need to declare a Software Serial library at the beginning of the program:
#include <SoftwareSerial.h> // The Software Serial library is a standard library from Arduino, so no import is needed
Declare a Software Serial object, in this example we use digital pins D4 and D5 as RX and TX for serial communication SoftwareSerial mySerial(4, 5); // RX, TX where mySerial is the name you define for the Software Serial
Set the baud rate for the Software Serial
mySerial.begin (9600);
2, How to change the Bluetooth device name
For easier searching, we can use AT commands to give the wearable jacket a unique Bluetooth device name such as “DFCcat_Suit”
1. Open Arduino IDE
2. In the menu -> Tools -> Serial Port, select the correct device
3. Open the Serial Monitor (click the button in the upper right corner of the window)
4. In the two drop-down menus, select “No line ending” (①) and 115200 baud (②)
5. In the input box (③), enter “+++” and click the send button (④)
6. If you receive “Enter AT Mode” (⑤), it means you have entered AT command mode.
7. In the two drop-down menus, select “Both NL & CR” (①) and 115200 baud (②)
8. In the input box, enter the AT command: AT+NAME= DFCat-Suit and click the send button (④)
9. If the BLE configuration is successful, the interface will return “OK” (⑤)
Finally, a friendly reminder: besides needle and thread, fabric, the core wearable open-source hardware can be purchased at the DFRobot store~
For cooperation and reprinting, please contact the crazy Jun WeChat: lianlianyigui
Enter the public account:
Reply 1 to enter 【DF Chinese Mall】;
Reply 2 to view 【Original Maker Fun Articles】 (continuously updated)
Reply 3 to view 【Original Open Source Tutorials】 (continuously updated)
Click to read:
【Awesome Project】DF Maker Community 2015 Annual Editor’s Choice Award!
Remember the 7 robots, and the girl will easily follow you! – The coolest battle robots in the Star Wars guide!
【Play with Open Source】Must-read for Makers! The sincere work of the makers at the beginning of the year!
Invites you to share the joy of creation together!
Playing your project alone,
you are just a tech nerd;
When a group of people watch you play the project!
you are a tech genius!
Come share your project:
www.dfrobot.com.cn