instructables Electronic Wooden Fish Owner’s Manual
- June 9, 2024
- instructables
Table of Contents
instructables Electronic Wooden Fish
INTRODUCTION
Wooden fish is often used in rituals usually involving the recitation of sutras, or Buddhist texts. Merit-making is important to Buddhist practice, and it is a beneficial and protective force that accumulates as a result of good deeds, acts, or thoughts. People can earn merit by beating the wooden fish. This project is a fish-shaped electronic “wooden fish” made of acrylic panels. It needs a seven-segment display, and an Adafruit Audio FX Sound Board connected up to the Feather Huzzah ESP8266 wifi board. The Adafruit Huzzah board will also be connected to IFTTT via Adafruit IO. The top of the wooden fish will display my merit count. The number of beats and the sound of the beating are controlled by my phone. I can remotely beat the electronic “wooden fish” whenever I realize I have done something wrong, such as evading fares.
Supplies:
For this project, you will need the following materials:
- Adafruit Feather HUZZAH with ESP8266 WiFi
- 4-digit 7-segment display with i2c backpack
- 2xHalf Sized Premium Breadboard and breadboard wires
- Micro USB cable
- 12″ x 12″ Gray Acrylic Sheet
- Lithium Polymer Battery 3.7V and the following tools:
- Soldering iron and solder
- Flush diagonal cutters
Download & Cut Files
You need a 12″ x 12″ Gray Acrylic Sheet and the following wooden fish illustrator file which is ready to be sent to a laser cutter.
- https://www.instructables.com/F21/53PR/LBC8F3OP/F2153PRLBC8F3OP.ai
- https://www.instructables.com/F8T/VLXU/LBC8F46D/F8TVLXULBC8F46D.mp4
Creating the Applet
Next, you will set up the adafruit and button widgets on ifttt to enable the data we send to be triggered. First you need to register your account on adafruit io and ifttt to create the applet. Follow the links to set up your Feather Huzzah ESP8266 wifi board:
- Review Adafruit Huzzah Board setup
- Setup IO account
- Add IO Package to Arduino
- Create a feed called ‘Merit’ in your IO
By using IFTTT, we will connect the Button widget, Adafruit IO, and your phone to record the merit count.
- Create new applet
- Click on +this
- Select Button widget
- Select ‘Button press’
- Select “Merit” for feed name
- Enter a number in Date field
- Click on Create action
- Click on Continue
- Name your Applet and finish
Sensors send notifications to Adafruit IO’s “Merit” feed when they are triggered. It would then connect to your phone via IFTTT and send data to your wifi board.
Writing the Code
This section describes the code on the hardware that counts the number of
button clicks with the control sound and communicates with the server. The
code we are intending to use is based on Adafruit’s ESP8266 sample code. It
has been tweaked according to this project.
Before uploading the code to your board, you need to replace the text in the
code containing your Wifi info and Adafruit IO info:
Wifi network name
Wifi network Password
io.adafruit username
io.adafruit key (this can be found on your io.adafruit dashboard)
- Check if all the libraries have been added -ESP8266WiFi, AdafruitIO, Adafruit_MQTT, ArduinoHttpClient.
- Try testing if your LED works by using 7 segment.
- Upload the adafruitio_woodenfish code to your board.
https://www.instructables.com/FR5/09TU/LBC8F3V4/FR509TULBC8F3V4.ino
https://www.instructables.com/FGD/TN8E/LBC8F3V5/FGDTN8ELBC8F3V5.h
https://www.instructables.com/F99/0G3M/LBC8F3V6/F990G3MLBC8F3V6.ino
Solder Circuit
Circuit Diagram
Put It All Together!
Stick the circuit on the back of the electronic “wooden fish”. Plug in and gain your merit!
https://www.instructables.com/FCP/P92T/LBC8F403/FCPP92TLBC8F403.mov
References
- Amazon.com: Hakko-CHP-170 Micro Cutter - Red : Home & Kitchen
- Yours for the making - Instructables
- Electronic "Wooden Fish" : 5 Steps - Instructables
- Ryang18's Profile - Instructables
- fish
- content.instructables.com/F99/0G3M/LBC8F3V6/F990G3MLBC8F3V6.ino
- content.instructables.com/FCP/P92T/LBC8F403/FCPP92TLBC8F403.mov
- content.instructables.com/FGD/TN8E/LBC8F3V5/FGDTN8ELBC8F3V5.h
- content.instructables.com/FR5/09TU/LBC8F3V4/FR509TULBC8F3V4.ino
- IO - Adafruit
- Overview | Adafruit Feather HUZZAH ESP8266 | Adafruit Learning System
- Wooden Fish on Vimeo
- Adafruit 0.56 4-Digit 7-Segment Display w/I2C Backpack - White [STEMMA QT / qwiic] : ID 1002 : $10.95 : Adafruit Industries, Unique & fun DIY electronics and kits
- Mini Solder spool - 60/40 lead rosin-core solder 0.031 diameter [100g] : ID 145 : $14.95 : Adafruit Industries, Unique & fun DIY electronics and kits
- Half Sized Premium Breadboard - 400 Tie Points : ID 64 : $4.95 : Adafruit Industries, Unique & fun DIY electronics and kits
- Adjustable 30W 110V soldering iron [XY-258 110V] : ID 180 : $22.00 : Adafruit Industries, Unique & fun DIY electronics and kits
- Adafruit Feather HUZZAH with ESP8266 - Loose Headers : ID 2821 : $14.95 : Adafruit Industries, Unique & fun DIY electronics and kits
- USB cable - USB A to Micro-B [3 foot long] : ID 592 : $2.95 : Adafruit Industries, Unique & fun DIY electronics and kits
- Amazon.com: Rock Hard Plastics - 12" x 12" Gray (Silver) Acrylic Sheet Lucite Plexiglass (Actual Size 11.875" x 11.875" - .118" (1/8"), Gray) : Industrial & Scientific
- Installing Libraries | Arduino Documentation
Read User Manual Online (PDF format)
Read User Manual Online (PDF format) >>