Difference between revisions of "Raspberry Juice"

From BitWizard WIKI
Jump to: navigation, search
Line 5: Line 5:
 
The Raspberry Juice can be found using I2C or SPI at address 0xA4, and has the following read ports:
 
The Raspberry Juice can be found using I2C or SPI at address 0xA4, and has the following read ports:
 
{| border=1
 
{| border=1
! Port !! Returned value
+
! Port !! Returned value (in milliseconds)
 
|-
 
|-
 
| 0x20 || Time until power off
 
| 0x20 || Time until power off
 
|-
 
|-
 
| 0x21 || Time until power on
 
| 0x21 || Time until power on
 +
<!--
 
|-
 
|-
 
| 0x30 || Absolute scheduled time of power off
 
| 0x30 || Absolute scheduled time of power off
 
|-
 
|-
| 0x31 || Absolute scheduled time of power on
+
| 0x31 || Absolute scheduled time of power on  
 +
-->
 
|}
 
|}
 +
 +
Additionally, the following can be written to the Juice:
 +
{| border=1
 +
! Port !! Effect
 +
|-
 +
| 0x20 || Set the time in milliseconds until power off
 +
|-
 +
| 0x21 || Set the time in milliseconds until power on

Revision as of 17:05, 9 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.

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