John Shovic's Google Plus Switch: GPIO and I2C mappings for Project Curacao

Wednesday, December 18, 2013

GPIO and I2C mappings for Project Curacao

We have been asked to put together tables showing the i2c and GPIO mappings for both the Raspberry Pi and the Arduino Battery Watchdog in Project Curacao.  While you can figure it out from the software and comments, it would be great to have the mappings in one place.  We are also putting this in Article 5, Project Curacao Software.  Updated with solar/wind GPIOs on 01/07/14.


RaspBerry Pi i2c Mappings

i2c addressDeviceFunction
0x29BM017 / TCS34725RGBC Color Sensor
0x39TSL2561Luminosity Sensor
0x40INA219Raspberry Pi Input Voltage/Current
0x41INA219Battery Input Voltage/Current
0x44INA219Solar Panel Output Voltage/Current
0x48ADS1915 A/D12 bit A/D converter
Channel 0Pi Battery Temperature
Channel 1Camera Servo Feedback Potentiometer
0x77BMP085Baro/Temp readings

RaspBerry Pi GPIO Mappings (GPIO.setmode(GPIO.board))

RPI.GPIORaspberry Pi NameBCM2835Pin NumberFunction
7GPIO7GPIO4P1_07Rising Edge Interrupt to Arduino
8TXDGPIO14P1_08TXD to Arduino
10RXDGPIO15P1_10RXD to Arduino
12GPIO1GPIO18P1_12Software PWM for Camera Servo
15GPIO3GPIO22P1_15Pulse to Turn Fan Off
16GPIO4GPIO23P1_16DHT22 Temp/Hum Interface
18GPIO5GPIO24P1_18Pulse to Turn Fan On
22GPIO6GPIO25P1_22Activity LED



Arduino Battery Watchdog i2c Mappings



i2c addressDeviceFunction
0x40INA219Arduino Input Voltage/Current
0x41INA219Arduino Solar Cell Voltage/Current
0x44INA219Arduino Battery Voltage/Current
0x5CAMS 2315Outside Temp/Humidity
0x68RTC1307Real Time Clock

Arduino Battery Watchdog GPIO Mappings

GPIOFunctionComments
22Interrupt PiLevel
27Pi Latched Relay ResetPulse
29Pi Latched Relay SetPulse
35LED Pi Interrupt OnArduino Battery Voltage/Current
41Select Wind SetWind Turbine
43Select Solar ResetSolar Panels


Arduino Battery Watchdog A/D Mappings


ChannelFunction
A3Pi Battery Voltage
A5Regulated Wind Voltage
A7Unregulated Wind Voltage
A9Pi Solar Voltage

No comments:

Post a Comment