Difference between revisions of "Raspberry Juice"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
[[File:RaspberryJuice.jpg|thumb|300px|The Raspberry Juice board]] |
|||
= Overview = |
= Overview = |
||
The Raspberry Juice serves as a power switch for the Raspberry Pi. This expansion board can turn the power on or off at a scheduled time. |
The Raspberry Juice serves as a power switch for the Raspberry Pi. This expansion board can turn the power on or off at a scheduled time. |
||
= Specifications = |
|||
The Juice always uses about 2mA/10mW. The board is rated for a maximum current of 1A. |
|||
= Use = |
= Use = |
||
Line 25: | Line 31: | ||
|- |
|- |
||
| 0x21 || Set the time in milliseconds until power on |
| 0x21 || Set the time in milliseconds until power on |
||
|} |
|||
So, for instance, writing 10000 to port 0x21 and 1000 to 0x20 will cut the power in 1 second, and then turn on the power 9 seconds later. |
Revision as of 16:39, 10 July 2014
Overview
The Raspberry Juice serves as a power switch for the Raspberry Pi. This expansion board can turn the power on or off at a scheduled time.
Specifications
The Juice always uses about 2mA/10mW. The board is rated for a maximum current of 1A.
Use
The Raspberry Juice can be found using I2C or SPI at address 0xA4, and has the following read ports:
Port | Returned value (in milliseconds) |
---|---|
0x20 | Time until power off |
0x21 | Time until power on |
Additionally, the following can be written to the Juice:
Port | Effect |
---|---|
0x20 | Set the time in milliseconds until power off |
0x21 | Set the time in milliseconds until power on |
So, for instance, writing 10000 to port 0x21 and 1000 to 0x20 will cut the power in 1 second, and then turn on the power 9 seconds later.