https://github.com/workplacex/embedded
Microprocessor Development for IoT Devices
https://github.com/workplacex/embedded
Last synced: 4 months ago
JSON representation
Microprocessor Development for IoT Devices
- Host: GitHub
- URL: https://github.com/workplacex/embedded
- Owner: WorkplaceX
- Created: 2018-06-14T17:01:35.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-14T21:59:19.000Z (about 8 years ago)
- Last Synced: 2025-07-06T21:46:32.725Z (12 months ago)
- Size: 459 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Embedded Microcontroller
Following article describes how to set up a development environment for IoT microcontroller programming on Windows 10 running Linux Ubuntu 18.04 on Hyper-V.

# ESP32 Controller
The microcontroller used is ESP32 available for about 5.00 USD - 10.00 USD
See also:
* ESP32 hardware manufacturer (espressif.com)
* ESP IDF development framework (github.com)
* Technical documentation (readthedocs.io)
# Setup Serial Communication
First we need to establish serial communication between ESP32 controller and Windows 10. For this connect ESP32 with Windows 10 over USB cable.
Install this driver:
USB to UART Driver (silabs.com) as described here: (readthedocs.io)
Open Windows Device Manager and configure baud to 115200. It should look like this:

For a further test type "mode" into Windows command prompt.

On Windows use for example Putty (putty.org) to connect to device.

Succesful connection with a new ESP32 will look like this:

Press the ESP32 "EN" button to retrigger serial output. For location of "EN" button see: (readthedocs.io)
# Setup Ubuntu
Make sure Hyper-V is enabled on Windows.

Download Ubuntu 18.04 LTS iso from (ubuntu.com)
Install virtual machine with Ubuntu
* Generation 1
* Assign at least 2048 MB memory
* Select operating system (downloaded iso: ubuntu-18.04-desktop-amd64.iso)
* Increase "Virtual Processors" up to 4
* Start virtual machine
* Select "Install Ubuntu"
* Select "Minimal installation"
In order to run Ubuntu on Windows in full screen install from Ubuntu terminal XRDP
```
~$ sudo apt-get install xrdp
```
Get IP address. Install first
```
~$ sudo apt-get install net-tools
```
Now get IP address like this
```
~$ ifconfig
```
* Remember IP Address and logout.
* Open Windows 10 Remote Desktop

* Login to Ubuntu XRDP

* The following error (Authentication Required to create color managed device) you can cancel away

# Establish Serial Communication between Windows 10 and Ubuntu 18.04