Play Bad Apple!! on an mBot or Arduino, provided you have a Me LED Matrix.
The Arduino versions have only been tested on Arduino UNO.
This project has 3 versions in different folders.
mbot-serial: Requires a computer to send Bad Apple frame data to the mBot via the serial port.arduino-serial: Requires a computer to send Bad Apple frame data to the Arduino via the serial port.arduino-onboard: Bad Apple runs completely on the Arduino and only requires power.
Use an RJ25 cable to plug a Me LED Matrix into port 1.
- Use an RJ25 cable to plug a
Me LED Matrixinto aMe RJ25 Adapter(or cut an RJ25 cable if you want). - Plug the S1 port on the
Me RJ25 Adapter(or the cable you just cut), which is now connected to SCK on the LED matrix, into A1 on the Arduino, and plug the S2 port (DIN) into A0. - Power the LED matrix using the VCC and GND ports on the
Me RJ25 Adapter(or the cable you just cut).
Use the Arduino IDE to upload the code for one of the three versions onto your mBot or Arduino.
- Run
npm i serialportin the terminal. - Change the COM port number in
index.js. node .and watch Bad Apple.
Just power the device and watch Bad Apple!