Procedure of Making
Step 1 Buy your cat a stylish jacket such as this:
Step 2 Pre-set the general location of the unit
Step 3 Sew the shock sensor onto the shoulders
Step 4 Sew the speaker on to the jacket
Step5: Sew the speaker
Step 6: Solder the light strip
Step7: Sew the light strip, the mode instruction LED light and the switch module beside the pocket
Step 8 Solder the positive lines together and use heat-shrink to insulate the connections.
Step 9 Wire in 330 ohm resistors on each I2C line of the MP3 module, using heat shrink to insulate the connections.
Step 10 Solder all the electronic connections
Step 11 Solder other separate units and the Bluno Beetle board to finish the electronic connections. Hide any circuits away in the jacket pocket.
How to use Software Serial Ports
The Bluno series controller has to occupy pins D0 and D1 during Bluetooth communication. It also uses D0 and D1 pins when the USB serial port is in use and a program is uploading.
If your device is already paired via Bluetooth, you will need to unbind the connection before you can upload code to the controller.
When using the GoBLE APP to communicate with the controller in real time via Bluetooth, it is suggested to use software serial-port rather than hardware serial-port (D0, D1) if there is any device needs to have serial port communication with the controller.
Use the virtual serial port in communication; you need to declare a software serial-port bank before the program.
#include <SoftwareSerial.h> // software serial-port bank is the standard pool of the official Arduino, so there is no need to import this bank.
In this example, in order to declare an object of the software serial-port, we use pins D4, D5 as the RX and TX terminal respectively.
SoftwareSerialmySerial(4, 5); // RX, TX Among which mySerial is the name of the software serial port you defined
Set up the baud rate of the software serial port
How to Change the Bluetooth Device Name
For search convenience purpose, we can give a special name such as “ＤＦＣａｔ＿Ｓｕｉｔ”for our Bluetooth device to the wearable device through the AT instruction.
We can change the generic Bluetooth device name to something more specific for our purposes. This will avoid any confusion if there are lots of different Bluetooth devices in close range. To change the Bluetooth device name, we will need to use some AT commands.
1. Open Arduino IDE
2. Select Menu > Tools > Serial Port and select the appropriate device
3. Open the serial port monitor (click the button on the top right corner of the window)
4. Select No line ending (①) and 115200 baud（②）from the two drop-down menus
5. Type in +++ in the input box （③）and click send （④）
6.If you receive Enter AT Mode (⑤), it means you have entered into AT instruction mode and can now issue AT commands.
7. Select “Both NL & CR”(①)and 115200 baud（②）from the two drop-down menus
8. Type in AT instructions in the （）input box: AT+NAME= DFCat-Suit and click SEND（④）
9. If BLE can be successfully applied, the interface will return back to “OK”（⑤）
Now, the simple pet wearable device is done! Of course you could make a similar one for your dog!