Hi
I have a Arduino uno and esp8266 and very little knowledge.
I tried to use AT commands and it works and connects. but nearly all the projects I can see online use
a libary file like esp8266wifi.h and this wont compile on the uno. from my understanding this is to program the esp8266 directly changing board type. but I cant believe all the projects I have seen and code i have tried program the board independently.
is it possible to use the 8266 without at commands with the uno?
malcomp:
Hi
I have a Arduino uno and esp8266 and very little knowledge.
I tried to use AT commands and it works and connects. but nearly all the projects I can see online use
a libary file like esp8266wifi.h and this wont compile on the uno. from my understanding this is to program the esp8266 directly changing board type. but I cant believe all the projects I have seen and code i have tried program the board independently.
is it possible to use the 8266 without at commands with the uno?
any examples anywhere?
thank you for your help
If you want to communicate with the ESP-01 module -- I am guessing that is what you have -- as the ESP8266 is a chip and not a module, you would need to install Arduino Core ESP8266 in the Arduino IDE and program new firmware into the ESP-01. This will wipe the AT command firmware.
malcomp:
Hi
I have a Arduino uno and esp8266 and very little knowledge.
I tried to use AT commands and it works and connects. but nearly all the projects I can see online use
a libary file like esp8266wifi.h and this wont compile on the uno. from my understanding this is to program the esp8266 directly changing board type. but I cant believe all the projects I have seen and code i have tried program the board independently.
is it possible to use the 8266 without at commands with the uno?
any examples anywhere?
thank you for your help
Being relatively new to Arduino myself, I've recently faced this same dilemma.
One way I've handled it is to have an oversupply of ESP8266's on hand. I have about 12 now.
Another thing I've done is learned how to re-flash them.
As far as the projects, I find it's about 50/50. SOme projects require uploading code to the ESP8266 and some dont. Many of the ones I've used lately like Temp & Humidity via Thingspak don't require uploading to the ESP8266.
Just shop around. It seems often you can find sketches that do the same thing with and without uploading to the ESP8266. Off the top of my head I can't think of any reason the sketch would necessarily have to be uploaded to the ESP8266 but then I'm still learning as well.
A LOT of the really cools sketches do NOT need to be uploaded to the ESP8266.
Just look around. If they don't use the ESP8266 library, then you can keep AT commands and send them as needed to the ESP8266 via the Arduino.
Have fun!
if you want to use the esp as network adapter like the Ethernet shield or WiFi shield, use WiFiEsp library with AT firmware or WiFi Link firmware and library
Thank you for your help, the wifiesp was just what I was looking for. It has brought up a load more questions but they are just formatting questions. the actual wifi server works.
I saw that it can run programs independently, but my program is now so buggy and big that it doesn't fit on the uno, and I have struggled to post it on the forum with some cutting down to get it below 9000 characters.
but the little wifi board is quite amazing,
With the 4 MB flash and 80 kB RAM on the ESP8266 you won't run out of memory very soon. Part of the flash can even be used as file system, for long term storage of data, or for more complex web pages, etc.