hey guys so i am having an arduino with serial communication but i want to wireless serial communication from arduino and the pc end to be connected with usb
The simplest way to have wireless communication between a PC and an Arduino is with Bluetooth. Bluetooth is really just serial-by-wireless.
...R
If you have some understanding of TCP/IP programming, the simplified AT style commands of these wi-fi devices could get you connected to any PC on your local wi-fin network. But of course on the PC side, you'd have to be prepared to write an actual TCP/IP client (or server) program to communicate with it. I can't talk a great deal about these boards yet, as I haven't worked with them yet. But based on all I've read, it looks like a great new tool!
PeterPan321:
But based on all I've read, it looks like a great new tool!
There is nothing new about ESP8266 modules.
As you said, if the OP is already familiar with web programming they can be convenient.
...R
i am little familiar with tcp/ip programming but i will connect microcontroller end to esp8266 and other end
esp8266 to usb to serial adapter
is this setup okay
akash614:
i am little familiar with tcp/ip programming but i will connect microcontroller end to esp8266 and other endesp8266 to usb to serial adapter
Most PCs already have WiFi so why would you need any ESP8266 at the PC end?
...R
i dont want to try that wifi those all
all i want is simple and easy to use just connect to arduino and other end to computer
thats it i want hope you understand
akash614:
i want hope you understand
Not very easily. Perhaps you didn't read reply #1.
akash614:
i dont want to try that wifi those allall i want is simple and easy to use just connect to arduino and other end to computer
Your Reply #4 led me to believe that you would not find a WiFi solution difficult.
Based on my own personal knowledge I would find Bluetooth easier - which I why I suggested it in Reply #1.
...R
akash614:
i dont want to try that wifi those allall i want is simple and easy to use just connect to arduino and other end to computer
thats it i want hope you understand
I think you'll have to be more specific about what WORK you are willing to do, exactly how you expect to connect your PC, and what software you expect to be using at the PC side to communicate. Based on what you've said you want (and don't want), I can suggest that there are many wireless serial adapter products that have nothing to so with Arduino, and simple require serial I/O on each end and power. many of these don't require any wi-fi interface, but of course that limits the range to shorter distance end to end transmissions. You can also find such adapters that mimic a COMM (serial) port at the PC side for a software interface, but actually plug in to a USB port. Such adapters are simply taking standard serial (usually RS232, RS485, or RS422) at the remote side, and the manufacturers will usually offer all the information you need to set them up, with full instructions and documentation. Just understand that the less work you want to do ("simple", "easy", "just connect"), the more costs you'll incur. The far extreme of this is to just draw up a specification of what you want done and how it should work, and offer to pay a developer to do it for you. Hopefully you don't want to go that far, or hope others will do that basic searching for you.
It seems to me this forum can be of more help if you want to save money by building your own components, or at least working with less expensive interfaces to start. But again, the trade off is that such projects require more work. Google "serial interfaces" with "USB support" and see what's out there.
i have read all the reply
i dont want to try bluetooth and wifi if i can i wil you all how to do it
i want an simple and easy to use and set up fast
i have got this idea
i have seen many videos but what i want is the pc end to be connected with usb to ttl adapter and from usb to ttl to hc-12 module
and other end microcontrller side will be connected to hc-12 and these two will communicate wireless send and receive data
thats it i want
akash614:
i want an simple and easy to use and set up fast
In that case, you should use Bluetooth instead.
WHY not use Bluetooth?
akash614:
i have seen many videos but what i want is the pc end to be connected with usb to ttl adapter and from usb to ttl to hc-12 module
Why do you want to do that rather than use Bluetooth?
And why did you not tell us this is what you want to do in your Original Post? It would have saved a lot of time.
...R
first of all i am not that good at at commands
second of all i thought of hearing suggestion which is better
if you guys can help me program the bluetooth module or esp8266 that would be better
akash614:
if you guys can help me program the bluetooth module or esp8266 that would be better
That has already been covered in the earlier Replies you have received.
It depends on how experienced you are at web programming. If you do web programming every day of the week you will probably find an ESP8266 very easy to use.
...R
okay lets see according to your suggestion which is better
esp8266 or hc-05
if esp8266 how to connect to arduino and computer wirelessly and transmit and receive the data
if hc-05 we need to connect both sides with microcontroller
so as one of you said that we need only microcontroller side to be connected to esp8266 and computer side with wifi already thats it
so this is the one i am thinking of to buy inbuilt microcontroller and wifi transceiver
akash614:
if hc-05 we need to connect both sides with microcontroller
Most PCs have Bluetooth built in. If not, you can buy a cheap USB Bluetooth module. There is no need for two microprocessors.
In the rest of your analysis in Reply #15 you don't seem to have considered how much programming is required. A WiFi solution will require a good deal more code than a Bluetooth solution.
For Bluetooth all you would need is something like
mySoftwareSerial.println("Hello World");
How much code would you need to do that with WiFi?
...R
so wifi would be better
and the code i would like to compile and program esp8266 with this code
include <SoftwareSerial.h>
SoftwareSerial barcode = SoftwareSerial(10, 8, true); // RX, TX (TX not used, but the constructor wants a number anyway)
float metal;
int reading;
int metalPin = 3;
void setup()
{
Serial.begin(9600);
Serial.println("Barcode Scanner Test!");
pinMode(11, OUTPUT);
barcode.begin(9600);
delay(1000);
}
void loop()
{reading = analogRead(metalPin);
metal = (float)reading*100/1024.0;
if(reading>250){
digitalWrite(11, LOW);}
if(barcode.available())
{
Serial.println("Read");
char data = barcode.read();
Serial.write(data);
digitalWrite(11,HIGH);
}
}
akash614:
so wifi would be better
I have no idea why you have come to that conclusion, especially as the program code in Reply #17 has no "WiFi" or "web" code in it.
I am beginning to wonder if you have any knowledge of how to write a web program of any kind.
...R
but all i want is to wireless serial communication
just communicate with computer wireless
so this is serial communication using esp8266