loading

Hola Makers!!

En esta ocasión les voy a mostrar como controlar con un ESP8266 un anillo de neopixeles de Adafruit, con un pequeño ejemplo programando el ESP8266 con el IDE de Arduino

Comencemos!!

Step 1: Material

Lo que necesitamos para realizar esta practica es:

  • Anillo o tira de neopixeles Adafruit
  • ESP8266
  • FTDI Friend
  • Arduino UNO o Fuente de 3.3v
  • Bateria Li-Po 3.7v

El Arduino que se ve en las imágenes solo lo uso para alimentar el ESP8266, la versión del ESP puede ser cualquiera que tengan a la ano, en esta ocasión yo estoy usando la versión 3

<p>I like this. Didn't know you could drive Neopixels with 3.7V from a Lipo. Thanks. </p>
<p>Buenisimo capo!! estaba buscando algo as&iacute;! es un desprop&oacute;sito cuando veo que usan ESP8266 y arduino juntos..</p><p>Un saludo!!</p>
<p>any chance of this in english too?</p>
<p>Google Chrome Translates it as so:</p>
<p><a href="/file/FPY9QQYIBOWZVWN" rel="nofollow"></a></p><p></p><div><p></p><div><a href="/file/FHTSCDGIBQCFLMR" rel="nofollow"></a><p><a href="/file/FWZVNGNIBOWZP2L" rel="nofollow"></a></p><p><a href="/file/FXBS52ZIBOWZP2M" rel="nofollow"></a></p><p>Hello Makers !!</p><p>This time I'll show how to control a ring neopixeles ESP8266 Adafruit, with a small example programming the ESP8266 with Arduino</p><p>Let's begin !!</p> <br><p><a href="/file/F5BJMG9IBOWZODY" rel="nofollow"></a></p><p></p><div><a href="/file/F1YJXZ6IBOWZOYH" rel="nofollow"></a><p><a href="/file/F89U91JIBOWZOYU" rel="nofollow"></a></p><p><a href="/file/F4KI6ZOIBOWZOYX" rel="nofollow"></a></p><p>What we need for this practice it is:</p><ul> <br><li>Neopixeles ring or strip Adafruit<li>ESP8266<li>FTDI Friend<li>Source Arduino UNO or 3.3v<li>3.7v Li-Po battery</ul><p>The Arduino you see in the picture just use it to feed the ESP8266, ESP version can be any having to year, this time I'm using version 3</p> <br><p><a href="/file/FXPZ1F9IBOWZP5G" rel="nofollow"></a></p><p></p><div><a href="/file/FOLA0V1IBOWZP5J" rel="nofollow"></a><p><a href="/file/FLWB1KDIBOWZP5W" rel="nofollow"></a></p><p></p><div><a href="/file/F82S2FJIBOWZP5Z" rel="nofollow"></a><p><a href="/file/F7DGI9YIBOWZP6E" rel="nofollow"></a></p><p><a href="/file/FKFKYX0IBOWZP6H" rel="nofollow"></a></p><p>This time I'm going to set the ESP8266 through Arduino that allow us to use the library <a href="https://github.com/adafruit/Adafruit_NeoPixel" rel="nofollow">neopixeles Adafruit</a> and we greatly facilitate control neopixel</p><ol> <br><li>First we have or download a higher version of the Arduino IDE 1.6.4<li>Then we must download and install the library neopixeles of <a href="https://github.com/adafruit/Adafruit_NeoPixel" rel="nofollow">repositories Adafruit</a> , now restart the Arduino<li>One time I made it go to File and then Preferences and as seen in the first image in the section &quot;Additional Boards URLs Manager&quot; we enter the following URL: <a href="http://arduino.esp8266.com/package_esp8266com_index.json" rel="nofollow">http: //arduino.esp8266.com/package_esp8266com_inde ...</a>and press OK , with that we have added to the board manager the link to download the packages needed to set the ESP8266<li>Now let Tools and cards section choose &quot;Board Manager&quot; window where we show all the extra cards you can install in our IDE to identify easier we are looking for can choose only open contributions (Contributed) select the says ESP8266 and press the install button, started to download and install the necessary files, once completed we press the close button.<li>Now as seen in the pictures in our cards section shows several versions of ESP8266, keep in mind that depending on the model of card you have can change the settings, I served me the one in the pictures for my generic card version 03 .<li>Select the port that is our FTDI or programmer for ESP8266</ol> <br><p><a href="/file/FPY9QQYIBOWZVWN" rel="nofollow"></a></p><p><a href="/file/FT23GIZIBOWZQ3S" rel="nofollow"></a></p><p>Once completed the following steps</p><p>The programming is very similar to when we use the neopixeles with Arduino, just keep in mind that the GPIO16 of ESP8266 is not recommended for use with the neopixeles according to data from Adafruit, the number of GPIO that I'm using in this case is 13 and the ring has 16 neopixeles.</p><pre><p>* / <br>Example With ESP8266 neopixel Adafruit <br>Andres Sabas - The Inventor's House Hackerpsace <br>July 4, 2015 <br>* /</p><p>#include </p><p>// Which pin on the ESP8266 is connected to the NeoPixels? <br>#define PIN 13</p><p>// How many NeoPixels are attached to the ESP8266? <br>#define numPixels 16</p><p>Adafruit_NeoPixel pixels = Adafruit_NeoPixel (numPixels, PIN, NEO_GRB + NEO_KHZ800);</p><p>delayval int = 500; // Delay for half a second</p><p>void setup () { <br> // Put your setup code here, to run once: <br> pixels.begin (); // This initializes the NeoPixel library. <br>}</p><p>void loop () { <br> // Put your main code here, to run Repeatedly: <br> for (int i = 0; i</p><p> // Takes pixels.Color RGB values, from 0,0,0 up to 255,255,255 <br> pixels.setPixelColor (i, pixels.Color (0,150,0)); // Moderately bright green color.</p><p> pixels.show (); // This updated SENDS the colored pixel to the hardware.</p><p> delay (delayval); // Delay for a period of time (in milliseconds).</p><p> }</p><p>}</p></pre><p>Now we must put the <a href="https://github.com/esp8266/esp8266-wiki/wiki/Uploading" rel="nofollow">boot mode</a> the ESP8266, compile and load the device, reboot and you should be working our example</p> <br><p><a href="https://www.instructables.com/files/orig/F5D/T6LK/IBOWZPEU/F5DT6LKIBOWZPEU.ino" rel="nofollow">esp_NEOPIXEL.ino</a> 966 bytes</p><p></p><div><a href="/file/FXBS52ZIBOWZP2M" rel="nofollow"></a><p></p><div><a href="/file/FHTSCDGIBQCFLMR" rel="nofollow"></a><p><a href="/file/FWZVNGNIBOWZP2L" rel="nofollow"></a></p><p>The circuit would be as shown in the image from the previous step, I am using 3.7v battery to power the neopixeles for the control signal is 3.3v ESP8266 may have proper operation.</p><p>As shown in the gif should now be running a sequence of green on the neopixeles all your strip or ring.</p><p>I welcome your comments and questions about this little exercise, if they like and do not forget to put this instructable favorite</p><p>If you want to see more examples of ESP8266 you can also see our &quot; <a href="http://blog.theinventorhouse.org/guia-basica-de-esp8266/" rel="nofollow">Basic Guide ESP8266</a> &quot;with more instructables and examples of The Inventor's House <br></p><p>Inventors greetings !!</p></div></div></div></div></div></div></div>

About This Instructable

18,754views

146favorites

License:

Bio: Fundador de The Inventor's House Hackerspace, Movimiento Maker y Hardware Libre, DIY, Workaholic
More by sabas1080:Getting Started with MagSpoof E-paper Display With Arduino/ESP8266 Autonomous Weather Station with ESP8266 
Add instructable to: