Main Menu

Menu

Sunday 18 December 2011

FezBridge in Thunder Board

This project is based on the FezBridge (http://code.google.com/p/robotfreak/wiki/FezBridge). Here you can find information from the original developer. Here we will see some modifications that I made in order the FezBridge to run on the Thunder Board of TechNexion (in Android 2.2 Froyo).
The general concept of the FezBridge is that the Fez Domino will behave as host (server) and the Android system like client. The connection that is established with a mini to mini usb cable (in the ADB of the Android system). The two devices use the TCP protocol for communication.
In the original project they use 1 distance sensor and two servos for testing. The distance sensor tests the communication from the Fez Domino to the Android and the two servos the other direction of communication. As it is being said in the FezBridge project the graphical animation for the distance sensor is not working but we can view the changes of the distance for example from the debug messages in the VS2010.
In this project, I used a potensiometer instead of the distance sensor (changes the level of voltage in the input of Fez Domino (A0)) and LEDs instead of the servos (we can notice the change of the PWM pulse in the Di2 and Di3 of the Fez Domino Board).
For this project you will need the Visual Studio 2010 to program the Fez Domino (general setup instructions: http://www.tinyclr.com/support/) and the ADB to install the Android Application to your board.
Finally, on Android side the ServoControl Application from the MicroBridge project has been used with some modifications (especially in the GUI of the application). 


--Here is the Android Application which you can install it in your board through ADB.
http://www.multiupload.com/480MAP0FKC
--And here is the C# project to program Fez Domino.
http://www.multiupload.com/D1AOL9HJW9
--Here is the a debug output from VS2010 which shows the different values that we take from the Potentiometer (out) and the x,y coordinates which drive the PWM pulse (in).
http://www.multiupload.com/PAYHVBFLZR


Useful Links:
MicroBridge
FezBridge
TinyCLR

The photos below show the project.
Fez with LED and Potentiometer connected for testing purposes

Fez Domino connected to the Thunder Board via ADB


The application on Android

No comments:

Post a Comment