Continue to Site

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.

  • 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

  • 15631487_1659447984080768_955866872_o.jpg
    15631487_1659447984080768_955866872_o.jpg
    336.6 KB · Views: 362
  • 3.jpg
    3.jpg
    205.9 KB · Views: 352
  • 15609441_1659448394080727_1492473772_o.jpg
    15609441_1659448394080727_1492473772_o.jpg
    379.1 KB · Views: 340
  • 15388732_1659447994080767_1133840735_o.png
    15388732_1659447994080767_1133840735_o.png
    69.1 KB · Views: 304
  • 15631423_1659448077414092_295507945_o.png
    15631423_1659448077414092_295507945_o.png
    84.7 KB · Views: 338
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.
 
Bad
Booze
Rots
Our
Young
Gutz
But
Vodka
Goes
Well
!
but Im still gonna DL!
this could help to clean my rats nests faster!
 
I am a dirty old man so I learned, "Bad boys rape our young girls, but Violet goes willingly".:cool:
 
Useful app for those learning electronics.
Welcome to ETO.
 
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:
I learned using:

Billy
Bob
Ran
Out
Yonder
Giving
Babies
Very
Greasy
Wigs

(I was a sheltered child :p )
 
Brilliant app!
But as others have mentioned, SMT chip caps rule electronics nowadays.

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

Victoria = Reyna Inglaterra
 
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 ;)
 
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.
 
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 ;)
 
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.
 
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!
 
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 :)
 
... 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
 
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

New Articles From Microcontroller Tips

Back
Top