Quizbox - The Offline Internet Quiz

About the project

An offline internet quiz to find out what subreddit you are, who doesn't need that?

Items used in this project

Hardware components

Arduino UNO Wifi Rev.2 Arduino UNO Wifi Rev.2 x 1
Toggle Switch, Toggle Toggle Switch, Toggle x 3
Adafruit Arcade Button Red Adafruit Arcade Button Red x 1
Adafruit Mini Thermal Receipt Printer Adafruit Mini Thermal Receipt Printer x 1
5V power supply 5V power supply x 1
12V power supply 12V power supply x 1
Print paper Print paper x 1

Software apps and online services

Arduino IDE Arduino IDE

Hand tools and fabrication machines

Hot glue gun (generic) Hot glue gun (generic) x 1
Soldering iron (generic) Soldering iron (generic) x 1
3D Printer (generic) 3D Printer (generic) x 1

Story

Overview

Below a quick overview of the content.

  • Introduction and Showcase Video
  • Printing the Box
  • Adding some Electronics
  • Writing the Code
  • Making a Quiz
  • The Result

Introduction and Showcase Video

I've discovered internet quizzes, and they have changed my life. For instance, now I know that if I would be a dog, I would be a Golden Retriever, win! To show some love and gratitude for all this vital information, we're going to build our own internet quiz. However, this internet quiz will be special, it's going to be an offline internet quiz.

Printing a Box

First things first, we need a box to put everything in. To make sure it perfectly fits our needs, we're making one that's 3D printable.

This 3D printed box is made out of four parts.

The base plate is nothing more than a 4 mm thick square, with four tjoepies. These tjoepies will hold our corner pieces in place, and make sure everything is spaced out correctly.

Base Plate

Corner pieces, they're pillars with a grove on two sides. These groves will later on hold the walls in place. They also have two indents so they can click onto the tjoepies of the base plate and lid.

Base plate with corners

Base plate with corners

With the corners in place, we can slide in the walls, as pictured below. Tip: A colorful print makes the box really pop.

A wall being pushed in place

The lid is a bit more complex. It is almost identical to the bottom plate, but we've added some holes and indents. The holes are for three toggle switches, a big red button and provides space for the printer paper to come out. No worries, we will cover all of this later on.

Plain Lid

The indents will each hold a colorful block, see below. The idea is that the quiz will consist of three choices. A pick your color kind of thing.

Lid with colored blocks

All that is left to do is put on the lid, and our box is ready for the next steps.

Complete box

You can find all the 3D models inthe attachments.

Adding Some Electronics

Now we can move on to the electronics. As mentioned above we have space in the lid to neatly hold most of them. We'll start off with adding the three toggle switches, so people can make their choice. They come with handy rings, so tightening them is very easy

Three switches in a row

Next up is the big red button to submit the answers. This button also has a neat screw-on mechanisme.

Big red button

With all the components attached, we can now start wiring everything together.

A toggle switch with an plus and minus

Que the Arduino. Both the button and all three switches use the same ground, with a small breadboard in between. However they each have their own input pin.

Last but not least, we add a little thermal printer. There's great documentation about connecting and setting it up, right here.

Diagram

All electronics ready

With that the hardware is all done. Putting both the Arduino and the printer in the box and pulling through the printer paper completes the physical part of this build.

Everything in Place

Writing the Code

The code will have the following logic:

  • Check if the big red button is pressed
  • If pressed, read out the state of each toggle switch
  • and based on the combination of states, print the correct answer

We won't dive into the details too much, you can find the full code in attachment.

Making a Quiz

With all our parts ready, the last step is to come up with a catchy quiz. In this case we're going to define people as a subreddit, or simply put:

Which subreddit are you?

Some fiddling with the print layout and wording completes our offline internet quiz!

The Result

We have an internet test that works offline and can figure out which subreddit you are based on three color choices, woopwoop!

Result

Secret Bonus Part

For all of you reading to the end, here's a list of possible answers:

                 "                                "
                 "    --- r/oddlysatisfying ---   "
                 "                                "
                 "  Some people may call you odd, "
                 "   or even think you're fluky.  "
                 " Nonetheless, you bring your own"
                 "  unusual charm and joy to the  "
                 "         lives of many.         "
                 "                                "
                 "    --- 8 Bits and a Byte ---   "
                 "                                "
                 "                                "
                 "          --- r/DIY ---         "
                 "                                "
                 "   Independent and resourceful. "
                 "  You are able to bring to life "
                 "  even the most ambitious ideas."
                 "                                "
                 "    --- 8 Bits and a Byte ---   "
                 "                                "
                 "                                "
                 "          --- r/aww ---         "
                 "                                "
                 "Irresistible to almost everybody" 
                 " you are the true embodiment of "
                 "     all good in this world.    "
                 "                                "
                 "    --- 8 Bits and a Byte ---   "
                 "                                "
                 "                                "
                 "     --- r/todayilearned ---    "
                 "                                "
                 "  You have an insatiable thirst "
                 "         for knowledge.         "
                 "  This means you are capable of "
                 " providing an endless stream of "
                 "   fun fact and true oddities.  " 
                 "                                "
                 "    --- 8 Bits and a Byte ---   "
                 "                                "
                 "         --- r/funny ---        "
                 "                                "
                 "  Whenever there is fun you're  "
                 "          always near.          "
                 "Your sense of humor is unmatched"
                 "and brings comic relief to many." 
                 "                                "
                 "    --- 8 Bits and a Byte ---   "
                 "                                "
                 "                                "
                 "        --- r/gaming ---        "
                 "                                "
                 "        A true adventurer,      "
                 "you have traveled many different" 
                 "  worlds and have lived through "
                 "        countless stories.      "
                 "                                "
                 "    --- 8 Bits and a Byte ---   "
                 "                                "
                 "                                "
                 "      --- r/worldnews ---       "
                 "                                "
                 "   Always in the know-how and   "
                 "           up-to-date,          "
                 "  your unique ability makes you "
                 "the cornerstone of this society."
                 "                                "
                 "    --- 8 Bits and a Byte ---   "
                 "                                "
                 "                                "
                 "          --- r/art ---         "
                 "                                "
                 " With a distinctive personality "
                 "   and the skill set to match,  "
                 "  you have the power to create  "
                 "       beauty and to speak      "
                 "         without talking.       "
                 "                                "
                 "    --- 8 Bits and a Byte ---   "
                 "                                "

Superduper secret part

You can do the quiz online as well, right here.

Schematics, diagrams and documents

Schematic

CAD, enclosures and custom parts

Lid

Go to download

Corner

Go to download

Choice Block

Go to download

Wall

Go to download

Name Plate

Go to download

Wall with Hole

Go to download

Base Plate

Go to download

Code

Code

Credits

Photo of 8BitsAndAByte

8BitsAndAByte

We’re Dane & Nicole, two makers that create tremendously terrible tech, which we happily share with you on our channel! https://www.youtube.com/c/8bitsandabyte

   

Leave your feedback...