Communication from phone to pc to arduino

I have a arduino uno and i'm trying to control my arduino from my phone. My idea is to send the data over Wifi or Bluetooth to my pc who will then send it over USB to my arduino. Anyone know how I would go about this? I do not have any form of wireless module and don't have money to spend on them.

You will need a program on the PC that can receive the data from the phone and send appropriate messages to the Arduino.

I won't try to advise about programming a PC to receive data from a phone - there are probably dozens of other websites that can help with that part.

For communication between the PC and the Arduino these links may help
simple Python - Arduino demo
Serial Input Basics - simple reliable ways to receive data.

The technique in the 3rd example will be the most reliable. It is what I use for Arduino to Arduino and Arduino to PC communication.

You can send data in a compatible format with code like this (or the equivalent in any other programming language)

Serial.print('<'); // start marker
Serial.print(value1);
Serial.print(','); // comma separator
Serial.print(value2);
Serial.println('>'); // end marker

...R

koningboy18:
I do not have any form of wireless module and don't have money to spend on them.

Since you have not bought anything, and are still dithering about how to do it, why don't you think about it all again, and consider controlling Arduino by phone directly? I'm betting you don't have a good reason for having the PC as an intermediary and, if you leave it out, you may a have a sensible system that you can show your mother, and all for about $3-50.

You don't talk seriously about what you are actually trying to do, but the above $3-50 is about right for either an HC-0x bluetooth or a cheapo ESP8266 Wifi module. If you can use the ESP8266, you should note that they have some intelligence of their own, and the Uno may be redundant.

https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=2ahUKEwjplteuxqbdAhVOdt4KHR4YBAkQFjAAegQIABAB&url=https%3A%2F%2Ftttapa.github.io%2FESP8266%2FChap01%2520-%2520ESP8266.html&usg=AOvVaw23hIXXZyWgotEobOyFW4fI

http://forum.arduino.cc/index.php?topic=173246.0

You may also find the following background notes useful.

http://homepages.ihug.com.au/~npyner/Arduino/GUIDE_2BT.pdf
http://homepages.ihug.com.au/~npyner/Arduino/BT_2_WAY.ino

Thanks for all the help I've used pyserial and the serial over bluetooth app to make it all work thanks for all the help.

In response to nick i've built a remote lock for my door which is right next to my computer so i can always have them connected.