12NodeMCU+L293D (自走車)

(2017/03/18)

好久以前在淘寶買了一個【ESP8266 WiFi 電機驅動擴展板 L293D ESP12E Lua 物聯網 智能小車】,一直都沒去動它,這幾天拿出來玩玩,發現它是doit的產品,已經寫好了NodeMCU的韌體及手機APP,也就是裝了後就可以去利手機去控制自走車了,真的很方便!擴展板的外觀如下

此板的細節,如下

別人的製作歷程影片:https://youtu.be/UsIB8lTm3Ik

重要資料提供:(在產品下方)

http://www.banggood.com/Geekcreit-Doit-2WD-L293D-WIFI-RC-Smart-Car-With-NodeMCU-Shield-For-ESP-12E-Based-On-ESP8266-p-995166.html

Description:

This WiFi RC smart car is designed and developed based on ESP-12E from ESP8266, which can be controlled by mobile, PC.

This tank/car chassis is assembled by ESP8266 WiFi module, Based on which, doit company has already designed and developed the mobile phone App with Android and iOS version. By the Apps, the tank/car chassis can finish some basic functions, such as, forward, left & right, back, and return. Doit company provides the richful documents, including the source code, which can let many developers, lovers, and students to DIY the wanted functions. More details, please see the "download" menu.

Some useful download links:

https://smartarduino.gitbooks.io/user-manual-for-wifi-car-by-nodemcu-doitcar-/content/index.html

Motor DataSheet for Tank/Car Chassis:

http://bbs.smartarduino.com/showthread.php?tid=2039

Chassis Installation

http://bbs.smartarduino.com/forumdisplay.php?fid=21

Software manumal

http://bbs.smartarduino.com/showthread.php?tid=2036

Android App

http://bbs.smartarduino.com/showthread.php?tid=1978

iOS App

http://bbs.smartarduino.com/showthread.php?tid=2037

FirmWare

http://bbs.smartarduino.com/showthread.php?tid=2013

Motor shield

http://bbs.smartarduino.com/showthread.php?tid=6

NodeMCU

http://bbs.smartarduino.com/forumdisplay.php?fid=2

http://bbs.smartarduino.com/showthread.php?tid=13

更新 NodeMCU的韌體,進入上方的FirmWare下載韌體 Doit_Nodemcu_Car_20160115.zip (附件也有),再利用Flash_download_tools將韌體上傳到NodeMCU,如下圖

安裝手機APP,進入上方的Android App,下載 http://en.doit.am/DoitCar_2016_0115.apk (附件也有),安裝到手機,執行畫面如下:(使用前手機要先連線到Doit_ESP....的無線AP)

組裝自走車(電機驅動擴展板的A控制右輪、B控制左左輪)

測試成功,但手機APP中後退的按鍵好像有問題,車子可以前進、右轉、左轉,但不能後退!有空再把問題找出來!!!

ESP-12E电机驱动扩展板

介绍:

基于ESP-12E开发的首款电机驱动扩展板。

特 点:

l ESP12 DEV KIT开发板扩展模块;

l 引出ESP12 DEV KIT所有功能引脚:SPI、UART、GPIO、AI以及3.3V电源接口;

l 扩展两路电机驱动,可直接驱动两路电机;

l 板载电源开关;

l L293D

l 电机电源范围:4.5V~36V;

l 控制电源范围:4.5V~9V;

l 电机电源、控制电源分离;在实验中,可通过短路块合并,将VIN和VM短接,同时给电机和控制板供电。

产品技术规格

    • 电源输入:

      • ~ 电机电源(VM):4.5V~36V,可单独供电;

      • ~ 控制电源(VIN):4.5V~9V(10VMAX),可单独供电;

      • ~ 模块提供短路子(短路VM和VIN),可以方便地使用一路电源(必须4.5V~9V)同时完成电机的驱动与控制;

    • 逻辑工作电流Iss:≤60mA(Vi=L),≤22mA(Vi=H);

    • 驱动部分工作电流Io:≤1.2A;

    • 最大耗散功率:4W(T=90℃)

    • 控制信号输入电平:高电平:2.3V≤VIH≤VIN;低电平:-0.3V≤VIL≤1.5V

    • 工作温度:-25℃~+125℃

    • 驱动形式:双路大功率H桥驱动

    • ESP12E Dev Kit控制端口:D1,D3(A电机);D2,D4(B电机)

    • 模块重量:约20g

注意事项

l 插入ESP-12E模块时,请注意天线方向与扩展板方向一致;

l 利用短接模块,可以同时给控制板和电机供电。