# Simple question for you guys/girls; brain twister for me

**URL:** <https://discourse.nodered.org/t/simple-question-for-you-guys-girls-brain-twister-for-me/18752>\
**Category:** General\
**Created:** [3 December 2019 19:27 UTC](https://discourse.nodered.org/t/simple-question-for-you-guys-girls-brain-twister-for-me/18752 "2019-12-03T19:27:58Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![zuchi238](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zuchi238/32/14901_2.png) [@zuchi238](https://discourse.nodered.org/u/zuchi238)\
**Post date:** [3 December 2019 19:27 UTC](https://discourse.nodered.org/t/simple-question-for-you-guys-girls-brain-twister-for-me/18752/1 "2019-12-03T19:27:58Z")

</div>

(Intro: I'm new to NR; am planning to use Node Red on my sailing boat; Have raspi with Openplotter; and now I need to know my fuel en de weather).

Here we go

Have Arduino with simple sketch with digital barometer (BMP280). I run the sketch and get the values via PrintScreen  
Then I initiate NR and have tried to re-build this ([https://iotdesignpro.com/projects/interface-arduino-with-node-red-to-send-sensor-data-on-webpage](https://iotdesignpro.com/projects/interface-arduino-with-node-red-to-send-sensor-data-on-webpage))

Once I deploy I see in Terminal this error message:

````auto

3 Dec 20:15:48 - [info] Starting flows

3 Dec 20:15:48 - [error] [arduino-board:9e7b5947.04f23] TypeError: Cannot read property 'on' of null

3 Dec 20:15:48 - [error] [arduino-board:2dca7ade.ce7e9e] TypeError: Cannot read property 'on' of null

3 Dec 20:15:48 - [error] [arduino-board:c0891553.e024a] TypeError: Cannot read property 'on' of null

3 Dec 20:15:48 - [info] Started flows

3 Dec 20:15:48 - [error] [arduino-board:d5e83eb0.89bdd8] port not found : /dev/tty.usbmodem143301

3 Dec 20:15:48 - [error] serial port /dev/tty.usbmodem143301 error: Error: Error: Resource busy, cannot open /dev/tty.usbmodem143301```

So it does not work (obviously)

My questions:

1. I have been able to build the Blink flow and trigger a blink via NR (so my cables are ok ... ;)
2. Why does the port keep giving data to the PrintScreen (Arduino) but stops giving it to NR?
3. What did I miss or do wrong?

Thanks from a sailor.

Bart
````

---

<div class="post-metadata">

**Author:** ![zuchi238](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zuchi238/32/14901_2.png) [@zuchi238](https://discourse.nodered.org/u/zuchi238)\
**Post date:** [3 December 2019 20:01 UTC](https://discourse.nodered.org/t/simple-question-for-you-guys-girls-brain-twister-for-me/18752/2 "2019-12-03T20:01:04Z")

</div>

Small extra thing. I ran the Sketch and then closed Arduino IDE to free up the Serial port

---

<div class="post-metadata">

**Author:** ![zuchi238](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zuchi238/32/14901_2.png) [@zuchi238](https://discourse.nodered.org/u/zuchi238)\
**Post date:** [3 December 2019 20:09 UTC](https://discourse.nodered.org/t/simple-question-for-you-guys-girls-brain-twister-for-me/18752/3 "2019-12-03T20:09:10Z")

</div>

Ok solved it myself. I rebooted Node-Red. Thanks anyway

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [3 December 2019 21:04 UTC](https://discourse.nodered.org/t/simple-question-for-you-guys-girls-brain-twister-for-me/18752/4 "2019-12-03T21:04:39Z")

</div>

Bart,

Another idea you could do, if you have WiFi on the boat, would be get a WeMos D1 and install ESPEasy on it. It already has the code for using a BMP280 senson and many more. Set it up to send the data via MQTT to Node-RED on the Pi. You'll have to install a Mosquitto broker on the Pi along with NR, but that is a very simple thing to do.

---

<div class="post-metadata">

**Author:** ![zuchi238](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zuchi238/32/14901_2.png) [@zuchi238](https://discourse.nodered.org/u/zuchi238)\
**Post date:** [3 December 2019 21:15 UTC](https://discourse.nodered.org/t/simple-question-for-you-guys-girls-brain-twister-for-me/18752/5 "2019-12-03T21:15:39Z")

</div>

Mr Zenofmud,

Thanks for reply, will dive into it!  
Best,  
Bart

---

<div class="post-metadata">

**Author:** ![zuchi238](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zuchi238/32/14901_2.png) [@zuchi238](https://discourse.nodered.org/u/zuchi238)\
**Post date:** [6 December 2019 07:29 UTC](https://discourse.nodered.org/t/simple-question-for-you-guys-girls-brain-twister-for-me/18752/6 "2019-12-06T07:29:42Z")

</div>

Mr Zenofud,

Did what you suggested with the following result

" ... Hi,

Some facts:

- Got my hands on ESP8266 D1 mini
- Understand Arduino a bit but read about ESP Easy, thought it would be easier to connect to Raspi (incl Openplotter) on my boat.
- Found out how to flash and was able to flash my D1
- But now I can not find the AP Wifi to finish the configuration (=connect to my home Wifi)
- ;(

Do not know where to start, as I have re-flashed the card 4 times by now.

Hope anybody (much smarter) can briefly use his brainpower and put me on a "fixit" path.

Thanks,

Bart

Maybe you can help?

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [6 December 2019 08:21 UTC](https://discourse.nodered.org/t/simple-question-for-you-guys-girls-brain-twister-for-me/18752/7 "2019-12-06T08:21:00Z")

</div>

google is your friend see [https://www.letscontrolit.com/wiki/index.php?title=EasySetup](https://www.letscontrolit.com/wiki/index.php?title=EasySetup)

---

<div class="post-metadata">

**Author:** ![zuchi238](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zuchi238/32/14901_2.png) [@zuchi238](https://discourse.nodered.org/u/zuchi238)\
**Post date:** [6 December 2019 08:37 UTC](https://discourse.nodered.org/t/simple-question-for-you-guys-girls-brain-twister-for-me/18752/8 "2019-12-06T08:37:01Z")

</div>

My best (online) friend !

Problem is that I do not see the initial AP ESP\_Easy\_0 (prior to 2.0 the AP was named ESP\_0) ...

So I can not get to the D1 ...

So I go to my second best (online) friend .... Mr Zenofmud ...

😉

Bart

---

<div class="post-metadata">

**Author:** ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Post date:** [6 December 2019 09:26 UTC](https://discourse.nodered.org/t/simple-question-for-you-guys-girls-brain-twister-for-me/18752/9 "2019-12-06T09:26:27Z")

</div>

Bart,

I have had this happen a couple of times after the flash of an ESP8266 with ESP Easy. I have found the easiest way is to perform a cold reboot of the device i.e. pull the power rather than hit the reset button.

I have also found on a couple of different boards that there is a button sequence to press within a short period of time of it booting to get it to go to the initial config

I have never had the flashing process completely fail

Craig

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [6 December 2019 09:49 UTC](https://discourse.nodered.org/t/simple-question-for-you-guys-girls-brain-twister-for-me/18752/10 "2019-12-06T09:49:03Z")

</div>

I assume you are using the latest ESP Easy release from here...

> **[letscontrolit/ESPEasy](https://github.com/letscontrolit/ESPEasy/releases)**
>
> Easy MultiSensor device based on ESP8266. Contribute to letscontrolit/ESPEasy development by creating an account on GitHub.

The release includes 'ESP.Easy.Flasher.exe' an executable for Windows (sorry Paul no version for iOS) which makes flashing a Wemos D1 Mini very easy.  
The only problem I've encountered is the entry for the first WiFi network seems to get ignored.  
I just put the details for one of my WiFi networks in both the first and second boxes on the form.

The other thing I've found is sometime the newly flashed device appears at 192.168.4.1

Hope you manage to get connected to your device because once you do it will open-up a number of possibilites for you.

Regards, David.

---

<div class="post-metadata">

**Author:** ![zuchi238](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zuchi238/32/14901_2.png) [@zuchi238](https://discourse.nodered.org/u/zuchi238)\
**Post date:** [6 December 2019 09:59 UTC](https://discourse.nodered.org/t/simple-question-for-you-guys-girls-brain-twister-for-me/18752/11 "2019-12-06T09:59:50Z")

</div>

Craig,  
(Detailed question)

Do you have the D1 powered via USB of computer?

I read that power/quality of USB cable sometimes is an issue.  
( I just bought a new Raspi approved power supply)

Bart

---

<div class="post-metadata">

**Author:** ![zuchi238](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zuchi238/32/14901_2.png) [@zuchi238](https://discourse.nodered.org/u/zuchi238)\
**Post date:** [6 December 2019 10:02 UTC](https://discourse.nodered.org/t/simple-question-for-you-guys-girls-brain-twister-for-me/18752/12 "2019-12-06T10:02:29Z")

</div>

Dave,  
Tried this as well. But I'm not able to select a BIN file. I can click the button "open folder", then navigate to the bin file, but there is no OK button.  
I tried to drag the bin file, but no luck ...  
How did you do it?  
Bart

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [6 December 2019 10:39 UTC](https://discourse.nodered.org/t/simple-question-for-you-guys-girls-brain-twister-for-me/18752/13 "2019-12-06T10:39:33Z")

</div>

This is what my version of ESP Easy Flasher looks like.  
You need to 'click' the bin file you want from the drop-down list.

 ![ScreenShot036](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/8/80a199c9e21144d80236ef88da86ad3198b17fd2.png)  
I just select the '.bin' file and then click 'Flash ESP Easy FW' button (bottom-right of screen).

Note:  
I've left the WiFi boxes empty for obvious reasons.

I also give all my Wemos devices a fixed IP address (as I have over 40 of them).

---

<div class="post-metadata">

**Author:** ![zuchi238](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zuchi238/32/14901_2.png) [@zuchi238](https://discourse.nodered.org/u/zuchi238)\
**Post date:** [6 December 2019 10:51 UTC](https://discourse.nodered.org/t/simple-question-for-you-guys-girls-brain-twister-for-me/18752/14 "2019-12-06T10:51:48Z")

</div>

Dave,  
My drop  
down box is empty ... that is the strange thing.

So I clicked on Open Folder ... navigated to the BIN file, but then was unable to click "OK" somewhere ...

So strange ...

Bart

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [6 December 2019 10:54 UTC](https://discourse.nodered.org/t/simple-question-for-you-guys-girls-brain-twister-for-me/18752/15 "2019-12-06T10:54:36Z")

</div>

That sounds as if the folder labelled 'bin' (in the area where you unzipped ESP Easy) is empty.  
Can you check it?  
 ![ScreenShot037](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/e/e92880f7cf5b0cb806a3514a95875b08f0eeb93c.png)

 ![ScreenShot038](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/d/dc958a932e6ad6cab83df70e845274496c1edfa5.png)

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [6 December 2019 10:55 UTC](https://discourse.nodered.org/t/simple-question-for-you-guys-girls-brain-twister-for-me/18752/16 "2019-12-06T10:55:11Z")

</div>

What version did you download?

---

<div class="post-metadata">

**Author:** ![zuchi238](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zuchi238/32/14901_2.png) [@zuchi238](https://discourse.nodered.org/u/zuchi238)\
**Post date:** [6 December 2019 20:09 UTC](https://discourse.nodered.org/t/simple-question-for-you-guys-girls-brain-twister-for-me/18752/17 "2019-12-06T20:09:54Z")

</div>

Dave, I think I got it (via you!) Let me try some more things. Will get back. Best Bart

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [6 December 2019 20:36 UTC](https://discourse.nodered.org/t/simple-question-for-you-guys-girls-brain-twister-for-me/18752/18 "2019-12-06T20:36:23Z")

</div>

If the 'bin' folder is empty, you can always drag-n-drop a bin-file into that area as a temporary solution.

If you are using a Wemos D1 Mini, then I would use this bin file.

ESP\_Easy\_mega-20191130\_normal\_ESP8266\_4M1M

---

<div class="post-metadata">

**Author:** ![zuchi238](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zuchi238/32/14901_2.png) [@zuchi238](https://discourse.nodered.org/u/zuchi238)\
**Post date:** [6 December 2019 21:10 UTC](https://discourse.nodered.org/t/simple-question-for-you-guys-girls-brain-twister-for-me/18752/19 "2019-12-06T21:10:42Z")

</div>

Dave,

Yes that is what I did. I "found" the correct bin file and was able to flash the D1  
(+gave the Wifi credentials)

After the flash I got the message from Easy flasher that all went well.

I also configured a fixed IP address. 192.168.1.123

But then ... I tried to login via a browser on 192.168.1.123 without any succes.

Via Google WIFI I looked for my newly flashed D! ... no luck

So .. what is the next thing I did wrong ...?

(sorry I keep asking such simple questions)

Bart

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [6 December 2019 21:36 UTC](https://discourse.nodered.org/t/simple-question-for-you-guys-girls-brain-twister-for-me/18752/20 "2019-12-06T21:36:52Z")

</div>

Did you fill in your wifi info? If so did you reboot the Wemos after that?  
If yes, you should be able to enter the IP address in a browser to get to the ESPeasy configuration.

I can't really help on the Windows side, as I do it on my Mac and have to flash them using a CLI.

Note: doing it the first time is the hardest, so take notes for the next time 😄

[Next page](https://discourse.nodered.org/t/simple-question-for-you-guys-girls-brain-twister-for-me/18752.md?page=2)
