Show Posts
Pages: [1] 2 3
1  Using Arduino / Project Guidance / Re: Integration of external flash memory wih arduiino uno on: October 22, 2013, 11:20:10 pm
Hi,

I am using the sd card as primary storage device and the flash memory to store the latest readings from the sensors.

Thank you
2  Using Arduino / Project Guidance / Re: Integration of external flash memory wih arduiino uno on: October 22, 2013, 04:56:17 am
Thank you for example. Is there any other example that uses i2c.

Thank you
3  Using Arduino / Project Guidance / Integration of external flash memory wih arduiino uno on: October 21, 2013, 11:37:08 pm
Hi,

I am doing a project which require to store the readings taken from the sensor. So need to attach the external flash memory (200KB)  to the arduino uno. please let me know if there is any refernece avaiable to start with this.

Thank you
4  Using Arduino / Programming Questions / Re: Problem with Software Serial on: August 19, 2013, 11:29:04 pm
Hi,

Can you please tell me the code that is used to send the command 'c' (without using the serial monitor).

Thank you
5  Using Arduino / Programming Questions / Re: Problem with Software Serial on: August 19, 2013, 09:35:08 pm
Hi,

I tried with the above code but not getting any ASCII characters in the output. I think should send '"r\r" to get single reading or "c\r" to get continous readings.

Thank you.
6  Using Arduino / Programming Questions / Re: Problem with Software Serial on: August 18, 2013, 09:28:21 pm
Hi,

I am attaching the spec sheet for the sensor. Please let me know how to modify the below posted code which uses software serial to the code that uses hardware serial port.

Code:

/*
This software was made to demonstrate how to quickly get your Atlas Scientific product running on the Arduino platform.
An Arduino Duemilanove board was used to test this code.
This code was written in the Arudino 1.0 IDE
Modify the code to fit your system.
Code efficacy was NOT considered, this is a demo only.
The soft serial port TX line goes to the RX pin.
The soft serial port RX line goes to the TX pin.
Make sure you also connect to power and GND pins to power and a common ground.
Data is received and re-sent through the Arduinos hardware UART TX line.
Open TOOLS > serial monitor, set the serial monitor to the correct serial port and set the baud rate to 38400.
Remember, select carriage return from the drop down menu next to the baud rate selection; not "both NL & CR".
The data from the Atlas Scientific product will come out on the serial monitor.
Type in a command in the serial monitor and the Atlas Scientific product will respond.
*/




#include <SoftwareSerial.h>                                                    //add the soft serial libray
#define rxpin 2                                                                //set the RX pin to pin 2
#define txpin 3                                                                //set the TX pin to pin 3


SoftwareSerial myserial(rxpin, txpin);                                         //enable the soft serial port


String inputstring = "";                                                       //a string to hold incoming data from the PC
String sensorstring = "";                                                      //a string to hold the data from the Atlas Scientific product
boolean input_stringcomplete = false;                                          //have we received all the data from the PC
boolean sensor_stringcomplete = false;                                         //have we received all the data from the Atlas Scientific product


  void setup(){                                                                //set up the hardware
     Serial.begin(38400);                                                      //set baud rate for the hardware serial port to 38400
     myserial.begin(38400);                                                    //set baud rate for software serial port to 38400
     inputstring.reserve(5);                                                   //set aside some bytes for receiving data from the PC
     sensorstring.reserve(30);                                                 //set aside some bytes for receiving data from Atlas Scientific product
     }
 
 
 
   void serialEvent() {                                                         //if the hardware serial port receives a char
               char inchar = (char)Serial.read();                               //get the char we just received
               inputstring += inchar;                                           //add it to the inputString
               if(inchar == '\r') {input_stringcomplete = true;}                //if the incoming character is a <CR>, set the flag
              } 
 
 
 
 void loop(){                                                                   //here we go....
     myserial.print("r\r");
  if (input_stringcomplete){                                                   //if a string from the PC has been recived in its entierty
      myserial.print(inputstring);                                             //send that string to the Atlas Scientific product
      inputstring = "";                                                        //clear the string:
      input_stringcomplete = false;                                            //reset the flage used to tell if we have recived a completed string from the PC
      }
 

  while (myserial.available()) {                                               //while a char is holding in the serial buffer
         char inchar = (char)myserial.read();                                  //get the new char
         sensorstring += inchar;                                               //add it to the sensorString
         if (inchar == '\r') {sensor_stringcomplete = true;}                   //if the incoming character is a <CR>, set the flag
         }


   if (sensor_stringcomplete){                                                 //if a string from the Atlas Scientific product has been received in its entirety
       Serial.print(sensorstring);                                             //use the hardware serial port to send that data to the PC
       sensorstring = "";                                                      //clear the string:
       sensor_stringcomplete = false;                                          //reset the flag used to tell if we have received a completed string from the Atlas Scientific product
      }
}




