Skip to content

Commit

Permalink
assembly notes adapted and testprobe.ino extended
Browse files Browse the repository at this point in the history
  • Loading branch information
felias-fogg committed Jan 7, 2025
1 parent fb64149 commit 96b2547
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
4 changes: 4 additions & 0 deletions pcb/assembly.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ When assembling the kit, just follow what is specified in the table. Start from

For the capacitors C1 and C3 and the LED, watch out for the polarity, which should be matched with the symbols on the PCB. Bipolar capacitors have the negative connection marked, and the negative connection usually has a shorter lead. The other lead should go into the hole marked with '+'. Note that an **extra bipolar capacitor** not marked on the board needs to be soldered either in parallel to C2 (+ towards the edge, - towards LD1117) or directly to the shield connectors (+ to 5V, - to GND).

![extra cap](bipo.jpeg)

Note that you can use a cap with a much smaller rating than 50 V. 10 V is definitely enough. These caps also have a much smaller size.

Similarly, also LEDs have a long and a short lead, where the short one marks the cathode (-). This one should go into the hole marked with a square.

Q1, Q2, Q3, and U1 should all be soldered with the marking pointing upwards.
Expand Down
Binary file added pcb/bipo.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 7 additions & 5 deletions testprobe/testprobe.ino
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// tests a dw-link probe
#define VERSION "1.5.0"
#define VERSION "1.5.1"

// pins
const byte IVSUP = 2;
Expand All @@ -23,7 +23,7 @@ byte ctrls[MAXCTRL] = { TMOSI, TMISO, TSCK };
void setup()
{
Serial.begin(115200);
Serial.println(F("\nTesting dw-link-probe " VERSION));
Serial.println(F("\n\nTesting dw-link-probe " VERSION));
pinMode(SYSLED, OUTPUT);
pinMode(TMISO, OUTPUT);
// initially switch the two SPI lines and the RESET line to GND in order to discharge any stray capacitance
Expand Down Expand Up @@ -115,7 +115,7 @@ void loop()

void printHelp()
{
Serial.print(F("H/h - print this text\n" \
Serial.print(F("\nH/h - print this text\n" \
"!/? - print state of input/output lines\n" \
"L/l - switch LED on/off\n" \
"P/p - switch power supply on/off\n" \
Expand All @@ -125,7 +125,9 @@ void printHelp()
"O/o - set MOSI LOW(active)/HIGH(inactive)\n" \
"I/i - set MISO LOW(active)/HIGH(inactive)\n" \
"C/c - set SCK LOW(active)/HIGH(inactive)\n" \
"t - run a test sequence\n"));
"t - run a test sequence\n"
"\nSet pullup jumper to 10K\n"
"Set supply jumper to 3.3 or 5 V\n"));
}

static inline void activate(byte pin)
Expand Down Expand Up @@ -213,7 +215,7 @@ int getLevel(byte pin)
int getDisLev(byte pin) {
int level = (analogRead(pin)*10)/2;

if (level < 1000) return 0;
if (level < 1500) return 0;
else if (level > 3000 && level < 3700) return 3;
else if (level > 4500) return 5;
else return -1;
Expand Down

0 comments on commit 96b2547

Please sign in to comment.