element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Personal Blogs
  • Community Hub
  • More
Personal Blogs
Hardware ESP32 and Mongoose OS - First Application
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: mcb1
  • Date Created: 5 Jan 2018 11:41 PM Date Created
  • Views 1243 views
  • Likes 8 likes
  • Comments 0 comments
  • esp32
  • usb port
  • mongoose os
  • silabs
  • com_port
  • flash
  • usb cable
  • mongoose os on esp8266
  • wemos
  • lolin32
Related
Recommended

ESP32 and Mongoose OS - First Application

mcb1
mcb1
5 Jan 2018

In my previous post ESP32 and Mongoose OS - Intro  I showed how to connect to an ESP32 using Mongoose OS and setting up the WiFi.

 

In this post I want to do something more useful, and control NeoPixels.

 

yesterday I showed Flashing the device with either of the inbuilt demos, but you can simply select the Com Port and Platform and then close the window by hitting done.

image

 

Connection Issues

I had some issues yesterday when I was playing around, and today I decided to try some things to see if I could resolve it.

 

For some reason it worked to flash and communicate, then wouldn't work, and was locking up the browser and wanting mos to be restarted.

There are three possibilities.

  • Poor cable/connection
  • USB port clashing
  • Driver issue

I looked at the cable and it was a good quality one and the device seems to connect snuggly.

I changed USB ports, just in case.

When I plugged the LOLIN32 in, windows loaded it's own drivers, and so I downloaded the Silabs driver and installed them (yes and did the obligatory reboot ... why does windows require it?)

 

So hopefully I've resolved my connection issues ...

 

 

 

Apps and Flashing

First order of the day is to download an App that has most of it done for you.

 

Click on Import and after a few seconds the list populates.

image

If you click on the Name it opens a new tab in the github repository for that project.

 

I scrolled down and found one called "example-neopixel-js"

image

Click on the Import button and it gets added to the list under My Apps

image

 

Clicking on the App and then the dropdown shows the list of files in the App.

image

Scroll down to init.js and adjust to suit your neopixel.

 

The init.js has a few settings.

image

In my case I have 16 neopixel ring and I've stayed with GPIO5.

 

Click the save icon (next to the File List dropdown, and it saves it to My Apps.

 

You can Flash it to the device by clicking on the lightning bolt just under the Dashboard.

image

The Device Logs show the progress.

image

 

 

Device Files

It is also possible to manipulate the files on the device.

 

On the left side is a collection of tabs, and under Device Files

image

Sometimes you may need to Refresh File List.

Clicking on the init.js allows you to manipulate it, and then save it back onto the Device.

 

There is the option to Save and Reboot, or you can press the reset button and it will act on the new file.

This leaves your My Apps files intact while you experiment ... image

 

 

Next Step

My next step is to become a little more familiar with JavaScript.

I need to allow remote manipulation of the Neopixel before I reveal my cunning plans.

 

 

 

Mark

 

Intro        ESP32 and Mongoose OS - Intro

Issues     ESP32 and Mongoose OS - Issues

  • Sign in to reply
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube