Show Posts
Pages: [1] 2 3 ... 6
1  Using Arduino / Project Guidance / arduino w/ gsm modem on: July 02, 2012, 10:35:18 am
Hello everyone..
I am trying to connect gsm modem w/ arduino.
I also tried connecting gsm modem to FTDI chip by removing the mcu and connecting Rx to Rx and Tx to Tx sending some commands.It worked perfectly fine.
Any help is appreciated..smiley-grin

Problem:

1. Make Arduino and Gsm module communicate to each other.
2. Identify the command given by the module when a phone call is made by any  no. and switch on the LED on pin 13 of arduino.
Circuit:
Refer attached file.
Arduino Code:
Refer attached file.
Error coming on each programme is mentioned.
Programme 1 --> No output is shown on the serial monitor
Programme 2 --> Output is shown on the serial monitor but is reading junk values.
Programme 3 & 4
--> Not detecting the call. Performing only else loop.

Regards
Shubham
 
2  Using Arduino / Project Guidance / Re: gsm modem #~plz help~# on: May 15, 2012, 11:28:33 am
by Rx/Tx I meant the fake Rx/Tx pin created by the Newsoft library.
3  Using Arduino / Project Guidance / Re: gsm modem #~plz help~# on: May 15, 2012, 12:57:48 am
check out the modem here http://probots.co.in/index.php?main_page=product_info&cPath=77&products_id=326.
The modem comes with a serial TTL output.

Regards
Shubham Garg
4  Using Arduino / Project Guidance / gsm modem #~plz help~# on: May 15, 2012, 12:26:53 am
Hello,
I am trying to connect arduino with GSM modem.
I have connected Rx of arduino w/ Tx of modem and vice versa.
Here is the code
Code:
#include <NewSoftSerial.h> //Include the NewSoftSerial library to send serial commands to the cellular module.
#include <string.h>         //Used for string manipulations
char incoming_char=0;      //Will hold the incoming character from the Serial Port.
NewSoftSerial cell(2,3);  //Create a 'fake' serial port. Pin 2 is the Rx pin, pin 3 is the Tx pin.
void setup()
{
  //Initialize serial ports for communication.
Serial.begin(9600);
cell.begin(9600);
Serial.println("Starting  Communication...");
}
void loop()
{
//If a character comes in from the cellular module...
if(cell.available() >0)
{
incoming_char=cell.read();    //Get the character from the cellular serial port.
Serial.print(incoming_char);  //Print the incoming character to the terminal.
}
//If a character is coming from the terminal to the Arduino...
if(Serial.available() >0)
{
incoming_char=Serial.read();  //Get the character coming from the terminal
cell.print(incoming_char);    //Send the character to the cellular module.
}
}

There is no response from the modem nor the arduino is sending any command to the mode.
The modem is working fine w/ computer.

Regeards,
Shubham Garg
5  Using Arduino / Project Guidance / Hyperterminal w/ gsm modem on: April 28, 2012, 01:02:40 pm
I am using this GSM modem http://probots.co.in/index.php?main_page=product_info&cPath=77&products_id=326

I am having trouble working with it. I am able to sms through the modem and dial a no from the modem or call the module, but everytime hyperterminal hangs up after performing the function.
then  have to disconnect and reconnect again.
Is it a harware problem or software problem. I am using WIN7 with 9600-8-none-1-none. configuration in hyperterminal

I am also not able to communicate throgh arduino.
i have connected Rx and Tx of arduino to Tx and Rx of gsm modem respectively.
here is the code

Code:
#include <NewSoftSerial.h>  //Include the NewSoftSerial library to send serial commands to the cellular module.
#include <string.h>         //Used for string manipulations
char incoming_char=0;      //Will hold the incoming character from the Serial Port.
NewSoftSerial cell(2,3);  //Create a 'fake' serial port. Pin 2 is the Rx pin, pin 3 is the Tx pin.
void setup()
{
  //Initialize serial ports for communication.
Serial.begin(9600);
cell.begin(9600);
Serial.println("Starting SM5100B Communication...");
}
void loop()
{
//If a character comes in from the cellular module...
if(cell.available() >0)
{
incoming_char=cell.read();    //Get the character from the cellular serial port.
Serial.print(incoming_char);  //Print the incoming character to the terminal.
}
//If a character is coming from the terminal to the Arduino...
if(Serial.available() >0)
{
incoming_char=Serial.read();  //Get the character coming from the terminal
cell.print(incoming_char);    //Send the character to the cellular module.
}
}
6  Using Arduino / Project Guidance / Re: piezoelectricity on: April 02, 2012, 12:12:52 pm
I was able to produce 7V by hopping over the slab, capacitor used .
after that I tried with the zener diode rectifier .
Even after hopping for quite a while the voltage doesn't cross 2V . Is it because of the regulater?
I have used 1000uf 10 V capacitor
                   40 ohms resistor
                   5.1 V zener diode
                   1n4007 Diode
7  Using Arduino / Project Guidance / GSM Modem on: April 01, 2012, 12:46:07 pm
Hi,
I want to interface GSM Board with arduino. I just want the module to identify an incoming call and give a signal to arduino.Please help me with coding. smiley-confuse

GSM Board = http://probots.co.in/index.php?main_page=product_info&cPath=77&products_id=423&z
8  Using Arduino / Project Guidance / Re: piezoelectricity on: March 27, 2012, 01:39:28 pm
There was some problem with the wiring.
After i fixed it, I hopped over it for quite a while. When the multimeter reading showed 3.5 V , I connected a LED it lighted up for a second then the power drained probably because of low current. What could I do for boosting up the current ?

Regards
Shubham
9  Using Arduino / Project Guidance / Re: piezoelectricity on: March 26, 2012, 12:22:33 pm
I have added a rectifier and capacitor for smoothing as suggested by @oric_dan but still LED is not lighting up
10  Using Arduino / Project Guidance / piezoelectricity on: March 24, 2012, 04:44:55 am
 I have made this project to demonstrate that electricity can be generated using piezoelectric generators in sidewalks and roads.Few pictures of the project are attached along with the readings of multimeter as i stepped on it. I've added diodes to piezo transducer to convert AC to DC and to prevent the energy produced by one crystal being used by the other to produce sound. Now I want to use this energy to light up some LEDs and have no idea how to do that. I connected one Led directly to the voltage produced and it lighted up but very dimly.
Please help me to figure out the solution.

Regards
Shubham Garg

Images
http://s7.postimage.org/ial2rzg4r/DSC00323.jpg
http://s7.postimage.org/fhrv7yfsb/DSC00324.jpg
http://s7.postimage.org/5yi6ehsa3/DSC00325.jpg
http://s7.postimage.org/os3zbhqi3/DSC00326.jpg
http://s7.postimage.org/tfemr038r/DSC00327.jpg

Video of readings
http://youtu.be/1ifQIGxlJfI
11  Using Arduino / Project Guidance / Re: arduino adc on: December 13, 2011, 05:05:11 am
silly of me..
the grounds are not connected..
 smiley-mad smiley-roll-sweat  
12  Using Arduino / Project Guidance / arduino adc on: December 12, 2011, 08:08:10 pm
I was trying to get reading from arduino ADC of two pots. the readings are incorrect but the voltage checked throgh the multimeter is correct. The pots are powered by ext power.
here is the code
Code:
/*
  AnalogReadSerial
 Reads an analog input on pin 0, prints the result to the serial monitor
 
 This example code is in the public domain.
 */
void setup() {
  Serial.begin(9600);
  }

void loop() {
  int sensorValue1 = analogRead(A3);
  int sensorValue2 = analogRead(A4);
 
  Serial.println("sensorValue1=") ;
  Serial.println(sensorValue1) ;
  Serial.println("sensorValue2=") ;
  Serial.println(sensorValue2) ;
   
 
    delay(500);
  // 0-506-1023
  }

here are the reading while no action is taken on the pots
Code:
sensorValue1=
107
sensorValue2=
71
sensorValue1=
0
sensorValue2=
0
sensorValue1=
1023
sensorValue2=
1023
sensorValue1=
1023
sensorValue2=
1023
sensorValue1=
1017
sensorValue2=
1023
sensorValue1=
75
sensorValue2=
84
sensorValue1=
0
sensorValue2=
1
sensorValue1=
1023
sensorValue2=
1023
sensorValue1=
1023
sensorValue2=
1023
sensorValue1=
56
sensorValue2=
84
sensorValue1=
0
sensorValue2=
84
sensorValue1=
1023
sensorValue2=
1023
sensorValue1=
1019
sensorValue2=
1023
sensorValue1=
504
sensorValue2=
632
.

please any idea what is causing this?
13  Using Arduino / Project Guidance / R/C car w/ joystick on: December 10, 2011, 02:26:08 am
I wrote this arduino code. It's working fine but i just wanted to get your opinion about the code and can anything be done to improve the code.
The code is of a R/c car controlled by a analog joystick.

Code:
 int val1 ; //variable to store pot value
  int val2 ;
  int val3 ;
  int val4 ;
  int val5 ;
  int val6 ;
  int val7 ;
  int val8 ;

 
 void setup() {
  Serial.begin(9600);
  pinMode(5, OUTPUT) ;
  pinMode(6, OUTPUT) ;
  pinMode(10, OUTPUT) ;
  pinMode(11, OUTPUT) ;
  pinMode(13, OUTPUT) ;
  
}

void loop() {
  int sensorValue1 = analogRead(A0);
  delay(50) ;
  int sensorValue2 = analogRead(A1);
  delay(50) ;
  int sensorValue3 = analogRead(A2);
  delay(50) ;
  int sensorValue4 = analogRead(A3);
    
  if(sensorValue1 < 480)
  {
     val1 = map(sensorValue1, 0, 480, 0, 255) ;
     val1 = 255 - val1 ;
     analogWrite(5, val1) ; //pins of l293d ic
     digitalWrite(6, LOW) ;
     analogWrite(10, val1) ;
     digitalWrite(11, LOW) ;
     Serial.print("sensorValue1=");
     Serial.println(val1, DEC);
     analogWrite(9, val1) ;
       }

  else if(sensorValue1 > 510)
   {
     val2 = map(sensorValue1, 510, 1023, 0, 255) ;
     analogWrite(6, val2) ;
     digitalWrite(5, LOW) ;
     analogWrite(11, val2) ;
     digitalWrite(10, LOW) ;
     Serial.print("sensorValue2=");
     Serial.println(val2, DEC);
     analogWrite(9, val2) ;
     }
  
   else if(sensorValue2 < 480)
  {
     val3 = map(sensorValue2, 0, 480, 0, 255) ;
     val3 = 255 - val3 ;
     analogWrite(5, val3) ;
     digitalWrite(6, LOW) ;
     analogWrite(11, val3) ;
     digitalWrite(10, LOW) ;
     Serial.print("sensorValue3=");
     Serial.println(val3, DEC);
     analogWrite(9, val3) ;
      
 }
  

  else if(sensorValue2 > 510)
   {
     val4 = map(sensorValue2, 510, 1023, 0, 255) ;
     analogWrite(6, val4) ;
     digitalWrite(5, LOW) ;
     analogWrite(10, val4) ;
     digitalWrite(11, LOW) ;
     Serial.print("sensorValue4=");
     Serial.println(val4, DEC);
     analogWrite(9, val4) ;
      
   }
  else if(sensorValue3 < 480)
  {
     val5 = map(sensorValue3, 0, 480, 0, 255) ;
     val5 = 255 - val5 ;
    
     Serial.print("sensorValue5=");
     Serial.println(val5, DEC);
     analogWrite(9, val5) ;
       }

  else if(sensorValue3 > 510)
   {
     val6 = map(sensorValue3, 510, 1023, 0, 255) ;
     Serial.print("sensorValue6=");
     Serial.println(val6, DEC);
     analogWrite(9, val6) ;
     }
  
   else if(sensorValue4 < 480)
  {
     val7 = map(sensorValue4, 0, 480, 0, 255) ;
     val7 = 255 - val7 ;
     Serial.print("sensorValue7=");
     Serial.println(val7, DEC);
     analogWrite(9, val7) ;
      
 }
  

  else if(sensorValue4 > 510)
   {
     val8 = map(sensorValue4, 510, 1023, 0, 255) ;
     Serial.print("sensorValue8=");
     Serial.println(val8, DEC);
     analogWrite(9, val8) ;
      
   }
    
   else
   {
     analogWrite(6, LOW) ;
     digitalWrite(5, LOW) ;
     analogWrite(10, LOW) ;
     digitalWrite(11, LOW) ;
     Serial.print("sensorValue1==") ;
     Serial.println(sensorValue1) ;
     Serial.print("sensorValue2==") ;
     Serial.println(sensorValue2) ;
     Serial.print("sensorValue3==") ;
     Serial.println(sensorValue3) ;
     Serial.print("sensorValue4==") ;
     Serial.println(sensorValue4) ;
     Serial.println("No Action");
     digitalWrite(9, HIGH) ;
      
     delay(500) ;
 }
  }
    
  
