Hello,
I've made a start with the component tester with a basic resistance test, here is how to replicate my project.
First start by loading the SCADA Slave firmware here onto an Arduino Uno.
https://www.flowcode.co.uk/wiki/images/ ... rmware.zip
Next load this App Creator Project and select the COM port for the Arduino in the properties.
Then wire up the resistors as shown here.
Also connect the aref pin to 5v.
Run the simulation and click the Test Resistance button to take a resistance reading.
The console window shows the comms between the PC and the Arduino Uno.
I'm curently not overly happy with the results. With a series resistor of 1K and a test resistor of 100R I am reading 116R.
What we have so far is very basic and works to give a ballpark resistance but it's not overly accurate. I think we can make it much better.
I've come across this from Velleman and it looks like it uses several series resistors (R7-R9, R11-R13) that can be switched in and out to try and help home in on a better value and acheive the best reading possible.
https://manuals.whadda.com/article.php?id=734
So bearing this in mind maybe we can have a go at doing something similar.
For now I'm going to have a quick go at a capacitor and inductor test and document how I get on with these.
If anyone would like to aid in the project and help improve the readings or add new features then that would be most welcome.
Electrical Test - Component Tester
-
- Matrix Staff
- Posts: 1739
- http://meble-kuchenne.info.pl
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 440 times
- Been thanked: 603 times
Electrical Test - Component Tester
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
-
- Matrix Staff
- Posts: 1739
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 440 times
- Been thanked: 603 times
Re: Electrical Test - Component Tester
I've now added the ability to test capacitors using the same simple setup.
The graph displays the discharge and charge waveforms.
With a 11K series resistor my 100uF capacitor is retuning readings between 90uF and 101uF which again is good but I think we can probably do better.
Quick video detailing the progress so far is available here.
Next I'll have a go at Inductance.
The graph displays the discharge and charge waveforms.
With a 11K series resistor my 100uF capacitor is retuning readings between 90uF and 101uF which again is good but I think we can probably do better.
Quick video detailing the progress so far is available here.
Next I'll have a go at Inductance.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
-
- Matrix Staff
- Posts: 1451
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 512 times
- Been thanked: 472 times
Re: Electrical Test - Component Tester
Hi Ben,
What a brilliant project!
Thank you for posting progress so far.
I will be following progress with a great deal of interest.
It should be more accurate as it is independent of VDD so 5 or 3.3 is not used in the formula.
What a brilliant project!
Thank you for posting progress so far.
I will be following progress with a great deal of interest.
I use a formula which is really good for resistance measurements...
Code: Select all
ResistanceFloat = PullUpResistanceFloatConstant / (1023.0 / ReadADCINT * 1.0 - 1.0)
Martin
-
- Matrix Staff
- Posts: 1451
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 512 times
- Been thanked: 472 times
Re: Electrical Test - Component Tester
Unfortunately I'm unable to test until I can get the app developer package enabled.medelec35 wrote: ↑Sat Jan 09, 2021 8:40 pmHi Ben,
What a brilliant project!
Thank you for posting progress so far.
I will be following progress with a great deal of interest.I use a formula which is really good for resistance measurements...It should be more accurate as it is independent of VDD so 5 or 3.3 is not used in the formula.Code: Select all
ResistanceFloat = PullUpResistanceFloatConstant / (1023.0 / ReadADCINT * 1.0 - 1.0)
Martin
-
- Matrix Staff
- Posts: 1253
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 167 times
- Been thanked: 277 times
Re: Electrical Test - Component Tester
Is this missing from your licence? Some of the early licences were created without App Developer support, in which case you will need David to update the licence. If this is the case, let me know and I'll try to get this sorted today.
- p.erasmus
- Valued Contributor
- Posts: 434
- Joined: Thu Dec 03, 2020 12:01 pm
- Location: Russia / Россия
- Has thanked: 104 times
- Been thanked: 88 times
Re: Electrical Test - Component Tester
Hi Steve/Martin,
I also have no license for App developer just to say Only realized when trying to play with the project
I also have no license for App developer just to say Only realized when trying to play with the project
Regards Peter - QME Electronics
-
- Matrix Staff
- Posts: 1253
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 167 times
- Been thanked: 277 times
Re: Electrical Test - Component Tester
App Developer licences for VCs should now be sorted. You'll need to re-apply your licence via Licensing...Manage.
-
- Matrix Staff
- Posts: 1739
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 440 times
- Been thanked: 603 times
Re: Electrical Test - Component Tester
Hello All,
I think I'm going to change tack on thie project slightly and instead of using the SCADA Slave interface I will make custom Flowcode firmware for an embedded device and along with a simple circuit we can then connect this to App Developer via USB or WIFI.
The SCADA slave interface is great but can't compare with custom firmware and ideally all the App Developer should have to do is say do a scan and the firmware checks to see what type of device is connected and do a fully automated test returning the appropriate charecteristics.
I am going to base the work off the Velleman project I linked earlier as well as this one I found which seems to use the same circuitry and has the firmware source available.
https://github.com/svn2github/transistortester
https://www.mikrocontroller.net/article ... stortester
The code is complex and designed for multiple targets but I will have a go at porting it into Flowcode and adding some comms options. The fall back option is to compile as is (with some mods) onto an Arduino and then connect this to App Developer
Let me know if you have any comments or suggestions.
I think I'm going to change tack on thie project slightly and instead of using the SCADA Slave interface I will make custom Flowcode firmware for an embedded device and along with a simple circuit we can then connect this to App Developer via USB or WIFI.
The SCADA slave interface is great but can't compare with custom firmware and ideally all the App Developer should have to do is say do a scan and the firmware checks to see what type of device is connected and do a fully automated test returning the appropriate charecteristics.
I am going to base the work off the Velleman project I linked earlier as well as this one I found which seems to use the same circuitry and has the firmware source available.
https://github.com/svn2github/transistortester
https://www.mikrocontroller.net/article ... stortester
The code is complex and designed for multiple targets but I will have a go at porting it into Flowcode and adding some comms options. The fall back option is to compile as is (with some mods) onto an Arduino and then connect this to App Developer
Let me know if you have any comments or suggestions.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
-
- Matrix Staff
- Posts: 1739
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 440 times
- Been thanked: 603 times
Re: Electrical Test - Component Tester
Some progress,
I have something running using the code here.
https://create.arduino.cc/projecthub/pl ... ter-dbafb4
I enabled the serial port by uncommenting the lines shown here.
https://www.cjoint.com/c/ILFsB6ivdxC
I also changed line 363 of the ArduTester_1_13 file from
#ifdef WITH_HARDWARE_SERIAL
to
#ifdef WITH_HARDWARE_SERIALXX
as the menu was not working and now is
Getting there, unfortunately it's still not working brilliantly but I feel I am close.
I didn't connect the display so it might work fine with a display instead of the serial port but I want the serial port if possible.
I have something running using the code here.
https://create.arduino.cc/projecthub/pl ... ter-dbafb4
I enabled the serial port by uncommenting the lines shown here.
https://www.cjoint.com/c/ILFsB6ivdxC
I also changed line 363 of the ArduTester_1_13 file from
#ifdef WITH_HARDWARE_SERIAL
to
#ifdef WITH_HARDWARE_SERIALXX
as the menu was not working and now is
Getting there, unfortunately it's still not working brilliantly but I feel I am close.
I didn't connect the display so it might work fine with a display instead of the serial port but I want the serial port if possible.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel