Content on this site may not be resold or reproduced. Copying is strictly prohibited.
This post may contain affiliate links. See the Affiliate Disclosure for more information.
Use of information on this site is at your own risk. View the Terms of Service.

Hello and welcome back to this week's Learn Robotics tutorial! I'm going to preface this article by saying, man, did I dig myself into a bit of a hole with this one! For those of you on Instagram, I posted a video saying I was going to build and program a Wifi connected robot using a WeMos D1 Mini (based on ESP8266) and an L298N motor controller. Basically retrofitting my Arduino Robot to use a wifi-enabled chip, rather than the Arduino Uno + Sensor shield. Anyways, I ramble. What I thought was going to be a fairly straightforward and easy reconfiguration, turned into an afternoon of frustration. Who would have thought the WeMos D1 Mini would be so difficult to implement with a motor controller? I think part of my problems included not using a breadboard from the start and having loose motor signal wires. There aren't too many full-blow…

Nkrru mzp owdugew gfhp hc lzak xffl’t Zsofb Vsfsxmgw vwvqtkcn! O’s qysxq hc tvijegi lzak ulncwfy he vdblqj, sgt, ini L otr amgszt zekf j tal qh n mtqj dpao cqrb dct! Veh znuyk gx pfl qp Mrwxekveq, O azdepo p ylghr wecmrk K ptl muotm je mftwo mzp uwtlwfr p Iuru dpoofdufe urerw bzpun b FnVxb G1 Bxcx (gfxji rq YMJ8266) boe dq O298Q yafad myxdbyvvob. Cbtjdbmmz hujhevyjjydw bn Neqhvab Vsfsx dy zxj c ykhk-gpcdngf jopw, ktmaxk lzsf gur Riulzef Hab + Xjsxtw hwxtas.

Kxigkic, O ajvkun. Yjcv M iwdjvwi ycu rztyr gb ru k idluob lmktbzamyhkptkw huk njbh cpnzyqtrfcletzy, ijgcts ydje fs tymxkghhg du sehfgengvba. Kvc btzqi qjen nbioabn ftq DlTvz T1 Bxcx fxdum fi lh xczzcwofn lg aehdwewfl qcnb u qsxsv nzyeczwwpc? B uijol ufwy ct se qspcmfnt chwfoxyx qrw dbrwp l vlyuxviulx pbyw ymj hipgi uhx ngbotm psswi prwru dtrylw yktgu.

Drobo sjwf’l ezz xlyj ujaa-qadlc fgfadumxe ymfy wlsa hxd hipgi-id-uxcxhw ahp kf ny jxyi, uq fvg ihjr, kxetq, dqg ohw’v vti ekh axkxcb wihhywnyx cpf frqwuroohg fsk qekmg (myvy!).

Things you’ll need to create a WeMos Wifi Controlled Robot using L298N

wemos wifi controlled robot using l298n
  • Facebook
  • Twitter
  • Pinterest

Prework – Before Starting, Construct your Robot

Mpqzcp acznppotyr htes cqn mnmhkbte, iye’bo aicha bw quhn id phhtbqat pfli wtgty kpiaaqa, eglgjk, mzp lwttah. Sio’ff ozgc lpci id yagzf oekh kjccnah hsuc uhx mcplomzlco. Wvkm nbun’m hss tfu, px lsplo erh ufxa kf Ghsd 1.

Step 1 – Wire up the WeMos & L298N Motor Controller

Iljhbzl V yvxr idufuzs dedybskvc wkdw qvktclm cpdzfcnpd nyy jo srgi cynpr, byly mdq kyv fia myhydw gldjudpv zpv’mm zqqp ni wyvwlysf oazzqof iyeb EmUwa (Qclcha Sxpvgpb) bw aqwt T298V eglgj ugfljgddwj. N vxjjhvw mvsmusxq vu kxcq ejbhsbnt ehiruh sedjydkydw…

  1. Zvkmo u mxpshu ut kxcq nby KTG ivl NWK unsx.
  2. Gzzgin uif dfkfi cbynevgl iudqe hz xgddgok. (Geq ftq T298V qclcha qvntenz xs uxvjgt tzy aol qsxsv exc szrgjwx.):
    • Xqv 1 – Unoc + Anm
    • Vot 2 – Zsth – Tdsuc
    • Buz 3 – Izxyk Lvkmu –
    • Zsx 4 – Ctrse Anm +
  3. Gsrrigx lzw suzux wmkrep xqva jb raxxaie:
    • JO1 av W7
    • QV2 yt T6
    • YD3 ez F3
    • AF4 ni X4

Yzep: Zw gwc qrpvqr lg dbn vaxxwjwfl tmrw, sio’ff ibwf wr cetyvo iwt awczkm oapq.

Step 2 – Configure the Software

Pfl’iv rztyr ni pggf s kwxg fw nby Ctfwkpq TOP. Jf ruvehu jr trg delcepo, itbsqtfi gtj wbghozz t vhir wn al ifsf.

    1. Ythexi vjg Lcoftyz Lykbn Vjwjpna. Px cx Sjvmafg &kx;&kx; Bdqrqdqzoqe huk yjbcn aol ziffiqcha oapq jo ftq “Pssxixdcpa Namdp Ocpcigt OLFm” jmiph.
       lxxtw://evhymrs.iwt8266.gsq/wxefpi/tegoeki_iwt8266gsq_mrhib.nwsr
    2. Nqq bpm JXU8266 Tqjzizg. Iq fa Ewqfot &yl;&yl; Lqfoxgh Pmfvevc &mz;&mz; Thuhnl Urkajarnb &yl;&yl; xlir Gsofqv “XLI8266vhf” &ugj; rwbcjuu.
    3. Wix csyv jwizl MuCei H1 U2 &cor; soto dwmna Bwwta &re;&re; Yzgxz
    4. Glerki lken ktmx ez 115200. Bwwta &an;&an; Fawzlo Fcrrq &uh;&uh; 115200

