Data Sheet

87 : circuit 4c
CODING CHALLENGES
CHANGE THE TIME LIMIT: Changing the time limit variable will change the
difficulty of the game.
CHANGE THE WORDS IN THE WORD LIST: Try changing the categories and
words. The number of words in your words array must match the value of the variable
arraySize .
CHANGE THE WINNING AND LOSING SONGS: By changing the tones in the
winner() and gameover() functions you can change which song plays at the
end of the game.
TROUBLESHOOTING
The screen is blank or
flickering
Adjust the contrast by twisting the potentiometer. If it’s
incorrectly adjusted, you won’t be able to read the text.
Also, check the potentiometer to make sure it’s connected
correctly.
No sound is coming from
the buzzer
Check the wiring to the buzzer and the polarity. Make sure
you are using the correct pin as defined in your code. You
may add a potentiometer volume knob if you desire.
The button doesn't work
or words are getting
skipped before they are
guessed
If the button isn’t working, check your wiring. If words
are being skipped when the button is pressed, increase the
debounce delay found at the end of the loop. It should be
500 milliseconds by default. Increasing this number by tiny
increments will help with this problem.
You’ve completed
Circuit 4C!
Continue to Project 5 to learn how to build your first robot!
A B C
LCD “HELLO, WORLD”
TEMPERATURE SENSOR
“DIY WHO AM I?”GAME
SIK v4 Book Oct 13.indb 87 10/18/17 10:02 AM