Everyone surely remembers learning how to graph functions in math class. For many of you this may have been somewhat annoying and difficult to learn at first. You would sit a desk staring at graphing paper trying to figure out where to plot some points. Mistakes were definitely going to be made. Mistakes on graphing paper means using an eraser; being annoyed while using an eraser means pressing on the paper too hard. This leads to disaster and just like that, it is time to start over again.
I decided to create this project because I wanted to make a fun and interactive way for people to learn some basic math functions. The user can play with some cool electronics devices that fit in the hand just like a video game controller and could look at a screen that isn't on a low resolution graphing calculator.
Now let's get into the "user manual" for this project!
Your computer mouse will be used to select the options available in the MATLAB app that we built for this game. The slide switch, push button, slider and photo sensor on the Digital Sandbox will function as the controls for the game.
Slide Switch: Used to put on/off switch for the game
Pushbutton: Used to select and check points on the graph
Slider: Controls the X position of the user's cursor on the graph
Photo Sensor: Controls the Y position of the user's cursor on the graph
Playing the Game:
To begin, the MATLAB app will look like this:
To play the game, select a function from the list box on the left and then press the start button. Move the slide switch on the Digital Sandbox to the ON position and the unknown function will be displayed on the axes.
For each function, the game displays several key points in red on the graphing axes. To complete the game or move on to another graph, you need to select all of the key points shown on the screen. As you select points, the game connects the points that you pressed with a green line.
As you press locations on the graph, the game checks whether or not your selection is correct. If an incorrect point is selected, the text box displays a message telling you to try another point, the LED on the Digital Sandbox flashes red and the onscreen lamp turns red.
If a correct point is selected, the point on the graph changes from red to green, the text box on the right displays an encouraging message and the LED on the Digital Sandbox flashes green. Additionally, the onscreen lamp turns green and the green progress line is updated accordingly.
If the same correct point is pressed more than once, the game warns you that you already pressed that point and the on-screen lamp changes to yellow.
When you finish graphing a function, the title of the graphing axes changes to the name of the function that you are learning and the text box displays a congratulatory message stating the name of the function. If it is the last function that you selected, you are free to choose another game mode to learn more functions or to practice some more.
In the case that you select the 'all' option, you receive a bonus. The game will behave just as it did with the other modes however it will show you the Dancing Function Man to reward you for your efforts.
To download the project files and see a video of the game in action go to the following link: