I working on a project that will use PubSub client (MQTT) and GSM Shield to control Micro Servo. Now, I have code in place that will connect to GPRS via GSM Shield and I have PubSub client in place and these to things work perfectly. Connecting to GSM and MQTT is inside setup() function, so first I connect to GSM, then I connect to GPRS and after those connections are done, I'm connecting to MQTT. Now, after these connections in setup() function, I'm attaching Servo to pin 5 or 6 with myservo.attach(6). In loop, I'm publishing on every second some message, but every time when message is published, my Servo i moved. Basically, its like every time GSM shield send singnal to MQTT it also write something on pin 5 or 6 which is moving my Servo for some small value.
I'm using arduino uno, GSM Shield (http://arduino.cc/en/Main/ArduinoGSMShield) and TinkerKit MicroServo. I'm also having a 9V power supply. Can anyone help me or just explain what is going on here, because I'm trying to figure out what is happening for 2 days now?