Hey Stephen, Sorry for not getting back sooner but thank you for the info on the driver install! Found out about a week later, that wasn't the issue at all, I just needed to make sure the R.I.C.E cable was connected before connecting to my Ascend saber, then the configuator would read the USB. Vcp Driver Nodemcu For Mac. No upcoming events. Posted on April 29, 2016 at 08:21. MacOSX recognizes CDC(-ACM) devices (ie. Virtual COM port) without ANY extra driver. Just plug in the device.
- Vcp Driver Nodemcu For Mac Os
- Vcp Driver Nodemcu For Mac Os
- Vcp Driver Nodemcu For Mac Windows 7
- Vcp Driver Nodemcu For Mac Torrent
The NodeMCU V1.0 (picture from here) |
On paper it has some nice advantages compared to the old V0.9 version or also to other ESP8266 dev boards: you can directly connect it to your computer for programming and you won’t need an additional USB-to-Serial programmer or an external power supply. The USB connector does the job. The only problem: they must have changed something on the interface. Flashing doesn’t work out of the box anymore:
is what I got when trying to upload a file with the ESPlorer to the module…
I’m programming on a Mac, so all the fancy Windows based flashing tools won’t work for me directly. I usually use the adapted Arduino IDE or the esptool.py to upload new images to the device. This posts describes how you can flash the new hardware despite the problems with the esptool. Basically it shows how you can use the original Windows tool from Espressif from your Mac OS X system, even if it is made for Windows.
- Download and install driver for the CP2102 from here: https://www.silabs.com/Support%20Documents/Software/Mac_OSX_VCP_Driver.zip
- If you don’t already have it install homebrew: http://brew.sh/
- Install wine: I had to work around some issues with brew and wine. Write a comment if you want to know how I resolved them…
- Download the latest Flashing tool from Espressif:
http://bbs.espressif.com/viewtopic.php?f=5&t=433 - Install unrar (if you don’t already have it):
- Unpack the flash tool:
- Install unrar (if you don’t already have it):
- Enter the directory and start the Flashing Tool:
- Now that the wine directory has created enter the dosdevices folder and create a symlink to your NodeMCUs tty device:
- Select your image and adjust the settings according to this screenshot:
ESP Flash Tool started from wine: adjust the settings accordingly - Now connect the NodeMCU module using USB and press the RST button while you keep pressing the FLASH button. This will put the module into the right state for flashing
- Now click START in the flasher tool and wait until it is finished. Click RST again and have fun.
I hope that the esptool gets fixed quickly to work with the new hardware. I’m also not sure whether the problems comes from the USB-to-Serial converter or rather from the ESP-12E module. I suspect it is the later, but I couldn’t find anyone complaining about problems with the ESP-12E in general.
Shopping Links:
- From SeeedStudio: http://www.seeedstudio.com/depot/NodeMCU-v2-Lua-based-ESP8266-development-kit-p-2415.html
- From AliExpress: Wireless module NodeMcu Lua Nodemcu WIFI Network Development Board Based ESP8266 FZ1390
Did you like this post? Consider supporting me with a virtual coffee or beer.
Related posts:
In Part 1 of this article we looked at preparation and IoT tool selection, getting all tools ready. In this post will set up our development environment and make NodeMCU alive with some code.
I will use ready NodeMCU unit with mini USB connector to link this to my MAC. But before that we need to do some configuration.
- Install and configure Arduino IDE
- Add Arduino ESP8266 extension to IDE
- Install USB drivers
- Test the unit commnication with IDE
- Load some code to test
Vcp Driver Nodemcu For Mac Os
Install Arduino IDE download can be found here, download and install the version you need, I use MAC OSX version. Once you launch the IDE it will typically launch with sample loaded Sketch program for popular LED Blink code. A simple Sketch makes LED on/off blinking with some delay.
When I connected my NodeMCU unit to USB it has on board blue LED and it strated blinking before I loaded anythnig. The maker of this unit Oddwires have preloaded that script on NodeMCU and that is ok. Good test to know device is working or not.
Next step we need to add Arduino ESP8266 extension to our IDE for development. Select IDE Arduino > Preferences from menu and enter
http://arduino.esp8266.com/stable/package_esp8266com_index.json
into the Additional Board Manager URLs field. This will add number of selections to IDE’s Tools->Board menu optionsOpen Boards Manager from Tools -> Board menu and install esp8266 platform and select NodeMCU 1.0(ESP-12E Module) from Tools > Board menu, after installation. This module corresponds to new NodeMCU development kit 2.0.
Now we need to add USB communictaion to IDE to flash code to NodeMCU. In last post I have mentioned that this dev-kit was built based on CP2102 USB UART chip. We need to install signed drivers for Mac OSX from Silicon Labs CP210x USB to UART Bridge VCP Drivers. You will need to restart MAC OSX for this to take effect after install.Connect NodeMCU unit with mini USB cable to MAC the LED will start blinking indicating normall power and working unit. In the IDE Tools -> Port menu select the Port for your device. In my case I made following selection depending on device:
- Upload Speed 115200 fo this unit
- Flash Size: 4M (3M SPIFFS)
- Port: /dev/cu.SLAB_USBtoUART
Note that Port will not show if device is not connected. Also if you do not see this or similar port selection this means that you do not have correct USB drivers. I had to tinker with this a little by reinstalling USB driver and restarting MAC and reconnecting unit. At this point these selectinos should be all good. Try to change
delay(2000);
compile Blink sketch.Now lets try loading this sketch on our device.
After this code loaded, NodeMCU blue LED will start blinking with delay that we set in the code.While this is successful test we can agree blinking LED is not very exciting.
Lets try something more interesting like connect NodeMCU to WiFi and send remote commands to this device. Will make 2 endpoints to turn our LED On/Off on URL command. We can use one of examples provided with ESP8266 extensions, open
File > Eamples > ESP8266WebServer
select HelloServer
. This is a simple HTTP sever example code to setup our commands. Here is a full source code:Vcp Driver Nodemcu For Mac Os
Note that on-board LED is contrlled with simple commands
We have added 2 small methods mapped to URL path
/on & /off
to control LED switching.Open serial monitor window
Tools > Serial Monitor
and upload this code to NodeMCU, you will see load progress. If you doing this first time after this load we need ot restart NodeMCU device by disconnect power/unplug MCU. After upload the server will start on device. The Monitor window will print a welcome message along with IP address that we can use to send command to our new IoT device.Vcp Driver Nodemcu For Mac Windows 7
Open browser and type URL
http://192.168.1.12/on
will turn LED light up with blue light. Similar URL http://192.168.1.12/off
will switch LED off.Vcp Driver Nodemcu For Mac Torrent
Now lets summ our acomplishments, so far we set up our development system with Arduino IDE for NodeMCU, connected our IoT device and tested it, made connection to our WiFi notwork and started to control NodeMCU from our browser. Very good starting point for IoT development. In the next post will explore how to collect some data and send this to our Cloud API server Part 3 - Sensors with NodeMCU.