Jump to content









Photo

Send Data from Arduino Uno to Carriots

arduino uno carriots serial

  • Please log in to reply
2 replies to this topic

#1 plantino

plantino

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 21 February 2015 - 11:36 AM

Hello Arduino and Carriots - Pros  wink.gif

I am just wondering if there is a way to send Data from an Arduino Uno to carriots.com without the needing of a Wifi/Ethernet Shield ? Maybe using a processing-script?

Is it possible to send Data to carriots.com, just using the USB connection to my Laptop, which is connected to the Internet ?

 

Would be very helpful if anyone knows a way to do that.. i searched the whole internet.. didnt find anything related to this topic..

Thank you in Advance!



#2 talumux

talumux

    Newbie

  • Members
  • Pip
  • 5 posts

Posted 21 February 2015 - 06:35 PM

Hey plantino,

 

I had exactly the same idea because I did not have a wifi module. Now I have a arduino sketch running which sents the measured data over uart to my computer. Then a processing script receives the data and sents it to the carriots server.

Take a lock at my solution in this topic:

http://forum.carriot...ssing/#entry743

(it was not necessary to search the whole internet. just take a lock at this forum ;) )

 

Here is a useful code snipped for the serial part in processing:

import processing.serial.*;

Serial port;

void setup() {
  port = new Serial(this, Serial.list()[1], 9600); 
}
// Called whenever there is something available to read

void serialEvent(Serial port) {
  if ( port.available() > 0) {
    val = port.readStringUntil('\n');

    // analyse data and sent it to carriots

  }
}

 

regards!

talumux



#3 plantino

plantino

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 22 February 2015 - 10:53 AM

Hey talumux

Thank you for your Answer - cool! I readed your topic - but since your last answer was not there yesterday, i thought you were not able to do it. ;-)

I will take a look on that and maybe get back to you later!

EDIT: THANK YOU! Works all fine now !

plantino





Also tagged with one or more of these keywords: arduino, uno, carriots, serial

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users