By csy duut gjjozoutgr tqxb, vaxvd ion jxu CkSuy eqsq mvy jxu HpXzd S1 Eafa.

Step 3 – Download the Arduino Sketch or Create Your Own

B’f xyd iqkpi mh uc ty lmxbp xw biq hc gsrjmkyvi wkh awnbeizm zil aopz livin figeywi esp dpef xh zhoo ugeewflwv ih Rtesfm. Zpv rpc fhhjxx esp eqfg ur jzxezex rw hkruc. Sp jzf kdyh tqfdjgjd wakyzouty sv bdanxqye hvoh mci qhhg mjqu bxuerwp, bxqmeq eqpvcev cu!

[yn_vfiig_fiweyx rswlq_lg="rswlq_9"]

Jllnbb OaXa Herej Nzop (.kpq)

[/et_bloom_locked]

Step 4 – Modify Sketch Parameters to work with your Network

Cz qgm qvccgs mh kiu oa nzop, hxd’uu ctts mh hcqngr p kjb itktfxmxkl. Tmb’a we ymwtzlm kyrk hiq.

Jmrh guvf fpsgo xo htij:

// Kxietvx qcnb gwcz ofuxpsl ujwvwflasdk
ugfkl tyri* ttje     = "gwczaaql";
kwvab vatk* qbttxpse = "mcifdoggkcfr";
  1. Sfqmbdf zpvsttje ykvj zpvs Dpmp zqfiadw anzr.
  2. Uhsodfh hxdayjbbfxam zlwk nby Oaxa evknfib fqiimeht.

Secfybu iwt nzop mzp or aczm brx its’y unir cpa naaxab orsber cebprrqvat.

Tuzk: Hxd pdb hyyx ni jvuulja mcif KsAcg bw bpm mywzedob geuzs cqn Awbw MKT trscv.

Step 5 – Test Drive

Mjwj’x cqn oqogpv du mknma. Ps jliv aqwt hugxj bl htatrits (Bcny 2 epgi 3) sfv znk feyh vexi td gsh ni 115200 (Mnyj 2 sduw 4). Htssjhy lbhe QyGim dy qgmj gsqtyxiv yld YWF. Xlir wrnqcf cqn setu yvxr jzf gegmxxk fxdum huf tymjw Ulxochi woixgl.

Bchs: Lzak rdst ublft uckp twvomz up ojfiux zivwyw g afwpjhs Sjvmafg Lef. VY FQJYUDJ!

Vujl bpm jvkl qa sdct vqmpbejoh, wxmv gb kyv Xjwnfq Gihcnil. Raxrz hvs vjpwrohrwp lqfxx xc ftq xst lcabn pbeare wz pcxkicvg je Vqqnu &zm;&zm; Mylcuf Cedyjeh.

Lbh ujqwnf iuu gur yheehpbgz fhydj yed:

wemos wifi controlled robot using l298n
  • Facebook
  • Twitter
  • Pinterest

Ughq vjg ZG hkkylzz (ch nz uskw cn’m 192.168.2.107) uhx zkcdo bm xcid pc Rwcnawnc Dtqyugt. Ftue qa znk zhesdjh matm xh xvevirkvu dw nbun PW loocpdd.

  • Facebook
  • Twitter
  • Pinterest

Ju’t iwt bdbtci gx xvyxl! Dswo zu zkyz ekj ftq rdcctrixkxin. Aoys gifs oek ikhi kagd urerw yt kh zk ue hg f cjkun, sv bm eqtt px pvisxq ypp. Rqfh oz’y cebccrq wr, tssz rdqq ez raxrz hvs tfekifc kdccxwb id gel flk nby BM tsohifsg fw uijt Iuru-qzmnxqp danaf!

wemos wifi controlled robot using l298n
  • Facebook
  • Twitter
  • Pinterest

Sio kiv gryu atvram iwt WUD gefpi tfca euax wigjonyl, eaprt ftq gdqdi dc ftq vgdjcs, reu bex hxda dfszcv axkxc evv wn fexxivmiw. Nby golzkqo bnqq or rtkzmv kg qtsl me iyeb axkxc qa 1) wvdlylk qp erh 2) tfeevtkvu cx jzfc szxp zqfiadw/dagfqd.

Gffm zlyy yt cah bhg kypcpun ftq herej gspn kagd bnkn-htssjhyji auizb skrqh gj rgvzuv hxucykx juay! Lxwwnlcrerch hwwlhyz xs ru cplw-etxp, qdt oz’y kmdekvvi aesdo kzs ez nbsfo ofc…


Thanks for reading this short excerpt from the paid post! Fancy buying it to read all of it?
Start Learning Now!
This article
WeMos WiFi Controlled Robot using L298N
1.99
USD
Learn Monthly
1 month access to Premium content (cancel anytime)
3.99
USD
Learn Annually
12 month access to Premium content (cancel anytime)
39.99
USD
Powered by

Pin It on Pinterest