Pages: [1]   Go Down
Author Topic: arduino-twitter(without ethernet shield)  (Read 1006 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Sr. Member
****
Karma: 0
Posts: 298
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 208
Posts: 8856
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Offline Offline
Sr. Member
****
Karma: 0
Posts: 298
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 208
Posts: 8856
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Offline Offline
Sr. Member
****
Karma: 0
Posts: 298
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I dont really understand how to do all this please explain
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 208
Posts: 8856
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Arlington, MA, USA
Offline Offline
Sr. Member
****
Karma: 0
Posts: 259
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Offline Offline
Sr. Member
****
Karma: 0
Posts: 298
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Where is gigs/colaboration
Logged

Offline Offline
Sr. Member
****
Karma: 0
Posts: 298
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I got this code on the internet for processing
Code:
/*
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
Logged

0
Offline Offline
Tesla Member
***
Karma: 145
Posts: 9636
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Please tell me how to solve this problem.

A processing forum (if there is one) would be the logical place to start.
Logged

Consider the daffodil. And while you're doing that, I'll be over here, looking through your stuff.   smiley-cool

Offline Offline
Sr. Member
****
Karma: 0
Posts: 298
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Arlington, MA, USA
Offline Offline
Sr. Member
****
Karma: 0
Posts: 259
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Pages: [1]   Go Up
Jump to: