This post is almost a note to myself so that I don't lose that technological advancement which I've discovered. Years ago, I had played around with the esp8266 and managed to turn it into a web server that served me up a webpage. But then a few days ago, I discovered how to actually control the GPIOs with the webpage. It occurred to me that it might be possible to control those GPIOs with Alexa. Sure enough after some searching I tried some code and then I tried some other code since that code didn't work and then I tried some other code since that code didn't work. Eventually I found that which worked seen hereafter:
https://gist.github.com/kakopappa/02299a8ceec0aaaad3ea3bd7f2af8066
Now that you have the code that works maybe you'd like to see how I program my esp8266. I have the USB programming adapter for my Arduino mini pro.
![](https://static.wixstatic.com/media/9c83b3_a19881f372b2445ca9d0dbe0a96a06eb~mv2.jpg/v1/fill/w_450,h_800,al_c,q_80,enc_auto/9c83b3_a19881f372b2445ca9d0dbe0a96a06eb~mv2.jpg)
I wanted to use my esp8266 on that without having to map the RX to the TX and vice-versa every single time I programmed so I made a little adapter. I superglued two header connectors together and then just wired them.
![](https://static.wixstatic.com/media/9c83b3_b370ca5cc5144884954d2b1ab4b9528c~mv2.jpg/v1/fill/w_800,h_796,al_c,q_85,enc_auto/9c83b3_b370ca5cc5144884954d2b1ab4b9528c~mv2.jpg)
I'm pretty proud of myself for that simple brilliance but the best part is that I'm humble about it!!
![](https://static.wixstatic.com/media/9c83b3_9aa47820226347508f5b46ca5e19b11c~mv2.jpg/v1/fill/w_800,h_493,al_c,q_85,enc_auto/9c83b3_9aa47820226347508f5b46ca5e19b11c~mv2.jpg)
Comments