Skip to main content

Posts

Showing posts with the label arduino

New site for Dart news and articles

For the latest Dart news, visit our new blog at  https://medium.com/dartlang .

Irrduino: A Sprinkler System Built Using Arduino, Android, Google App Engine, Python, and Dart

Developers frequently ask me if Dart is ready for the real world. Well, of course, that depends on the application. Check out this short video in which Joe Fernandez and I not only show that Dart can be used in the real world, we also show that it can be used to take the tedium out of watering your lawn! The Dart code for Lawnville was originally written in January of 2012, a mere three months after Dart was launched as a "technology preview". That was six months before Dart's M1 release, so it's been updated a few times along the way. However, the code really hasn't fundamentally changed that much since the beginning. Perhaps the most interesting piece of code is the use of a Queue (from the dart:collection library) to schedule watering tasks. You can click on different parts of the lawn, and the droid will fly over and water each section for a short amount of time: _actionQueue = new Queue(); ... _actionQueue.add({'action': 'water