Quantcast
Viewing all articles
Browse latest Browse all 5342

Automation, sensing and robotics • Re: Can't measure resistors

This might be useful for analysis. I only process data where the ends of the divider read 40 and 4082 ...

How close V reading is to expected V calculated from actual Rh:Rs

Code:

 .-----.-----.  .------.------.------.  .--------------.----------. | Dir | Pin |  | Vh   | V    | Vs   |  | V Expected   | Error    | |-----|-----|  |------|------|------|  |--------------|----------| | FWD | 1 0 |  | 4082 | 307  | 40   |  | 305.709      | +0.4222% | | REV | 0 1 |  | 40   | 3813 | 4082 |  | 3816.29      | -0.0862% | | FWD | 1 0 |  | 4082 | 307  | 40   |  | 305.709      | +0.4222% | | REV | 0 1 |  | 40   | 3816 | 4082 |  | 3816.29      | -0.0076% | | FWD | 1 0 |  | 4082 | 307  | 40   |  | 305.709      | +0.4222% | | REV | 0 1 |  | 40   | 3816 | 4082 |  | 3816.29      | -0.0076% | | FWD | 1 0 |  | 4082 | 307  | 40   |  | 305.709      | +0.4222% | | REV | 0 1 |  | 40   | 3816 | 4082 |  | 3816.29      | -0.0076% | `-----^-----'  `------^------^------'  `--------------^----------'
Calculate Rh and see how close it is to actual Rh

Code:

 .-----.-----.  .------.------.------.  .--------------.----------. | Dir | Pin |  | Vh   | V    | Vs   |  | Rh Calc      | Error    | |-----|-----|  |------|------|------|  |--------------|----------| | FWD | 1 0 |  | 4082 | 307  | 40   |  | 4665.73      | -0.5175% | | REV | 0 1 |  | 40   | 3812 | 4082 |  | 4610.22      | -1.7010% | | FWD | 1 0 |  | 4082 | 307  | 40   |  | 4665.73      | -0.5175% | | REV | 0 1 |  | 40   | 3815 | 4082 |  | 4665.73      | -0.5175% | | FWD | 1 0 |  | 4082 | 307  | 40   |  | 4665.73      | -0.5175% | | REV | 0 1 |  | 40   | 3814 | 4082 |  | 4647.09      | -0.9149% | | FWD | 1 0 |  | 4082 | 307  | 40   |  | 4665.73      | -0.5175% | | REV | 0 1 |  | 40   | 3814 | 4082 |  | 4647.09      | -0.9149% | `-----^-----'  `------^------^------'  `--------------^----------'
Calculate average Rh and see how close it is to actual Rh

Code:

 .-----------------.-----------------.  .--------------.----------. | FWD Rh Calc     | REV Rh Calc     |  | Rh Calc Avg  | Error    | |-----------------|-----------------|  |--------------|----------| | 4665.73         | 4610.22         |  | 4637.98      | -1.1092% | | 4665.73         | 4665.73         |  | 4665.73      | -0.5175% | | 4665.73         | 4647.09         |  | 4656.41      | -0.7162% | | 4665.73         | 4647.09         |  | 4656.41      | -0.7162% | `-----------------^-----------------'  `--------------^----------'

Statistics: Posted by hippy — Fri May 10, 2024 12:24 pm



Viewing all articles
Browse latest Browse all 5342

Trending Articles