lupo
Posts: 8
Joined: Sat Jul 12, 2014 8:11 pm

Controling Car With Android Accelerometer Sensor

Sat Jul 12, 2014 8:26 pm

Hi guys,
Can Anyone Suggests to me What to do in this Project
I'd like to Controll My Car with Android Application that runs with Accelerometer
+ using LM35 sensor on car motor and the temperature Displayed on my phone
What Shall I do?
Using Scratch?
This is my First Project
So I have no experience in this Field
I have Configured the raspberry pi Module B + connecting H bridge to the Car
Thanks in Advance

User avatar
FLYFISH TECHNOLOGIES
Posts: 1750
Joined: Thu Oct 03, 2013 7:48 am
Location: Ljubljana, Slovenia
Contact: Website

Re: Controling Car With Android Accelerometer Sensor

Sat Jul 12, 2014 9:24 pm

Hi,
lupo wrote:I'd like to Controll My Car
A model car, I suppose... ?
lupo wrote:with Android Application that runs with Accelerometer + using LM35 sensor on car motor and the temperature Displayed on my phone
Where is RasPi in this scenario ?
lupo wrote:What Shall I do?
If you expect some valuable response from us, spend some effort to describe your goals...
lupo wrote:I have Configured the raspberry pi Module B + connecting H bridge to the Car
So, you have a H-bridges driver board controlling the car's "engine motor" and a motor of the steering wheel.
And you have also LM35 monitoring temperature of this "engine motor".
Both LM35 and H-bridges driver board are connected to RasPi, which is the car's on-board computer.
The RasPi has WiFi dongle (or bluetooth) and your Android phone is on the other side of this wireless link. The phone runs some control application which reads the phone's accelerometer sensor and according to this data moves the car around. Additionally, the phone displays the LM35 data which is transmitted by the RasPi.

Is this your setup and idea ?


Best wishes, Ivan Zilic.
Running out of GPIO pins and/or need to read analog values?
Solution: http://www.flyfish-tech.com/FF32

lupo
Posts: 8
Joined: Sat Jul 12, 2014 8:11 pm

Re: Controling Car With Android Accelerometer Sensor

Sat Jul 12, 2014 11:34 pm

Excuse me This My First Post..

My Car is Just a remote Controlled Car ... (Toy)
I'd like By Using Raspberry PI To Control it By Tlitting My Android Phone (Using Accelerometer)
This Is The Unknown Part to me
But the Connection Of raspberry & H-Bridge Is Known
So All I need Is How to Make The Application That Connects by WiFi To Raspberry

User avatar
FLYFISH TECHNOLOGIES
Posts: 1750
Joined: Thu Oct 03, 2013 7:48 am
Location: Ljubljana, Slovenia
Contact: Website

Re: Controling Car With Android Accelerometer Sensor

Sat Jul 12, 2014 11:56 pm

Hi,
lupo wrote:So All I need Is How to Make The Application That Connects by WiFi To Raspberry
You need two applications talking to each other. The first one is for the Android phone and the second one is for RasPi.
For the Android side Java language is a default selection, where for the RasPi the Python or C should be the proper selection. About Scratch usage... I'd not use it here.

Don't expect that there are just few lines of code enough to implement this. The challenge here is that you have two peers talking to each other what you need to implement, so some experiences with more simple implementations are probably required first...

What you might do is to google for similar solutions and use/modify them. If you can't locate similar solutions, try implementing something more simple first, where the goal is more isolated.


Best wishes, Ivan Zilic.
Running out of GPIO pins and/or need to read analog values?
Solution: http://www.flyfish-tech.com/FF32

lupo
Posts: 8
Joined: Sat Jul 12, 2014 8:11 pm

Re: Controling Car With Android Accelerometer Sensor

Sun Jul 13, 2014 12:22 am

thanks for Your Replies
I'll Search for It
Thanks

Ushijima84
Posts: 1
Joined: Sun Aug 14, 2016 7:56 pm

Re: Controling Car With Android Accelerometer Sensor

Sun Aug 14, 2016 8:05 pm

howdy howdy new guy here need a few pointers this is the closest thread to what i was looking for but did not answer my question so here we go

i built a small 2 wheeled pi powered car i control the two motors with L298N h-bridge the script uses the keyboard input to get the car moving W forward S reverse A left D right Q to stop the motors and X to exit the script now i would like to be able to control mu Pi Car with my android phone via an app preferably i looked into solutions that get you to use aweb interface not really what im looking for i would like to be able to use the phone tilt sensors to command the car how would i go about that any help is apreciated as any links to tutorials thank you in advance !

-Ushi

Return to “General discussion”