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?
Parents
  • 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
  • jeepingoody
    0 jeepingoody over 7 years ago in reply to neuromodulator

    So what I'm wanting to do with it is:

    Measure light levels to determine sunrise and sunset

     

    Mark the time of both sunrise and sunset

    Calculate the amount of sunlight

    Turn on a light at a calculated time (based on sunlight duration) so that the next day should have at least 16 hours of light.

     

    On top of that I want to measure temp/humidity both inside and outside.

     

    I would like the light levels and temp/humidity sent to thingspeak so I can keep track

     

    Project is for a chicken coop.

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

    I would suggest you to use astronomy based algorithms to compute the sunrise and sunset, as they are not affected by clouds, mist or what not (there are probably websites that can give you the exact sunrise and sunset for each time/day). Do you have all the sensors that do what you want to do? I did something similar, but with different sensors in my roadtest (Sensirion Environmental Sensor Shield - Review ). I measured temperature, relative humidity, VOC levels and CO2eq levels and sent data to the Thingspeak server during 20 days. I used an ESP32, which is similar to the ESP8266. To send data I just performed an HTTP GET operations for each entry, which was recorded once every 30 s.

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

    Even the ESP8266-001 module has 4 pins available and it can be used standalone to do some interesting stuff involving I2C and one-wire sensors.

     

    It has enough memory to store a wifi functions library, so it should be possible to use that instead of using low level AT commands.

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

    I have everything for it sensors I planned to use:

    Photoresistor

    RTC module

    DHT 11

     

    using the Photoresistor mainly because I know how. Not sure how to pull the times off the internet. That would be better. However doesn't have to be horrible accurate. Plus should I loose WiFi (it is kind far from the house and connectivity can be spotty) the time can still be calculated

    • 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'm starting to think that may be the best way to go. Can I use the same Arduino code?

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

    You are right, but considering that the 8266 costs 3 usd, why bother...

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

    Pulling time from the internet with the ESP32 is pretty straightforward, just a few lines of code and that's it. Unless you turn the ESP off you don't need more than one time sync. If electricity gets interrupted frequently, you could use a battery.

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

    Plan is to have it solar with battery

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

    Then its all good, sync time just once and forget about it. Capture data from sensors and keep it in a buffer, as soon as you get connectivity you upload it to Thingspeak, and thats it

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

    You make it sound so simple

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

    You make it sound so simple

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
No Data
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