Some expressions consist of multiple frames, such as a wink, while others consist of just one with a blinking animation in-between. The pre-set LED matrix eyes and alphabet are stored as binary arrays on the Arduino's memory.Įach array is linked to a key value that represents the expression it is linked to.īy default, the Arduino displays the X eyes when switched on as this has been set as "key1", though this can be changed at the top of the code. If it has worked correctly, the two LED matricies should light up and display X on each. Then upload the code to the board from Sketch ➔ Upload, or pressing Ctrl+U if using Windows or Cmd+U for Mac. To install it, select Sketch ➔ Include Library ➔ Manage Libraries, then search for "LedControl" and press "Install". If this is the case, install the library and try compile the sketch again. This will raise an error if you're missing the LedControl library. If this is the case then it can be installed via this tutorial.Ĭheck that the sketch compiles from Sketch ➔ Verify / Compile. Many clone boards commonly come with a CH340 chip, though if you're unsure you can check the inscription on the chip closest to the USB port as shown in the image below. If you're a cheapskate like myself and you're using a clone board (an unofficial Arduino), you must instead install the driver from the board's manufacturer.If you're using an official Arduino, you can configure the board to use the drivers pre-installed with Arduino IDE as shown in this driver installation guide.Which driver to install depends on the type of board you have: If this happens you first need to install the correct serial port driver for the device to be recognised. What do I do if the Port option is greyed out? Now plug the USB cable into the Arduino to connect it to the computer.Īgain if this is your first time using Arduino, You must also set the port of the board from Tools ➔ Port. If this is your first time using the IDE, make sure to set the board type by going to Tools ➔ Board and selecting "Arduino Uno". To download all required code in zip format, click the file below.Įxtract the contents of the zip, locate the file under Bluetooth-Wrench-Mask-main ➔ Arduino ➔ BluetoothEyes.ino and click it to open the sketch in Arduino IDE. If you do not have this already, download the latest version from the official Arduino site. Maybe it was just my board but I discovered it caused a weird issue preventing me from uploading code to the board for the first time if this was connected.Ĭode can be uploaded to the board using Arduino IDE. The wire colours don't have to match, though I recommend using black wires between the matrices as they may be visible between the eyes. The first step to setting up the Arduino is to wire the LED matricies.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |