Author Topic: NodeMCU Step By Step  (Read 17863 times)

0 Members and 1 Guest are viewing this topic.

Offline YHB

  • VS Moderator
  • Posts: 905
Re: NodeMCU Step By Step
« Reply #40 on: March 16, 2017, 01:02:07 AM »
Thanks for the codes.

I am up and running.

I have a 9volt battery with a voltage regulator supplying 5V to the LCD Display and a level shifter to adjust the signal voltage between the MCU and the LCD backpack.

YHB's Step 1.JPGNodeMCU Step By Step
* YHB's Step 1.JPG (119.67 kB. 350x420 - viewed 925 times.)
Where Thrift Becomes An Art-Form

Offline ShiFu

  • eParrot.org
  • Admin
  • Posts: 1984
Re: NodeMCU Step By Step
« Reply #41 on: March 16, 2017, 09:58:29 AM »
Nice.

Almost looks like mine except for the missing rat's nest of tangled wires.
Stay calm and follow the screaming people.

Offline ShiFu

  • eParrot.org
  • Admin
  • Posts: 1984
Re: NodeMCU Step By Step
« Reply #42 on: March 16, 2017, 10:07:35 AM »
AMS1117.PNGNodeMCU Step By Step
* AMS1117.PNG (157.44 kB. 350x239 - viewed 772 times.)

I'm going to order a few of these. Some in 3.3V and some 5V.
Measuring 1.1 x 2.5cm and costing about 9 US cents per board I couldn't buy the parts to assemble these voltage regulators.
Stay calm and follow the screaming people.

Offline Eucyblues

  • Posts: 774
Re: NodeMCU Step By Step
« Reply #43 on: March 16, 2017, 06:15:28 PM »
Well spotted ShiFu, but sheesh - I had to pay 35c each  :( ;D

Can never have enough of these bits 8)

Offline ShiFu

  • eParrot.org
  • Admin
  • Posts: 1984
Re: NodeMCU Step By Step
« Reply #44 on: March 16, 2017, 06:49:36 PM »
Well spotted ShiFu, but sheesh - I had to pay 35c each  :( ;D

Can never have enough of these bits 8)

Even 35 cents is a bargain. Buying the individual parts cost about that much or more... and without the PCB and the trouble of soldering the tiny bits.

It's like buying an Arduino.  Sure, you can make an Uno yourself...

Buy the parts and assemble it on your own custom printed circuit board and after the dust settles you realize it cost you $30 and several hours of painstakingly tedious work to replicate something that can be had for $6 without any effort.
Stay calm and follow the screaming people.

Offline Eucyblues

  • Posts: 774
Re: NodeMCU Step By Step
« Reply #45 on: March 17, 2017, 04:47:50 AM »
ShiFu.. You missed my poor attempt at humour.(the smiley faces were  supposed to show it) .. 35c is ridiculously cheap... 9c is.. well... unbelievable

I am constantly telling people how amazingly cheap this stuff is.

Back to humour school for me..  :'(

Offline ShiFu

  • eParrot.org
  • Admin
  • Posts: 1984
Re: NodeMCU Step By Step
« Reply #46 on: March 17, 2017, 06:21:54 AM »
....Back to humour school for me..  :'(


HaHaHaHa.....  ;D
Stay calm and follow the screaming people.

Offline YHB

  • VS Moderator
  • Posts: 905
Re: NodeMCU Step By Step
« Reply #47 on: March 17, 2017, 03:08:03 PM »
Just to see if I could.

I modified Step 8 to upload the ABV to Thinkspeak via WiFi.

WiFi-Parrot.jpgNodeMCU Step By Step
* WiFi-Parrot.jpg (26.72 kB. 350x210 - viewed 749 times.)

I think this qualifies as a Wifi Parrot - are there any others out there?

I got very close before but hit a wall, thanks to Shifu's tenacity he git through the same wall and I have benefitted from his efforts.

Happy happy happy

Toodlepip
Where Thrift Becomes An Art-Form

Offline ShiFu

  • eParrot.org
  • Admin
  • Posts: 1984
Re: NodeMCU Step By Step
« Reply #48 on: March 17, 2017, 04:09:03 PM »
Congratulations YHB. It looks like the World's First WiFi Parrot.


Not to be too outdone by your achievements I spent some time untangling the breadboard's rats nest.

untangled.pngNodeMCU Step By Step
* untangled.png (152.75 kB. 350x262 - viewed 772 times.)
Stay calm and follow the screaming people.

Offline YHB

  • VS Moderator
  • Posts: 905
Re: NodeMCU Step By Step
« Reply #49 on: March 17, 2017, 04:37:58 PM »
Yours looks much more workable  :D

Having a play with the screens on Thingspeak and I think I am going to settle on this one.

Guage.jpgNodeMCU Step By Step
* Guage.jpg (17.31 kB. 350x251 - viewed 703 times.)

Nice visualisation and the number at the bottom was the latest value.

It's not working yet but it will.  :D
Where Thrift Becomes An Art-Form

Offline YHB

  • VS Moderator
  • Posts: 905
Re: NodeMCU Step By Step
« Reply #50 on: March 18, 2017, 09:22:27 AM »
Now its Working  ;D

Working.jpgNodeMCU Step By Step
* Working.jpg (36.24 kB. 350x131 - viewed 573 times.)

Where Thrift Becomes An Art-Form

Offline YHB

  • VS Moderator
  • Posts: 905
Re: NodeMCU Step By Step
« Reply #51 on: March 18, 2017, 03:27:21 PM »
And if you want it - on your phone.

I have removed the decimal places on the %ABV on the dial - I find the integer much easier to comprehend and it is enough for my needs, the decimal point is easy to restore.

phone.JPGNodeMCU Step By Step
* phone.JPG (108.43 kB. 350x262 - viewed 597 times.)

This is only the vapour ABV. I will work on the boiler ABV when I have some more time.

But this is looking good.

A fully functioning parrot with local screen, remote screen,  data logging, phone access and wifi conectivity to other devices - Awesome.



Where Thrift Becomes An Art-Form

Offline ShiFu

  • eParrot.org
  • Admin
  • Posts: 1984
Re: NodeMCU Step By Step
« Reply #52 on: March 18, 2017, 03:49:15 PM »
Now you're just showing off  :) :)

Very well done!

A yParrot? That's shorter than typing WiFi Parrot and it is a quantum move up from our eParrot.

Feel free to continue the 12 Steps with a few more Steps, YHB. 
Stay calm and follow the screaming people.

Offline YHB

  • VS Moderator
  • Posts: 905
Re: NodeMCU Step By Step
« Reply #53 on: March 18, 2017, 08:29:27 PM »
Now you're just showing off  :) :)

Sure I am  ;D ;D ;D

I have been asked how to get the guage working, so here goes.

1) Login to Thingspeak

2) Select Apps

3) Select Plug-ins

4)Select New

5)Highlight Google Gauge and press Create

In the HTML code section

Change title from "Google Gauge - ThingSpeak" to what ever you like maybe "VisionStills"

In the JavaScript Section

Your channel ID -
Your channel API read key - they are in the top right hand corner of this page
Max gauge value
Gauge name
Anything else you need - I only had one field transferred to thingspeak if you have two then there will be more to add/specify
There are other options to play with, I have not tried them all.

In the table at the bottom of the page

Add the channels that you want the gauge to be seen.

Press save

Done


Where Thrift Becomes An Art-Form

Offline ShiFu

  • eParrot.org
  • Admin
  • Posts: 1984
Re: NodeMCU Step By Step
« Reply #54 on: March 18, 2017, 08:55:20 PM »
Thanks YHB for the instructions, exactly what I needed.

I now have a cool gauge to see what the temperature is on my back balcony from anywhere in the world :D

wooAh.PNGNodeMCU Step By Step
* wooAh.PNG (18.5 kB. 350x285 - viewed 541 times.)

updated my channel...
https://thingspeak.com/channels/232643/private_show

Tons better than the lame graph that I was working with. 
Stay calm and follow the screaming people.

Offline ShiFu

  • eParrot.org
  • Admin
  • Posts: 1984
Re: NodeMCU Step By Step
« Reply #55 on: March 18, 2017, 09:13:22 PM »
My very own personal yParrot is so close now.
Stay calm and follow the screaming people.

Offline ShiFu

  • eParrot.org
  • Admin
  • Posts: 1984
Re: NodeMCU Step By Step
« Reply #56 on: March 18, 2017, 10:01:17 PM »
Hum... 
I can only get this dial to display the the "private" ThingSpeak view (admin view) and not in the Public View.

I'll work on that tomorrow as it's getting late now.

If you find the solution let me know. 
Stay calm and follow the screaming people.

Offline YHB

  • VS Moderator
  • Posts: 905
Re: NodeMCU Step By Step
« Reply #57 on: March 18, 2017, 10:10:58 PM »
I found the same.  :-\

Lots of people in the forums asking the same question and the answer keeps coming back that it can't be done.

Just take a picture and we will believe that it works ;)
Where Thrift Becomes An Art-Form

Offline ShiFu

  • eParrot.org
  • Admin
  • Posts: 1984
Re: NodeMCU Step By Step
« Reply #58 on: March 18, 2017, 11:00:48 PM »
No glorious pictures here.
I stuff up every attempt to fix this problem so far.

I can easily display the very nice dial now, thanks to you YHB, but only in ThingSpeak admin (private) mode, not the Public mode. Not yet.

Private Mode gives only me access to my data.
Public Mode gives others access to that data.

I now have the full Private Mode, complete with a pretty dial, and I should be happy  - except it is not quite good enough yet.
Kinda want to share that yInformation with anyone and whenever I want.
 
Stay calm and follow the screaming people.

Offline YHB

  • VS Moderator
  • Posts: 905
Re: NodeMCU Step By Step
« Reply #59 on: March 18, 2017, 11:52:54 PM »
I gave up after a couple of hours. ::)

I can see my gauge and I can access my guage on a phone. If you give me the read API key and the channel number I should be able to create a gauge in my private space accessing your data, then I could see what you see. Not what you want I know, but.

I have had a look for putting two guages on one page. ie Vapour ABV and Boiler ABV side by side rather than having to switch pages. Although it appears to be doable, I doubt if I can do it. Having a look at it is on my list of things to do.
Where Thrift Becomes An Art-Form