Go Down

Topic: arduino-twitter(without ethernet shield) (Read 1 time) previous topic - next topic

vishalapr

How can I send my distance sensor values from arduino to twitter without the ethernet shield.
Please reply,
Thanks

johnwasser

You can twitter over Internet or over SMS.  You have to get your data to some device that can do either of those.

Can you leave the Arduino connected to an always-on Internet connected PC through the USB interface?
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

vishalapr

Yes I can leave my arduino connected to an always-on Internet connected PC via USB interface.
Could you give me the names of programs I need for doing this along with my arduino.

Presently my arduino takes values from the sensor.
It takes values from distance sensor and sends it to the PC via Serial Port 'COM3'
So could you also give me the code to the program that will take the info from the Serial Port and post it on twitter.

Thanks

johnwasser

http://www.instructables.com/id/The-Smuggie-Tweet-straight-from-your-Snuggie/

This project uses an Arduino to send a signal to a Processing application which then sends out a tweet.  I expect the code can be adapted to your needs.
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

vishalapr

I dont really understand how to do all this please explain

johnwasser

Perhaps this will be easier:

http://robotgrrl.com/blog/2011/02/21/simple-processing-twitter/

You must go to http://processing.org/download/ and download Processing.  It works a lot like Arduino but on the PC side.
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

tastewar

Did you look at the instructable? From the timing of your reply, it appears that you allowed yourself only 10 minutes to attempt to understand it. Give yourself more time. Or ask a more directed question. You could also consider posting under gigs/collaborations if you want to try to find someone to write your code for you.

vishalapr


vishalapr

I got this code on the internet for processing
Code: [Select]
/*
Sketch to fast and easy get processing Twittering. Both sending and recieving

Created by David Sjunnesson 1scale1.com
3 September 2009
more info: http://code.google.com/p/sjunnesson/

*/

import java.util.List ;
java.util.List statuses =null;
Twitter twitter;
TwitterResponse twitterRes;
String username = "vishalapr"; // add your own here
String password = "batchu12345"; // add your own here

void setup(){
  twitter = new Twitter(username,password);
  twitterRes=new TwitterResponse();
}

void draw(){
  //getAllUpdates();
  //updateStatus("Hello Twitter, processing here!");
  //getlatestUpdate();
  //getFriendsID();
  //getFriendsStatus(0);
  //updates the Twitter account with the input String
}
void  updateStatus(String statusString){
  println("Testing arduino-twitter: "+statusString);
  try{
    Status status1 = twitter.updateStatus(statusString);
  }
  catch( TwitterException e)  {
    println(e.getStatusCode());
  }
}



and when I click run it opens a small window but does not post my twitter update...Please tell me how to solve this problem.

And the arduino thing forget about it right now as I first want to send tweets to twitter with processing first then I will add the arduino in...
Thanks

zoomkat

Quote
Please tell me how to solve this problem.


A processing forum (if there is one) would be the logical place to start.
Consider the daffodil. And while you're doing that, I'll be over here, looking through your stuff.   8)

vishalapr

But I dont have a processing account please help....Please!

tastewar


Where is gigs/colaboration


It's another forum on this site. You're posting in the "Using Arduino" section in the "Project Guidance" forum. If you go to the main forum site (http://arduino.cc/forum/), and scroll down, you'll see another section labelled "Community" and there you will see the "Gigs and Collaborations" forum.

Go Up