Show Posts
Pages: [1]
1  Products / Arduino GSM Shield / Re: twitter and GSM shield on: April 11, 2013, 11:36:42 am
hi andresorihuela,

about the talk... is correct what zorzano sad, you can get the token and put it in the "TWITTER TALK" field...

unfortunately my code depend on the GSM.h library... so i think that it should work only with the official arduino GSM shield.

have fun

2  Products / Arduino GSM Shield / Re: twitter and GSM shield on: March 25, 2013, 03:18:19 am
Hi zorzano,

nice to hear that everything is working... thank you!

off course will be great to have the library working on every kind of client class...
will be great if you can do it...

thank you


3  Products / Arduino GSM Shield / twitter and GSM shield on: March 24, 2013, 11:33:43 am
hi all,

i just do my first tweet using the GSM shield,

I modify a little bit the twitter.h library, than I mix the code of the examples in the arduino software.
I mix the GsmTwitterClient example and the SimplePost example of the Twitter library.

I will post all here following waiting some feedbacks and off course to simplify it and fix some bugs in it.
as in the simplepost example you need to get YOUR TOKEN to tweet here:

in the Twitter.h lib at line 21 I substitute first the

#include <Ethernet.h>
#if defined(ARDUINO) && ARDUINO < 100  // earlier than Arduino 1.0
#include <EthernetDNS.h>
#include <GSM.h>
//#if defined(ARDUINO) && ARDUINO < 100  // earlier than Arduino 1.0
//#include <EthernetDNS.h>

i comment the last three lines because we don't need it any more.

than at line 35 I substitute this other thing
EthernetClient client;
GSM3MobileClientService client;

that's it for the twitter.h lib... may be we can call it twitterGSM.h

here following i will show you the codes I mix.
this is working with my configuration (arduino UNO R3 and GSM R3 shield) even if not always post the tweet, but unfortunately i think this only depend on the italian GSM provider TIM (telecom italia mobile).

that's it.

looking forward some feedbacks and don't forget to include me @ales9000 when you tweet from your GMS shield...

arduino rock!


#include <SPI.h> // needed in Arduino 0019 or later
#include <Twitter.h>
//#include <Ethernet.h>
#include <GSM.h>

// PIN Number
#define PINNUMBER ""

// APN data
#define GPRS_APN       "APN" // replace your GPRS APN
#define GPRS_LOGIN     "login" // replace with your GPRS login
#define GPRS_PASSWORD  "password" // replace with your GPRS password

// The includion of EthernetDNS is not needed in Arduino IDE 1.0 or later.
// Please uncomment below in Arduino IDE 0022 or earlier.
//#include <EthernetDNS.h>

// initialize the library instance
GSMClient client;
GPRS gprs;
GSM gsmAccess;

//const unsigned long requestInterval = 30*1000;    // delay between requests: 30 seconds

// API Twitter URL
char server[] = "";

//twitter talk
Twitter twitter("TWITTER TALK");

// Message to post
char msg[] = "Hello, World!";

void setup() {
// initialize serial communications and wait for port to open:
  while (!Serial) {
    ; // wait for serial port to connect. Needed for Leonardo only
  // connection state
  boolean notConnected = true;
  // After starting the modem with GSM.begin()
  // attach the shield to the GPRS network with the APN, login and password
    if((gsmAccess.begin(PINNUMBER)==GSM_READY) &
      notConnected = false;
      Serial.println("Not connected");
  Serial.println("Connected to GPRS network");
  Serial.println("connecting ...");
  if ( {
    // Specify &Serial to output received response to Serial.
    // If no output is required, you can just omit the argument, e.g.
    // int status = twitter.wait();
    int status = twitter.wait(&Serial);
    if (status == 200) {
    } else {
      Serial.print("failed : code ");
  } else {
    Serial.println("connection failed.");

void loop()

4  Using Arduino / Motors, Mechanics, and Power / Re: motor shield r3 output in series on: August 30, 2012, 02:37:10 am
thank you MarkT,

I see, i found this shield in the forum (
this seams to be the solution.

thank you again


5  Using Arduino / Motors, Mechanics, and Power / motor shield r3 output in series on: August 29, 2012, 08:04:13 am
dear all,

i'm using the arduino motor shield r3 in order to controll a 24v DC motor (
as I can understand from the motor shield datasheet ( is not allowed to control more than 18V motor.

Is it possible to connect in series the 2 output of the shield (12v+12v) to obtain 24v?

thank you


6  Forum 2005-2010 (read only) / Italiano / 6 IR distance sensor analog in on: June 08, 2009, 08:48:15 am
ciao a tutti,
per un progetto ho collegato 6 sensori infrarosso di distanza sharp (2D120X) ad un arduino e ottengo dei comportamenti (per me) inspiegabili...

collegando un singolo sensore alla volta funziona tutto bene...

aumentando man man il numero di sensori collegati iniziano le anomalie in lettura dei sensori. quando arrivo a 6 sensori collegati i primi 2 analog pin hanno degli svarioni di lettura... ogni tanto hanno dei picchi casuali e arrivano anche oltre i 300 pur non incontrando sessun ostacolo.

sto usando firmata in arduino e vvvv per la lettura dei dati

qualcuno saprebbe spiegarmi l'arcano?

ciao e grazie

Pages: [1]