• Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Resistor Scanner App

Status
Not open for further replies.

MhTechDev

New Member
Hej all,

even though this is not really a electronics project in itself, it might be useful for many of you.

After spending a lot of time decoding resistors and still don´t knowing the color code table by heart, I chose to write an app to detect the resistors for me.

I am new to Android programming and the app seems to work good on some and not so good (or not at all) on other devices, so I am happy for any feedback!

Anyway, here it is:

https://play.google.com/store/apps/details?id=com.mhdev.resistorscanner
 

Attachments

audioguru

Well-Known Member
Most Helpful Member
You made a brilliant app!
But the color code has been in my brain for many years and modern products have tiny surface-mounted resistors that do not have the color code.
Some Chinese resistors seem to be painted (not properly) by hand and the red and brown, blue and green and other colors are the same.
 

Dr_Doggy

Well-Known Member
Bad
Booze
Rots
Our
Young
Gutz
But
Vodka
Goes
Well
!
but Im still gonna DL!
this could help to clean my rats nests faster!
 

audioguru

Well-Known Member
Most Helpful Member
I am a dirty old man so I learned, "Bad boys rape our young girls, but Violet goes willingly".:cool:
 

alec_t

Well-Known Member
Most Helpful Member
Useful app for those learning electronics.
Welcome to ETO.
 

spec

Well-Known Member
Most Helpful Member
I am a dirty old man so I learned, "Bad boys rape our young girls, but Violet goes willingly".:cool:
'Bad Boys Rape Our Young Girls But Virgins Go Willingly':D

spec

PS: what is this: Most Virgins Entertain Men Just So Uncle Needn't Pay
 
Bad boys ruin our young girls behind victory garden walls--US Navy during World War II.

MVEMJSUNP My Very Educated Mother Just Served Us Nine Pizzas
Mercury Venus Earth Mars Jupiter Saturn Uranus Neptune Pluto (order of planets in our solar system)
 
Last edited:
If you like purple instead of violet: Bad boys rape our young girls but POLLY gives willingly

Or these two:
My Very Early Morning Jam Sandwiches Usually Nauseate People
My Very Easy Method Just Simplifies Us Naming Planets
 
Last edited:

DerStrom8

Super Moderator
Most Helpful Member
I learned using:

Billy
Bob
Ran
Out
Yonder
Giving
Babies
Very
Greasy
Wigs

(I was a sheltered child :p )
 

schmitt trigger

Well-Known Member
Brilliant app!
But as others have mentioned, SMT chip caps rule electronics nowadays.

I learned Ohm's law (in Spanish) with:

Victoria = Reyna Inglaterra
 

MhTechDev

New Member
Brilliant app!
But as others have mentioned, SMT chip caps rule electronics nowadays.
Thank you! And while that is definitely true for most commercial applications, "normal" resistors are still widely used in universities, hobby electronics and the R&D sector ;)
 

ronsimpson

Well-Known Member
Most Helpful Member
I really like the app. One problem I have with colors is that there are many different types of paint used. Many different versions of each color.

If I had the ability to write code like you, I would have my camera watching people coming up to my front door. The "UPS" man drives a brown truck and wears a brown shirt while the "Fedex" man drives a mostly white truck. The fire department drives red trucks.
 

MhTechDev

New Member
One problem I have with colors is that there are many different types of paint used. Many different versions of each color.
Yes, in combination with the different cameras on phones, that has been the biggest headache for me while developing this app. The app works perfect on my phone (HTC M8) but seems to have minor to major problems on other phones.

If I had the ability to write code like you, I would have my camera watching people coming up to my front door. The "UPS" man drives a brown truck and wears a brown shirt while the "Fedex" man drives a mostly white truck. The fire department drives red trucks.
Would probably be even more work (face-detection, "car-detection") than scanning resistors, but still definitely possible (even though I´m not sure WHY one would do that :D ).

PS. I would be very happy about a rating/review of my app on Google Play, as I have very little feedback (or, overview of the overall opinion on the app) at the moment. It is very hard to improve without that ;)
 

ronsimpson

Well-Known Member
Most Helpful Member
The app works perfect on my phone (HTC M8) but seems to have minor to major problems on other phones.
You might need to ship a picture of resistors with the app.
I have had to "calibrate" cameras. To show a camera red, this is red and that is blue. Then the software knows how to make up for the differences in cameras. I noticed on my phone I can change what each color looks like.
 

Dr_Doggy

Well-Known Member
worked on the S5!
OCR can be quite difficult, so kudo again that it was able to scan 4 resistors at a time for me, I noted that it couldn't do vertical resistors, auto zoom/focus/light could be handy, or maybe auto color correction or a live capture stream..... anyway no complaints, just some ideas for v2!
 

MhTechDev

New Member
You might need to ship a picture of resistors with the app.
And then have people print it and take a picture of it? Right now your are able to adjust contrast and brightness, which should be able to fix most detection issues.

worked on the S5!
OCR can be quite difficult, so kudo again that it was able to scan 4 resistors at a time for me, I noted that it couldn't do vertical resistors, auto zoom/focus/light could be handy, or maybe auto color correction or a live capture stream..... anyway no complaints, just some ideas for v2!
Thanks for the feedback and suggestions, much appreciated! :) Auto-rotation of resistors is on my TODO list ;) On the other hand, auto zoom/light are hard to implement in a helpful way, especially with all the different phones/cameras out there. And for the focus, there is very limited control over that in android (unless you make your own, which would require a custom kernel), but for most devices one of the three provided focus methods should work.

There was actually a live-detection mode a few versions back, but I removed it temporarily (I will add it back once it is more mature). The live-detection was based on line-detection, so that one has to align a line on the display with the resistor bands. I tried using the current algorithm in a live-mode, but it is too processing-heavy at the moment. I will try to make it more efficient and maybe provide the possibility to use it in live-mode, which still would work for newer phones only (at least you would not be able to call it live-mode on older models :D)

But again, thanks a lot, this is the most useful feedback yet :)
 

Dr_Doggy

Well-Known Member
... noticed a glitch where it would not focus till i zoomed in, just figured i would mention...not sure why... but I hear you too well when you talk about camera compatibility (could be my phone)

dropping frame rate may help with processing speed(since you dont really need high speed processing), but it would be easier to use if you could tell when resistors are identified before the decoding processing, so that it is not as much guess work for the user getting the right image

also creating lower res images for initial detection may help speed too... since you may not need hi-res image in just identifying which is resistor
also if you are taking a low res bitmap image of the scan surface, you may be able to use an algorithm to detect the average pixel brightness , then you can factor: in correction, out silver legs...

again , see signature, these are just some ideas and may not totally work
 

MhTechDev

New Member
And again, thank you for your suggestions :) Regarding the focus-glitch, that seems very weird as the zoom is completely independent of the focus. But I will look into it
 
Status
Not open for further replies.

Latest threads

EE World Online Articles

Loading
Top