Overview:
This project uses the Circuit Playground Express (CPX) to create a multiple choice clicker, specifically designed with five multiple choice options to accommodate for the AP Calculus Exam, though it can be used in any classroom and adjust for as many multiple choice options as necessary. Using Makecode for Adafruit, the CPX can be coded so when a specific button is pressed the circuit will light up a certain color, indicating the different choices.
Grade Level and Content Area:
Secondary Mathematics (9-12)
Calculus
Learning Objectives:
Students will be able to develop a code for the CPX that changes the LEDs when certain buttons are pressed.
Students will be able to use the CPX to indicate which of the multiple choice options they have determined to be correct.
How to Connect CPX to Computer:
Click on New Projects
Plug in the CPX via USB to computer
Click on the gear icon in the upper right corner
Click pair device
Choose the device you want to pair and click Connect
Click the RESET button in the middle of the CPX - the lights should turn green
How to Develop the Code:
After connecting the CPX to the Makecode, open the pink "Input" tab, and find the piece labeled "On, Button A, Click"
Then, after dragging the piece onto the board, use the dropdown menus to specify a button and how it activates: for example, choose "Touch A1"
Then, under the blue "Light" tab, find the "set all pixels to" piece.
Drag the "set all pixels to" piece into the pink input piece. Then, change the color by clicking on the red oval and choosing the color you want from the dropdown menu.
This should change all of the LEDs on the CPX to match whatever color chosen. In this case, the circuit would light up blue.
Repeat the steps above until there is a different button with a specific color for every multiple choice option. For the AP Calc Exam, there is five, but it is entirely possible to do more or less depending on the needs of the class or lesson.
To be able to turn the lights off again, do something similar. Using the same type of input piece, insert the piece labeled "clear," found under the blue "Light" tab and "more" at the bottom of the tool bar.
Finally, in order for the finished code to work for the CPX, make sure you have pressed the RESET button on the CPX, then click the large pink "Download" button in the bottom left corner. That downloads the code to the CPX and allows it to function the way that the code tells it to. Now, you should be able to press each chosen button, and have the LEDs light up as determined by the written code.