1
0
mirror of https://github.com/tdaede/td-io.git synced 2024-11-24 07:00:10 +01:00

fix meter pin mappings

This commit is contained in:
Thomas Daede 2021-03-03 20:49:00 -08:00
parent 72acf0c254
commit 3eec407f6b
2 changed files with 6 additions and 5 deletions

View File

@ -16,10 +16,10 @@ const uint PIN_SR_DATA = 6;
const uint PIN_SR_CLK = 5;
const uint PIN_SR_SH = 4;
const uint PIN_METER1 = 7;
const uint PIN_METER2 = 8;
const uint PIN_LOCKOUT1 = 9;
const uint PIN_LOCKOUT2 = 10;
const uint PIN_METER1 = 8;
const uint PIN_METER2 = 7;
const uint PIN_LOCKOUT1 = 10;
const uint PIN_LOCKOUT2 = 9;
const uint16_t JVS_TERMINATION_THRESHOLD = (uint16_t)(3.75/2.0/3.3*4096);
const uint16_t JVS_0V_THRESHOLD = (uint16_t)(1.25/2.0/3.3*4096);
@ -151,6 +151,7 @@ uint32_t read_switches() {
void update_termination() {
uint16_t v = adc_read();
v = 4095; // FIXME: bad adc input
if (v >= JVS_TERMINATION_THRESHOLD) {
gpio_put(PIN_JVS_TERMINATION, 0);
} else {

View File

@ -3887,5 +3887,5 @@ Wire Wire Line
NoConn ~ 15450 3950
NoConn ~ 13800 3950
Text Notes 8950 9600 0 50 ~ 0
todo:\nnew footprint for RCA jacks\nsmaller ground pad tor tpa3138d2\nsmaller ground pad for tps568230\nfix pin 11/14 swap on VGA jack\nfix DISABLE on ada4891\nadd additional input capacitance on tps568230\nconnect power/ground to xor gate\nmove AC coupling on audio input to after volume pot\nconnect boost caps on tpa3138 before inductor\nincrease tpa3138 output caps' voltage rating for reduced thd\nmake JST-SH footprint\nmove stereo connector farther away from caps\nchange vga amp gain\nadd negative voltage rail for vga amp\nadd overvoltage protection\ndifferent vga connector without text on it\nswap volume pot logarithmic polarity\nmake sense line 2.5v pulldown non-switchable\nswitch shift register lines to pins mapped to rpi spi peripheral\nswap rs485 tx/rx\nswap rs485 a/b\nfix R55 wire to +3.3V\nreposition connectors\nground vga connector
todo:\nnew footprint for RCA jacks\nsmaller ground pad tor tpa3138d2\nsmaller ground pad for tps568230\nfix pin 11/14 swap on VGA jack\nfix DISABLE on ada4891\nadd additional input capacitance on tps568230\nconnect power/ground to xor gate\nmove AC coupling on audio input to after volume pot\nconnect boost caps on tpa3138 before inductor\nincrease tpa3138 output caps' voltage rating for reduced thd\nmake JST-SH footprint\nmove stereo connector farther away from caps\nchange vga amp gain\nadd negative voltage rail for vga amp\nadd overvoltage protection\ndifferent vga connector without text on it\nswap volume pot logarithmic polarity\nmake sense line 2.5v pulldown non-switchable\nswitch shift register lines to pins mapped to rpi spi peripheral\nswap rs485 tx/rx\nswap rs485 a/b\nfix R55 wire to +3.3V\nreposition connectors\nground vga connector\nfix sense amp
$EndSCHEMATC