element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • 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 & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • 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
Internet of Things
  • Technologies
  • More
Internet of Things
Blog Using the ESP8266 the easy way
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Internet of Things to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: Former Member
  • Date Created: 27 Oct 2014 5:45 PM Date Created
  • Views 4132 views
  • Likes 3 likes
  • Comments 28 comments
  • esp8266
  • bypic
  • microcontroller
  • iot
  • arduino
Related
Recommended

Using the ESP8266 the easy way

Former Member
Former Member
27 Oct 2014

As far as I am concerned the ESP8266 is a bit of a game changer for the internet an microcontrollers and so I have put it together with the ByPic (the what?). Okay I will start again. ByPic is an interactive language that works through a serial interface using a simple USB to serial converter: So:

image

Will give:

image

Really, this is the output from the Mini-Max, pressing 11 will use the HTTP protocol to get the head sent by google that contains the current date and time. What is shown as the main menu is an interface to the underlying library. To use the library direct then press 0 to get out of the main menu and yo gen an OK prompt.

This is an example of a session:

wf_start()    result = Nothing, this will initialise the hardware

mode(1)  result = 10

join("yourssid","yourpassword") result = 1 if okay. This is the SSID and password to the network you oen, i.e your home or work network. 

info()  result = a list of information, if there are errors then try rst(), you must have an IP address at this point if not it means that it can't connect with the given network so is the SSID and password correct?

get("www.google.com","/",80)  result = 1 if okay or time out if the page was too big to fit into the serial buffer. If it says there is no connection with the site then check the spelling of google and also make sure there is an IP address using info.

see1()  will show the received data which will be the 'head' data from the google server.

 

Of course that is just one way of using this wonderful device. If you have less then £20 to spare you could get an evaluation kit which will do all of the above. If you just want to see how it works in detail the tutorial is here. And the library for the ESP8266 is here. The software contains a HTTP client and also a HTTP server.

I hope you find it interesting.

  • Sign in to reply

Top Comments

  • Robert Peter Oakes
    Robert Peter Oakes over 11 years ago in reply to Problemchild +1
    The ESP8266 has its own AT command set already, a buddy of mine has it up and running with Arduinos in his home control system, see here for details: https://scargill.wordpress.com/2014/10/05/esp8266-working…
  • Problemchild
    Problemchild over 11 years ago in reply to shabaz +1
    Yeah, I think this was the point of using the Bypic system. The ESP device is a little awkward and the other CPU provides a good way of demarcating the application and the communications side of the application…
  • scargill
    scargill over 10 years ago in reply to shabaz +1
    Parsing the AT commands is a doddle in C on the Arduinos - I suggest it better that they get a little more stable before anyone puts TOO much work into it - and of course any such library would be easy…
Parents
  • shabaz
    shabaz over 11 years ago

    Personally I have reservations about the ESPxxxx since while it looks interesting, it may be hard to use conveniently without a library of code (since it's a pain building up and parsing AT command strings) - so higher-level functions such as the ones listed will help, like a companion to the ESP.

    That's pretty interesting that the commands can be directly interpreted in real time over the serial port when typed.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • scargill
    scargill over 10 years ago in reply to shabaz

    Parsing the AT commands is a doddle in C on the Arduinos - I suggest it better that they get a little more stable before anyone puts TOO much work into it - and of course any such library would be easy to port to other systems. For my own part, the most important thing is to be able to respond to the commands with checks for expected output - filtering for the results and actions to take when it all falls apart. I'm 80% through developing that and when I'm done - I'll put it on the blog.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Former Member
    Former Member over 10 years ago in reply to scargill

    Better late than never I suppose, the beauty about the ByPic system is that it is rapid - a whole 2 months or more in this case. For me its been a great opportunity to learn how the ESP8266 works and interacts with existing networks. I have several doing monitoring in remote locations (using just micro Amps most of the time) and have even had time to create a PCB (http://www.byvac.com/bv3/index.php?route=product/product&product_id=172) This uses the same rapid application development system - hey it even has a menu like the one above.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • scargill
    scargill over 10 years ago in reply to Former Member

    That's really nice! That's exactly what I want but I'm an Atmel kind of guy.. you've started me off now - Eagle to the ready... except I'll need an Xtal and another connector pin...

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Problemchild
    Problemchild over 10 years ago in reply to Former Member

    I for one will be interested in seeing some of your new products based on the ESP8266

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • Problemchild
    Problemchild over 10 years ago in reply to Former Member

    I for one will be interested in seeing some of your new products based on the ESP8266

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • 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