AR-137BeginnerPremium

Mind-Reading Arduino: Think of a Number (I2C LCD + 2 Buttons + Buzzer)

Think of a number from 1 to 63; the Arduino shows 6 cards and you only answer YES or NO. After the sixth answer it reveals your number on the I2C LCD while the buzzer plays a magic tune. Then it gives away the trick: the first numbers of the cards are 1, 2, 4, 8, 16, 32, and adding up your YES cards gives your number. A magic trick that teaches the binary number system and asks the cards in a new order every game.

0.0(0)
Mind-Reading Arduino: Think of a Number (I2C LCD + 2 Buttons + Buzzer)
Ask a friend to think of a number, and the Arduino finds it in just six questions while everyone stares in surprise. Number cards scroll across the screen page by page and you answer yes or no with two buttons; at the end the number appears between twinkling stars to a little magic tune. The screen also shows how the trick works with binary numbers, so you turn plain math into a magic act.

Source Code

Premium Content

The source code, block version and FAQ of this project are open to Premium members.

  • All Project Code
  • Block version
  • Frequently Asked Questions