viv
viv

Reputation: 6177

Android basic usb interaction

I am working on a very small project, where I have to send a signal via usb to some kind of micro-controller board.

I am completely new to this, although have enough android experience, so just need answers to few questions for now:

1.) Is it correct that I will need some kind of Arduino kit to get even started ?

2.) Isn't there any way by which I can test this using day to day devices or simulator, rather than purchasing the kit itself ?

Please forgive if the question looks silly.

Thanks

Upvotes: 1

Views: 521

Answers (2)

Abraham K
Abraham K

Reputation: 634

Sure! you can communicate with your Android or any other languages like (C#, Java, Php, Python...) with Arduino or other micro controller by USB.

  1. Arduino is very easy to start and you can send signal and perform the required task. As you code Android, check this you get clear idea.
  2. Yah! Arduino emulator where you can check or test. check here

Get to know about Arduino Here

Start with this program (Hello World of Arduino)

Hope it helps

Upvotes: 2

chairbender
chairbender

Reputation: 849

You cannot send a signal out of the Android USB port. You will need to communicate with another device via bluetooth or WiFi, and have that device communicate via USB to the microcontroller.

If you want to avoid purchasing anything, you could write a small web service that runs on a computer hooked to your microcontroller. When your android app runs, it would communicate to that web server, which would in turn communicate with the microcontroller.

Then, when you are ready to purchase an intermediary device, if you design your code well, you'd be able to repurpose the code to communicate via that device instead of the web service.

Upvotes: 1

Related Questions