Deprecated: Assigning the return value of new by reference is deprecated in /home/nicholas/public_html/ggnew/components/libraries/cmslib/spframework.php on line 101
Deprecated: Assigning the return value of new by reference is deprecated in /home/nicholas/public_html/ggnew/components/libraries/cmslib/spframework.php on line 644 Talking Resistor Calculator
Tired of squinting at resistor color bands? Let the Propeller "tell" you what the value is.
Even at 40, I still think of myself as a young guy, but my eyes... not so much anymore. From my electronic microscope to my Aladdin Rainbow reading machine, I've taken every step to make sure that vision isn't an issue, but sometimes reading the bands on a simple resistor is still a big pain. Is that an orange stripe or a red one?
Talking Resistor Calculator speaks to tell you what the value of your resistors..
Using the Propeller Tool, send the file speakresistor.spin to the Propeller using F11 to install it on theEEPROM.
If you look at the speakresistor.spin code, you'll see three objects being loaded.
The MCP3208 object handles communication between the ADC chip and the Propeller
The Parallax Serial Terminal object (We'll talk about that in the next step)
The Phonemic Voice Synthesizer object written by Philip C. Pilgrim
The Phonemic Voice Synthesizer speaks phonetically, meaning that when you read the source code, some of the words appear to be misspelled. This is done intentionally to make the voice speak each word as clearly as possible. This program is a great example of the Propeller's multi-core ability to handle several jobs at the same time.
Adding more functionality to the Talking Resistor Calculator
My version of the Talking Resistor Calculator has many of the common resistors I use all the time on my workbench. You may want to add a few more.
Here's how to do it.
The Propeller Tool included the program, Parallax Serial Terminal. Start the serial terminal with a baud setting of 115200.
Connect an unknown resistor to the test leads and the program will display the detected ADC level in the terminal.
Add the following IF statement to your program to plug in a new value...
if sample > {detected value} and sample < {detected value +10} t.say(string("whatever oahm resistor")) repeat 5000
Change the {detected value} to what was reported in PST as well as the {detected value +around 10} You'll probably see some variation in the returned number, so set your value to the lowest detected then add 10 or so for the second value. (In my example photo I would have chosen "4064" as my lowest value and then "4078" as the high value.)
Also change the "whatever to your resistor value. Save and reload the program to your EEPROM and it should now detect and speak the new value.
There you have it! A Talking Resistor Calculator for your desk!