Website to Android to arduino
in
Android Processing
•
1 year ago
Hi,
I am trying to control a robot over the internet. This is how I want it to work: I go to a website, send commands from there and I have a live video feed from/to an android phone and the android phone sends those commands via bluetooth to a arduino. These are the commands:
rcData[THROTTLE] = (Serial.read() * 4) + 1000;
rcData[ROLL] = (Serial.read() * 4) + 1000;
rcData[PITCH] = (Serial.read() * 4) + 1000;
rcData[YAW] = (Serial.read() * 4) + 1000;
rcData[AUX1] = (Serial.read() * 4) + 1000;
rcData[ROLL] = (Serial.read() * 4) + 1000;
rcData[PITCH] = (Serial.read() * 4) + 1000;
rcData[YAW] = (Serial.read() * 4) + 1000;
rcData[AUX1] = (Serial.read() * 4) + 1000;
So I have to send a value between 0-255 to control throttle, then another value to control Roll, another for yaw, etc. The problem is I have no idea how to do this! I read a few tutorials but havent found anything related to my problem.
The bottom line: I need the android phone to act as a link between arduino and website while also sending a live video feed.
Thank you
1