Electronics > Electronics

accelerometer controlled wireless bot

(1/2) > >>

roboninja93:
I am building a wireless car which moves solely due to hand movements. i.e. when hand is bent downward car moves ahead when hand is bent upward car moves backwards etc.
An accelerometer is required for this purpose.
I have found some ways to accomplish this task

1.Use a accelerometer module with two microcontroller boards linked via rf module;
2.Using a mobiles accelerometer and linking it to the microcontroller board in the bot via a bluetooth module

But is it possible to use the accelerometer of the mobile and connect its output to one microcontroller which sends the data to the microcontroller in the bot?
I have smart phone which has a miro-usb port. So how do I link my phone to the microcontroller board which will then send data to the microcontroller in the bot?
I am using atmega32.
If there are other ways to achieve this task please do tell me.

Thanks

Soeren:

--- Quote from: roboninja93 on November 24, 2012, 11:08:22 PM ---If there are other ways to achieve this task please do tell me.

--- End quote ---
Wii controller.

roboninja93:
Is it possible to connect the mobile's accelerometer output to the transmitting microcontroller?

newInRobotics:
Most likely it is possible, but You'll have to figure out how to do it Yourself as Google search did not come back with any useful results. In order to access any hardware on mobile phone (I assume that's what You mean by mobile) You have to have good understanding of OS managing that hardware, then You can tap into it. Most modern smartphones have good SDKs to enable relatively easy app development, all You have to do is learn how to use those SDKs. To point You to the right SDK You have to tell us what mobile phone You are talking about. Also, in my opinion, using accelerometer with microcontroller is much easier than developing app for smartphone and separate software for remote microcontroller.

roboninja93:

--- Quote from: newInRobotics on November 28, 2012, 04:23:13 AM --- Also, in my opinion, using accelerometer with microcontroller is much easier than developing app for smartphone and separate software for remote microcontroller.

--- End quote ---
Yeah thats true. But i have to implement it using the mobile phone's accelerometer which has the android platform.
I have a fair idea about android programming so developing an app for it is not a major hurdle.
I am more concerned about interfacing the phone with the microcontroller via its micro USB port.
I havn't done usb interfacing earlier.
Thanks

Navigation

[0] Message Index

[#] Next page

Go to full version