We have to control a arduino device using a smartphone via the internet. Our teacher thinks the best way to do this is using drupal (using PHP in drupal).
We have a little experience with arduino but drupal, and specific PHP is new to us. We hope someone can help us with some code and an explanation.
Using PHP to talk to the serial port is relatively straightforward. Using PHP to read from the serial port, on Windows, is not possible. On linux, it is.
What is drupal? You need to provide a link, or something more than a name.
Unless the specific setup you are after is understood it is unclear what would be the best solution. "Controlling a device over the internet" is a very fuzzy requirement.