Easy Interaction Prototyping with HTML, Arduino and Involt © MIT

Involt is my simple HTML/CSS based prototyping framework with build-in hardware interactions for creative people like you.

  • 18,962 views
  • 14 comments
  • 79 respects

Components and supplies

A000066 iso both
Arduino UNO & Genuino UNO
Actually anything capable of serial communication will work. If you wish you can connect HC-05 or any other Bluetooth 2.0 device to make it wireless.
×1
09590 01
LED (generic)
For examples. Anything else can be used. Remember about 220 ohm resistor :)
×1
09939 01
Rotary potentiometer (generic)
For reading the data. Anything else can be used.
×1

Apps and online services

About this project

Overview

Arduino is easy hardware prototyping platform but things get complicated when software is involved in project - even if there are many great tools and frameworks for app prototyping. It's a huge obstacle that blocks many concepts from making it to the real world. In many cases, for prototyping interactive projects, there are a lot of interactive devices that are controlled via app. Not only as IoT solution. I decided to create Involt for maximum simplification of such prototyping scenario. Isn't it cool to have your Arduino controlled with HTML-based app? You can work on both interactions and layout at the same time. I like to call it "tangible CSS" because it exactly describes how does the project work. I think it's fresh and innovative approach.

This text is a smart tip for anyone who understands the idea and its context or want to have simple app that control Arduino based project.

Project website:

http://involt.github.io/

IMPORTANT:

Even if it's HTML based, currently Involt has no IoT online support. However, for prototyping purpose - in most cases it doesn't matter.

Why to use CSS and Involt for hardware prototyping?

As an interaction designer, I can tell that it's important to start testing on users on real scenarios as soon as possible. For software development we can use wireframing tools (like UX Pin) or create HTML prototype. Using arduino alone (without software) is easy to learn, but how to make it easy for people who are not programmers and use such skills in creating the concept from both sides? That's the main goal of Involt - to easily create prototypes, iterate them and quickly start testing on user. Instead of focusing on advanced coding you can focus on overall experience.

Other solutions in my opinion are not suitable for prototyping. They are not "out of the box" solutions and you need to know Javascript, Node.js and it's libraries well. Involt comes with ready to use UI kit, automatic values communication and connection setup.

Project is also a good starting point for entry-level Arduino users.

How the idea started?

Because I noticed that prototyping hardware to software communication is too hard on early stages of development where I don't need to do native app but  working prototype that can be easily adapted for my needs in both interactions and app layout (even if it's slower). My first attempt was at my university (School of Form) where I decided to learn the easiest way possible - then I decided to extend the project and publish it to help the others, I received a lot of feedback and I know this is not just my problem. You can read more on about page.

Getting Started

Technically Involt does two things - it transfers the values automatically so they are accessible from both sides. Secondly, it contains ready to use UI kit and it's parameters can be changed within CSS classes or custom JQuery methods (Involt UI kit is JQuery based and methods are accessible for user). You can also use this to trigger functions so possibilities are unlimited.

For the examples below you just need a LED with 220ohm resistor and something to read the data from (potentiometer or anything else).

Installation

With 1.1.0 release Involt has moved from Chrome packaged app into Node webkit, to install the project just download NW from nwjs.io and unpack involt there.

Google chrome is not required.

Examples

"Turn on LED" button:

To do this you need two lines of code - one HTML in index html and one in Arduino code. Keeping the basic code from both sides is easier to maintain in most cases because you only need basic skills.

index.html

<div class="ard button P3 value-255"> Click me </div>

The classes define UI element, target pin and desired values on event. You can read more about CSS syntax on getting started page and other chapters.

And in void loop of Involt arduino sketch:

analogWrite(3, involtPin[3]);

The P3 in UI is equal to involtPin[3]. These pins can be used in many other ways, not only pin to hardware pin communication.

Control the LED brightness

If you understand the syntax, you can create rangeslider to control PWM value. The code in arduino is the same.

<div class="ard rangeslider P3 value-0 range-0-255 step-1"></div>

... and you have ready to use brightness slider with single line of code.

The other elements can be found on reference page.

Read the value from device

It's also two lines of code. The basic element that show the value as text.

<div class="ard show A0"></div>

... and in void loop:

involtSend(0, analogRead(A0));

also some delay is required to not overload the serial port buffer.

delay(2);

Summary

As you can see it's easy to use. There are many more advanced things you can do. 

For example:

  • Add bluetooth for wireless communication
  • Use the same app with bluetooth on Mobile (android)
  • Develop low/hi fidelity prototype of your project
  • Add hardware interactions to your existing HTML wireframe

More examples can be found on examples page.

Thanks for reading! Feel free to contact me at ernestwarzocha@gmail.com

I'm constantly adding new features and I'm open for suggestions. The idea began small but it's constantly growing. If you saw the early versions and now check the project you will be surprised.

Thanks again and share if you like!

Schematics

Example circuit
Connect led to pin 3 and potentiometer to A0
F1skuxfhyqdw6bc

Code

Involt example
This is example for projecthub tutorial. Use main Involt Repo for newest versions.

Comments

Similar projects you might like

Magic Lamp

by Nekhil ravi

  • 878 views
  • 3 comments
  • 8 respects

Arduino MKR GSM 1400 and DTMF

by Arduino_Genuino

  • 3,518 views
  • 0 comments
  • 10 respects

Love You Pillow

Project tutorial by Arduino

  • 1,957 views
  • 0 comments
  • 4 respects

Infrared Replicator

Project tutorial by Gustavo Gonnet

  • 3,639 views
  • 6 comments
  • 26 respects

A Model Lighthouse Using an Adafruit NeoPixel Ring

Project tutorial by Jeremy Lindsay

  • 345 views
  • 0 comments
  • 4 respects

Rural Hack Kit

by Officine Innesto

  • 3,949 views
  • 0 comments
  • 7 respects
Add projectSign up / Login