-->
Page 1 of 1

esp8266-1, Arduino IDE, neopixel, RFID reader Q, help please

PostPosted: Sat Apr 11, 2015 2:23 am
by prussia
Hi all,
First off. THANKS for the fantastic Arduino IDE app for the esp8266. While I did figure out how to get the also great NodeMCU firmware uploaded this is seriously a game changer. Also I apologize if this is posted in the wrong place, or too many questions in one post. I'm very excited about this chip and can't wait to code to it and give back. I'm trying to solve a few technological problems for our local Makerspace projects to help things move around and so I can teach a basic tutorial to the members and pretend to look smart ;).

I made a Bootloader PCB to simplify (with a jumper) the firmware and sketch loading with ArduinoIDE. I also added a testing led. Free to use and enjoy and if you improve or make it work for a few esp versions please share and let me know:
https://www.dropbox.com/s/7uou0ku1d41nw ... 2.fzz?dl=0

I'm very new to this and got the basic WiFiWebServer example with one pin high/low working but i wanted to try to get neopixels to work with the esp. I'm a bit unclear as newbie about the AVR functions that may or may not work with this IDE. I look through the AVR functions on the arduino playground to try and understand this and got even more confused.

Neopixel question:
I saw there was a more timing (clk?) relaxed library that didn't build off the usual clock timing (i assumed AVR and arduino clock would not work on the esp since it's hardware tied):
https://github.com/bigjosh/SimpleNeoPix ... Tester.ino

based on this article:
http://wp.josh.com/2014/05/13/ws2812-ne ... know-them/

Can somebody shed some light on if I can adapt this properly or if I can use the native neopixel arduino library in all it's timing glory? I saw a LUA version that works with ws2812b/neopixel, and of course the Adafruit library that works with Arduino.

Arduino Passthrough:
My next question is if I want to use my Arduino with normal sketches on it to take advantage of I2C, neopixels, rfid etc.. but then use the esp8266 as a wifi client. I guess I would need to send signals to/from the arduino, to thingspeak/mqtt gateway after capturing data from the Arduino. That would include sending requests to the Arduino. How would I do that? My guess is that I would need to make the esp8266 transparent somehow and be able to make restful or pub/sub calls with the arduino? If so any hints. I'm at a loss there too.. Am I on the right path and are there any sample libraries or code to use as a base.

RFID READER door unlock:
Finally, somewhat linked to the above question, I'm building a door unlock system for our local Makerspace. For that to happen I need to use the RFID chip we are using now http://playground.arduino.cc/Code/ID12 (ID12LA). I'm guessing because the ID12LA has a serial output TX the ESP can read it with RX. then I can make a restful call to our site. Then the respone can be parsed and action taken to open/close a door latch (relay).
I'm guessing I will need ESP8266 rev 5+ since i need a few pins. I ordered some esp12s so that will probably work.
What can I use for the restful call and response parsing? Am I missing any steps and does anybody have examples I can be pointed to ?

Thank you again for all the great work, and in advance for reading up to the end. Any code snippets, links, and suggestions are very welcome. If I can get this working i'll happily write posts, share more PCBs and give back.

David