Wednesday, December 24, 2008

Silvia - Arduino Pin Connections



I have just completed a table that is a summary of how all of the different hardware modules connect to the analog, digital, (+v), and ground pins on Arduino. These connections really follow directly from the software code that is used for this project. I thought that I'd just publish them in one place to help anyone contemplating the joining of Silvia and Arduino!

This table shows the module (hardware) to Arduino pin connections for two possible Silvia and Arduino configurations. The two configurations are designated by the interface method of input to Arduino, which in turn controls Silvia's actions.

If you want to use the Wii nunchuck as the interface for input to Arduino, then use the information provided in the column labeled: "ARDUINO PIN Wii Interface"

If you want to use a 6-button interface (of what ever design you like) for input to Arduino, then use the information in the column labeled: "ARDUINO PIN Button Interface"

Keep in mind that this table corresponds only to the specific hardware design that I used for the components in Silvia. My design differs from that of Tim Hirzel, this has to do with my use of the Opto 22 optoisolators to sense the status of the face panel switches, whereas Tim chose a low voltage re-wire of these switches. This then necessitated the use of two additional SSR's for control of the Silvia's pump and solenoid. If you want to go in Tim's direction, then the changes are self evident from looking at his SNV code.

One last note...

It was difficult to get this table to format for HTML, so if it is hard to read, just use ^Control + to make the text larger... good luck!!
Arduino Pin C
MODULEMODULE LEADARDUINO PIN
Wii
Interface
ARDUIO PIN
Button Interface
COMMENTS
Wii nunchuck




(+)3.3v


(-)GND


SDAANALOG 4
} I2C

SCLANALOG 5





Button Interface




UP
DIGITAL 36-button interface is used in place of the
Wii nunchuck.
Many hardware options are available

DOWN
DIGITAL 4

RIGHT
DIGITAL 5

LEFT
DIGITAL 6

C
DIGITAL 12

Z
DIGITAL 13





Real Time Clock




5v5v5v

GNDGNDGND

SQWDon't useDon't use

SDAANALOG 4ANALOG 4} I2C

SCLANALOG 5ANALOG 5





Temp Amplifier
AD595CQ



If LM34AH-ND is not used

5v5v5v

SIGANALOG 0ANALOG 0

GNDGNDGND





Temp Sensor
LM34AH-ND



If
AD595CQ
is not used

Vs+3.3v / 5v*3.3 / 5v** Adjust Calibration

VoutANALOG 0ANALOG 0

CASE (GND)GNDGND





Water Level Sensor
QT113





Lead from pin 15v5v

Lead from pin 2ANALOG 3ANALOG 3

Lead from pin 7Sensing ElectrodeSensing Electrode

Lead from pin 8GNDGND





PB4 Optoisolators1. (5v)5v5v

2. (GND)GNDGND

3. Top Center DIGITAL 11 DIGITAL 11

5. Lower DIGITAL 10 DIGITAL 10

7. MiddleDIGITAL 9DIGITAL 9

9. UpperDIGITAL 8DIGITAL 8





Sparkfun LCD




5v5v5v

GNDGNDGND

RXDIGITAL 3DIGITAL 2#define but don't use

TXDIGITAL 2DIGITAL 1





Heater Relay SSR




(+)DIGITAL 7DIGITAL 7

(-)GNDGND

2 comments:

  1. Dear Rick!
    Could you suggest where I can get the design of the DC1307 chip? I have a PCF8583F here from Philips which probably does the same as yours. But I have to compare and possibly rewrite the code - when I am going to take use of dd/mm//yyyy. It seems both chips are doing the same work but in different locations of the memory.
    Claus

    ReplyDelete
  2. Claus:
    Here is the link to the Maxim site with all the information that you could want on the real time clock chip DS 1307

    DS 1307

    But, you might just want to go with the SparkFun real time clock. It is a small package, and includes an integral battery back-up! The first page of this blog (parts list) has a link to the SparkFun RTC.

    Good Luck,

    Rick

    ReplyDelete