Hello everyone.
Thank you for your responses! I apologize for the delay, but I was distracted with the Reno Air Races!
As for code, this is my misguided attempt:
/*
1 - 4
2 - 2
3 - 1
4 - C
5 - 8
*/
/*
1=8
2=c
3=1
4=2
5=4
*/
/*
ones 22,23,24,25,26
when looking at back of plug (can see metal tab)
1 - 25
2 - 24
3 - 23
4 - 22
5 - 26
*/
/* tens 30,31,32,33,24
1 - 33
2 - 32
3 - 31
4 - 30
5 - 34
*/
/* vio ones 36,37,38,39,40
1 - 39
2 - 38
3 - 37
4 - 36
5 - 40
*/
/* vio tens 42,43,44,45,46
1 - 4 - 45
2 - 2 - 44
3 - 1 - 43
4 - c - 42
5 - 8 - 46
*/
/*
C,1,2,4,8
0,0,0,0,0 == 0
0,1,0,0,0 == 1
0,0,1,0,0 == 2
0,1,1,0,0 == 3
0,0,0,1,0 == 4
0,1,0,1,0 == 5
0,0,1,1,0 == 6
0,1,1,1,0 == 7
0,0,0,0,1 == 8
0,1,0,0,1 == 9
*/
int ones[5] = {22,23,24,25,26}; // A,B,C,D inputs
int tens[5] = {30,31,32,33,34}; // A,B,C,D inputs
//int tens[5] = {33,32,31,30,34};
int vioones[5] = {36,37,38,39,40}; // A,B,C,D inputs
//int viotens[5] = {42,43,44,45,46}; // A,B,C,D inputs
int viotens[5] = {42,43,44,45,46}; // A,B,C,D inputs
//int viotens[5] = {45,44,43,42,46};
int vioonesa[4] = {39,38,37,36}; // A,B,C,D inputs
int viotensa[4] = {45,44,43,42}; // A,B,C,D inputs
byte BCD[10][5] ={
{0,0,0,0,0},
{0,1,0,0,0},
{0,0,1,0,0},
{0,1,1,0,0},
{0,0,0,1,0},
{0,1,0,1,0},
{0,0,1,1,0},
{0,1,1,1,0},
{0,0,0,0,1},
{0,1,0,0,1}
}; //BCD code
char BCDb[10][4] ={
{LOW,LOW,LOW,LOW},
{HIGH,LOW,LOW,LOW},
{LOW,HIGH,LOW,LOW},
{HIGH,HIGH,LOW,LOW},
{LOW,LOW,HIGH,LOW},
{HIGH,LOW,HIGH,LOW},
{LOW,HIGH,HIGH,LOW},
{HIGH,HIGH,HIGH,LOW},
{LOW,LOW,LOW,HIGH},
{HIGH,LOW,LOW,HIGH}
}; //BCD code
byte BCDa[10][4] ={
{0,0,0,0},
{0,0,0,1},
{0,0,1,0},
{0,0,1,1},
{0,1,0,0},
{0,1,0,1},
{0,1,1,0},
{0,1,1,1},
{1,0,0,0},
{1,0,0,1}
}; //BCD code
void setup() {
Serial.begin(9600);
for (int a = 0; a < 5; a++) {
/*
Serial.println(a);
Serial.print(ones[a]);
Serial.print(vioones[a]);
Serial.print(" ");
Serial.print(BCD[1][a]);
Serial.println();
*/
pinMode(ones[a],OUTPUT);
pinMode(tens[a],OUTPUT);
pinMode(vioones[a],OUTPUT);
pinMode(viotens[a],OUTPUT);
}
delay(100);
Serial.begin(9600);
Serial1.begin(9600);
Serial.println("begin");
//all low == zero
for (int c = 0; c < 5; c++) {
digitalWrite(ones[c], LOW);
digitalWrite(tens[c],LOW);
Serial.print(c);
Serial.println(tens[c]);
digitalWrite(vioones[c],LOW);
digitalWrite(viotens[c],LOW);
}
/*
0 - c - 42
1 - 1 - 43
2 - 2 - 44
3 - 4 - 45
4 - 8 - 46
*/
//digitalWrite(48,LOW);
//digitalWrite(49,LOW);
digitalWrite(tens[1],HIGH);
digitalWrite(tens[4],HIGH);
//digitalWrite(viotens[1],LOW);
digitalWrite(ones[4],HIGH);
digitalWrite(vioones[4],HIGH);
digitalWrite(viotens[0],HIGH);
//digitalWrite(viotens[1],HIGH);
Serial.println("set");
}
void loop() {
for (int c = 0; c < 4; c++) {
/*
digitalWrite(ones[c], BCD[0][c]);
digitalWrite(tens[c],BCD[3][c]);
digitalWrite(vioonesa[c],BCD[0][c]);
digitalWrite(viotensa[c],BCD[5][c]);
*/
/*
analogWrite(ones[c], BCD[0][c]);
analogWrite(tens[c],BCD[3][c]);
analogWrite(vioones[c],BCD[0][c]);
analogWrite(viotens[c],BCD[2][c]);
*/
}
}
I am currently unable to determine how the control board is mapped, but I will be sure to check when I get back home!
I have also tracked down a unit that has the thumbwheel switches in place. I plan on checking it out, to see exactly what thumbwheel switch they are using, and see if having the correct data sheet will help at all. I know they're using C&K brand BCD 10 position switches, but I'm still not 100% certain which exact model they are using.
Thanks again for the assistance! I will post more information when I come to it.