![]() ![]() Now that you've uploaded the sketch, let's see if it works. This will take a while and you will probably see the on-board LED flicker during transfer. ![]() Now upload the sketch using the Arduino IDE. If you've done one of the above correctly, the on-board LED should be dimly on.If you're using a bare ESP8266 instead, then temporarily connect GPIO0 to ground, toggle power to the reset pin,then disconnect GPIO0 from ground.If you're using the Huzzah breakout, this means holding down the GPIO0 button, pressing and releasing the resent button, then releasing the GIO0 button.Set the number of pixels you're using and set the data pin - I'm using pin 14. You can use the generic StrandTest sketch in the examples menu under the Adafruit NeoPixel folder. select the Adafruit neopixel library and install.In the Arduino Go to Sketch -> Include Library -> Manage Libraries (it's at the top of the list).Make sure you also install the neopixel library for Arduino if you haven't already. When you plug in your FTDI, select the correct COM port for it.Tools -> Board select generic ESP8266 (Or Adafruit Huzzah ESP8266 if you're using that) and use these settings: Use the Board Manager to install that ESP8266 (Following Adafruit's Arduino ESP8266 setup instructions here: ) Then go to File -> Preferences and at the bottom under "Additional Board Managers", enter. Speaking of which, let's program this thing.įirst, you need to make sure you have a version of the Arduino IDE that is at least 1.6.4. After the programming is finished, you can remove it. You'll need the FTDI cable or USB for programming. If you are using the Adafruit Huzzah breakout, solder it as shown on their nice page here: using your breadboard. I'm using a neopixel ring because that's what I happen to be working on, but you can test with a strip or a single pixel or whatever you have. The capacitor and resistor help protect your neopixels. if you're using a bare ESP8266 board, you'll want a couple additional buttons to use for reset and putting the ESP8266 in the bootloader mode (to upload your code to it).Īssemble as shown in the diagram above. Note: using the Huzzah breakout board makes things easier because it has buttons built in for reset and bootloader mode. Capacitor to protect your neopixels - I have a 1000 uF here.FTDI programmer such as or USB-to-serial cable.an ESP8266, I used Adafruit'sHuzzah breakout,. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |