Sparrow1-v2

Sparrow1 Version 2 notes

Parts List

PartQtyVendorNotes
Basic Stamp 21Parallax 
DS16201Parallax 
24LC2561Parallax or Digi-Keywill be using external memory
Push Button switch1Parallaxwill be using 1 switch now
LED1Parallax or Radio Shackfor status purposes
220 ohm resistor1Radio Shackfor the push button
10K ohm resistor2Radio Shackfor the push button, jumpers
4.7K ohm resistor2Radio Shackfor the 24LC256
1K ohm resistor1Radio Shackfor the DS1620
470 ohm resistor1Radio ShackFor the LED
.1 microfarad capacitor1Parallax or Radio Shackfor the DS1620
3 inch wire segments16Parallaxdoesn't cover the DIP switches yet

IO Assignments

pindevicenotes
P0pushbutton switchactive low
P1  
P2DS1620 - RST 
P3DS1620 - CLK 
P4DS1620 - DQ 
P5  
P6  
P7  
P824LC256 - SDAIf a Basic Stamp 2p were used instead, these two pin assignments can make
P924LC256 - SCLuse of the I2CIN and I2COUT statements without re-wiring
P10  
P11LEDto be used for status
P12  
P13  
P14  
P1510K ohm resistorTest Mode

Overall notes

Constants

  1. eventmax - number of events per mission. Event starts at 0 and ends at eventmax-1
  2. missionmax - number of missions.

Test Mode

P15 is set to Vss (ground or 0) then normal operation.

P15 is set to Vcc (+5 volts or 1) then test mode is enabled. Test Mode will dump the contents of the external EEPROM and first 64 bytes of the internal EEPROM

Output

Format of the output is:

SP1-V2, mission #, event number #, raw data

to get the temperature in Celsius divide the raw data by 2.

LED

Slow blink

Fast flash

During the mission It will turn on when the unit is writing data to the EEPROM

Pushbutton switch

Hold the pushbutton down after the LED has blinked the mission number to start the mission. You can release it when the LED does a fast flash.

Terminal hookup

Set to 9600 baud, 8 data bits, no parity, 1 stop bit, no flow control

Data format

Each event will generate 4 bytes of data

  1. high byte for event counter
  2. low byte for event counter
  3. high byte from the DS1620 temperature sensor
  4. low byte from the DS1620 temperature sensor

Source Code History

V2-00

Done on 24-Oct-2008. Routines added are:

  1. Project identification
  2. code to support the 24LC256 EEPROM

filename: sparrow1-v2-00.bs2

V2-01

Done on 30-Oct-2008. Routines added are:

  1. support the DS1620 temperature sensor. It can record 100 events to the EEPROM and then display it when it is done.

With using the 24LC256 EEPROM it is possible to have Sparrow1 record up to 13 missions at 10 minutes per mission (or 600 events per mission). The amount of missions and the time per mission might change as this project is being developed.

filename: sparrow1-v2-01.bs2

V2-02

Done on 31-Oct-2008 but not fully tested.

  1. pushbutton support
  2. dumping the entire EEPROM to the terminal
  3. using some internal EEPROM for the project.

filename: sparrow1-v2-02.bs2

V2-03

Done on 3-Nov-2008.

  1. Support for the LED which will turn on everytime data is written to the external EEPROM.
  2. Expanding the number of events to 1200 for just one mission.

filename: sparrow1-v2-03.bs2

V2-04

Done on 5-Nov-2008.

  1. Fixed the mydataout and myheader_line routines.
  2. Expanded the number of events to 2000 for just one mission.

filename: sparrow1-v2-04.bs2

V2-04a

Done on 13-Nov-2008, a Version of V2-04

  1. change the numbers of events down to 120.

filename: sparrow1-v2-04a.bs2

V2-05

Done on 06-Nov-2008. Not a working version

  1. format of eeprom dumps (not fixed length)
  2. multiple missions (still testing) at 800 events per mission at 3 missions max.

filename: sparrow1-v2-05.bs2

V2-06

Done on 13-Nov-2008. Not a working version

  1. Data dumps from V2-05 and this version does not look good.
  2. 120 events per mission

filename: sparrow1-v2-06.bs2

V2-07

Done on 13-Nov-2008. Not fully tested

  1. fixed the data dump routine.
  2. make it able to deal with a mission that does not fully complete.
  3. 120 events per mission
  4. 4 missions.

filename: sparrow1-v2-07.bs2

V2-08

Done on 14-Nov-2008. Under going testing

  1. working on a fix to not to go beyond a the max number of missions (this condition would happen if the last mission did not complete fully).

filename: sparrow1-v2-08.bs2

V2-09

Done on 17-Nov-2008.

  1. 5 missions
  2. 120 events per mission (this number is used for testing)
  3. LED will blink the current mission number before starting
  4. LED will rapidly flash when the start pushbutton is pushed
  5. It will dump contents on the next restart after the last mission
  6. output format is: SP1-V2, mission #, event count, raw data

filename: sparrow1-v2-09.bs2

V2-10

Done on 20-Nov-2008

  1. use of a 10K ohm resistor to P15. When connected to +5 volts (Vcc) it will do normal operations. If P15 is connected to ground (Vss) it will dump the contents of the eeproms to the debug terminal.

filename: sparrow1-v2-10.bs2

V2-11

Done on 21-Nov-2008

  1. P15 is known as Test Mode. When connected to Vss (ground or 0) it is in normal operations. When connected to Vcc (+5 volts or 1) it will go in to the test mode. Test mode will just display the contents of the EEPROMS.
  2. 800 events per missions
  3. 5 missions

filename: sparrow1-v2-11.bs2