Our products, Nanode, wireless, MCUs, electronics and more

We’re Moving

Posted: May 29th, 2012 | Author: | Filed under: Uncategorized | Comments Off on We’re Moving

Wicked Device is moving to larger premises soon! Yay, we are getting a nice heated/airconn’ed, fully vented workshop space, and about the same amount of assembly / research space that we have now, but a bit nicer.

All this means that we will have limited availability from June 1 – June 15. Orders and email should work as normal, but our  research and assembly benches will be out of action.


AQE Update

Posted: May 5th, 2012 | Author: | Filed under: AQE | Tags: | Comments Off on AQE Update

Now that the Air Quality Egg has been funded, my goal is to post updates every couple of weeks, probably with the exception of the week around Maker Faire. If you have any updates that you feel I have missed, items that should be included, or corrections, please let me know.

Sensor boards: Vic has posted a first draft of the sensor board schematic on Github. All boards will be in Eagle. The free version will work fine. Be sure to download Eagle if you want to follow along.

Final unit counts: We still don’t have the final numbers of who ordered what. Kickstarter does not make it easy to get this, and Albert is doing yeoman’s work sorting it all out. Please respond if you get an email asking you what you ordered. We can’t finalize the costing and a timeline until all these numbers are in.

Enclosures: Albert has also initiated a discussion on the sensor enclosure on the AQE Google Group. Now is the time to speak up if you want to contribute.

Money: It takes two weeks for Kickstarter to pay out, and we have now received $131,500, which is the total raised less 9% in fees. Thank you once more!

That’s all for now.

Dirk


To EcoHackNYC!

Posted: April 17th, 2012 | Author: | Filed under: Uncategorized | Comments Off on To EcoHackNYC!

A quick note to say that we are off to EcoHackNYC this weekend. If you are attending, we’ll see you there.

The goal is to build and launch a pollution monitoring balloon – pretty ambitious for one day, but hopefully doable.


Flying Car

Posted: April 8th, 2012 | Author: | Filed under: Uncategorized | Comments Off on Flying Car

Finally the future is arriving! For a mere $250k you too can own one of the first flying cars. The shocking thing to me was that the first proposals for such a thing were from the late 1940’s..

really… a flying car

Jetson’s here we come. Read the rest of the article (from the San Francisco Chronicle) here.


Sketch Garden: Success and Fail videos

Posted: April 7th, 2012 | Author: | Filed under: Sketchgarden | Tags: | Comments Off on Sketch Garden: Success and Fail videos

Here are two videos showing what a successful download looks like, and what happens when a download fails midway. By knowing the blink pattern of a failed download – two short blinks, pause, two short blinks – you can diagnose problems.
First the successful download:

And now what happens when a download fails halfway through.


Uploading a sketch in Sketch Garden

Posted: April 6th, 2012 | Author: | Filed under: Sketchgarden | Tags: | Comments Off on Uploading a sketch in Sketch Garden

We have simplified how to upload sketches. Here is a video explaining the new steps. They are:
– Compile the sketch in Arduino
– Grab the .hex file and upload it to sketchgarden.co


Air Quality Egg mentioned in Forbes

Posted: April 4th, 2012 | Author: | Filed under: Uncategorized | Comments Off on Air Quality Egg mentioned in Forbes

As many of you know, we are building the Air Quality Egg for the Pachube / Wicked Device AQE Kickstarter. The egg was featured in Forbes today:

Some of my thinking for this post comes from the web-based Pachube-powered project called the Air Quality Egg that is an air quality sensor device


Improvements to Sketch Garden

Posted: March 26th, 2012 | Author: | Filed under: Sketchgarden | Tags: | Comments Off on Improvements to Sketch Garden
Some improvements to Sketch Garden:
  • We fixed a pretty big bug which was creating a lot of “Can’t communicate with device” errors. If you ever received this error, please try again.
  • You can now upload .hex files, which will be converted to binary automatically.
  • There is also a new upload progress bar, which is more informative.

Also, don’t forget to try the auto-upload library (previous blog post). I have this working routinely, and it works great.

I would say the system is significantly more robust now than it was a week ago. Once again a big thank you to all beta testers.


Auto uploading with Sketch Garden Example

Posted: March 25th, 2012 | Author: | Filed under: Sketchgarden | Tags: | Comments Off on Auto uploading with Sketch Garden Example

By design, the Sketch Garden bootloader does not handle automatically uploading a new sketch – you have to manually push the reset button. Any auto reset must be handled from within the sketch. This post explains how to do this.

There are two parts to getting a new sketch:

  1. Timing a certain interval, and
  2. Checking back with sketchgarden.co once that interval has expired

Aside:
Resetting the Nanode is handled through the watchdog timer (WDT). This site has a pretty good explanation of how it works, but we basically take the canonical approach to soft-reset described by the avr-libc FAQ. Sketch Garden decides that it “Can’t Communicate with the Device” after about a minute of waiting for contact after Download Activation, so we set the Nanode polling interval to about 30 seconds.

Ok, back to the sketch. First, we need to get some libraries. In each case download the zip file, and unpack it in your Arduino libraries folder.
Ethercard: Basic Ethernet functions – chances are you are using this library anyway.
NanodeMAC: Reads you Nanode’s MAC chip to get the  unique MAC Address for your board. You can write in your own address into the sketch if you prefer.
SketchGarden: The auto reset library

The code itself instantiates a SketchGarden object, then services it whenever it times out.

Since this code does not do anything useful, a good first exercise would be to add in blink or fade – switching between the two is an easy way to make sure it is working. Don’t forget the Nanode built in LED is on pin 6, not pin 13 like Arduino.

The sample code is very simple.

/* Sketch Garden Nanode.ino
 For use with http://sketchgarden.co
  This sketch is released into the public domain by
  Wicked Device LLC
  Author: Vic Aprea, March 2012
  Change Log:
     - March 21, 2012, Initial Sketch, Vic Aprea
     - March 22, 2012, Minor changes, Dirk Swart
 */

// YOU MUST INCLUDE THESE HEADERS (you probably were going to anyway :)
#include <EtherCard.h>
#include <SketchGardenNanode.h>
#include <NanodeMAC.h> // Automatically reads your Nanode's MAC chip for you

// THE USUAL HELPERS FOR THE EtherCard LIBRARY
static uint8_t mymac[6] = { 0,0,0,0,0,0 };
NanodeMAC mac( mymac );
byte Ethernet::buffer[700];

// CREATE YOUR SketchGardenNanode OBJECT
SketchGardenNanode sgn;

void setup () {
  // SERIAL PRINTS CAN BE REMOVED IF YOU DON'T WANT THEM
  Serial.begin(57600);
  Serial.println("\n[webClient]");

  // INITIALIZE THE ETHERCARD LIBRARY AS YOU NORMALLY WOULD
  if (ether.begin(sizeof Ethernet::buffer, mymac) == 0)
    Serial.println( "Failed to access Ethernet controller");

  // GET AN IP ADDRESS WITH DHCP (YOU CAN CHANGE THIS IF YOU WANT TO USE STATIC IP)
  if (!ether.dhcpSetup())
    Serial.println("DHCP failed");          

  // INITIALIZE THE SketchGardenNanode OBJECT
  if(!sgn.start()){
    Serial.println("Sketch Garden Initialization Failed");
  }

  ether.printIp("SketchGarden IP: ", ether.hisip);  

  // INSERT YOUR CUSTOM CODE HERE

}

void loop(){
  // SERVICE THE ETHERNET CONTROLLER PACKET LOOP
  ether.packetLoop(ether.packetReceive());

  // CALL THE SketchGardenNanode POLL METHOD
  // THIS INTERNALLY KEEPS TRACK OF TIME AND POLLS SKETCHGARDEN FOR STATUS EVERY 30 SECONDS
  // IF YOU ACTIVATE A SKETCH ON THE SKETCHGARDEN WEBSITE THE POLL METHOD WILL CAUSE A RESET!
  if(sgn.poll()){
    Serial.print(millis(), DEC);
    Serial.print(" ");
    Serial.println("Polled Sketch Garden");
  }

  // INSERT YOUR CUSTOM CODE HERE... YOU SHOULD TRY NOT TO BLOCK AS MUCH AS POSSIBLE
  // OR YOUR PACKET LOOP MIGHT FALL BEHIND AND YOU MIGHT START DROPPING PACKETS (NOTHING NEW HERE)  

}

Refarm the city

Posted: March 23rd, 2012 | Author: | Filed under: Uncategorized | Comments Off on Refarm the city

Hernâni Dias and his collective from re:farm the city want to make sure that the world’s next generation of urban farmers have the tools to create a 21st Century urban farm.