As the Rev3 of Hannah is getting in the wild, I want to share some release notes, waiting to have the full docs published on the devwiki.
As we said several times, there are few differences between the previous Rev2, released last year, and the Rev3 that now we produce and distribute.
All the examples and codes actually available on the devwiki are related to the Rev2 and some can’t work properly.
The information related to the Hannah Rev2 are available from the devwiki:
http://devwiki.electricimp.com/doku.php?id=hannah
The new Rev3 is available from smARtMAKER’s website and in stock in the warehouses in USA, Europe and China:
http://smartmaker.com/en/31-electric-imp
A list of local resellers is planned and will be published when available (if you know some that could be interested in carry it let me known by PM).
What’s new
There are not many differences between the Rev2 and this new Rev3. Waiting for the official page on devwiki to be ready, I’ve published the design here:
https://github.com/smartmaker/tutorials/tree/master/ElectricImp/Hannah/Rev3
and I attach the schematics to this message as well.
The size is the same of the Rev2 and most of the components used are same as well.
The two main differences are the temperature sensor and the accelerometer.
For the temperature sensor, the new choice is a TI’s TMP112 that’s more precise and less power consuming than the SA56004ED used previously.
This means that the example program published for the Rev2 will not work with this new Rev3, because the sensor is different. We’ll try to have a new working example ready asap. Here is possible to get the datasheet for the new temperature sensor:
http://www.ti.com/lit/ds/symlink/tmp112.pdf
The other new entry in this Rev3 is a better accelerometer. Compared to the Rev2’s LIS331DL from ST, the new (still from ST) LIS3DH used in the Rev3 is a great improvement. While the old sensor was capable of up to 8g of scale, this new one offers up to 16g and the output data rate that was maximum 400Hz in the old one now can be increased up to 5Khz. You can test a race car now!
Almost any single line of code used with the Rev2, related to the accelerometer, will not work with the new Rev3.
This because the whole sensor is different. Not only the registers’ address. The old sensor offers an output based on 8 bits but the new one offers double resolution, on 16 bits with endian chosen by the coder. The whole thing is different.
We are working on a clear example.
The datasheet for this new sensor is available here:
http://www.st.com/web/en/resource/technical/document/datasheet/CD00274221.pdf
and also ann application note is available for download from ST:
http://www.st.com/web/en/resource/technical/document/application_note/CD00290365.pdf
Self Test Code
We have a self test code that can be useful to check that everything in your Hannah is working fine and it can be also used as starting point to write new code.
This is more or less the code that we use during the QA in the manufacturing process.
You can get the code here:
The comments at the beginning of the code explain how it works. Basically the program check the different I2C devices to be connected and working and handle the many inputs and outputs available on the board based on the I/O expander (2 buttons, 1 pot, 1 RGB LED, 2 headers for servo).
In the next days I will post more examples of code working with the Rev3, both as stand alone and connected to Xively.
Dimitri