Welcome, Guest
You have to register before you can post on our site.

Username/Email:
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 893
» Latest member: Xebulon
» Forum threads: 2,046
» Forum posts: 2,216

Full Statistics

Online Users
There are currently 18 online users.
» 0 Member(s) | 18 Guest(s)

Latest Threads
Installation for S100
Forum: User Manual for Tank Chassis
Last Post: smartarduino
03-10-2017, 11:39 AM
» Replies: 0
» Views: 2,932
ESPduino Code for WiFi Ta...
Forum: ESPDuino=ESP8266+Arduino
Last Post: smartarduino
11-16-2016, 08:35 AM
» Replies: 0
» Views: 5,590
ESP32 Chip Documents
Forum: ESP32 Chip
Last Post: smartarduino
10-11-2016, 04:11 AM
» Replies: 0
» Views: 8,022
DataSheet for WiFi Grove ...
Forum: WiFi Grove kit based on ESP8266
Last Post: smartarduino
06-08-2016, 06:52 AM
» Replies: 0
» Views: 7,113
Some documents about Ai60...
Forum: Ai6060H
Last Post: smartarduino
05-26-2016, 01:03 AM
» Replies: 0
» Views: 7,096
Manual for 2-way motor & ...
Forum: 2-way motor & 16-way servo shield board for Arduino
Last Post: smartarduino
05-10-2016, 10:42 AM
» Replies: 0
» Views: 7,496
NodeMcu Firmware 1.4
Forum: NodeMcu
Last Post: smartarduino
05-10-2016, 06:24 AM
» Replies: 0
» Views: 9,226
User Manual for DoArm S7
Forum: DoArm
Last Post: smartarduino
04-25-2016, 10:07 AM
» Replies: 0
» Views: 6,228
Video for DoArm
Forum: DoArm
Last Post: smartarduino
04-14-2016, 04:01 AM
» Replies: 0
» Views: 1,782
Manual for DoArm S6
Forum: DoArm
Last Post: smartarduino
04-13-2016, 09:50 AM
» Replies: 0
» Views: 1,620

 
Thumbs Up Doit Car firmware download
Posted by: smartarduino - 10-27-2015, 02:06 AM - Forum: NodeMcu - No Replies

Here shows how to refresh firmware for DoitCar.

Step1:   Plug ESP12E-devKit into USB port with microUSB.
[Image: uSHLR43.jpg]


 
Step2:   Open the ESP FLASH DOWNLOAD TOOL. And the configuation is shown as belows.
        Attention: Choose correct Serial Port and correct firmware: doit_car_20150914_2

[Image: JqPS9Fz.png]

Step3: Press "START". Keeping press "FLASH" button, then press "RESET" button. Then the downloading process begins:


[Image: UW3V15x.png]

Step4: Done. Reboot the Esp12E devKit. The blue light will be keep lighting.

Enjoy it.

ATTACHMENT: http://en.doit.am/DoitCAR.zip

Print this item

Heart ESP8266 Based Serial2WiFi FAQ
Posted by: smartarduino - 10-21-2015, 03:17 AM - Forum: NodeMcu - Replies (1)

https://fineshang.gitbooks.io/esp8266-based-serial-wifi-shield-for-arduino-user/content/index.html

Question 1: How to restore factory settings. Here shows two ways:




      One: Connect the WiFi, and enter the web interface settings, use “FactoryDefault” button.



      Or:  (For Doit ESp8266 WiFi expansion board, nodemcu compatible development board) . Press “Flash” button more than 3 seconds (the LED lights flash) and restore the default factory settings



 

Question 2:  How does it work about AP and STA
  
    
     In AP mode, SSID , password, local ip address, subnet mask and gateway address can be set
   
     In STA mode, the router wifi SSID can be scanned.



Question 3: How does it work about serial communication.
 


     Networks can be set to tcp server / client, udp server / client
    
     When Client mode is used, domain and IP can be set to a remote address.
     When data receiving or sending, LED lights flash.

 
Question4: How to download a new firmware.
 
    
     Step 1: Use the download software, shown as follows.
   
    Note: Two bin files should be used. One is “ eagle.flash.bin”, whose download address is 0x00000. The other is “eagle.irom0text.bin”, whose download address is 0x40000. All configuration is shown in the follow picture.

[Image: qo7PPbM.png]
    

     Step 2: Choose the correct serial port number. Then, press “FLASH” button, and press “RESET” button. OK, the download process will be started after press “START”.
 
     Step 3: Enjoy it!

 
ATTACHMENT:

LINK:  http://bbs.smartarduino.com/Serial2WiFi.zip
 
Software : ESP FLASH DOWNLOAD TOOLS
Firmware : eagle.flash.bin
         eagle.irom0text.bin

Print this item

  WiFiMCU basic intrudction
Posted by: smartarduino - 09-04-2015, 10:15 AM - Forum: WiFiMCU - No Replies

WiFiMCU

[Image: 68747470733a2f2f696d672e736869656c64732e...652e737667]
WiFiMCU is developed based on EMW3165 module produced by MXCHIP.INC. A Lua interpreter is builded inside with hardware support. A light weight file system and socket protocols can help to realize IoT development easily and quickly. Basically, you can load this on your device and then run Lua scripts on it with nothing more than a terminal connection. 
Enjoy it!




Code:
 ;   .  . .___ .  . __ .  .      ,--.
["]  |  |o[__ o|\/|/  `|  | ,<-|__oo|
/[_]\ |/\|||   ||  |\__.|__| /  |//  |
] [                            /o|__|  [www.wifimcu.com@2015]



Overview
  • Based on Lua 5.1.4 (package, string, table, math modules)
  • Build-in modules: mcu,gpio, timer, wifi, net, file, pwm, uart, adc.
  • Modules to be builded: spi, i2c, 1-wire, bit, mqtt...
  • Integer version provided
  • Free memory >48k bytes
For more information: http://www.wifimcu.com

Print this item

  Android App Source
Posted by: smartarduino - 06-14-2015, 06:47 AM - Forum: The First Generation Wifi Car - No Replies

AP model Source/STA model Source:

https://github.com/SmartArduino/DoitCar

The arduino apk source code can be found here:
https://github.com/SmartArduino/Android-Source-Code-DoitCar

Print this item

Photo WiFi Car Photo
Posted by: smartarduino - 06-09-2015, 10:27 AM - Forum: The First Generation Wifi Car - No Replies

[Image: JCLYvZM.jpg]
[Image: 157c5qp.jpg]
[Image: i3juCTF.jpg]



Attached Files
.jpg   IMG_0738.jpg (Size: 265.56 KB / Downloads: 325)
.jpg   IMG_0739.jpg (Size: 244.98 KB / Downloads: 290)
.jpg   IMG_0740.jpg (Size: 325.71 KB / Downloads: 279)
.jpg   IMG_0742.jpg (Size: 453.1 KB / Downloads: 272)
.jpg   IMG_0746.jpg (Size: 327.55 KB / Downloads: 314)
Print this item

  The Online Documents
Posted by: smartarduino - 06-06-2015, 11:11 AM - Forum: The First Generation Wifi Car - No Replies

See On:
http://doit-nodemcu-car.doit.am/

Print this item

  NodeMcu motor Introduction
Posted by: smartarduino - 05-29-2015, 03:01 AM - Forum: NodeMcu motor - Replies (3)

NodeMcu  motor Introduction
http://doit-nodemcu-motor.doit.am/

Print this item

  NodeMcu Introduction
Posted by: smartarduino - 05-29-2015, 03:00 AM - Forum: NodeMcu - Replies (2)

The Online Document:
http://doit-nodemcu.doit.am/
[Image: JCLYvZM.jpg]

Print this item

  The Doit Wifi Car App
Posted by: smartarduino - 05-29-2015, 02:13 AM - Forum: The First Generation Wifi Car - No Replies

The AP model APP control:

https://play.google.com/store/apps/details?id=com.remote.yingwen.carsochet




The  STA model APP control:
https://play.google.com/store/apps/details?id=com.remote.carhttp

Print this item

Photo a Tutorial on CLOUD coding with NodeMCU
Posted by: smartarduino - 05-28-2015, 08:23 AM - Forum: NodeMcu Cloud Coding - No Replies

Hi, guys,

  how do you imagine coding on the CLOUD with NodeMCU? 
  It's realy cool!

This is a tutorial on how to code with CLOUD coding

The "CLOUD coding protocal" is posted at:
http://bbs.smartarduino.com/showthread.php?tid=2

Principle:
NodeMCU connects to internet as a node. A "yun.lua" runned in NodeMCU. a TCP client was established to connect to the the cload server:198.199.94.16 at port 7500.
The lua source code was edited in the browser at http://cloud.doit.am. Click "run" button, the source code would be transferred to the NodeMCU.
The "yun.lua" running in the NodeMCU recieving the souce code file, saved it as a lua file, compiled it and ran the lc file.

Three lua files are listed here to realize the CLOUD coding function. 

The steps:

1, these files should be downloaded to NodeMCU first: init.lua,sta.lua,yun.lua

Tips: the Cloud server and the NodeMCU are touched together with the deviceID. Such as "doitCar" here. You can name it as you wish.

init.lua:

Code:
print("\n")
print("ESP8266 Started")

local exefile="sta"
local luaFile = {exefile..".lua","yun.lua"}
for i, f in ipairs(luaFile) do
       if file.open(f) then
     file.close()
     print("Compile File:"..f)
     node.compile(f)
         print("Remove File:"..f)
     file.remove(f)
       end
end

if file.open(exefile..".lc") then
       dofile(exefile..".lc")
else
       print(exefile..".lc not exist")
end
exefile=nil;luaFile = nil
collectgarbage()

sta.lua:

Code:
print("Ready to Set up wifi mode")
wifi.setmode(wifi.STATION)
local ssid = "MERCURY_1013"
local psw = "123456789"
print("Conneting to "..ssid)
wifi.sta.config(ssid,psw)--ssid and password
wifi.sta.connect()
local cnt = 0
gpio.mode(0,gpio.OUTPUT);
tmr.alarm(3, 1000, 1, function()
   if (wifi.sta.getip() == nil) and (cnt < 20) then
           print("->")
           cnt = cnt + 1
               if cnt % 2 ==1 then
                  gpio.write(0,gpio.HIGH);
               else
                  gpio.write(0,gpio.LOW);
               end
   else
           tmr.stop(3)
           if (cnt < 20) then
                       print("Config done, IP is "..wifi.sta.getip())
                       cnt = nil;ssid=nil;psw=nil;
                       collectgarbage();
                       if file.open("yun.lc") then
                               dofile("yun.lc")
                       else
                               print("yun.lc not exist")
                       end
           else
                       print("Wifi setup time more than 20s, Pls verify\r\nssid:"..ssid.." psw:"..psw.."\r\nThen re-download the file.")
                       cnt=cnt+1;
                       tmr.alarm(1, 300, 1, function()
                               if cnt % 2 ==1 then
                                  gpio.write(0,gpio.HIGH);
                               else
                                  gpio.write(0,gpio.LOW);
                               end
                       end)
           end
               
   end
        end)

yun.lua:

Code:
--yun coding demo
--Created @ 2015/05/27 by Doit Studio
--Modified: null
--http://www.doit.am/
--http://www.smartarduino.com/
--http://szdoit.taobao.com/
--bbs: bbs.doit.am

print("Start yun")

gpio.mode(0,gpio.OUTPUT);--LED Light on
gpio.write(0,gpio.LOW);

local deviceID = "doitCar"
local timeTickCnt = 0
local fileName = "yunRemote"
local conn;
local flagClientTcpConnected=false;
print("Start TCP Client");
tmr.alarm(3, 5000, 1, function()
       if flagClientTcpConnected==true then
               timeTickCnt = timeTickCnt + 1;
               if timeTickCnt>=60 then --every 300 seconds send "cmd=keep\r\n" to server
                       timeTickCnt = 0;
                       conn:send("cmd=keep\r\n");
               end                
       elseif flagClientTcpConnected==false then
       print("Try connect Server");
       conn=net.createConnection(net.TCP, false)
       conn:connect(7500,"198.199.94.16");
               conn:on("connection",function(c)
                       print("TCPClient:conneted to server");
                       conn:send("cmd=subscribe&topic="..deviceID.."\r\n");
                       flagClientTcpConnected = true;timeTickCnt = 0;
                       end) --connection
               conn:on("disconnection",function(c)
                       flagClientTcpConnected = false;
                       conn=nil;collectgarbage();
                       end) --disconnection
               conn:on("receive", function(conn, m)
                       if string.sub(m,1,5)=="__B__" then
                               file.remove(fileName..".lua")
                               file.open(fileName..".lua", "w" )                                
                               conn:send("cmd=next\r\n");--start fetching prog file
                       elseif string.sub(m,1,5)=="__E__" then --finish fetching
                               file.close()
                               collectgarbage();
                               node.compile(fileName..".lua");
                               file.remove(fileName..".lua");
                               dofile(fileName..".lc")
                       else --the file context
                               print("Recieve:"..m)
                               file.writeline(m);
                               conn:send("cmd=next\r\n");--continue fetching
                       end
                       collectgarbage();
                       end)--receive
       end
end)

2. Open the website:http://cloud.doit.am.

3. Type a device ID, such as "doitCar" here.
4. When you are in, typing the codes as follows:
Code:
print("start flash led")
cnt = 10
while cnt>0 do
gpio.write(0,gpio.LOW)
tmr.delay(1000*1000) --1second
gpio.write(0,gpio.HIGH)
tmr.delay(1000*1000)--1second
cnt = cnt - 1;
end
print("yun demo finish!")


5. Press "run".


If everything goes well, you will notice the led flashing in 1 sencond

Enjoy it.

Here is the programm log.

Code:
NodeMCU 0.9.6 build 20150406  powered by Lua 5.1.4


ESP8266 Started

Hard Restart 2015年5月27日  17:15:26

Ready to Set up wifi mode
Conneting to MERCURY_1013
> ->
->
->
Config done, IP is 192.168.1.116
Start yun
Start TCP Client
Try connect Server
TCPClient:conneted to server
Recieve:print("start flash led")
cnt = 10
while cnt>0 do
gpio.write(0,gpio.LOW)
tmr.delay(1000*1000) --1second
gpio.write(0,gpio.HIGH)
tmr.delay(1000*1000)--1second
cnt = cnt - 1;
end
print("yun demo finish!")
start flash led
yun demo finish!

A chinese tutorial can be found here:
http://bbs.doit.am/forum.php?mod=viewthread&tid=46&page=1&extra=#pid47


You can get the tutorial code at github:
https://github.com/SmartArduino/COULD-coding-with-NodeMCU

Confused Angel Undecided Sick My Cry Sleepy

Print this item