0% found this document useful (0 votes)
125 views

Arduino Notes Part 2

Uploaded by

Jherome
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
125 views

Arduino Notes Part 2

Uploaded by

Jherome
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 56
4 Sleppar ister ARDUINO 'R@ tomect He pine A-D of inkstepsPerRevolution = WHE | neck Fir data sheet of stearate Used int mot Speed = 10; Orpen (HN por emn) Stepwr myStepper ( slepsPerflewslution , ¥, 10, 4, Wy int db = Sod; Youd sefup Cf W pat your setup cade here, to run once Serial. veg (9000) 5 mys sotSjeed Crab peal) ; fi T oid loop () ¢ subsotie 01 yutule R06 / put your toatn onde ee 10 run repeatedly Genginerdmnath mysteppan Sp (steps fey Reni ubio 6); |) posibve diechon woiahony delay at), mg Spr. Hep Ecteps fey Reni ubio ): [I neyadse Aucechen abate delay lak), You con poy with the code, like drarging —0e%peed fo 3 rpm, Bipm eke or change Hie shepePer terolubion by alo any mt. ee. Prochce Pro\dem: Wnlea de that will toagle the drechon of baton of Re slepray ety hin He gud hothn uiken 16 pressed PROGRWIN: # include < Steppo > it skepsRerRevclation = wee 5 int mot Speed = (05 /) \Orpm ) Stetnur mySteper (akplatoutton, gy, i, 4) int dt = Sed, ne ath = nt moar = 1) Dow ic, wot Iputbont) qltlew pnd, —f in putforygl WA =U, por [/O Youd setup ¢) f = 1 pat pur setup cde here , +p un once ENP pn Irhow Serial. beg) ( alo00% ; myslepar. sot Speed (nepal) j \ | f slegnat tanto vacd “onMlede CouthnAn NOT), tse on ytbe, PS Atal Dale, ( boulteadn , Her, Genginerdmath 3 Yoid loop) ¢ J pak your main oode ene, 1 run repeatedly butbrilalNew) = cinta Read Catt’) , if Clouton DdVal==1 de butndaill ==) J reat = motDw (1) » 3 my Segqur skp Coot Dir € Dy huttn Ddval = Dulin New\h\ § TUT switcy yt cite! fae Med areca Tk donds to Ve DN" and OFF al C Foie DER” 2 Wh vilorakes Jerwinal| Strata. vertical position Yon’ a PROORAM: — Check the ON ow OFF stake of Ll suibch whan we Ale Pin = Na mk bu "i we ssubsorite on youtle, 29 ’ @enginerdmath vold setup Of Sued Yak yout sett nde here, + van once Pe pur sary oO ! Sond. veg (Abdo) ; we piMode. C blePin WOT), 0 (hen Verto dig lal Wide, ( HP Holy, J ° 7 Adu Wed ff) hun Yord loop) ¥ gudpn mm | I pak your main onde were, 10 run repeatedly BVA = diytalend CAltOn Sental. patty CBI); g ProoerAin -turg green ED ON yuku fe, Alt sven 1¢ pot tiled and fun wot AUER A= 2, wed LED ON whon it is bled ink ElkeVal , wt ean = 6, Nb geentin= 7) Yoid setup ) { V pat pa setup cade Here, 4) run once, Serial. begiv (b00) | pMede. C lt Pin NOT), diglal Wile [ HUEPIn Hb ) pnMode CredAn ,” puTviry, oa g: Subsafilte.0n youtube, 2 fb pnMode. C geen, DvIWry, @enginerdmath Schentic. Yord loop) ¥ J pak your main code ‘ere, 0 run repeatedly PIN bruno — PNY Arduino HRVal = digtalRead CaltRn R= s0r = R= ma Sertal. printiny (-ttVal, = 7 if Cattial ==0) § gon diglalWile L geerfa, pict), ye YN digll ie ( red ) WW, LT ivtuno 6D pm 3 He Callal == 4.) $ atgh|Uite l me fe ) LOW yy fan, heawuwo Alay Wile. L rd IHohy, Gnven PNT 3 DC monk Mobor Controller (2°39) 0) Ae \ en pp ENE coniels He cpoed 4 ‘ack 2 im Ta ipa) wrote, andoyuie ne Ss ory oun ‘y Chin wath ~) =“ a 41 w wv be s—p vf me, (Og wie) Use emternal power Supply 6 v2 ansf—N IND ego) (itp ile) Bt can suppy He BTN POT alt tak Nad eaent Armugh he DC moTDR, ——— he mle vans 1 Ohe OV Lyn) ums wont tpaneds duveckion, ov ys? 0002 (90) bmg if Ina Low 2 ee Ne (et) alone ga He mm» ok daveckion, 44 subsafilte.0n youtube, $b mawecnenis Genginordmath Arduas® py 2 —> | an yy ib mens 2 ahs i) Acduse® 9 CuD-——> 4 bel a | + 4 orton tt. Se pat 6 pure w}-— I Ardoav? pry 3 + 2 hwR—m — L2ap Lamp Na ——> ¢ Nendo END 4 etered ogy PROGRBM —> THEA WE or® OW Lop He Fam) Ccaubey cag ube) int specdn +8) int da = 4y int dw a= 3 } Wnt MBpeed = 8; Youd setup ) f 1 pat your setup cade here, to wun once, aad. begun (4bd0) ; priode Cyan , ovtAT), pnMode. C dwt, DUIPM); pnMode, C avd , DUTAT), yord loop 6) ¥ IF put your Yeain code lnene,, 1 run repeatedly diglal Wile L div ) Hor), digtal Wile L dire , Lowy, analog ite (sped fin, mspext)) S pu can play with te cede, and cha tha mSpeed or charye te, j dire tr Ubck wee Cant DY ay2 ) " ms Somehttes, Hou woh cannot tun @ nat eed of LOD lel, pu van Gok 9 start Kide Wy addy We cate ' Youd loop) ¢ subset 0n yastuloe Bs I pak your tain onde Were, 10 run vepeatecly @engnerdmath dlgtalWDnte, { div ) Hey, digtal ite L dive , Lowy aalelle CspeedRa, 55°95 delouy (Ww); avleglite (sfeetRa, 190 Y, delauy ( Bw), 3 PROGRAM — wing HIt such, eminl He, rote b wh von Re, switch 15 jilled, nnd mohe te cum of tk 15 nok int speedhin = ©) int de = 45 int dw 2 = 3) WL MSpeed = Ay mt A\EPin 2 2) int Rival ; void setup ¢) f [pat your setup ede here, > cun once, Senet. bean) ( 9bd0 | pidlode, Cdn, DviT), nade ( dv, OUTPUT); piMode C a2 , DuTPITy; pode. CHilKR, INNTY, diaytal Wile l Fin 5 Hoh, Subsorilve, 01 ytube, Rf 3I @enginerdinath Yord loop) ¥ IF pak your main ode Wnene,, 40 run repectedly diglal Wie L dur 4 » as; diglal Wile dhe , It lott}, AYA = distalead, LA, if ( HiNal==0)§ analoytlite ( specdfin, Speed), 3 eC Ala ==1)$ atraloy ike (sped fin, D a 3 Schematic CONNECTIONS Ardan® pq) & ——> | an ay ib Asha? we on 3 Inn . Ardour? 9 ?" Oh — 4 we [+ \ Adan ee s wt pnb Jackie, v TZ 0 of he pn + 2 w-—w Lap Lapp Na ——> ¢ Newt EN 9 erento sappy Z Arduino edu GnDAn a PROGRAM — Canta He, DE Moher With Joy stk, th speed ard dreckiny ‘ Qn = S ink en 4) "y pak pin ank grisl ore drrechen ) mk dir 2= 3) Pk gin AY and ope (opite dtechyn Ink mBpeed } /L vehwer, DO LORE) bh 24s C PuUX w+) mt Ro = At; nb Nol, Subsotlve on youtube, 206 Void setup Of Cergnerdnatn wpe a setup cde here, 4 eun one: Serial . begun ( Abdo) | pride, (goon, DUTP, gintode. C dwt, OUTPUT); pnMode. C de®, duIPT), pated, © OP" » INWTY, ord [oop ) ¥ 7 pu your Yrain cade neve, 19 run repeatedly Noal= malay Read U&n)j Serlal. print (gay ; Hf hath wos mSpeed 2 Lf jlalesie : x i . Jal af pial =312 awe d Sek De dia v i a) * N= YoS) yr - 8 .? ~25 ‘ hae hy oe ! me Yd Mas \ hr %) 33 1 a Y= WO BH) ‘ cn Y= WAR 1) y- ase [apo Bro # a Lx 2517) yo Saree mSpecd = (Eyal FAB ' mSpeed = a Nal- as aT Subsotilte 0 5 wn youtube, Bf dlgtallWite- L di ) Low i Benjnerdnath digtallWiie L dire, Wok y, mSpeed = AB al +B, array ne, (speed An, Speed )* digtal Wie, L div } Low, digtalWiie L dhe, Blok, anlage CopeetRa, wpe), 3 Gy\al 2a) § igtal Wie L dev 4 ) Holy, digital Wile L diva Low) ), mSpeed = Sql — oS. analog ike (speed fia, mSpeed )* a Supsarive 0 youtube, A+ Schematic 74 ) @enginerdmath CONNECTIONS fin 8 ne ? Ardun? 9 & ——> | on am " of Lut Ards 99 4 2 wet vl € L2a3pD U4>D Motor ted wre 3 our ‘ouny| V Acdac® py CuD Pd y wpe fc ey Ard? 99 (WD—§s > yo we Mone blackulte, 4 —turz wt-—— 0 Ardone® py $ (N2 Wef-— Ye x Zyor" Ne ——» ¢ Nowtar END 4 endennel saggy [___, pn2 sitehy = ond PROGRAM - Cortiol DC Moby Speed gna Direction with 2 Push buinas Flow BRT / POoRAM PAN Frrwod dyreddon maqeed Push Yu vii (oun and and — push thu speed Ineases in owe drechsy left Wl and deocase the seed nhl I shps, Haun reser datechery Inertasiy dhe oped, Spaz spe =i0o Su i j=-{0| wv nul WL 0 if mead = ~10,- =O gedien —__I Lf mopeed < 2&5 gek moped = - ae” = Subsoriloe on youtube, Rf CoNNECNONS Schownott c pe A Sonne U Acduar? py) & —— | Ardian® oq 4 2 Meee due 3 ay e ‘Acduaw? 9.9 Cu) ——o 4 Arduae? 9x9 GND- 5S .) wv moter olackulte, v2 Ard pry 2 + Ine Noe ——> ¢ Newt END salad) i “no PP Arbo rocker nt speedhn = &) int d= 4y Li wot a= 35 nh mMSpeed =O nt BPl=¢ mb BPa =a) nt Bt) 5 nt Bava ink db Jeno; Void setup Of (pa your setup code here, to run once, Serial. begun (9000) 5 pnbode Cyale , DviAIT3; piMode. C drt, OUTPUT); piMode. C ave, OUTPUT; pinMode. C BPA » INN), pnMode C BRD » INNTY, digtallWile BPA ) He, diglallliie L gPo , Hib, pnb Lap Lud a & STIS VEAT Subsoribe, on yputuloe, Bee sb ord loop 0) ¢ @eryinerdmatn I put your rain ade were, 1 run repeatedly Bt] = dialled L BPA), gova| = dijtaleod BPA }; Serial. print" fatten * "yy Sertal. print ( Bival )y Sertal. print (fatten 2 "yy Serial. print (9nd) Sertal. print ("Mabe Speed") Sertal.. rial ( mS peel)) \¢ Uewal ==) § inSpeed = MSpeed “0 5 bean) (dk); ep Lealal ==0) § Speed = MSpeed +10) ddan Lab); a5 Speed > 25) § nSpead > WS) 5 if Comigoed £285) § oo “| : Condpeed = =10) § nSpead = (v0, 3 if CmSpeed ==~10) § nSped = (00 5 3 ssisabo on ype Rf 39 \f Cmdgeed == I] wSpeed ==) 5, f nope 05 Gexerinalh 3 if Comdpeed == 40 wSpeel == -45) ¥ nSped =D ; if Comopeed == 0) 4 analog Wiike ( speed a Speed ), ; if Cmdgeed 0) 4 Algal Wie L dirt, LOW) jy diglal Wile L dwe, plot} atloy Une (speed Rin, Speed ) 3 if Cmoeed <0)4 digalWaike- L div ) Hoh, Algal Wie L dhe, Low yy analog Unite (speed ian ) civ (Speed) 3 3 DF Subsoribe on youtube, Rb = Benginerdmath 4-Bit Bry Decimal Uewndewna\ | byle= Shits I/ canbe \w decawal itary or bandeciva| y Bow = OXD OoTpuT 0000 O d Ovo ( | 00 10 2 9 poll 3 3 D1 00 4 4 o101 t S 0110 b L Ditl 4 3 1900 4 © (001 q q 1 o {0 lo B J Ol ul B 1100 iv c Lt ol B D a) 4 E rity ‘s FE PROGRAM: — Yeradeuiral, Lounkets be fle) wnt GL = S00; Void setup 0) f ap a setup crde here, to run once, Serial. begun ( abd0) j Yord loop) ¥ J put your main ode lee, +0 yun repeatedly Serial. orntiyy Cryst, HEX), / ex, is ayPyle = mye + 1 TEC fe 4 deloy (d¥), “ =p BD [rere veins) mud y ” = 54 subsorilbe 00 youtube, RPL PROGLAM, Vetadesiro Decimal , Bnav Counters Benginerdmatn bof, nufagte, ~ 7 I cane in decinal any or Prada init dL = S00; Bovmded ox0 OUTPUT, Void setup 0) f [pat a“ setup cade here, fo run vhce: Serial. begin ( 4b00 ; Dd j J pat your ratn ovde ‘ene, 1 yun repeat t fr Yod loop ¢ § Serial, Pyle, VE HEX, 15 ft myBike ty be dusplayeel Ape ca print (fle, )j / on, | "% ke ers ie \ ee, 16 Bt Tybee ef Re Serial. peat rye, IN nea Serial print ( "yy Om Serlal. printin ( myByle HEX); po oto ? 2 |0 2 ayPyle = mye + , 5 deboy (AY); “SG QOUT GW s @ lo Serial ty Parallel Shift Register (440595 a PINS -9, 15 Subsoribe on youtuloe Je Qenginerdinath BD"G DUT PINS GND Grud, Ves 9" Sena\ Dut WR adler releod Iohve boo SHE Shfhigsht chap wp eegsher dace E Jaton gin) o output ovale, DS somal deci inp NK Siggy elrye L--tee, Us) 15 @) te) 26) ale’) yoy) (08) dad) Las) l-ps (dopa 2) =e PREPPE p at) Uy Ace Ang Ooo sb Hepoorm = An as—3 wf -ps Arduta (2 Pin 1D NS ai} 6 UE Pin tl wes nL_ ee hduml) Ante bby WP HP ferduond Pie 3 69+ jo — mR Pay 4 ow ¢ ay 69 Pin ConntecTio N at Uy 2a 15 Lp oul Pin 63 3 W bus | 44 —fy oL-DE Cin ietan) eos ni Ser fog) bey vw der Geta 5) a+ oie - sv re? cm ¢ 41 69 * jeide GND pn prkume GUD Frhun i " PROGRAN) subsor'lve 04 yprtube hb ot Laken = Uy Bomgnrinat iy AockPn= 4) in dakaBin= 127 ie LEDs = OFF j void setup Of fl put r setup nde here, to run once, Serial. begun ( Abd0) ; gated, € tackle , DUTT, pnMode. C data, » dvTPT); node CebdBy » v7), 3 Yoid loop 6) i ~ your matn code \ete, +0 yun repeal bal Wile, ( atch Pin, ey pest Cdatain, cock , LSBFIRST, LEDs)» diglal Wile L Latch ) Hor}, 3 PROGRAN) 9 ine Laken = Uy ine vcePn= 4%, ine dataRns 127 ynt dat = a5, bye LEDs = Dotowiol0 bye LEDJs= Wp 010101 0] ® Void setup Of subscribe on yubuibe, 2.9 pat oa setup onde bere, to un once, @engynerdmatn serial. begur ( ed0>) 5 pnMode, C latehfs , QUIPUT), paMode, C datah, , DUTP); piMode. Cbd&n , DUTPIT; 3 Yoid loop) $ J put your rain onde were, 10 run repecited| digalWile LA latch On, yy sit t Out ( dataAin, dleckfin , LBFIRST, LEDs ) 5 algal Wile L (atchRn ) Hoh, deloyy (at) j digalWile UA (atch Pn iy snibtOut Cdatain, clockby , LSBFIRST, LeDIs) | diglalWrike L Lachine, delowy (ak) j 3 PROGRAM - ‘Crote ott Binary Gunter ine latin = Wy ink CockPm= 4; inte GakaPin= 12) bye LEDS = Ole 0000000 ; wt Oe = aD | Void sebup 0) f (lp your setup cade here, to yun once 9 : Serial. beg ( 4bd0) ; Subscrite, 00 yoatuloe, hfs ae ge i @engynerdmath piMode C latehfls , DUTPUT), pnMede. C data, OUIMUT; node. Cede , OUI, 3 Yoid loop) $ J) put your rain code Were, 49 run repeatedly Atgtal Wnle, ( AokchPin =) sath Out CdataAn, check! dig ale U (techn Hetty, delay LdK) LEDs > LEDIs +1) Serial. printty (LEDS , BIN); y, LSBFIRST, LEDs): PRO GRMN eLugicaleshitt Rights ioe lakcnPin = Wy int doceRin= 4, ine dakaBn= 12% bye mybyle = Olo 0101 01017 int Ot = 850 Youd setup Of dpe ‘ypur setup code here, to run once, Serial. beg) ( 4bd0) ; pide. (lake 5 rh Mode C dataty » DUTPT; pnMode. Cobdtin OUTPUT; bY 3 “*gogecieat Yoid loop) ¥ —_— I put your main onde ene, to yun repeat dial Wiles [ token, iy seit Out Cdatafin, clock®in , LSBFIRST, myfye ) diglalnle- L Vaehfin lot, ’ delay (ak) Serial. orintiny C wufife,, BIN )j ‘a inptyle /.; PROGEMM- cLugicaleshiftekeft int Lakin = ly ink dockPn= 41, ip dataRn= 127, ye mybyle = Olo 0101 01 D1 4 wt at = ao Void setup 0) (pst your setup cade here, to cun once, Serial. begin [Ab00) 5 piMode, C latch,» OUTPUT), Mode, C dataly , OUTPUT; pnMode. Cobd&n , OUIVT; 3 Yord loop) ¥ I put your rain oode Were, 1 run repeatedly Subsotile on youtube, Rs “ vtallWile C latehAn, Lou) Genjnerdnath art Out (data An all LSBFIRST, myfige 4 dig Wrte- L (achfin Hl ot), delay (ak) Set pt Cogbile, iN) jhe = mibile #2) 3 MSB Dy JO}i fay nye, = mybyle Jog + myPye * 2 ne isp a7 6 gs Ys. 2ziio D}OfO}l fot) tty ENN VSN d]ojifo 5B e ~ ~ XS my Pyle, eS rnglafeK \Ww + nyu Peoo mam (CiveileWISKIPRILEFE ssbsefite 00 ube, RP int \atddPin = My Gengnerdinat iy CocePmn= 41 in dataBn= 12% we uytye = Oo 00000001, jor at = 250 void setup () f it pt ‘your setup code here, 1) Tun once, Serial . beg ( bdo) j pnMode C latch, OUTPUT), pniode. Cdataly , DvIMT; pniMode. Coden, OUTPUT, 3 yoid loop 6) ¥ Jf pak your main code Wnerte, 10 yun repeal Atqlal Dike, l Late, en siFtOrt Calan, dacklw , LSSFIRST, mye ) » BiglalWie ( Lachine, delay Cat) 5 Sertal. printiny ( mybgte , BIN) ngbje= YB Jing + MYBye 2; 3 Proeravn - ik Laken = ink CockPrn= 4 ip dakaBn= 12% 4 ye myfyle = Olo O00 OVDDI) ssubserie-0n yputulbe, Rf wt Ob = aD | Genginerdmat Void setup () { (pat your setup code here, to van once, Serial. begun (4600) ; paMode. C latchs , DUIPUT), paMode, C data, , dvIMI); pnode, Caden, DUIPUT, 3 Yord loop) ¥ J put your main code vere, 1 run repeatedly Aiqlal Wile L NatdnPn, Low soft Out Cdatahin , a, LSBFIRST, nybie ) Ag tal Wile, ( (achRn mr bh), delay Ud) Sol. ti L mgbile , BIN) ngbde = wibylek ing + Mybyle ji 2y 3 Binary Bik igpr x pood DVO}D — jI II [III Ds ae 0000 D0O) —> III 1110 \— 2 11 i, 0000 —>» povd ttt Fo > oF mafiyte Fligped = WH ry Byte, Ww PROOPAM, int lakcnPin = Wy int docedine 4, ine dataRn= 12% bye myByle = oxo, wt Ot = aan 5 ‘aye. myfyte Flipped: Void setup ¢) f Arps your setup cade here, to run once, Serial. beg (.9b00>) j pode. C latehRn DUTT), pnMode C dataly , OUP); pnMode Cobde&n , OUTPUT) 3 yord lop) ¢ J pak your tain onde ere, 40 run repeatedly dintalWile- Lt \atchPin ey Saif tOut Cdatafin, cbock®in , LSBFIRST, myByle) ; ’ diglal Wale C Latch ) Hie), delay LAR) ) "yPuleF | ippedk = ap - ~vnyByle; digtallWite, latchPin dee! seibtOut Catan, clock®ny , LSBFIRST, nyiget led) digital Wile, { Uchin j Blu, delay Lat) ) 3 Subsorilve.0n youtube, fb Genginerdmath es Subsorilte, 01 ypttulve 6 LED Disay Gerginerdmath ° ° yp? yg gy? wer pv? fa Na ot i “pi eee en feo 1 yen +l = Nyy a ae “es mo Eom by te ms ot oe om me oe rai he ody ds |e te te Je te ta to tn te bis he rl Lm LCD DISPLAY IOV ___ 6ND hedains Sedan PRobeRam ges FLD Hindude < Ligutalrysal «hs wnt PS Bj mr wm= Ink dtegy int g@petd, int db? Wy ink dae tv) ink dks (woo } Liquid Crystal lcd CYS, en, dt, ds, db, 69); Void sebup () { apt your setup erde here, ty yun oiice, led. bean C lb, 2) 5 He lv uluwn, 2Zrws CLD guen) Noid loop ) ¥ IF pak your main ode Were, 1 yun repaid led. set Cursor (0,0) y lca. print ( “Wellw wodd”)- thehowy Cat) 5 output Nea. sot Cursor (0,0), Hedlo World lea. print ("My Nowe 's Tayson ’) delouy Cat) j My Wome, ts Jags ; leh es 0) ello World My Warne \s Season MOTHER, COULDBE sabsctite-on yptube 49> Yord loop) ¥ Genginerdmat J pak your main ode Were, 10 yun repent . led. set Cursrv (0,0), / 0 coluiry » ‘Drow cut w y lea. print ( “Hellyw word”): nr oa led. sot Curse (0) 1); My Name \sTayson \ leas pant ("My Names Jayson’); thelowy Cab) 5 Ved. cleat Oj 3 ANOTHER COULDBE « Yoid loop) ¥ I pak your main code ene, 10 run repeatedly led. set Cursor (0,0) i i O° caainn, nw leas print (Watch we Count” ) Fe Cat gary senad input \apat C48) + a eonad wpa YS 0b} 2,00 = 33.00 ‘Thank You B seconds \npt 1st Wa Download He, \ake Libra online DHT sensor Inbuary - Kaun Lawarles 2 Cory Ye fle ty Arduino Sketch book alder . Peer — Hdehne Type DTM Some Ye Trmper ature ard ) Hamel of Epyirnumont Using DTH #indude Ho" Beh nt sense = 2 sorte on yt, ffs var ATC eon, , \ype)) Genginerdinatn We barney | Float tom & Poa not nt gefTime = S00} Void setup () f (Cpt your setup cade here, to van once,: ie Aud) , » begin L)) del ou) (seh Tine) Yoid loop) ¢ J pak your rain code \nene, 10 run repeatedly han dity = WT. icadthum dihy 0; Jempe = HT vendTemurahure QO; lop Fe WT. tead| empucahure ey Serial, print: C “Vom dthy "; Serlal. qr C twmmdity J; Serial, pnt ( “Fenpuahoe © y Sertal. print C fone CY) tami 94.00 Toy patie C. 24.00 C Kor Serial. pant CSO"); ( __ | Hamedity 4.00 Ton pontine C U4.00 0 HOE la\. print pee] Mamdity “S400 Ton Woadie C U6.00 C74. F dehouy (sedtimd) , Humdiy :54.00 Te patie C2400 0 4.0% 3 | OUT PUT * Connection ¢ sbserilte on ypubule, 26% @engnerdinatn Aeduina Arduino Gourd pee hedwund + tr ‘hinaiy and Tengo Song with LCD DFR (Us Nn) LOD Display vo vgs gat? we fw? ae ww wg ee ne © ee et wen sie oy Me ele asl we ‘4 Yo We & ko E mp me DEL 3 DY DBS pps HBF Bak rige p tp ts Ja Ie te Je |e ta to dy I I hy ie 1 LCD DISPLAY IN __ ond awe WV frdand png of LOD Arduino Arduina pnd a Arduino Subsot'lve 01 vyartube 2f> ; @enginerdinatn PROGRAM: #indude Hdehne Type Dat liye sengeAn = 2 oT BT He re ) Typ); We arn Float v oat inte nt celTue < Sod 7 #indude < Liqualrysal . Ws nt PS= Fj me em=S me ated int ope oa nt db? int dre ink ak: ner Liqtdleytel Ic Cvs, en, 4, 45, db, 8) ay Void sebup 0) { suber 00 yrtube, $b (prt your setup cade here, to yun once, @engnerdimatin Sonal . begun (aad) 5 HY. begin U, delany (seh Tie); leq begn Cle, 2), Yoid trol 4 , Jf pak your main ode ‘ere, +0 yun repel Sumaihy = RT. icadtumdihy ()j Lemp = HT. Yeadl emporature 0; Jemp Fe H- vead! emporatare, Crue led, set Cursor (0,0), lea. print C "Temp F = nF Leg vue Ica. print ( tome® ) led. set Cursor (0, 1)) lea. print (“amidly ~ my lea. print ( humdi lea. print (* a"y, ddoy CsekTime) 7 led. dea 0) 3 Sou can do & poctalele Humidihy 9A Temyohure Sensor sing ArAUino Wano and Enema) power sappy hike 4) \oatery . Temp F = gi lu Vamdity = 41,00 4 Subsoribe 00 vytuloe, 206 @enginerdimath et SF, gue 6) Pal Novy ao & Ss sn Echo L a 4 es O_O NC ae I Dy PROGRAM wat ign = teanel Hine IS popurtiona) to / ink echafie® 1 distance of dhskuctiov) un pogTiose Time, | int Void setup Cf (pt ‘your setup cde here, to wun once, pin Make Cryin, OUTPT), pinllde Cedmfen , Niet Jy Senal . ag (aud); Yord loop) ¢ J put your main ode ere, 1 run repeatedly palWale C hgh, Low) delay Merseands, LIV) Pan C fag, ine), ich ayelune C C ian, ‘iow, 74 ~ , Subsotibe, 00 youtube Rf paagtvelTine= pulls Cedatin, WER) j Genjnerdath Serial. print C qrngTravelTive) IP preghavelling is 19 Wye sesers PROGRAM int dngfin = le, ink ednoRn = Ny ink prnghanelTime * Dat rej Woe Oh state Plot otal o Taek j Void setup ¢) f Ir pe your setup code here, to van once. pinMade, Chg , OvTPUT), pinMade, ( edoPin INT ) Sonal . beqn (aur) | Yoid loop ) $ I put your Tain onde ene, 49 run repeaticly digtanle C fayPm, nw) eM crrteands, LID) digtel Wnke ( team, ined), ddayMorseurds LIV) 5 dilate ( by ow preg teva Tine= pulse Cecmfin, Wel) } © pg level Ostana, a (pug Tine HH Sele) / Coad. #1000) J gud smund 1 36S miles hot = unetd to indwr dist duhancel Target posi stance [2.5 J] talk He, agfeovel Osten. Sertal print (“Dame bh Togs is. "5 aia \ Sental.. print ( dvstaneToT Ory), Serial. In" ndag Ny: D stance, b Target 15 3.00 relies pei me / Deane, ts Target 1s BOD wees, Odor Coos) j Distance, t Target is. B.D robes ' © Plot Mulkigle Channels on te Sexial Plot Dut sinvVal ; Dit cosa, Maat Sj void sebup ¢) { apt ‘your setup nde here, > vun once, Sonal . begin (AUB) 5 Yord loop) ¥ I pak your main ode ‘ere, 1 yun repeatly Ar (=O) Jew 2K 31HTSM2HS 5 y= )y0.01) § wre: anal = an); Serial. print Canal); Serlal. print ey: Serlal. printin€ celal) Qg hs | Porkae Distances Delecty Up can use Arduino Wao yy) Byeadlovard pe? a) with Power bank ay, Supply \ ye ¢ Carduire (tn 2) xv ‘ ho r Tift gow [ete : yee dean [| C) C) an3 of LW GNP pn Arkuw cS y Po o x? oo sro s° Ma Pee NT fa how we wg we ge ‘x eee e ‘oa Wo “nil 4st ao Ny Vo We & Ro Eom Ww We ol WBS om, 89 vat fb |p |e Is tp ts te ta to ty In te be i is ae LCD DISPLAY PRUGEA => 5 otk a Raw the diet ab a cortain Aiskan uw Rem h inl chin You vendor ond grew Hae butte fp dou they ashe in LOD int psec Dut “Ye Trane Dane j Pinot chdranet eTaget j ac datas = ww; Hine fiir ea Welud Ley hs nt Ps= Fy we em=%) int ayeq int Abe td, int db? bs int daze nk dk = ko; Liquid lrysal 1c C rs, on, dt, ds, db, 04) Subsorilve. on youtube, Sf @enginerdmath $2 Void sebup Of subsotilve. 00 youtuloe, hob rps your setup cade here, to van once, Benginordmath pinMade Chg, OUTMT), pinMode C-ednofn are pinltiode ChatygPin’ INT JS digital Une: ComtenRtn Alva )4 Senal . begin (Aud) - / leq. bey C lb, 2), void lode) ¢ Wf pak your ratn ade Were, 10 yun vepeitely led. sot Cursof (0,0); [cd print (Plaw te led set Cursof (0,1), leas print (SPlau te Taye"), puthnvlal = digital lead Caultoatn) 7 Nalvile Cutty Val ==) ¢ + wale wil he baka vd = IM An) j War, WW ua | bufsnval = digtallead Couthoi®n) Wy Pagar =e AgtalWnle ( hgh, bw) \E cam pi ceed th Hoe remasniny ode deduyMcreourds LID) dighalWale C fayP, ined), recs ter 5 dug Wale C “fn uw): pang iavel Time = sel C ednitin, HGH) peg Teavel Dotan, = Cpnstiacd Tine HA S104 12) / C3). [D9U0) y spud A sound 1& 6S mbes] haw unvertd tp tndun distin. Tasyel dy distance Toryet = paid hdanw/2 ; /] halt He, Sental. print C “Oana b Taget iy" Jy Serial, print ( dustance ToTangh’) i Serial. priatta C "indus. dj ng avel stance 3 [td Seba | (0,0); subsite on yubube RE lea mint ("“Toager Dhara); Gengynerdmath led. set Cursor (3); lca. print CdhganartoTarek ); lea. pint (" Teds“ )j deo (spo), 3 ‘\mpaving Peisin yf Distarce Serene To pest the pedson, Yor Can odd Auer aging f tw ode Add adithnal “anables: int numfWegs = aad int S) float — outers, float \nudtek =O Proud to the Noid loop and mnise You che | depends , He high Mow yore precise lat cluer to calaulale Yord loop) ¥ I pak your main ade \ere, +0 yun vepeatedly led, sot Cursof (0,0) ed print @ Naw the Target "), lea sot Cursut (0,1); lca» print (law te Taet), Hputbnllal = digital\iewd Couthw®n Nubile Clutter Wal ==4) ¢ arava = dig! ed Cuatro); Wy poe ae ae rl ns oe te tow orosning de, lea. seh an Cursof (0,0), ssubsofilve- 00 youtube, $b lett print ti A Measuring vn Mf Genginerdinath Wye ri 4y 9 <= nantleas 5 ayn) d gills (tym, LI d-etosyMcArpouards LID) dighal Vile ( Mahe, Hh), delay ban Cape AighalWale C Ww) pgfan ni Codd, Welk) j pw) nu pg Temel Dhan = nist Tine # 0°. “eval (i ob J spud K sound |< 6S werd ty Un diganceloToraet = png) pirye) isan 2; packet locket + arstanaTeT ayer j 3 avMeg, = pucker / nurnfMeas Serial, pean CM Ude. by Tagt yg.” yy Serial, print C i Serial. Ls prancig C ‘ mh") ) leq. deo () ia aut oo 0 (0,0), lea. print (Tova Dganel); led, sot Cursor (0, \) lea. print ( diganuctsTanger)y lea. print CN Toda ‘i bdo (sew); 3 | hak He a bsorive on youtue, 20> “Inftved, CURD: Remcke Contra es eenjnorinath San Ronde Lanka © ® ®@ ® ® © ye / \ Wet te © 8 ne Na © @®o x © © © 8 © © Download Arduino emule Libra and Copy m Arduino Stethbak Sldey PROGRAYN ~ Mapping vommarels 1 VR female Hutons # Welude we [Ran = 99 TRrecv RCRpn); deode — results cmd, S109 yong Void setup Of ff put your setup onde here to yun oice, Sonal begun (aud) | TR. emote UD Uy 3 Yord loop) ¢ J pak your rain code Were, 1D yun repeatedly wile CIR dewie ( $end) ==9) 5, q © : ‘ , Subsoribe on youtube, hfe Serial. pruntla C cmd value , HE% ) Geuinerinah delouy (is00) F WR. recume. Oy) 3 if Cond. value == OXFFOEAD § ray lo 2240", Serial. prirtla C ny Com); a Cand. value == OXPF Aesd) § tay (ots nu pur i Serial. peantln ( tmy Com) ; 4 if Cand. value == OXPE 30CF) § nv rylom= one, j Sental.. print C tay Com) ; if Cond. value =5 OXFFIGE) 4 tay loin Wf , 7 Serial. printly C my Com), 18 Cond. value == OXPFAAGS) § myloms thee Sertal. print C ny Cont); <<0 Subsorilee, 09 youtube hf 4 ( ae a Speier G@engnerdimat ny mM Sexial, peantl C gn) if Coin. value == 0 XPR 360) § yy loon s "Rue. Serial. print C myeon); if Cand. value == 0% PESAAS) 4 b mayloms sy 1 Sental.. print C my Com) ; i$ Cond. wales SO RFE NAT nylons" 5 Serial « print C ny Com); 3 1g Cand. value == 0% FF ARNS) { tay Lorn wv age Sertal. print C ‘ny Com) 5 3 i Cand. valye == OX FFS2AN) § tay lots u rine : Serial. pinta C my Com) « 12 Cond. value == OX FF brat) 5 n rayglom= ot i Serial. printl” C my com), 12 Cond. value == 0% FRED) 4 ray los fan" Senial, pent ( my con ; iy Cond. value == OXPF 2200) ¢ yy Lom = "ew j Serial. peuntly C mg com), if Cand. value == OX FF 0205 taylan = “Gay i Serta. printhn C my Gm); if (ond. value == OX FF C29D)§ Coo ™ GET my J Serial. print C ny Com) ; if Cond. value == 0% FFEOIF) 4 «= W Nv ry lom= dy Serial. prneln C imy Com) 5 3 Subsotibe, on youtulie, Rb @enginerdimath $4 i Cand. value == OX FRAGA) ¢ tag (om = nv Wy Sertal. priatln C ny Com’) ; 3 if Cond. value == 0% ReaD Ge) § nylons vp | Serial. 3 1f Cand: ama =O aE) ryloms | eq; j pric) Cay Com, Serta. pinta C my om); 3 16 Cand. value == OX FRBOIT) 4 may lon n st", Sertal. peatln C (my Com) ; CoNNECTIONS Ardae® pq © ——> | ay aL Ardua? oy 4 a ma « mated Ted wre, 3 our vu \ Ardaat® px) Cu) ——> 4 ie Ardaas® 99 OND. > ‘il a fe: Mrofee Wackule, 6 ——put2 os} — 0 Ards? po 3 + INQ We}-— New ——> ¢ Nevis END 4 eslesol omy subsorilve 01 ypatulbe @engnerdmath out pur Pr hos pur PE 3008 oe, FF b2a0 Ve | 3 \ pn 6 of mt L2aap LiaDd 0 subsorlbe,on youtulte, Bf Senge Remake Lonte| Genginerdmath © ® ®@ ® ® © A? | ctl 1 ay ae © 7 ieee Le © @ © © © © ® © ® PROGRAM — Cobol try DE Whar with che Con Ru, “pwr” dw DL meh dang ‘yn? ; Bec, San! He OC not tums OFF hn Pree Hh" Yee TE wet as 1 Undewse ane Yes ‘vw Ye TE he tans in tounder Undewse direcho Vross up Hs WC pat speed mores Press “dna” Ibe DC mah stud deneoue, # Welude asst 4 mSpeah = 8B ) analag Waite (Speedin, nspeat 7 4 subsofilve 09 yputulbe, Re @enginerdinatn 4 u \ “ if Cmylm== ° dy) 4 Subsotilte on ypubube, $8 mSpead= Speed 1S” @engynerdinatn if WiSped < 0)8 A yn Speah = dy analog nike (Speedin, sped) 4 4 3 Conon an ROD LED wit IR Cemule, Centro) Commections Song ende. Lanhn| © ® ®@ © ® @ ® © °° / | \ pal we a © ® @ teven Magn © © © R aPC © © ® Ll yy © © oO yy OND ‘a pas PROGRAM Press "pu" tan tre LED while full liginess foxy fan” fare Hey LED OFF Agcy 4” yellow LEP |ylis Frese SD white LED Lights — Pryce ® gu!) LED duns 0D eh LED hin . fig y wn LD Yuats Pease up" LD drytins ry 03 Wat, ye ei Ral Lb. ahs as" # Welude ") § AFack ~| 3 $ onalaylade, CrBin, tBngnts dat) j analogile, \ gen, qPrait % dFack) amatog Wile, CuPin ace dFad) ; g

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy