Skip to content

Fleker/resistance-decoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Resistor Agent

This is an app for Actions on Google which provides the user with the ability to query information about resistors.

Resistors are one of four passive electrical components which provides standard impedance in a circuit. A resistor can have one of many different impedances. Standard components are all the same size, with different patterns of colors that allow an engineer to identify the impedance.

The chart, from DigiKey, can make it possible to decode the colors. However, it can be a time-intensive process.

Using the Google Assistant, this agent is able to do the same task hands-free. You can identify the impedance based on colors, or identify the colors of a particular impedance.

You can get started right now by invoking a request to the app through the Google Assistant:

"OK Google, ask the resistance about a 3.3 k ohm resistor"

"OK Google, ask the resistance about a red, orange, and black resistor"

Decode Colors

"what type of resistor is orange, orange, black, brown and brown"

"That is a 3.3 Kilo Ohm resistor with a 1 percent tolerance"

Encode Colors

"what type of resistor is 3.3 k ohm"

"A 3300 Ohm resistor has the colors orange, orange, and red"

Note: You can mention that you want a '5-strip' resistor to get four colors as a response.

What's included?

This project includes:

  • Cloud Functions for Firebase to handle requests
  • Dialogflow exported agent in the apiai folder

Setup Instructions

  • Create a new API.ai project and import the zip
  • Create a new Firebase project
    • Deploy the functions located in /functions/
    • Obtain the URL https://XXX.cloudfunctions.net/api_v1
    • Paste this as the webhook in the Fulfillment section of your agent on Dialogflow

halp pls

  • If you find any issues, please open a bug on GitHub.

How to make contributions?

Please read and follow the steps in the CONTRIBUTING.md.

License

See LICENSE.md.

About

Figure out resistor colors with the Google Assistant

Resources

License

Stars

Watchers

Forks

Packages

No packages published