element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Arduino Forum Getting my ESP8266 working
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 21 replies
  • Subscribers 393 subscribers
  • Views 2164 views
  • Users 0 members are here
Related

Getting my ESP8266 working

jeepingoody
jeepingoody over 7 years ago

I can not for the life of me get my ESP8266-01 working. I got it to do AT commands once and connected to my wifi. I would like it to get sensor data from my Arduino uno and send it to thingspeak. (Light levels and temp/humidity). I have searched hi and low and watched dozens of YouTube videos yet I can't find a good example to help me out. Does anyone have any good resources they are willing to share?

  • Sign in to reply
  • Cancel

Top Replies

  • jeepingoody
    jeepingoody over 7 years ago in reply to afmishaq +1
    I looked at that library and couldn't figure it out. Need to look at it more. It's not fried I have very careful about voltage and always had it hooked to 3.3v I do have an external supply for it as well…
  • jeepingoody
    jeepingoody over 7 years ago in reply to afmishaq +1
    I'm starting to think that may be the best way to go. Can I use the same Arduino code?
  • neuromodulator
    0 neuromodulator over 7 years ago

    Which ESP8266 do you have? When you talk about AT commands it looks as if your ESP8266 is a wifi module that is ment to be used by a differet MCU.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • jeepingoody
    0 jeepingoody over 7 years ago in reply to neuromodulator

    image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • afmishaq
    0 afmishaq over 7 years ago in reply to neuromodulator

    The ESP8266 is a compact wifi chip.

     

    It is good if you can do AT commands, but you do not really have to do it. There are libraries available that hide all that stuff.

     

    The easiest way to do what are trying to do is to use the Arduino IDE. Install ESP8266 libraries and off you go. Chances are you can simply adapt and add code to the WiFiClient example and connect to your home router to upload stuff on thingspeak.

     

    On the gloomy side, if it was working and is not so now, well it is easy to fry! It is rated at 3.3 V and will easily get destroyed beyond 3.6 V. The inputs are not 5V tolerant. There are other 8266 based modules which provide 5V tolerant inputs for interfacing sensors etc.

     

    Faiz Ishaq

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • jeepingoody
    0 jeepingoody over 7 years ago in reply to afmishaq

    I looked at that library and couldn't figure it out. Need to look at it more. It's not fried I have very careful about voltage and always had it hooked to 3.3v I do have an external supply for it as well so it's not powered by the arduino itself

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • neuromodulator
    0 neuromodulator over 7 years ago

    Alright, the ESP is an MCU by itself, far more powerful than the UNO, but here its only used as a module to give WIFI connectivity through the serial port to the UNO. You have AT commands that you will need to use to perform all kind of network operations, you will need to connect to the WIFI, then connect to Thingspeak and send data. The way you do that is through the UNO, uno will send AT commands to the module to perform all those operations.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • jeepingoody
    0 jeepingoody over 7 years ago in reply to neuromodulator

    So if I read that right. What your saying is I need to tell the uno to send AT commands to the ESP8266 and that's how they will talk and send data?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • afmishaq
    0 afmishaq over 7 years ago in reply to jeepingoody

    OK, that is good. I used a nodemcu module to do the same thing a couple of years ago. It has all the I/O that you need so you do not need the UNO for this work. I had to use a little level shifter to accomodate 3.3 V and 5 V sensors.

     

    Faiz Ishaq

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • neuromodulator
    0 neuromodulator over 7 years ago in reply to jeepingoody

    Yes!, exactly! you appear to have a sparkfun, there is a PDF with the list of AT commands on their product page. You may want to connect to the module through your PC to test the AT commands and see how the module responds to each. After you get a good feeling on how to use the commands and how the module behaves, or responds to each command, you may want to code the UNO to send the AT commands.

     

    As an alternative, the ESP8266 could work as a standalone and do a lot of stuff without any UNO. But your specific ESP module is ment to be used as I say, receive AT command and perform network operations.

     

    Check this teaser on what the ESP8266 can do! https://www.youtube.com/watch?v=SSiRkpgwVKY

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • jeepingoody
    0 jeepingoody over 7 years ago in reply to neuromodulator

    Thank you for the information. I think the light bulb just came on.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • neuromodulator
    0 neuromodulator over 7 years ago in reply to jeepingoody

    The ESPs support all the arduino libs, I would suggest you to get one from ebay (just a few dollars) and just toss the stinky UNO. Did you watch the video that I linked? the ESP is orders of magnitude faster than UNO.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube