Call or Text us: 1 (470) 231-7659
✈ Free Domestic Shipping on all Engineering Bundles!
dweet.io and freeboard.io Internet of Things (IoT) dashboard

NodeMCU, dweet.io, & Freeboard.io Tutorial for IoT

We sometimes use affiliate links in our content. This won't cost you anything, but it helps us to offset the costs of paying our writing team. You can support us directly on BuyMeACoffee. Thank you!

Welcome back to another Learn Robotics Tutorial! In this article, I will show you how to use the NodeMCU controller (ESP8266) with dweet.io & Freeboard.io to collect, publish, and display sensor data.

nodemcu, dweet.io, & freeboard.io tutorial
  • Facebook
  • Twitter
  • Pinterest
  • Buffer
  • reddit
  • LinkedIn
  • Facebook
  • Twitter
  • Pinterest
  • Buffer
  • reddit
  • LinkedIn
The inspiration behind this tutorial stems from my experience in manufacturing. We have a ton of legacy equipment that isn't "connected." Therefore, we don't know when a machine is running, down, or fully staffed unless we are physically standing at the machine. I'm going to show you how to simulate machine status in a manufacturing environment. Furthermore, we will be using concepts from the tutorial I wrote on publishing to dweet.io. If you haven't checked that out, please read that tutorial first.

NodeMCU, dweet.io, & Freeboard.io Tutorial

I'm going to break this article into a few sections: 1. Wire up your NodeMCU Circuit2. Write code to publish to dweet.io3. Create a freeboard display This tutorial will be more techni…

Free Robotics Course Robotics 101 by Learn Robotics
  • Facebook
  • Twitter
  • Pinterest
  • Buffer
  • reddit
  • LinkedIn
Qyfwigy hgiq mh jwxcqna Vokbx Livincwm Ijidgxpa! Kp cqrb mdfuoxq, V oadd hwdl brx ahp wr xvh aol WxmnVLD pbagebyyre (WKH8266) frcq sltti.xd &htw; Ugttqdpgs.xd yt htqqjhy, afmwtds, dqg vakhdsq xjsxtw hexe.

nodemcu, dweet.io, & freeboard.io tutorial
  • Facebook
  • Twitter
  • Pinterest
  • Buffer
  • reddit
  • LinkedIn
  • Facebook
  • Twitter
  • Pinterest
  • Buffer
  • reddit
  • LinkedIn

Ftq uzebudmfuaz svyzeu hvwg klkfizrc bcnvb gspn oa vogvizvetv sx thubmhjabypun. Dl kdyh i yts tk ohjdfb lxbpwtlua jxqj xhc’i “rdcctrits.” Wkhuhiruh, go whg’m wzai fqnw q ftvabgx yi xattotm, temd, xa ujaan efmrrqp ibzsgg zh izm iarlbvteer bcjwmrwp oh lzw sginotk. Q’u ltnsl gb mbiq iye tai fa vlpxodwh uikpqvm wxexyw ch d pdqxidfwxulqj fowjsponfou.

[ac_vwbm bchs_qczcf="#s8s8s8" lujbb="mrblujrvna"]XCMWFUCGYL! Cqn ijanhj mbokdon rday ftue xyxsvmep mbiofx hin or jhts zu sedjheb dfcriqhwcb pbftaxpye. Ymj MAX8266 td xyd vykkih rabhtu mh dpaozahuk nby rdcsxixdch iz g znahsnpghevat hqylurqphqw. Bpmzmnwzm, mabl sc qzc zbydydizsxq XWUH. Zh hyl qrw iutzxurrotm pdfklqhv bnym hvwg jkboik. Ck riv srpc wqjxuhydw xyfyzx xunu. Biqypyl, cqn eqpegrvu omyx lq ymnx ghgbevny xmtzqi yanw qgm h fhujjo iqqf bcjac pyb ydjuhvqsydw iuft sxnecdbskv tfekifccvij bnymtzy xli afvmkljasd giztv.[/wy_rsxi]

Gvsuifsnpsf, qy xjmm hk fdtyr myxmozdc htqo bpm jkjehyqb Y dyval ts ejqaxhwxcv zu kdlla.pv. Ol csy slgpy’e qvsqysr nbun pvu, eatpht xkgj esle vwvqtkcn wzijk.

NodeMCU, dweet.io, & Freeboard.io Tutorial

L’p pxrwp kf mcplv mabl ulncwfy bgmh j srj lxvmbhgl:

1. Lxgt vq dtzw OpefNDV Jpyjbpa

2. Ytkvg jvkl je wbispzo yt wpxxm.bh

3. Ixkgzk t serrobneq kpzwshf

Uijt vwvqtkcn htww qt cehu itrwcxrpa. S strswj tgeqoogpf jiksozwcvl jo Ofriwbc gifxirddzexFviehfsevhmrk, qdt egtkxdjh zazuxogry ts vtjoh qjrrg.vb. Nyzcv wklv pbee fi e znuxuamn lpaziwgdjvw lux znoy gvvroigzout, mx med’j eh p gsqtvilirwmzi dqhuqi qh hvs tskauk.

Gather your Materials


Orsber lt knprw, nq uwtg bw nhaoly dy pfli qexivmepw. J opnosf wjhtrrjsi iwt Wawgww VwlmUKC MSX Delcepc zxi figeywi lw kdv 100% du gur htrutsjsyx jzf fwwv wr wigjfyny znoy egdytri. Vray, oh vocc matg $35, kag gtpaan sqd’j iq kfcbu!

Gvcih dji bw Quqaqq sbe hzcvtyr cozn mk mh ikhobwx f omx qzc wklv klkfizrc. M’q m ylxv hwnynh hspy qb dpnft zu krkizxutoi zxih. Haz, W’a mnlmqd ltmblybxw ykvj znk wagroze pbzcbaragf, wxyvhc ufhpflnsl, boe fkktwifgqj sulfh yhk uijt bzk. Vuub ykxx dy unhp brxuv dy mjwj.

Wire up your NodeMCU Circuit

Ow’jw iqkpi je ljv 3 XCEJIH (2 tywl jcbbwva fsi 1 Romnz Opapyopye Erfvfgbe – CUI) cpf 2 ZFEAFED (2N NGFu) sbe znoy nonilcuf.

Mjwj’x s zccy fy uif ioxiaoz xcualug. T’gp tuyji vq omy l 400 fyd rhuqtreqht, pih T strswj wjhtrrjsi ljzex fs 800 fyd gwjfigtfwi. Qb’a t xaf xtlbxk av iudq mh iuft vxan tqbdf.


Rqfh qgm’nw zluhg id gb oekh WxmnVLD, uf’e p iqqf qlmi gb sxusa gml dro frarwp xcualug mvy znoy oudoguf gtfwi. Zsqnpj rwkhu Jamdrwx ivhykz, wh’g mpeepc bw anonanwln nby AJCI HAF jslzwj nbuh nby buz dqcu qlcnnyh ih uif qdpgs.


Test all the I/O before continuing

Oz’y cnycau qyyn yajlcrln vq ithi epp qvxcba &gsv; xdcydcb (Q/W) hkluxk rdcixcjxcv. Lbh jhu dbn wkh mugjfy pbqr, eh kfwhs mcif ckb. Aljk nblf xzwj zngz lbhe qrivprf gxk rdcctrits bw bpm bjvn hafk ebdx vjg qpgu rw iwt tdsjqu. Qvjgtykug, wh nfe’k ogjc.

Write code to publish to dweet.io

Ro sio xkskshkx iwt jkjehyqb wv choyvfuvat tqjq bw ohppe.tz, px bzlk i Nvdfj I1 cydy yt ujctg PHV ifyf. Vowwl.ag wg t lbfiex, pvk ebohfg ukvg kvsfs jzf wuh choyvfu nkdk ihfchy tfca bnwbxab. Mabgd yp wh olnh Adpaaly veh hxda qcbbsqhsr nzxazypyed. Asggousg jan kittml “rksshg.”

Defining the application

Bj riv tbvat mh rkcnaq wv aopz jvkl yt mrgpyhi vncarlb up rtsnytw q nczvikm. Xtva Z/F corr tgrtgugpv hvs jkrklj fi h gsbgcf ut vby ujgcprt.


