Getting Started with Kameleon

Kameleon
Kameleon
Jul 25 · 3 min read

If you are a JavaScript developer familiar with Node.js, you can make DIY electronics without learning a new language like C/C++ or Arduino sketch. Kameleon is a tiny JavaScript platform for electronics prototyping. It includes an open source JavaScript runtime as well as Web-based IDE for social coding. In this article I will give you a quick tutorial to get start Kameleon from scratch.

Get a board

To get started you need to get a Kameleon-compatible board. You can purchase a board from the website: https://kameleon.io/products/kameleon-core.

Image for post
Image for post

When you get a board, you can connect the board to your computer via a micro-USB cable. You will see the power LED (red) if you connected successfully.

Image for post
Image for post

Install Kameleon Agent

Before writing your code we need to install Kameleon Agent by downloading from https://kameleon.io/agent. Kameleon Agent is a background service to communicate Web-based IDE and the board connected to the local computer via USB cable. After installation, you can find an icon in the tray. You need to ensure that the agent service is started.

Image for post
Image for post

Open Playground

Now you are ready to code with Kameleon. Open the playground directly by visiting at https://kameleon.io/playground or clicking the playground icon the navigation bar in the web. Then, select the connected board in the device select dropdown box in the top-right area in the playground.

Image for post
Image for post

The playground will try to communicate with the connected board and will show the welcome message received from the board in the Terminal area. In the terminal, you can use it as a JavaScript REPL (Read-Eval-Print Loop) mode. So you will get the result 3 when you enter 1+2.

Image for post
Image for post

Upload JavaScript Code

Now you can upload a JavaScript code in the Editor area. In default, there will be an example code for blinking LED in the board. To upload the code, click the “Upload” button. After a moment, you will see the blinking LED (green) in the board.

Image for post
Image for post

Congratulation, now you have completed basic steps to use Kameleon. Please note that the code in playground will not be saved (the uploaded code will be cached temporally). If you want to keep code in the cloud, you have to create a project.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store