Pin | µC | meaning |
1 | gnd | Signal reference |
2 | DAC_out(P2.2) | Dac output from µC to robot controler, scaled down from 5 to 3.3V levels |
3 | Dig out (P2.6) | Digital output from µC to robot controler, scaled down from 5V to 3.3V levels |
4 | Dig in (P2.5) | Digital input from robot controller to µC, somehow protected |
5 | Analog out | ZX output scaled up to reach 3.3V levels (from 4-20mA) |
6 | Digital out | Comparison of previous signal against threshold set with R1, 3.3V levels |
7 | 5V in (optional) | Optional 5V input from robot controller |
pin | meaning |
1 | gnd |
2 | 15 to 24V in, 500mA max |
pin | meaning |
1 | gnd |
2 | Not connected |
2 | 12V in, 500mA max |
pin | meaning |
shield | gnd |
tip (inside +) | 15 to 24V in, 500mA max |
pin | ZX1 | ZX2(wire color) | µC | Meaning |
1 | gnd(blue) | gnd(blue) | main gnd for sensor | |
2 | judgement1(white) | low threshold(gray) | P0.6 | first comparator output |
3 | tune2(pink) | reset/bank1(red) | P4.1 | |
4 | error output(yellow) | P0.3 | only for ZX2 | |
5 | laser off(red) | laser off (pink) | P0.2 | |
6 | analog out+(black) | analog out+(black) | to ADS111x+/P3.5 | this 4-20mA signal is going through 100Ω resistor then is differentially digitized by the ADS111x, also signal is scaled to 3.6V and wired to µC |
7 | zero(purple) | zero(orange) | P5.0 | |
8 | judgement2(green) | high threshold(white) | P0.7 | |
9 | tune1(orange) | timing/bank0(purple) | P4.0 | |
10 | pass(green) | P3.6 | only for ZX2 | |
11 | analog out -(black shield) | analog out -(black shield) | to ADS111X - | GND for analog out, substracted by ADS111x and differential amplifier |
12-14 | NC | |||
15 | +12V(brown) | +12V(brown) | sensor main supply |
pin | meaning ZX | meaning µC |
2 | TX | RX (P3.0) |
3 | RX | TX (P3.1) |
5 | gnd | gnd |
pin | port | meaning | oddities |
28 | P0.0 | SWDIO | programmer port |
29 | P0.1 | SWDCK | programmer port |
30 | P0.2 | Laser off to ZX | |
31 | P0.3 | Error reading from ZX | |
32 | P0.4 | I²C SCL | I²C for ADS111x |
33 | P0.5 | I²C SDA | I²C for ADS111x |
34 | P0.6 | judgement 1/low from ZX | |
35 | P0.7 | judgement 2/high from ZX | |
48,1-6 | P1[0-6] | Parallel LCD display | |
7 | P1.7 | LCD backlight PWM | is on PWMn output |
10 | P2.0 | RX from computer | wired to MCP2221 TX |
11 | P2.1 | TX to computer | wired to MCP2221 RX |
12 | P2.2 | DAC output to robot controler | Should be able to reach 12b resolution with configurable Vref |
13 | P2.3 | Push button called "up" | requires internal pull-up |
14 | P2.4 | Push button called "down" | requires internal pull-up |
15 | P2.5 | Digital signal from robot controller (pin4) | 3.3V input |
16 | P2.6 | Output to robot controller (pin3) | scaled down to 3.3V levels |
17 | P2.7 | Bypass capacitor for ADCs and Vref | |
20 | P3.0 | RX from ZX2 sensor TX | ZX/RX crossed on board |
21 | P3.1 | TX to ZX sensor RX | " |
22 | P3.2 | 5V monitor | resistive divider by 11 (R57/58), might be replaced by VDDA/2 input to ADC |
23 | P3.3 | 12V monitor | resistive divider by 11 (R52/55) |
24 | P3.4 | Vin monitor | resistive divider by 11 (R51/54) |
25 | P3.5 | output from diff amplifier (ZX output) | is 1.5*100*(4-20mA) V |
26 | P3.6 | Pass from ZX2 | |
27 | P3.7 | ADC Alert from ADS111x | for better ADS read timing |
37 | P4.0 | Tune1/timing/bank0 to ZX | |
38 | P4.1 | Tune2/reset/bank1 to ZX | |
39 | P5.0 | Zero output to Zx | |
40 | P5.1 | LED1 | |
41 | P5.2 | Key ok/LED2 | switch in // with LED |
42 | P5.3 | Dip switches for configuration | see table below |
dip2(MSB) | dip1(LSB) | threshold |
0 | 0 | >3V |
0 | 1 | >2V&&<2.5V |
1 | 0 | >2.5V&&<3V |
1 | 1 | <2V |
I | Attachment | History | Action | Size | Date | Who | Comment |
---|---|---|---|---|---|---|---|
rar | AltiumProject.rar | r1 | manage | 403833.1 K | 2022-06-22 - 15:19 | AliKhalilzadeh | Altium designer projects |
xlsx | ListOfComponents.xlsx | r1 | manage | 13.0 K | 2022-06-22 - 15:01 | AliKhalilzadeh | List_of_the_components |
png | MCP2221_conf.png | r1 | manage | 30.5 K | 2022-07-04 - 14:35 | YannickAllard | MCP2221A configuration |
PCB_design_file.pdf | r1 | manage | 7605.3 K | 2022-06-22 - 14:51 | AliKhalilzadeh | PCB dedign file | |
Smart_Test_Results.pdf | r1 | manage | 265.9 K | 2022-06-22 - 14:56 | AliKhalilzadeh | Aisler test results | |
jpg | io.JPG | r1 | manage | 73.0 K | 2022-06-22 - 14:47 | AliKhalilzadeh | Input/Outputs pins of the microcontroller |
jpg | io2.JPG | r1 | manage | 92.5 K | 2022-06-22 - 14:47 | AliKhalilzadeh | Input/Outputs pins of the microcontroller |
shematic_pdf.PDF | r1 | manage | 1466.4 K | 2022-06-22 - 14:35 | AliKhalilzadeh | Schematic |