The Yes/No Button From Bluey!
by Mastering Me in Circuits > Arduino
2942 Views, 7 Favorites, 0 Comments
The Yes/No Button From Bluey!

We are huge fans of Bluey in our house! We enjoy watching the show for the stories, wholesome family interactions, and the silly games! One of our favorite episodes is Dance Mode! As you know, one of the iconic toys in the show is the Yes/No button which says "Yes" when the green button is pressed and "No" when the red button is pressed . In this Instructable, I am going to teach you how to make a Yes/No Button with simple parts and a few lines of code! This is a great project for anyone wanting to get some basic hands on experience with Arduino, electronics, and 3D printing! Are you ready to get started? YES.
Supplies

For this project you will need:
- 3D printer
- Yellow, Green, and Red 3D printer Filament OR Acrylic/Spray Paints in those colors
- Wire
- Wire Cutters or Pliers
- Soldering Iron with Solder
- SS12D10 Slide Switch
- 3x7 cm PCB Board x2
- 3.7 V LiPo Battery
- 4056 USB-C Charging Module
- DFPlayer Mini MP3 Module
- Large Momentary Push Buttons x2
- 1 GB SD Card
- Arduino Nano
- 0.25W 8Ohm Speaker
- M2 x 30mm Socket Head Screws x4
- Hot glue gun
- M2 Threaded Inserts
Disclosure: I may earn a small commission on items ordered from this list. Thank you.
Design, 3D Printing, Painting



I tried to keep the design as close to the original as possible while still keeping it functional. Depending on what kind of 3D printing capabilities you have, you may not be able to print in multiple colors. However, if you happen to have yellow, red, and green then you should be ok to just 3D print all these parts as-is. Otherwise, a little paint might be involved. For me, I happened to have some green filament but opted to purchase some yellow spray paint for the case. Do whatever works best for you and what you have. You will need to print Qty 1 of everything with the exception of the M2 spacers which are Qty 8. Now let's take a look at the preparation to get sound to our project.
Prepare SD Card and Upload Audio Files




My hope for this project is you can look to this Instructable as a cheat sheet for adding sound to your projects. I think there is a lot of conflicting information on the internet on how to do it but I have found the following method to be fairly straight forward. I will keep it as clear as I can.
Step 1: Download the following SD card formatter found at this website. There are some sketchy ones out there but this one appears to be harmless and widely used as far as I can tell.
Step 2: Insert the 1GB SD Card into your computer and format the SD Card Using by selecting the following settings and clicking 'Format'. Your SD card should now be easily read by the DFPlayer Mini Module.
Step 3: Download the provided Audio Files and Upload to the 1 GB SD Card.The DFPlayer Mini Module also like files named a certain way and in a certain structure on the card. In the SD card, create a new folder named 01. In the folder, rename the two audio files 001 and 002. You can try naming them something else but I have had mixed results in the past. This method is more straightforward for the module.
Step 4: Insert SD Card into the DFPlayer Mini Module. Careful to insert it in the correct direction so you don't damage the pins.
You are now ready to wire everything together.
Arduino Code




First, plug in your Arduino nano to your computer. Select the nano from the serial monitor and select the appropriate COM. In my case, it says COM7 but yours might be slightly different. Download the DFPlayerMini Library by going to Tools > Manage Libraries > Type "dfplayermini" > Install. (Mine says remove because I already have it installed).
Now download the following code and then upload it to your Arduino Nano. Once you click "Upload" There should be a message saying that the upload was successful. If you get an error, check that all your connections are correct and that you did in fact select the right board/COM.
Now that the code is uploaded, you should be ready to start wiring.
Downloads
Circuit Diagram and Soldering Electrical Connections


Prior to any soldering, I would build the circuit on a breadboard first. This will help you quickly troubleshoot any issues a lot quicker. Once you have confirmed that the circuit is working and you get a clear "Yes" and "No" sound when the buttons are pressed, you can now solder all of those connections together. However, keep in mind how these components will be inserted into the button so you can account for how much wire you need, etc.
I found that this whole process is made easier by utilizing PCB proto boards that allow for the easy connection of electrical components.
Step 1: Solder the DFPlayer Mini and the Arduino Nano to the PCB protoboard. Be careful that you don't accidentally connect adjacent pins when soldering. Be sure to center the two components on the board so you can access the holes on both sides.
Step 2: Solder the two momentary buttons in the location shown This is very important so the two momentary buttons line up to the yes no buttons.
Step 3: Wire the positive and negative terminals of the battery to the B+ and B- respectively.
Step 4: Wire the OUT - and the OUT + of the 4056 USB-C module to Ground and Vin of the Arduino Nano Respectively.
Step 5: Wire Vin of the Arduino to one outer leg of the Slide switch and the center leg of the slide switch to Ground
Step 6:
Assembly





Each step of the assembly will follow the numbers on the picture provided. Again, it is worth mentioning that this assembly should only be done once everything is soldered and tested.
Step 0: Using a soldering iron, insert the M2 threaded inserts into the four holes in the top half of the button case. Be careful to insert them in as straight as possible. If they wander off center then final assembly (Step 9) will be basically impossible!
Step 1: Insert buttons into the top half of the button case. Make sure that the red "N" button is on the bottom part where the keychain goes and the green "Y" button is in the other hole. There are little locating arms that the buttons slide into that prevent rotation left to right. I found it helpful to tape the buttons to the top half of the case with a little painters tape. This helped prevent buttons from falling out of the holes during the assembly.
Step 2: Insert the sliding switch, the battery, the 4056 usb-c module, and the speaker into the bottom half of the case. I secured these parts down with hot glue. Also make sure in this step that the 4056 usb-c module is located straight on with the slot on the side of the button case.
Step 3: Insert the M2 x 30mm Socket Head Screws into the holes on the backside of the bottom half of the case.
Step 4: Insert the 4 plastic spacers over the 4 screws and into the 4 designated hole locations in the bottom half of the case. They should freely slip into place.
Step 5: Place the proto board with the Arduino Nano and the DFPlayer Mini onto the screws as well. You may need to drill out the holes in the corner slightly if they are a bit snug.
Step 6: Insert the next 4 plastic spacers over the screws. This will create separation between the two PCB proto boards.
Step 7: Place the proto board with the two buttons onto the screws. Again, drilling out the holes may be required.
Step 8: Glue the washer into place with hot glue. This isn't for any real structure but rather a way to hold the washer into place while assembling the button.
Step 9. Gently press the two halves together and screw the four M2 x 30mm Screws into the top half of the button case.
Step 10: Trim the chain to size with some pliers and bend the chain onto the washer. The ring should be hanging down a the bottom.
You are officially done with the assembly of the Yes/No Button! If assembled correctly, your button should be working once the buttons are pressed. Congratulations!
Downloads
Time to Play!



Now that you have completed the assembly it is time to play with your new Yes/No Button! Be sure to ask each other life's most pressing questions like you see in this video and use the Yes/No Button to answer them! Thank you for checking out this Instructable. I hope you enjoyed this build. Have a great day!