Electric Imp Developer Wiki
Hannah is a development board for the hobbyist with many useful peripherals on board.
Power can be supplied using a USB-Mini-B cable from a USB Charger or standard USB Port, though the data lines are not connected to anything. Optionally, four AA batteries may be fitted to the carrier on the rear side of the board. You may select between USB power and battery power by placing a shunt on the power select header. Please note that Hannah does not have any circuitry for charging a battery and you should never short USB power to the battery pack.
Hannah has on board:
Hannah brings out to pads:
0.1” pitch SIL headers may be fitted if required.
Clearly Hannah boasts many more peripherals than could be directly connected to the six general purpose pins of an imp. This is achieved through use of an I2C bus and an IO expander. The imp's pins are assigned as follows:
| Pin 1 | Digital input | Interrupt from GPIO expander |
|---|---|---|
| Pin 2 | Analog input | Potentiometer wiper |
| Pin 5 | Digital output | Servo port 1 PWM signal |
| Pin 7 | Digital output | Servo port 2 PWM signal |
| Pin 8 | I2C SCL | I2C Bus |
| Pin 9 | I2C SDA |
The IO expander pins are assigned as follows:
| IO0 | Input | Button 1 |
|---|---|---|
| IO1 | Input | Button 2 |
| IO2 | Input | Hall switch |
| IO3 | Input | Accelerometer interrupt |
| IO4 | Input | Temperature sensor alert interrupt |
| IO5 | Output | LED Green |
| IO6 | Output | LED Blue |
| IO7 | Output | LED Red |
| IO8 | Output | Potentiometer enable |
| IO9 | Output | RGB light sensor sleep |
| IO10 | Output | Servo ports 1 and 2 power enable |
| IO11 | GPIO | Spare |
| IO12 | GPIO | Spare |
| IO13 | GPIO | Spare |
| IO14 | GPIO | Spare |
| IO15 | GPIO | Spare |
The I2C bus has the following on-board peripherals:
| Address | Part Code | Description |
|---|---|---|
| 0x1C | LIS331DLTR | 3-Axis accelerometer |
| 0x74 | ADJD-S311-CR999 | RGB light sensor |
| 0x4C | SA56004ED | Temperature sensor |
| 0x3E | SX1509BULTRT | IO Expander |