Serial port data across wifi

Hello,
I'm new to Arduino. have an Arduino Uno WiFi which is set up and can receive scripts etc across the wifi network. What I can't seem to find is guidance about how to get the serial port data across wifi to my computer. I could really do with this for my project. Any help much appreciated.

craig_johns:
how to get the serial port data across wifi to my computer.

What do you you mean? Post your program.

If you mean that you want to receive serial data and then re-send it via Wifi then have a look at Serial Input Basics for the receiving part.

...R

I don't really know!
I'd like to see the data on the serial monitor without having my USB cable attached, basically.

#include <UnoWiFiDevEd.h>
#include <CapacitiveSensor.h>
#include <PCM.h>

int fsrPin = 0; // the FSR and 10K pulldown are connected to a0
int fsrReading; // the analog reading from the FSR resistor divider

//audio file addition
const unsigned char sample PROGMEM = {
129, 127, 127, 127, 128, 127};
CapacitiveSensor cs_2_4 = CapacitiveSensor(2, 4);

void setup() {
Serial.begin(9600);
pinMode(6, OUTPUT);
pinMode(7, OUTPUT);
pinMode(9, OUTPUT);
pinMode(13, OUTPUT);
}

void loop() {
digitalWrite(13, HIGH);
{
long start = millis();
long total1 = cs_2_4.capacitiveSensor(35); //can change sensitivity here

Serial.print(millis() - start); // check on performance in milliseconds
Serial.print("\t"); // tab character for debug windown spacing

Serial.println(total1); // print sensor output 1
if (total1 > 1200) { //can change threshold for
startPlayback(sample, sizeof(sample));
delay(2000);//delay for repeat
}

delay(75);
}// delay to limit data to serial port - can be changed to allow reduced time to trigger once touching skin

fsrReading = analogRead(fsrPin);

Serial.print("Analog reading = ");
Serial.print(fsrReading); // the raw analog reading

// We’ll have a few threshholds, qualitatively determined
if (fsrReading <= 10) {
Serial.println(" - No pressure"); digitalWrite(6, HIGH); digitalWrite(7, LOW); digitalWrite(9, LOW);
} else if (fsrReading <= 500) {
Serial.println(" - <15 psi"); digitalWrite(6, HIGH); digitalWrite(7, LOW); digitalWrite(9, LOW);
} else if (fsrReading <= 800) {
Serial.println(" - 15-20 psi"); digitalWrite(6, HIGH); digitalWrite(9, LOW);
} else {
Serial.println(" - > 20 psi"); digitalWrite(9, HIGH);
}

delay(75);
}

craig_johns:
I don't really know!
I'd like to see the data on the serial monitor without having my USB cable attached, basically.

I wonder is this a "want" that would be more trouble to satisfy than it is worth.

What about using Bluetooth which is really only serial-by-wireless.

...R

Hi, Bluetooth would be fine - any information on how that may be achieved would be greatly received. It's because the scrip uses the capacitive library which changes value when attached to the laptop.

Get a bluetooth module
Connect it to pins 0 and 1 (make sure you do it the right way round) on your Arduino.
On your PC set up the Bluetooth pairing
Open a terminal program on your PC that uses the Bluetooth serial port.

What operating system are you using on your PC?

...R

I'm on a MacBook. That sounds ideal though, could maybe use CoolTerm?
Thanks,

I don’t know Macs (I use Linux) but CoolTerm should be fine.

…R

Great, thanks for your help.
BW

The bluetooth suggestion has worked an absolute treat! So easy as well. Can also get terminal in the Mac to access the device, so can read serial data from there. Thanks again!
BW

Thanks for the feedback.

...R