14  Using Arduino / Installation & Troubleshooting / Re: arduino uno trouble on: December 07, 2011, 11:08:49 am
Quote
Do you have anything like a cellular data device you use with your PC?
nope..

I also tried to change the serial port no and then try again but then also the same error was coming.
Code:
Binary sketch size: 1042 bytes (of a 30720 byte maximum)
processing.app.SerialException: Serial port 'COM17' already in use.  Try quiting any programs that may be using it.
at processing.app.Serial.<init>(Serial.java:144)
at processing.app.Serial.<init>(Serial.java:76)
at processing.app.debug.Uploader.flushSerialBuffer(Uploader.java:75)
at processing.app.debug.AvrdudeUploader.uploadViaBootloader(AvrdudeUploader.java:93)
at processing.app.debug.AvrdudeUploader.uploadUsingPreferences(AvrdudeUploader.java:56)
at processing.app.Sketch.upload(Sketch.java:1603)
at processing.app.Sketch.exportApplet(Sketch.java:1568)
at processing.app.Sketch.exportApplet(Sketch.java:1524)
at processing.app.Editor$DefaultExportHandler.run(Editor.java:2293)
at java.lang.Thread.run(Thread.java:619)
processing.app.debug.RunnerException: Serial port 'COM17' already in use.  Try quiting any programs that may be using it.
at processing.app.debug.Uploader.flushSerialBuffer(Uploader.java:99)
at processing.app.debug.AvrdudeUploader.uploadViaBootloader(AvrdudeUploader.java:93)
at processing.app.debug.AvrdudeUploader.uploadUsingPreferences(AvrdudeUploader.java:56)
at processing.app.Sketch.upload(Sketch.java:1603)
at processing.app.Sketch.exportApplet(Sketch.java:1568)
at processing.app.Sketch.exportApplet(Sketch.java:1524)
at processing.app.Editor$DefaultExportHandler.run(Editor.java:2293)
at java.lang.Thread.run(Thread.java:619)
15  Using Arduino / Installation & Troubleshooting / Re: arduino uno trouble on: December 07, 2011, 10:23:53 am
the tx is always on even when the mcu is not connected to the arduino.
Has the FTDI chip gone bad?
Pages: [1] 2 3 ... 6