Skip to content

Commit

Permalink
Merge pull request #15 from Aharoni-Lab/dev-usb
Browse files Browse the repository at this point in the history
Move bug fixes and MiniCAM support to master
  • Loading branch information
daharoni authored Aug 28, 2020
2 parents bd0344b + 0d32e32 commit e42af8c
Show file tree
Hide file tree
Showing 19 changed files with 926 additions and 714 deletions.
95 changes: 64 additions & 31 deletions deviceConfigs/behaviorCams.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,15 @@
"frameRate": "adjustable",
"width": 1024,
"height": 768,
"pixelClock": 96,
"headOrientation": false,
"isColor": false,
"controlSettings": {
"gain": {
"displaySpinBoxValues":["Low", "Medium", "High"],
"displayTextValues": [1, 4, 8],
"outputValues":[8,32,96],
"startValue": "Low",
"displaySpinBoxValues":["1X", "8X", "16X", "32X"],
"displayTextValues": [1, 8, 16,32],
"outputValues":[8,96,2144,6240],
"startValue": "1X",
"sendCommand": [
{
"protocol": "I2C",
Expand All @@ -36,10 +37,10 @@
]
},
"frameRate": {
"displaySpinBoxValues":["10FPS", "30FPS", "45FPS"],
"displayTextValues": [10, 30, 45],
"outputValues":[2048,1536,1024],
"startValue": "45FPS",
"displaySpinBoxValues":["10FPS", "40FPS", "50FPS"],
"displayTextValues": [10, 40, 50],
"outputValues":[2048,1536,766],
"startValue": "50FPS",
"sendCommand": [
{
"protocol": "I2C",
Expand All @@ -51,9 +52,9 @@
"data1": "valueL"
}
]
},
"led0": {
"startValue": 0,
},
"led0": {
"startValue": 20,
"min": 0,
"max": 100,
"stepSize": 1,
Expand All @@ -71,7 +72,17 @@
]
}
},
"initialize": [

"initialize": [
{
"description": "Make sure DES has SER ADDR",
"protocol": "I2C",
"addressW": "0xC0",
"regLength": "1",
"reg0": "0x07",
"dataLength": "1",
"data0": "0xB0"
},
{
"description": "Speed up i2c bus timer to 50us max",
"protocol": "I2C",
Expand All @@ -90,15 +101,6 @@
"dataLength": "1",
"data0": "0b00001010"
},
{
"description": "Make sure DES has SER ADDR",
"protocol": "I2C",
"addressW": "0x07",
"regLength": "1",
"reg0": "0x07",
"dataLength": "1",
"data0": "0xB0"
},
{
"description": "Speed up I2c bus timer to 50u Max",
"protocol": "I2C",
Expand Down Expand Up @@ -126,9 +128,9 @@
"dataLength": "2",
"device0": "MT9P031",
"data0": "0xBA",
"device1": "Digital LED Driver",
"device1": "Digital LED Driver",
"data1": "0x6C"

},
{
"description": "sets sudo allowable i2c addresses to send through serializer",
Expand All @@ -139,11 +141,31 @@
"dataLength": "2",
"device0": "MT9P031",
"data0": "0xBA",
"device1": "Digital LED Driver",
"device1": "Digital LED Driver",
"data1": "0x6C"

},
{
},
{
"description": "1535 Rows",
"protocol": "I2C",
"addressW": "0xBA",
"regLength": "1",
"reg0": "0x03",
"dataLength": "2",
"data0": "0b00000101",
"data1": "0b11111111"
},
{
"description": "2047 Colums",
"protocol": "I2C",
"addressW": "0xBA",
"regLength": "1",
"reg0": "0x04",
"dataLength": "2",
"data0": "0b00000111",
"data1": "0b11111111"
},

{
"description": "2x subsamp and binning 1",
"protocol": "I2C",
"addressW": "0xBA",
Expand Down Expand Up @@ -173,16 +195,26 @@
"data0": "0x00",
"data1": "0b01100000"
},
{
"description": "Set R0X03E to 0X00C0 when Sensor Gain>4",
"protocol": "I2C",
"addressW": "0xBA",
"regLength": "1",
"reg0": "0x3E",
"dataLength": "2",
"data0": "0x00",
"data1": "0xC0"
},
{
"description": "Change shutter width",
"protocol": "I2C",
"addressW": "0xBA",
"regLength": "1",
"reg0": "0x09",
"dataLength": "2",
"data0": "0b00000100",
"data1": "0x00"
},
"data0": "0b00000010",
"data1": "0b11111111"
},
{
"description": "LED Driver LM3509",
"protocol": "I2C",
Expand All @@ -193,6 +225,7 @@
"data0": "0b11010111"

}
]

]
}
}
Loading

0 comments on commit e42af8c

Please sign in to comment.