Mb2-io

Mynah Bird 2 Device Hookups

Data bus assignments

devicedata busfunction
24LC512I2CEEPROM
MCP3202SPIAnalog to Digital (A/D) converter - SPICS1
MMA7455SPIAccelerometer - SPICS2

  1. Vcc is set to +5 volts
  2. Vss is set to 0 volts or ground (GND)

Basic Stamp 2p hookups

pin numberpin namedevicenotes
1SOUT  
2SIN  
3ATN  
4VSS  
5P0  
6P1Prop Plug Tx9600 baud
7P2Prop Plug Rx9600 baud
8P3SLEDStatus LED
9P4SW1mode switch
10P5  
11P6  
12P7SPICS1SPI - CS1 - device #1 - MCP3202
13P8I2C SDA 
14P9I2C SCL 
15P10SPICLKSPI - CLK
16P11SPIDoutSPI - Dataout
17P12SPIDinSPI - Datain
18P13SPICS2SPI - CS2 - device #2 - MMA7455
19P14  
20P15  
21VDD  
22RES  
23VSS  
24VIN  

24LC512 Hookups

pin numberpin namedevicenotes
1A0  
2A1  
3A2  
4Vss  
5SDABS2p - P84.7K ohm pullup to +5v
6SCLBS2P - P94.7K ohm pullup to +5v
7WP set to Vss
8Vcc  

address connections

A0, A1, A2 need to be set to Vss for logic 0 or Vcc for logic 1.

Chip #A0A1A2Readwrite
0VssVssVss   
1VccVssVss   
2VssVccVss   
3VccVccVss   

MCP3202 hookups

pin numberpin namedevicenotes
1CSBS2p - P7SPICS1
2Channel #0LM34 - pin #2internal temperature sensor
3Channel #110K ohm resistorbattery voltage monitor
4GNDVss 
5DatainBS2p - P10SPIDin
6DataoutBS2p - P11SPIDout
7CLKBS2p - P10SPICLK
8Vcc+5v 

MMA7455

The MMA7455 is the 3-axis accelerometer

pinfunction nameassignmentnotes
1Vin+5 volts 
2n/c no connection
3INT1 not being used
4INT2 not being used
5GNDVss 
6CSBS2p - P13SPICS2
7DATABS2p - P11Connected to the SPI Dataout
8CLKBS2p - P10Connected to the SPI CLK

LM34 Pin Setup

The LM34 is the analog temperature sensor

With the flat side of the LM34 facing (where the text is) you, pin 1 is on the left side.

pinconnectionnotes
1Vdd5 volt power supply
2MCP3202 - CH#0 (pin 2)Vout
3VssGround