I’m trying to communicate between an Arduino and a Computer over wireless network.
For this, I would like to use either wi-fi, bluetooth or an ethernet.
My goal is to connect to an Arduino on my computer over a virtual serial port to receive data from Arduino. I’m going to write a software for computer to read and process received data. What should I do to connect to Arduino with one of these communication methods? Which communication method should I choose for this application? Which one is easier to do?
The code on the Arduino must be a one time thing. For example, when I connect the device to an ethernet port on any network, I should be able to find it and connect to it through a software on my computer that is on the same network without updating code on Arduino.
For example: I’m reading an analog value on Arduino and trying to send it to a computer that is 5-10 meters away. I want to see the data on the computer screen.
The code on the Arduino shouldn’t be specific to a network or a computer. This system should be able to work anywhere (with a wireless network) without changing the code on Arduino.
@emaxxx, I'm sorry but I can't make sense of your description of what you want to do - it lacks detail
Based on your Title and this "My goal is to connect to an Arduino on my computer over a virtual serial port" my suggestion is to use Bluetooth which is, basically, serial-by-wireless.
If you really do need to use WiFi (or if you prefer it) the advice in Reply #1 is good.
There are also ESP32 boards and the ESP32 includes Bluetooth as well as Wifi. Or you could connect a Bluetooth module to a regular Arduino such as an Uno or Mega.
If I didn't do any action after the connection with bluetooth, it would break.
I am trying to connect via bluetooth by giving 5V only to the HC-05 as a first attempt.
emaxxx:
If I didn't do any action after the connection with bluetooth, it would break.
I am trying to connect via bluetooth by giving 5V only to the HC-05 as a first attempt.
I understood from Reply #5 that you have solved the problem.