Interactive Smart Textile Moth That Communicates With an HP Otto Robot
by W01kenbruch in Circuits > Microcontrollers
45 Views, 0 Favorites, 0 Comments
Interactive Smart Textile Moth That Communicates With an HP Otto Robot
I wanted to combine a long-planned plush sewing project by the designer Choly Knight with smart textiles and interactive electronics. The result is a soft moth plush that contains capacitive textile sensors, NeoPixel LEDs and a microcontroller.
When the moth is touched or shaken it lights up and plays sounds. It can also communicate wirelessly with an HP Otto robot via Bluetooth Low Energy. When triggered, the robot performs a short movement and sound sequence, and the moth reacts with lights and sounds.
Main features:
- Capacitive touch sensors integrated into the wings
- 4 NeoPixel LEDs attached to the wings
- Shake detection with sound playback (The Circuit Playground Bluefruit contains a built-in accelerometer for motion detection)
- Bluetooth communication with an HP Otto robot
Pattern Credit
The plush moth used in this project is based on sewing and embroidery patterns created by Choly Knight (Sew Desu Ne?). I am not the creator of these patterns.
For this project, I purchased the original patterns and modified the design to integrate electronics, sensors, and a battery pouch. The plush shown here is therefore a derivative work modified from the original pattern.
This tutorial only explains the electronic integration and the modifications I made. It does not include the original sewing pattern files, templates, or instructions. To recreate the plush you must purchase the original patterns from the designer.
This use follows the designer’s Terms of Use, which permit modifications of the design as long as the original creator is credited.
Original patterns by Choly Knight (Sew Desu Ne?):
Supplies
- Sewing and embroidery patterns listed above
- Sewing thread (non-conductive)
- Embroidery thread (non-conductive)
- Stainless steel conductive sewing thread
- RFID conductive fabric pieces
- Polyester filling
- Non-conductive fabrics as specified in the instructions (I used fleece and faux fur for the body and cotton for the wings and the battery pouch.)
- 2 pipe cleaners
- 14 Sew-on snap fasteners (5 mm)
- 1 snap fastener for riveting
- Iron-on volume fleece H250
- Tear-away stabilizer (for embroidery)
- Water-soluble film (for embroidery)
- Ink pad (contrasting color to the body)
- 4 NeoPixels
- LiPo battery (1100 mAh)
- Circuit Playground Bluefruit
- HP Otto Robot (with extensions and tracks, but can also be used with the basic version if the button is not needed)
- Sewing machine
- Embroidery machine
- Tailor scissors
- Thread scissors
- Fabric marking pens
- Sewing and embroidery needles
- USB-C data cable
- Micro-USB data cable
- Soldering iron
- Solder with flux
- Third hand tool
- Multimeter
Selecting Materials
Use a multimeter to test fabrics if necessary.
This helps prevent unwanted short circuits in the textile circuitry.
Print and Cut the Pattern
Print and cut the required pattern pieces, In my case, I used:
- Monarch Large Hindwing (O1)
- Monarch Large Forewing (N1)
- Standing pose (A–E)
- Wavy antennae (K1)
- Arms (L)
- Legs (E)
- Neck fluff (M)
Create the Battery Pouch Pattern
Create a small pouch consisting of a front and back panel to hold the LiPo battery (see photo). Make it slightly larger than your LiPo battery so it fits easily.
Cut the pattern pieces and prepare them for sewing.
Embroider the Eyes and Wing Appliques
Embroider the eyes and wing decorations according to the pattern instructions. I chose:
- Starry Eyes (E7) and
- Monarch Wings Applique (E30)
Apply conductive fabric patches to the back side of each wing. These will later function as capacitive touch sensors.
Sew the Plushy
Cut the fabric pieces and follow the sewing instructions from the pattern.
Attach the battery pouch to the front body piece (C) after step 14 of the pattern instructions. Use a snap fastener to close the pouch.
If the snap fastener is conductive, cover the back with non-conductive iron-on volume fleece to avoid short circuits.
I added pipe cleaners into the wavy antennae (K1) for stability before sewing them on.
To stabilize the wings, it is advisable to iron volume fleece onto the wrong side of the fabric before sewing. This is because no conductive armor is inserted.
I also used iron-on volume fleece to attach a circle the size of the Circuit Playground Bluefruit (at the height where the Circuit Playground Bluefruit will later be attached) to the wrong side of the body front (C) to reinforce this area (see picture).
Fill and Finish the Plushy
Stuff the moth with polyester filling according to the pattern instructions.
Don't forget to stuff the space between the belly and the battery pouch so the pouch can still be accessed but is not sewn into later.
Prepare the Circuit Playground Bluefruit
Solder 5 mm sew-on snap studs to all pads of the Circuit Playground Bluefruit. This makes the electronics removable and reusable.
Follow this guide by Becky Stern and Adafruit: Adafruit FLORA Snaps Tutorial
Test whether the sockets hold onto the studs without any problems.
Attach the Snap Connectors to the Plushy
Sew snap sockets to the fabric at the positions of the following pads:
- A1
- A3
- A4
- A5
- A6
- VOUT
- GND (next to TX)
Use the upper and lower holes of the socket and non-conductive sewing thread. To mark the points for sewing, the corresponding sockets, attached to their respective studs, can be dipped in an ink pad and then pressed onto the fabric. More sockets can also be sewn on if the PCB wobbles too much.
Sew the NeoPixels Onto the Wings
Attach four NeoPixels to the corresponding snap sockets using conductive thread, as shown in the picture.
- Connect GND first
- Then VOUT
- Finally the data line
The data line should connect to the snap socket at pad A6. Use a multimeter to check for short circuits.
Do not sew the threads too close together so that the electric fields do not interfere with each other. Be sure to use VOUT for the power supply, as 3.3V is not sufficient.
Sew on the Capacitive Touch Sensors
Sew with conductive thread from the applied conductive fabric patches on the wings to the corresponding snap button sockets:
- A1
- A3
- A4
- A5
Again, use the multimeter to rule out short circuits.
Install Firmware
Install the required firmware on both devices according to the instructions provided by HP Otto Robot and Adafruit:
- CircuitPython on the Circuit Playground Bluefruit
- MicroPython on the HP Otto robot
Upload the Project Code
Upload the source code to both devices and add two sound files. My moth meows when shaken and says “I love you” when communicating with Otto.
You can find the Python files on my GitHub Repository. The code.py needs to go onto the Circuit Playground Bluefruit and the main.py file onto Otto.
Final Assembly and Testing
Attach the LiPo battery to the Circuit Playground Bluefruit.
Then, attach the Circuit Playground Bluefruit to the corresponding snap sockets and insert the battery into the pouch.
Turn the power switch on and test the interactions:
- The external NeoPixels should light up in turquoise
- Touch the conductive wing appliques to change the internal LED colors of the Circuit Playground Bluefruit
- Shake the moth to trigger sound
- Press button A to trigger the HP Otto robot and the moth's reaction