Thank you
7  Using Arduino / Programming Questions / Re: Problem with Software Serial on: August 15, 2013, 10:18:11 pm
Hi,

Actually i mailed the people from whom i brought the sensor stating the problem but then they told that the problem is with softwawre serial and asked me to use the hardware serial instead of it. So i just want to give a try using hardware serial. Can anyone help me to convert the above linked code to use hardware serial instead of software serial.

Thank you
8  Using Arduino / Programming Questions / Re: Problem with Software Serial on: August 15, 2013, 08:34:16 pm
When i set baud rate to 9600 then no readings at all.

Thank you
9  Using Arduino / Programming Questions / Re: Problem with Software Serial on: August 15, 2013, 08:12:49 pm
Hi,

The serial monitor settings are correct and i used the same code for testing some others sensors they worked fine but got this problem with only one sensor.

Thank you
10  Using Arduino / Programming Questions / Problem with Software Serial on: August 15, 2013, 02:58:30 am
Hi,

I am using the following code with the arduino and i am getting some random characters. Please let me know whats worng with the code and how to modify this code to use the hardware serial instead of software serial if the problem is with software serial.

The ouput is as follows
Code:
ÿ-,--,--
æ0502,11072,12
æ6023,8653,9
Ë-,--,--
ÿ3834,7471,8
þ622,1956,0
æ0502,11072,12

Thank you
11  Using Arduino / Project Guidance / USB host shield together with XBEE on: January 24, 2013, 02:36:20 am
Hi,

I am planning to do a project where i want to read the data from the following data logger http://www.onsetcomp.com/products/data-loggers/u12-014 using arduino uno and the send the data out via Xbee. For this purpose i thought of using USB host shiled inorder to extract the data from the datalogger and xbee shield to transfer the data wirelessly. Can you please let me know whether the USB host shield can be used to extract the data from the data logger and Xbee shield is compatable with USB host shield. If not what is the correct procedure to follow to make the sensor send data wirelessly using Arduino Uno and XBee.

Thank you
12  Using Arduino / Sensors / Re: Problem with MMA8452Q Accelorometer on: December 25, 2012, 08:36:00 pm
Hi,

When the i2c_scanner code is used then i am getting the output as

I2C Scanner
Scanning...
I2C device found at address 0x1D !
done

When i use the attached code in the previous post then i am getting output as follows ( when the accelerometer is held at a fixed position also there are variations in the readings)

MMA8452 Basic Example
MMA8452Q is online...
0.14   0.60   -6.23   
2.76   1.12   9.38   
2.80   1.14   9.40   
2.78   1.13   9.37   
2.78   1.20   9.36   
2.82   1.18   9.42   
2.80   1.16   9.42   
2.76   1.15   9.40   
2.78   1.16   9.40   
2.81   1.17   9.43   
2.80   1.17   9.42   
2.84   1.15   9.39   
2.79   1.22   9.40   
2.80   1.23   9.43   
2.78   1.20   9.39   
2.83   1.17   9.34   
2.77   1.14   9.42   

All the values are interms of g. Normally when the accelerometer is not moving then the acceleration should be 0 but here it is showing some value. Can you please tell me why is it so?

Thank you
13  Using Arduino / Sensors / Re: Problem with MMA8452Q Accelorometer on: December 21, 2012, 02:35:58 am
Hi,

I am using the following code to work with MMA8452Q accelorometer breakout(Arduino UNO) . The readings are fluctuating even when the accelerometer is not moving. Can you please verify the code and let me know what's the problem.

Thank you very much
14  Using Arduino / Sensors / Re: Problem with MMA8452Q Accelorometer on: December 17, 2012, 02:06:01 am
Hi,

I am using the the break board "Triple Axis Accelerometer Breakout - MMA8452Q".Please click on the below link to find more information on the breakout board

https://www.sparkfun.com/products/10955?

Thank you
15  Using Arduino / Networking, Protocols, and Devices / Re: GSM and XBEE with Arduino Uno on: December 16, 2012, 08:24:10 pm
Hi,

Can you tell me which of the Xbee Shield is the better one.

Thank you
Pages: [1] 2 3