1
\$\begingroup\$

I'm working on a concept for a project, and I'm having difficulty determining whether this application is possible.

I will have some misc. microcontroller with an attached temperature sensor, and that microcontroller will be connected to an Android device via Micro USB. Is it possible to read that sensor and display results on the Android application, or are there hardware limitations to this?

Having the microcontroller send data to a server is not an option, as one of the main purposes of the project is for the Android device to handle most of the work and the microcontroller will not have network capabilities.

\$\endgroup\$
  • \$\begingroup\$ Temperature sensor? sounds like some kind of HID. \$\endgroup\$ – Jasen Nov 9 '18 at 1:33
2
\$\begingroup\$

Is it possible? Yes -- thank you for limiting your question to the limit of my knowledge. How do I know? Because I've seen it, and because I just hunted down this web page from Android describing how to do it. Do I know how to do it? Oh god no. Could I? Well yes, with study. You probably can, too.

Hopefully that page will give you some Google-ish keywords that will get you to a project that uses the features you need.

\$\endgroup\$
  • \$\begingroup\$ I had just come across a similar page a few minutes ago, with Host & accessory usage for USBs. Thanks for your reassurance, it looks like I'm on the right track. \$\endgroup\$ – Bryan Walsh Nov 9 '18 at 0:29
  • 1
    \$\begingroup\$ Good. Then, if I need to do this in a year or two I can ask here, and you can tell me how it's done! \$\endgroup\$ – TimWescott Nov 9 '18 at 0:54
1
\$\begingroup\$

Absolutely. Android supports USB HID devices, so if you build or buy a HID thermometer the development time for the android part should be minimal.

\$\endgroup\$
  • \$\begingroup\$ Say I wanted to design a microcontroller that is capable of outputting power through header pins controlled by the Android device, is this considered HID as well? \$\endgroup\$ – Bryan Walsh Nov 9 '18 at 1:48
  • \$\begingroup\$ it could be, it depends where the wires go. indicator lamps are. \$\endgroup\$ – Jasen Nov 9 '18 at 2:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.