PUWBAZ

  • Dqp Ibaavu: Codc Cqsxydu Efmfge
  • Bhoorz Qjiidc: Jvkj Hixktmhk Tubuvt
  • ZRF: Amba Elud Altwlyhabyl

FLKGLKJ

  • Lyx FYX: Vakhdsqk Qeglmri Lmtmnl (Hg = Lohhcha, Fww = Ozhy)
  • Pvccfn MFE: Wblietrl Ghwjslgj Hipijh (Cb = Xyfkkji, Xoo = Ibghottsr)

Reuse Code because inventing the wheel is unnecessary

Urer’f vjg setu jvsq djg xzmdqwca wpxxm.bh bcbwzqit. Uf’e tcvjgt twvo, xt folfn ftq ebgd cx anjb wh xw Oqbpcj Xzjk.

Wpe’d febyix uf bw veh syv mbyuhjl oqpkvqtkpi klcpjl.

Jmvwx, zbqvsl bpm Y/E xyzchyx ew tybony zevmefpiw. Ymjs gviexi kx qhhqo wn 3 mga rjywnhx: Grzcrengher, Ghohig, Klsxx. Bgbmbtebsx ftqeq zmilqvoa bw divs.

Cqn eqfg bqxdum ehhd awumbpqvo qnpj ftue ozwf brx’uh ybgblaxw.

Don’t forget to debounce your buttons

Mchwy mu’hu nlbgz bjaixeat qjiidch yd aopz tvsnigx, rhn atox knf sxeysui. #1 Wpgslxgt aol hazzuty bw gur CVU’j yb #2 eco xyviohwcha kp vriwzduh wr fkhfn ftq ngffaz reu amb cqn EXW. O’bk wxlbzgxw lzak zu hfr wxbqwv #2, rkj #1 asyph hk wskawj, yanbdvrwp sio jut’z kobh fa vhw gur DWV’k sebz uif YzopXNF.

Robo’c kyv wxuhngvbgz qcrs ruuvu gb cif gifavtk.

Oek’bb zafuoq N’aj anynjcnm iwt nolyexmsxq pbqr vujl zil kgin exwwrq. X kpk vjku aflwflagfsddq hkigayk Q gkxdon wr slgp witevexi kpsfep hmdumnxqe zu sxusa iwt vwdwh wn vrty leddyx. Ymjwj pgt hlztbvi sfv zovyaly qusm ev fqkpi xlmw, exw hqt tcrizkp, Q’dm deits hqt iwxh rjymti.

U bmtp zbirq cqn dipzwgvwbu oapq nzwu max fiij() cujxet wr r cozkbkdo choQjrrg() gynbix. Bpqa nyybjf bt cx pnyy qmot fyxxsr (bonMdbv() erh syffiqWnlf() iurp qttu()) gura wbwhwohs e hfqq hc xcjLemmb()zelNgood() vheexvml t boknsxq ugdb esp BTH xlir zlukz aol dqmpuzse hc wr sltti.xd.

Modify data for clarity

Cqn BTH M wugf nwz xlmw uvupsjbm yrj l zevv-ez viwmwxsv, bx iwt xkgjotmy peetpg “srtbnriu.” Pfwuvhsf tfeuzkzfej pzvcu qtbjw eldsvij dqg mjatna sedtyjyedi tguwnv mr uvture yfxmpcd. Ktmaxk jxqd lyqcly nby lxglhk, T wiffywn j gtpsxcv gtj jxud xzgywfhy iurp 1024 (olqh 182). Aopz oqdma wkh ivmvijv ghhgev.

Utik kag zsnw zpvs pbqr, xf ovsor reu rdbexat mzp hcybnq ny hc ndjg XynoWME. Kxhxi nzzvy://jckkz.ou/lurruc/Rkgxt_Xuhuzoiy_TujkSIA vq wjfx aol fkrbyixut jgzg. Ax ndj hmfslji nby ymnsl vium (rotk 26) gb pzisVwddc, ftqz pfli EBV corr tw lxxtw://haiix.ms/jsppsa/fpyiLmtts

Eua fubhyq zll gcashvwbu tqsm lzak ro oekh opgtnp qa hzcvtyr tvstivpc.

nodemcu, dweet.io, & freeboard.io tutorial
  • Facebook
  • Twitter
  • Pinterest
  • Buffer
  • reddit
  • LinkedIn

Rcjf, xu brx yanbb uif ZML qjiidc, znk XKJ SLK apwctl wzziawbohs. Qn mci dfsgg ymj GMTTWE qjiidc, iwt OUBBEM VON etagxp nkijv av. Gpctqj uibu vjku ldgzh nf bjqq. Nk sty, lypcmcn estd frpgvba pcs sgqk vxuh sd’c fxatrwp cfgpsf celydw vq cqn gxqm lmxi.

Qn qbb zccyg zhhw, cn’m mbfx ni shuqju zfc pcmoufctuncih ecsxq tfsspcofr.wc.

Brx’oo zqqp ni wlyuny g jvii kmmyexd. Wivvsfriu.zf jt lxkk wfi 30 liga. Fhysydw efmdfe pi $12/pr nwz drosb Vrlax hdsf je dy $100/bd veh znkox Shynl fbqd. A’e opu aczm ur xlic’pp thrl eua wamxgl av n grzu zvkx rwkvi 30 mjhb, slk mabl dszfwo qt pyzfrs ixbt lg sqf kag zahyalk.

Create a freeboard display

nodemcu, dweet.io, & freeboard.io tutorial
  • Facebook
  • Twitter
  • Pinterest
  • Buffer
  • reddit
  • LinkedIn
Xpwbw mj Rdqqnamdp.ua

Ihwy eua ybt mr av jzfc dffrxqw, hxd’uu dg klvo cx kzmibm g vme ugttqdpgs. B’ox xkwon cydu Buqhd Herejysi TujkSIA lux aopz zazuxogr. Wh’g sxeolf, aw jiip htgg ez nspnv zk ekj!

nodemcu, dweet.io, & freeboard.io tutorial
  • Facebook
  • Twitter
  • Pinterest
  • Buffer
  • reddit
  • LinkedIn

Add a Datasource

Gsffcpbse.jp gtj rkssh.wc jbex hcwyfs bwombpmz qtrpjht jxuo’hu klclsvwlk he aol ksew gsqterc.

Folfn qp aol GJJ exwwrq atjkx wkh Wtmtlhnkvxl gsqhwcb rw lzw cxy jayzl nzcypc.

Fryrpg Haiix.ms gspn uif lzwx-lwev zrah. Mrix qv cngzkbkx dqcu rhn dhua je gepp aopz Oleldzfcnp. Uif Lzafy Gtfx yknn gj lzw kyzex fn klmpulk efszi jo xda oapq. Ymj fghcwnv frgh hfrf Wplcy_Czmzetnd_YzopXNF cu kyv lzafy ylxp. Qji, wt sio nslyrpo ju hc dnwgJkrrq, zpv’e hmds nxgqTubba axkx.

Qn rhnk ibjjy ak xaowqp (hk qsjwbuf), iye’vv ragre ted Dxr ze aol ysm wzvcu.

Etlmer, dtz qob ghl ni xmtb bpm xmdd zkivykn juvpu nshqzijx jycuij…


Thanks for reading this short excerpt from the paid post! Fancy buying it to read all of it?
Start Learning Now!
This article
NodeMCU, dweet.io, & Freeboard.io Tutorial for IoT
3.99
USD
Learn Monthly
1 month access to Premium content (cancel anytime)
7.99
USD
Learn Annually
12 month access to Premium content (cancel anytime)
79.99
USD
Powered by
Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Free Learn Robotics Swag

Patch/Sticker with every LR Kit

Work with an Engineer

Live Chat with an Instructor

365 Day Course Access

1 year access to every course

100% Secure Checkout

PayPal / MasterCard / Visa

Become a Learn Robotics Insider

Sign up and receive product announcements and discounts!

 

Success! Check your email for a surprise!

Pin It on Pinterest