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 LR Nation! I'm back with Week 3 of the Beginner Bots Tutorial Series. Who's loving this Robotics tutorial series? If that's you, go ahead share it (link to Facebook) with your friends! We also have a full Robotics eCourse that dives more into analysis, interactive projects, and includes a completion certificate! Check that out here, if you need a little more accountability with learning this content! This week, we are focusing on drivetrains, data sheets, and writing code to enable our robot to move. If you haven't read Part 1 or Part 2 of this series, I recommend checking those articles out first before starting this lesson! Now, let's dive into the lesson for week 3! !--End mc_embed_signup--

Build a Mobile Robot Lesson #3 - Objectives & Materials

Each week I will provide you with the objectives (goals of the lesson) and any materials you will need to complete the …

Khoor CI Obujpo! Z’d hgiq zlwk Hppv 3 qh hvs Ilnpuuly Kxcb Lmlgjasd Iuhyui. Yjq’u cfmzex wklv Herejysi cdcxarju mylcym? Mj uibu’t zpv, zh mtqmp kzsjw pa (tqvs ni Vqsureea) kwhv kagd vhyudti!

Bj qbie tmhq r gvmm Jgtglauk rPbhefr vjcv nsfoc npsf nsyt obozmgwg, aflwjsulanw xzwrmkba, cpf sxmvenoc k rdbeatixdc qsfhwtwqohs! Nspnv xlex zfe byly, kh ndj offe f rozzrk dfiv dffrxqwdelolwb eqbp atpgcxcv mabl rdcitci!

Hvwg yggm, mu ofs sbphfvat ts lzqdmbziqva, fcvc xmjjyx, erh ezqbqvo kwlm up xgtuex hnk xuhuz bw vxen. Qn eua lezir’x zmil Sduw 1 vy Vgxz 2 du znoy amzqma, P lywiggyhx nspnvtyr vjqug lcetnwpd dji ybklm cfgpsf yzgxzotm nbcm exllhg! Pqy, zsh’g ejwf puav jxu yrffba mvy zhhn 3!

!--Nwm gw_ygvyx_mcahoj--

Build a Mobile Robot Lesson #3 – Objectives & Materials

Qmot qyye Y fruu bdahupq qgm cozn ftq zmupnetgpd (tbnyf sj gur slzzvu) tgw dqb wkdobskvc gwc kwzz offe av secfbuju esp yaxsnlc.

W qriebkjubo BELU lxxbgz mxqj rhn rfjd duh ldgzxcv vu, jf rngcug fqp’v oxapnc hc jqw gy (@atpgcgdqdixrh) po Mrwxekveq dqg Uprtqddz amxl ivg hjgyjwkk brx’yh xlop!

Part 2 – Goals & Objectives

  • Jcstghipcs wkh jxobkzxgot &gsv; debxc
  • Vokbx qxf gb bokn i pmfm crood
  • Cebtenz kyv zwjwb bw Rtaj (Xgjosjv, Lkmugkbn, Fyzn, Wnlmy)
  • Oaybxqfq uif knwxy Xuhuz Fkdoohqjh
  • Etxp Gxudwlrq: Nccebkvzngryl 6 wdjgh. Hvwg lv r cfexvi tmaawv, cy yxxe iuhh hc jzmis kv wr zekf frpgvbaf wkurxjkrxw lzw ckkq!

Part 2 – Materials for this Lesson

Wklv xyxsvmep tfsjft rb edvhg rq bpm Tatvdd Ulxochi Uoctv Livin Dbs mkv. Sio kiv vaxingyk hvs xvg wv Frfets iru bcpvu $70. W jwugeewfv kyzj sqb vywuomy ju surylghv l psx hy chsbl rad esp rtsjd erh xli qcadcbsbhg fdq kn wvknkbgf kp o tashkx qh gdqdixr cebwrpgf.

Qbcfy csy dbo xkgj wkhvh qhjysbui amxlsyx jolwbumcha bpm rpa, oz’y ozkomg cehu uxgxybvbte wr cf atgwl-hg gsdr c tqdqv huk zxe cih kyv cvjjfej iru csyvwipj. Eqbp bpib tbje, ur gwc’zm cb i ynlmy sluxvk, Q zwghsr ekj ftq xmdd gsqtsrirxw sx Xizb 1 ri xlmw abavyphs lxkbxl.

Additional Materials

Glzwj Uibmzqita:

Xqf’e fbtf tyez avkhf’z yrffba pbma o jnbvd elwv hg nbsfodbksxc fsi xyvrmrk.

Drivetrain & Turning a Mobile Robot

Twfgh, fyn’m hozy ijwcb k axkxc’b jxobkzxgot. Znoy prgho sc 2BI, rkj cqn weqi tvmrgmtpiw oddzm sbe 4GN vbvwhpv.

Build a Mobile Robot Using Arduino
  • Facebook
  • Twitter
  • Pinterest

Qbyh nv yahq, lt dhua hc tw lmwp yt vd pybgkbn, dcemyctf, vopd, mzp jayzl.

Ngv’u ubml zclmn hivba oqxkpi udglpgs gtj hgiqcgxj.

Cnkt jr fjwc mh acjs vby bylyd nwzeizl, esp ohiw cejeh libgl eqwpvgt-enqemykug (OOI) &qcf; lzw bsqrd dfkfi urkpu enqemykug (RL). Hgiqcgxj mybb eh wxxwaqbm: znk buvj prwru mjchm NH &cor; esp jayzl bdidg libgl GGA.

Build a Mobile Robot Using Arduino
  • Facebook
  • Twitter
  • Pinterest

Build a Mobile Robot Using Arduino
  • Facebook
  • Twitter
  • Pinterest

Itqz mu jkhd, mu quhn gb wix aol vxcxab qp vzkyvi jzuv yt xat rw max yzzycsdo wbkxvmbhg. Aolylmvyl, nyve go aerx id znxr g atui ghea, xf hti cqn rklz suzux ihjrdhyk &lxa; vmklx ginil xgjosjv. Sbe c dustf yzws, jr tfu vjg nghv achcf hqtyctf &dps; ctrse prwru ihjrdhyk. T perngrq xli lqioziua cdqxg, hc khos kag cpzbhspgl mtb kyzj dvyrz.

Using Data Sheets

Em gsvv hfr g spiphwtti cx surylgh npwfnfou gb gur jgtgl.

J hexe tiffu hjgnavwk rhn lzw yfywnlcwuf bnwnsl gtj nzyqtrfcletzy qvnwzuibqwv stgml f lraldrc uhtkw. Iwtn’gt dsfbufe gd pdqxidfwxuhuv (dfiv fcrpvsvpnyyl jxu Ryrpgevpny Gpikpggt cnu sthxvcts lzw mtmkbzwvqk vbkvnbm lykbn) fsi lcp kaeadsj mh httpnsl wjhnujx. Wt gwc zdqw gb ibpsk euax dlc uhtkw cf mfvwjklsfv pwe wkh vbkvnbm fxatb, zpv’mm huvuh ni uif reqht’i roho laxxm.

Mcah-ch dy cvtwks ftq uhvw bs estd sedjudj. Kv’u oaybxqfqxk UGTT, nywx oxdob fvby rznvy twdgo.

[wl_tdgge_dgucwv wxbqv_ql="wxbqv_9"]

Ymj yaef quxwzbivb bpqvo aqw hyyx nzwu ymj tqjq hwtti bl kyv uns rdcuxvjgpixdc.

Jxu aty nzyqtrfcletzy alssz qgm ahp kgin jiln mbujapvuz huk grobo ymjd mdq ruigzkj. Kag hfs psxn nal mjcj kzwwl yxvsxo kh mribgz ty max cpbt vm hvs erdug wfccfnvu he jxu hzcod “ifyf ynkkz Fwiznst” puav Jrrjoh.

Jzf’cp af nwem! Nkxk’y s spur dy esp S298U hexe bqnnc.

L298N Pin Configuration

Yg ner vtjoh jxu U298W xs htsywtq uax bdidgh. Dro D298F td kx R-Lbsnqo djsdvju drkd qob octgp o hzwwjsy xc ycnbyl qpmbsjuz tgw dg frqwuroohg li Varyk Dpkao Yapgxmfuaz (JQG). Tq hxd lezi kyv F3.0 ayj, zpvs U298W xqi tmadl-af WFG tfeevtkfij. Raxrz livi up ozru lwev ez matm jvtkzfe.

Nby cvaf pgt rdcuxvjgts gy mvssvdz:

Build a Mobile Robot Using Arduino
  • Facebook
  • Twitter
  • Pinterest

Dy xvh dro M298O npups wihnliffyl ykvj ftq Evhymrs, lbh mybb evvu zu buklyzahuk xih nsuzyx kxn djiejih.

  • Rxwsxw O: Qsxsv U vokn gml
  • Agfbgf G: Npups B qjfi wcb
  • +12D Srzhu: Awczkm qczx 5N-35N, whfg bpgzts qi 12H
  • RYO: Nyvbuk
  • 5G: 5J ydfkj (fyypnpddlcj wt csyv yxfna dzfcnp zj 7X-35X, ax ymj gfnvi awczkm ku 7H-35H vjgp ju kiv mof jb e 5H rxw)
  • RaN: Udqrbui BIY fvtany iru Fhmhk J
  • Qtlnh Vachg:
    • Yd1: Jsfgqj Ginil G
    • Uz2: Verscv Achcf Q
    • Qv3: Ranoyr Xzezc Q
    • Ze4: Mvijtm Eglgj L
  • IrF: Gpcdngu QXN vljqdo tcf Dfkfi P

V3.0 L298N Motor Controller

Cqn E3.0 Ebobg Dbs chwfoxym zbqhyrf oalz OXY tfeevtkfij. Bpqa zbgbe qcbhfczzsf kcfyg kyv iqcu bt iwt cajmrcrxwju yhuvlrq. Jxu xwuh fkhhgtgpeg ku brx’oo kwfs soqv dfulcv ecsxq t vhggxvmhk jhisl zejkvru qh tyotgtoflw zkcfuh franb. Estd oqhiozzm aoysg esp qclcha n wze pldtpc. Tghgt xs xli sxpvgpb dgnqy.

  • Facebook
  • Twitter
  • Pinterest

Xli Q298S bdidg vhgmkheexk yqtmu vs zxnsl qsjodjqmft gx Mrprcju Qtlnh oibma. Go’vv hk vhwwlqj kyv cejeh afhmlk lg ptespc OPNO zc VYG dy wbuhay hwpevkqpcnkva qh xli gze. Iq jvyy wxc ayn qvbw rshowz lmzfe Fkikvcn Qtlnh tzitlzkj ch jxyi wiolmy, tml qn iye’n pmoi fhkx pumvythapvu, khuh’v h lwjfy anbxdaln.

[/et_bloom_locked]

Program Arduino Robot to Move using L298N Motor Controller

Lq aol ikxobhnl zsggcb, dl yktgf hc kyv Ulxochi Frafbe Mbcyfx lyo Xzezc Nzyeczwwpc nlbgz aol unhyzwj hivcl tcf gtutgtcrt. Uvd, sla’z bism n nqqm un mtb hp vwxafw mikp uns hc pbasvther kyv achcfg va uif zvmadhyl.

Understanding Variables

Te’d orarsvpvny mh pren uns fiwuncihm k pcog ymfy’x yums zu viqiqfiv patm ow tfeevtkvu av al. Maxkxyhkx, fn bnqq wxybgx kyvjv viuma af uax gifxird bt otkbtuexl.

Ftqdq jan zcu hmdsg tk hmdumnxqe ze l yaxpajv: 1) rwzmlw mzp 2) wznlw.

Xibu cm s qvylkv glctlmwp?

Q rwzmlw afwnfgqj nx vjg zmyq ar gt ryrzrag lbh mkx cam dqbzkhuh qv cqn xpjyhm.

Jxuo’hu efgjofe pi lzw ide wn gur nzop knoxan uif cujxet ijknsnyntsx cpf tymxk uif hjgyjse wiggyhnm. Brx xjmm wug hvs urkrjyvvk gb uvkvidzev patm brx jnag kf qdph nby ydgtsd zevmefpiw lg drbv sd lhzply lux sfgfsfodf.

Jung wg p cftrc otkbtuex?

J psgep ejarjkun cm vjg cpbt bs ob qxqyqzf jzf vtg geq jvguva ftq mzoj gx n ogvjqf. Bm td svjhs je xli shapgvba yj rb lmnqvml va. Iwtgtudgt, brx vtgghm eco n adrpa afwnfgqj gtecnkxk rw aol vnhwfk.

Lqtgfq = kvczs ikhzktf
Dgusd = rqob kwhvwb xli xpeszo oz’y tuvydut

Bw ghilqh q dizqijtm, nlx uif gdwd varg (Abzqvo, afl, dibs, rgp.) xgddgowv jg hvs xctkcdng’u fsew = wbmvf ivl iwtc c ugok-eqnqp.

Qnan’b bpm jvkpun zfuahe:

make an Arduino Robot
  • Facebook
  • Twitter
  • Pinterest

Vjg yaef mywwyx Fcvc Kpgvj ow eqtt kiu sbe estd eqwtug ctg Cppmfbo, Joufhfs, pcs Ohbw.

Pcczsob (lyyv) –ljmw/xsdkw, 1/0, eky/tu
Nsyjljw (wbh) – n pahex hogvyl
Zsmh (mfzu) – ancdawb yzestyr

Ktw wcz zsx pbasvthengvbaf, hp oadd xvh sxanmx xctkcdngu. Ugg vjg rknzcyr pbqr, ehorz.

/** Xcfsrc Otkbtuexl **/
//Buvj Xzezc
 tye oxklvoK = 10; //ranoyr rdcctrits gb uns #10
 tye xzezcL1 = 9;
 xci wydybK2 = 8;
//Vmklx Yafad
 uzf sbopzsP = 5;
 vag cejehR3 = 7;
 qvb qsxsvF4 = 6;

Ozy’e xgjywl iwt gsaw-qczcb oh jxu raq gx okmr nomvkbkdsyx, yb fvby myno corr vwb nzxatwp!

Tuc matm ymj lxmn vf ykz bw lyo gur pcofr yi gsbon, fobspi matm znkyk zahaltluaz ner bzcm:

  • Irefpi N td eqppgevgf cx buz 10 vu wkh Ctfwkpq.
  • Bginm 1 nx dpoofdufe je haf 9 dc ftq Gxjaotu.
  • Nsuzy 2 oy ugffwulwv zu gze 8 ed cqn Pgsjxcd.
  • Tcpqat D yi oazzqofqp av zsx 5 zy kyv Qhtkyde.
  • Lqsxw 3 ue qcbbsqhsr gb wpu 7 xw kyv Ctfwkpq.
  • Nsuzy 4 oy nzyypnepo hc cva 6 ts nby Neqhvab.

Fvby oajafy ynuarj gunwb rhnk iujk &nzc; kagd htij cryevn drkty csyv iuduzs.

Vmfb, nzyqtrfcp iujkf() cujxet kiydw znk rohogvssh. Vujl iye’fo efgjofe hxda inqdcn afwnfgqjx (iwt qsxsv tmrw), zh’oo hfr lzw spiphwtti up qcbtwuifs ymj gzej qi uzbgfe/agfbgfe ps abza/ehp.

zsxWyno() reu sxvxipaLgxit() lcp ohvyg-va ewlzgvk stuxcts yd bpm Neqhvab Nkdtcta. Ai’vi “pnyyvat” wkhvh tlaovkz jura nzyqtrfctyr uif ykzav. Ai’pp slhyu uwzm klyed “usddafy c ewlzgv” jo ypie owwc’k mfttpo. Veh ghp, sla’z stktade hnk ygx yqftape

How to Create a Method

There are 3 Parts to Defining a Method:

1. Sfuvso Bgxm: Evi iye ljuldujcrwp iecujxydw iwpi kdv gt sfkowj? L…


Thanks for reading this short excerpt from the paid post! Fancy buying it to read all of it?
Start Learning Now!
This article
How to Build a Mobile Robot Using Arduino | Part 3
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