Wifi Eblock car controled by an Android phone accelerometer

For E-blocks user to discuss using E-blocks and programming for them.

Moderators: Benj, Mods

Post Reply
benp
Posts: 155
Joined: Sat Mar 28, 2009 5:44 pm
Location: LYON FRANCE
Has thanked: 3 times
Been thanked: 41 times
Contact:

Wifi Eblock car controled by an Android phone accelerometer

Post 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 6628 times
You will know what it is possible to do with this in my next post...
Last edited by benp on Thu Feb 16, 2012 11:51 am, edited 1 time in total.
Regards
INSA 1er cycle GCP projects with or without eblocks:
http://www.youtube.com/user/INSAgcp

benp
Posts: 155
Joined: Sat Mar 28, 2009 5:44 pm
Location: LYON FRANCE
Has thanked: 3 times
Been thanked: 41 times
Contact:

Step2: basic android car

Post 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 6556 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).
Last edited by benp on Mon Jan 09, 2012 11:28 pm, edited 1 time in total.
Regards
INSA 1er cycle GCP projects with or without eblocks:
http://www.youtube.com/user/INSAgcp

benp
Posts: 155
Joined: Sat Mar 28, 2009 5:44 pm
Location: LYON FRANCE
Has thanked: 3 times
Been thanked: 41 times
Contact:

Step 3: Androcar driven by the Android phone tilt

Post 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 6507 times
It is easier to understand on the video:

[/youtube]
Last edited by benp on Thu Feb 16, 2012 8:51 pm, edited 1 time in total.
Regards
INSA 1er cycle GCP projects with or without eblocks:
http://www.youtube.com/user/INSAgcp

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Next easy Android+Eblock project

Post by Benj »

Wow, Fantastic project many thanks for sharing :D

Post Reply