Serial WiFi module


Closed Thread
Results 1 to 13 of 13

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,624

    Default Re: Serial WiFi module

    If you are looking for PBP code to drive them via the "stock" AT commands I did a very short test/example in this post. And as I'm sure you've figured out by now there's no PIC or AVR on the module. The chip is the ESP8266 which is complete SoC with processor, TCP/IP, Wifi and everything.

    /Henrik.

  2. #2
    Join Date
    Feb 2013
    Location
    Quebec, Canada
    Posts
    67

    Default Re: Serial WiFi module

    Some more PBP code: http://www.picbasic.co.uk/forum/showthread.php?t=20178
    and a (stupid?) project: http://www.picbasic.co.uk/forum/showthread.php?t=20083

    For time service the easy way I found was to put a dead simple web page on my Windows Home Server

    default.aspx:
    Code:
    <%
    response.write("*" & Format(now, "yyyy-MM-dd HH:mm:ss") & "J")
    
    select case Format(now, "ddd")
    	case "Sun"
    		response.write("1")
    	case "Mon"
    		response.write("2")
    	case "Tue"
    		response.write("3")
    	case "Wed"
    		response.write("4")
    	case "Thu"
    		response.write("5")
    	case "Fri"
    		response.write("6")
    	case "Sat"
    		response.write("7")
    	case else
    		response.write("0")
    end select
    response.write("*" & VbCrLf)
    
    'response.write("*" & Format(now, "yyyy-MM-dd HH:mm:ss ddd") & "<BR>")
    'response.write("*" & Format(dateadd("d", 1, now), "yyyy-MM-dd HH:mm:ss ddd") & "<BR>")
    'response.write("*" & Format(dateadd("d", 2, now), "yyyy-MM-dd HH:mm:ss ddd") & "<BR>")
    'response.write("*" & Format(dateadd("d", 3, now), "yyyy-MM-dd HH:mm:ss ddd") & "<BR>")
    'response.write("*" & Format(dateadd("d", 4, now), "yyyy-MM-dd HH:mm:ss ddd") & "<BR>")
    'response.write("*" & Format(dateadd("d", 5, now), "yyyy-MM-dd HH:mm:ss ddd") & "<BR>")
    'response.write("*" & Format(dateadd("d", 6, now), "yyyy-MM-dd HH:mm:ss ddd") & "<BR>")
    'response.write("*" & Format(dateadd("d", 7, now), "yyyy-MM-dd HH:mm:ss ddd") & "<BR>")
    
    %>
    Web.Config:
    Code:
    <?xml version="1.0"?>
    <configuration>
    	<appSettings/>
    	<system.web>
    		<compilation debug="true"/>
    	  	<customErrors mode="Off"/>
    		<authentication mode="Windows"/>
    		<identity impersonate="true"/>
    		<httpRuntime enableVersionHeader="false" />
    	</system.web>
    </configuration>

    and the response is:
    Code:
    *2015-11-13 10:05:40J6*
    The "J" in the response means "Jour" (french word = "day").

    If you find de way to call a SNTP server with PBP please share!

  3. #3
    Join Date
    Aug 2003
    Posts
    985

    Default Re: Serial WiFi module

    Thanks for the replies
    I don’t have too many rock solid goals with it as a project, but getting time will be essential. This is where I can get help from someone who has done time and weather.
    It was C++ he used if I recall correctly, and extra pins on the chip were used to drive an LCD to print it on which was pretty cool.

    This video was sent to me personally, but I have checked it’s ok to share relating to my projects:


    In fact, the fellow that wrote it wanted to get my LCD graphics working with it, and I shared the code,
    but he gave me the impression there is little RAM left on the chip for that.

    ps. It looks like that one int he video can take 5V supply, but I got the cheaper one
    Last edited by Art; - 13th November 2015 at 18:55.

  4. #4
    Join Date
    Oct 2009
    Location
    Utah, USA
    Posts
    427

    Default Re: Serial WiFi module

    I forgot to mention that you can also, apparently, use the Arduino IDE to program them in the C-like language that Arduino uses.
    (never tried it though)

    Here is one way of getting time using the NODEMCU OS and Lua code...
    Name:  2015-11-14_150203.jpg
Views: 2310
Size:  67.6 KB
    Dwight
    These PIC's are like intricate puzzles just waiting for one to discover their secrets and MASTER their capabilities.

  5. #5
    Join Date
    Aug 2003
    Posts
    985

    Default Re: Serial WiFi module

    Thanks for the extra code. I can go a fair way with just getting the time
    and talking serial.
    These old Amiga computers, their RTC batteries leaked,
    and some leaky batteries damage the RTC as well,
    but the system clock still works when the computer is running.
    So just a simple thing like telling the computer the time and date
    at bootup is very practical.

  6. #6
    Join Date
    Oct 2009
    Location
    Utah, USA
    Posts
    427

    Default Re: Serial WiFi module

    Hey Art,

    I've been reading quite a bit over at esp8266basic.com and I am actually quite impressed!

    I think I am going to give BASIC a try on my esp8266 module.

    The command documentation seems to be a bit behind so check out the forum and read the "NEWS" topic as he has announced a couple of new commands there. And ongoing development seems to be quite active.

    You now can read an ds18b20 temp sensor ("temp" command). Write to an I2C OLED display, etc.

    Fun Stuff!
    Dwight
    These PIC's are like intricate puzzles just waiting for one to discover their secrets and MASTER their capabilities.

  7. #7
    Join Date
    Aug 2003
    Posts
    985

    Default Re: Serial WiFi module

    Nice I’ll check it out!
    Mine have arrived, but now thinking I might as well buy the unit with the supply and USB-serial converter on board
    like the unit in the video. Then use the bare ones I have when it comes to use in a project.

Similar Threads

  1. PIC with WIFI module
    By JAWORSKI in forum Schematics
    Replies: 2
    Last Post: - 3rd December 2008, 04:19

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts