
Chapter 11: Pepper's Ghost in a Cereal Box
212
• Open up the Arduino software on your computer, and
plug your board in! Copy and upload the sketch from
mariothemagician.com/robotmagicchapter11.
If the sketch doesn't compile, make sure each and every
line of code, including the “ } ” symbols, are all copied
exactly. Now, let’s test!
Once the sketch is uploaded, there will be one LED that is
on. The room with the flowers in it should be lit up. Press
the button. The LED will slowly start fading out as the
other LED starts slowly fading on. If all works as described,
we can move on to fine tuning! (If it doesn’t, check all wire
connections, LED c ...