Page 1 of 1

Wifi Eblock car controled by an Android phone accelerometer

Posted: Thu Dec 22, 2011 12:40 am
by benp
In my last topic, I explained how to switch on a led with a phone with a only 5 steps flowcode program:
http://www.matrixmultimedia.com/mmforum ... f=2&t=9949
This post is still open to explain how to send/receive data with a very simple flowcode program.

Next step: no flowcode program required.
Project: You will know soon


Material:
  • 1 EB069 wifi E-Block
    1 Sabertooth motor driver (from dimension engineering)
    2 motors+wheel+free-wheel
    1 standard 20 pitch mm board for mechanic(20 mm pitch adaptable) and electronic(e-blocks) (developed at INSA Lyon)
    12v+5v supply (I use EB006 - that's the quickest solution for me !!!)
    1 android phone

What can we do with that?



1/2 hour to mount and more time for the photo:
Quick mount for electronic and mechanic
Quick mount for electronic and mechanic
androcar.jpg (44.89 KiB) Viewed 6671 times
You will know what it is possible to do with this in my next post...

Step2: basic android car

Posted: Mon Jan 02, 2012 12:18 pm
by benp
Happy new year!!!

The step2 is the quick test of the car.
The tests are performed with the "packet injection" android application. This can be done with netstuff too.
tests with packet injection
tests with packet injection
_MG_4950bd.jpg (48.4 KiB) Viewed 6599 times
Here is a video which show the vehicle test with packet injection.

[/youtube]

There is still no program to do with this!!!

It is possible to control left and right wheel with send number (1-127 for left, 128-255 for right, see sabertooth manual).

Step 3: Androcar driven by the Android phone tilt

Posted: Mon Jan 09, 2012 11:27 pm
by benp
This is an easy Android project.
You just need to send the data orientation to the wifi EBlock.
I write the orientation on the phone screen but that's not really necessary and that's the most difficult thing to do in the project. It works with just "Hello world" on the screen.

Then you just have to tilt your phone to drive the car forward, backward, left or right. Look at the video if you don't understand

Here is a picture:
The phone drives the car with its accelerometer
The phone drives the car with its accelerometer
_MG_4953bd2.jpg (63.54 KiB) Viewed 6550 times
It is easier to understand on the video:

[/youtube]

Re: Next easy Android+Eblock project

Posted: Tue Jan 10, 2012 11:42 am
by Benj
Wow, Fantastic project many thanks for sharing :D