IoT exploration with VS Code, Python, and the Device Simulator Express

IoT exploration with VS Code, Python, and the Device Simulator Express

The explosion of devices in the IoT space is more than a little overwhelming. Where do you start? Why choose hardware when you can experiment entirely in software? That’s the power of the Device Simulator Express (DSE).

The explosion of devices in the IoT space is more than a little overwhelming. Where do you start? 

Why choose hardware when you can experiment entirely in software? That’s the power of the Device Simulator Express (DSE).  

The DSE comes out of the Microsoft Garage internship program – two separate teams worked on the simulator over the past year. The development was done on GitHub and is open to contributors. 

You can start experimenting with programming Python on IoT devices without buying anything – in fact, there’s nothing to buy at all. Everything you need is open-source and free. 

Simulating devices in Visual Studio Code 

There are three different simulators in the Device Simulator Express as of writing. The first is the Adafruit Circuit Playground Express, a circular device with two buttons, ten RGB NeoPixel LED lights, and a host of other sensors.  

Adafruit's Circuit Playground Express device.

The Adafruit Circuit Playground Express.

In the DSE, you see a graphical representation of the device, and all of the buttons and touchpads work with mouse clicks. You write code in Python to control the Circuit Playground Express and then experiment with the simulation. In Visual Studio Code, you’ll see your code in one pane alongside the graphical device, so you experience the rapid-fire “write a line of code, run it, make changes” cycle that makes programming fun and easy to understand.  

And when you’re ready to experiment on hardware, the Device Simulator Express extension makes it easy to push your code via USB into the IoT hardware. 

And the Circuit Playground Express is not the only device in the simulator!

The BBC micro:bit is a small rectangular device with a five-by-five grid of LEDs, two buttons, and several other sensors. 

The BBC micro:bit device.

The BBC micro:bit

The matrix of LEDs makes it easy to create simple graphical images, characters, and even animations. One of the more popular demo apps for the micro:bit is a dice simulation – you shake the device triggering the accelerometer (which you can do with your mouse in the DSE) and the micro:bit LEDs blink until they stop on a one-to-six die pattern. 

Next up is the Adafruit CLUE, which is much like the micro:bit, but adds an LCD display instead of the matrix of LEDs. 

The Adafruit CLUE device.

python visual studio code code

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Python в Visual Studio Code

We are pleased to announce that the July release of the Python extension is now available for Visual Studio Code. You can download the Python extension from the Marketplace, or install it directly from the extension gallery in Visual Studio Code. If you already have the Python extension installed, you can also get the latest update by restarting Visual Studio Code. You can read more about Python support in Visual Studio Code in the documentation .

TWC9: Python, Visual Studio Code Updates, OpenJDK 16

We are back with another episode of This Week on Channel 9! Join us as Christina catches you up on the latest developer news. 1:09 - Windows Package Manager ...

Python in Visual Studio Code – July 2020 Release

We are pleased to announce that the July 2020 release of the Python Extension for Visual Studio Code is now available. You can download the Python extension from the Marketplace, or install it directly from the extension gallery in Visual Studio Code.

How to code in Python using Visual studio | i2tutorials

Python is simple, easy to learn, interpreted, object-oriented , high-level programming language. Visual Studio is developed by Microsoft. Visual studio can be used for many programming languages such as Java, Javascript, Node.js, C++, etc

Python / Visual Studio Code 개발 환경 만들기

파이썬 개발을 위한 도구는 여러 가지가 있습니다. Visual Studio Code도 그 중 하나입니다. VS Code에 Python 확장 기능을 설치하고, Hello World를 출력해보겠습니다. 확장 기능 설치 Visual Studio Code를 설치하고 실행합니다. [...]