Show Posts
Pages: [1]
1  Using Arduino / Programming Questions / Re: please i need urgent programming help for my project... on: June 09, 2011, 02:17:29 am
Yes sir,i do have the existing code working.when i upload the code in arduino and open serial monitor i do get the output.The program is working fine and i am getting the output from the arduino.Now i want to add a wireless module "RN131C GSX wifly module" so that i can send wireless commands to arduino from computer and get the output from the arduino witlessly on computer.All the connections are made.All the hardware part is done.I mean connecting RX/TX of wifly to rx/tx of arduino etc.Now i just dont know what changes do i have to make in the program to send and receive commands through wifly.Thank you so much for your time sir.
2  Using Arduino / Programming Questions / Re: please i need urgent programming help for my project... on: June 08, 2011, 03:39:24 pm
because i have my project submission and i am not understanding this.Ill be very thankful to you if you could help me.
3  Using Arduino / Programming Questions / please i need urgent programming help for my project... on: June 08, 2011, 03:09:59 pm
Hi.I have bought rn131c wifly and want to connect it to arduino.But i am very much new t it and i dont know how to change the program for using it with wifly.The website link is "http://embeddedeye.com/forum/topics/ardueye-for-tam-chips-using"
And the program is the "Tam4_OpticFlowExample_r1.zip" which is under "files" section.dint know how to attach file in this so sent link.I have copied a part of that program in this.It will be very very helpful of anyone who can tell me where should i change the code to make the date send through wifly.I will be very thankful if anyone could help me as soon as possible.Waiting for the reply.



#define  TAM_BD_CLOCKPIN    7  // The chip clock pin CLK is connected to Arduino digital 7
#define  TAM_BD_CLEARBAR    6  // The chip reset pin CLB is connected to Arduino digital 6
#define  TAM_BD_ANALOG      0  // The chip analog out pin ANALOG is connected to Arduino digital 0

#define  TAM2_IMAGESIZE  256  // Number of pixels in 16x16 Tam2 chip
#define  TAM4_IMAGESIZE  128  // Number of pixels in 4x32 Tam2 chip

//-----------------------------------------------------------------------------
// Tam_InitArduino
// Initializes the Arduino
void Tam_InitArduino(char board) {
  pinMode(TAM_BD_CLOCKPIN,OUTPUT);
  pinMode(TAM_BD_CLEARBAR,OUTPUT);
}

//-----------------------------------------------------------------------------
// Tam2_LoadImage -- Loads a 16x16 Tam2 image (256 pixels) into an
// array of shorts. Note that array img must be preallocated.
void  Tam2_LoadImage(short *img) {
  short i;
  
  // reset Tam2 pixel counter by pulsing low the CLB line
  digitalWrite(TAM_BD_CLEARBAR,LOW);
  digitalWrite(TAM_BD_CLEARBAR,HIGH);
  // read through pixels
  for (i=0; i<TAM2_IMAGESIZE; ++i) {
    // delay slightly
    delayMicroseconds(10); // small delay to let analog pathway settle
    // read in pixel
    img = analogRead(TAM_BD_ANALOG);
    // pulse clock line to advanced to next pixel
    digitalWrite(TAM_BD_CLOCKPIN,HIGH);
    digitalWrite(TAM_BD_CLOCKPIN,LOW);
  }
}

//-----------------------------------------------------------------------------
// Tam4_LoadImage -- Loads a 4x32 Tam2 image (128 pixels) into an
// array of shorts. Note that array img must be preallocated.
void  Tam4_LoadImage(short *img) {
  short i;
  
  // reset Tam4 pixel counter by pulsing low the CLB line
  digitalWrite(TAM_BD_CLEARBAR,LOW);
  digitalWrite(TAM_BD_CLEARBAR,HIGH);
  // read through pixels
  for (i=0; i<TAM4_IMAGESIZE; ++i) {
    // delay slightly
    delayMicroseconds(10); // small delay to let analog pathway settle
    // read in pixel
    img = analogRead(TAM_BD_ANALOG);
    // pulse clock line to advanced to next pixel
    digitalWrite(TAM_BD_CLOCKPIN,HIGH);
    digitalWrite(TAM_BD_CLOCKPIN,LOW);
  }
}
void  Tam_LoadSubImage(short *img, short skip, short load) {
  short i;

  // reset Tam pixel counter by pulsing low the CLB line
  digitalWrite(TAM_BD_CLEARBAR,LOW);
  digitalWrite(TAM_BD_CLEARBAR,HIGH);
  // Pulse clock to skip over unwanted pixels
  for (i=0; i<skip; ++i) {
    digitalWrite(TAM_BD_CLOCKPIN,HIGH);
    digitalWrite(TAM_BD_CLOCKPIN,LOW);
  }    
  // Acquire and store wanted pixels
  for (i=0; i<load; ++i) {
    // delay slightly
    delayMicroseconds(10); // small delay to let analog pathway settle
    // read in pixel
    img = analogRead(TAM_BD_ANALOG);
    // pulse clock line to advanced to next pixel
    digitalWrite(TAM_BD_CLOCKPIN,HIGH);
    digitalWrite(TAM_BD_CLOCKPIN,LOW);
  }
}
4  Using Arduino / Project Guidance / How do i send data out through TX pin ? need urgent help for my project.. on: May 24, 2011, 03:50:16 pm
Hey hi..I need some help from you from my project.I have exactly the same problem which you said.The output of the arduino when i connect it to laptop by usb i get the output on serial monitor.But i want to send the output through the TX pin without connecting it to the lapy through usb.I have to give its output throgh TX pin into another robot input.How do i do it ? This is my code.Please tell me where i should change to send the output through TX pin.Please if you do help me.I will be very thankful to you.

#define  TAM_BD_CLOCKPIN    7  // The chip clock pin CLK is connected to Arduino digital 7
#define  TAM_BD_CLEARBAR    6  // The chip reset pin CLB is connected to Arduino digital 6
#define  TAM_BD_ANALOG      0  // The chip analog out pin ANALOG is connected to Arduino digital 0

#define  TAM2_IMAGESIZE  256  // Number of pixels in 16x16 Tam2 chip
#define  TAM4_IMAGESIZE  128  // Number of pixels in 4x32 Tam2 chip

//-----------------------------------------------------------------------------
// Tam_InitArduino
// Initializes the Arduino
void Tam_InitArduino(char board) {
  pinMode(TAM_BD_CLOCKPIN,OUTPUT);
  pinMode(TAM_BD_CLEARBAR,OUTPUT);
}

//-----------------------------------------------------------------------------
// Tam2_LoadImage -- Loads a 16x16 Tam2 image (256 pixels) into an
// array of shorts. Note that array img must be preallocated.
void  Tam2_LoadImage(short *img) {
  short i;
 
  // reset Tam2 pixel counter by pulsing low the CLB line
  digitalWrite(TAM_BD_CLEARBAR,LOW);
  digitalWrite(TAM_BD_CLEARBAR,HIGH);
  // read through pixels
  for (i=0; i<TAM2_IMAGESIZE; ++i) {
    // delay slightly
    delayMicroseconds(10); // small delay to let analog pathway settle
    // read in pixel
    img = analogRead(TAM_BD_ANALOG);
    // pulse clock line to advanced to next pixel
    digitalWrite(TAM_BD_CLOCKPIN,HIGH);
    digitalWrite(TAM_BD_CLOCKPIN,LOW);
  }
}

//-----------------------------------------------------------------------------
// Tam4_LoadImage -- Loads a 4x32 Tam2 image (128 pixels) into an
// array of shorts. Note that array img must be preallocated.
void  Tam4_LoadImage(short *img) {
  short i;
 
  // reset Tam4 pixel counter by pulsing low the CLB line
  digitalWrite(TAM_BD_CLEARBAR,LOW);
  digitalWrite(TAM_BD_CLEARBAR,HIGH);
  // read through pixels
  for (i=0; i<TAM4_IMAGESIZE; ++i) {
    // delay slightly
    delayMicroseconds(10); // small delay to let analog pathway settle
    // read in pixel
    img = analogRead(TAM_BD_ANALOG);
    // pulse clock line to advanced to next pixel
    digitalWrite(TAM_BD_CLOCKPIN,HIGH);
    digitalWrite(TAM_BD_CLOCKPIN,LOW);
  }
}

//-----------------------------------------------------------------------------
// Tam_LoadSubImage -- Generic function that loads a subimage from one
// of the Tam chips. This is useful for loading just a row, for example.
// The user must specify how many times the clock line is pulsed to skip
// over unwanted pixels, and how many pixels are then read. Array img is
// the destination array and must be preallocated. skip is how many
// pixels to skip over. load is how many pixels to acquire and store
// in array img.
void  Tam_LoadSubImage(short *img, short skip, short load) {
  short i;

  // reset Tam pixel counter by pulsing low the CLB line
  digitalWrite(TAM_BD_CLEARBAR,LOW);
  digitalWrite(TAM_BD_CLEARBAR,HIGH);
  // Pulse clock to skip over unwanted pixels
  for (i=0; i<skip; ++i) {
    digitalWrite(TAM_BD_CLOCKPIN,HIGH);
    digitalWrite(TAM_BD_CLOCKPIN,LOW);
  }   
  // Acquire and store wanted pixels
  for (i=0; i<load; ++i) {
    // delay slightly
    delayMicroseconds(10); // small delay to let analog pathway settle
    // read in pixel
    img = analogRead(TAM_BD_ANALOG);
    // pulse clock line to advanced to next pixel
    digitalWrite(TAM_BD_CLOCKPIN,HIGH);
    digitalWrite(TAM_BD_CLOCKPIN,LOW);
  }
}
5  General Category / General Discussion / Re: I need urgent help for my project work on: May 16, 2011, 08:18:04 am
the hardware is like this...there is an image sensor fixed on an arduino pro board,,,its atmega is programmed...now i want to connect arduino pro board to robotino...arduino pro board will be on robotino wherever it moves....now the analog output of arduino pro board should go to the analog input pin of the robotino..robotino needs 12V supply..now how should i connect arduino pro board to robotino analog ip pin electrically,,THE ARDUINO BOARD WILL BE ON ROBOTINO...
6  General Category / General Discussion / Re: I need urgent help for my project work on: May 16, 2011, 05:16:43 am
yes i was talking about the 6 pin header "ICSP pins" used to program atmega...am i supposed to use that to connect to the robotino ? there is RX and TX in that 6 pin header too...did u mean that? or did you mean the RX and TX on the board ?
7  General Category / General Discussion / Re: I need urgent help for my project work on: May 15, 2011, 03:35:26 pm
Hi.I am so sorry for a late reply.I was sick and on bed.I have one more month to go for project submission but i want to finish it soon..here are the details..

i have an arduino pro board.its working fine on windows 7.i connected a sensor to it.and it is giving output on the serial monitor.its working fine now.now i want to connect the arduino board to the robotino,it's a prototype robot.Now my doubt is how do i connect the borad to the robotino analog input.The 6 pin header on the arduino board through which we connect to the computer,am i supposed to use the same ? is that rs232 or usb output ? how do i give the output from arduino pro board to the analog input of arduino ? it will be very kind of you if you can guide me..thank you so much once again.
8  General Category / General Discussion / I need urgent help for my project work on: May 11, 2011, 03:47:26 pm
Hi everyone..I need help.I am writing program in the arduino enviounment,compiling it,,it says no error with a done compiling message,but when i open serial monitor,i dont see anything on the display,there is no message on the serial monitor.What should i do ? Please please do me a favour by helping me out urgently.I will be very thankful to you if you could help me.Waiting for the reply at the earliest.
9  Using Arduino / Project Guidance / Re: optical flow sensor for mobile robot navigation on: March 18, 2011, 03:11:14 pm
I have got the adns 2610 sensor with hdns 2100 lens already.But i want guidance as to how should i go about this.Because i am new in this robotic world.I am trying to improve my knowledge but as of now i need help with my project.an "optical flow sensor" for mobile robot navigation.
10  Using Arduino / Project Guidance / Re: optical flow sensor for mobile robot navigation on: March 17, 2011, 05:47:57 pm
I thought of using adns 2610 sensor with hdns 2100 lens and interface that with arduino board..Or i thought of using cmucam with arduino board..which would be a better option and how should i go about it ??
11  Topics / Device Hacking / optical flow sensor for mobile robot navigation on: March 17, 2011, 04:25:36 pm
Hi friends..I badly need your help.My project is to design a flow sensor for mobile robot navigation.That is the mobile should not hit the walls on right and left,just go straight.distance is to be measured continuously as velocity of the image and the this data is used to navigate the robot along the straight path.I will be very thankful if anyone guides me on this..Waiting for reply..
12  Topics / Robotics / optical flow sensor for mobile robot navigation on: March 17, 2011, 04:25:12 pm
Hi friends..I badly need your help.My project is to design a flow sensor for mobile robot navigation.That is the mobile should not hit the walls on right and left,just go straight.distance is to be measured continuously as velocity of the image and the this data is used to navigate the robot along the straight path.I will be very thankful if anyone guides me on this..Waiting for reply..
13  Using Arduino / Sensors / optical flow sensor for mobile robot navigation on: March 17, 2011, 04:23:44 pm
Hi friends..I badly need your help.My project is to design a flow sensor for mobile robot navigation.That is the mobile should not hit the walls on right and left,just go straight.distance is to be measured continuously as velocity of the image and the this data is used to navigate the robot along the straight path.I will be very thankful if anyone guides me on this..Waiting for reply..
14  Using Arduino / Project Guidance / optical flow sensor for mobile robot navigation on: March 17, 2011, 04:22:30 pm
Hi friends..I badly need your help.My project is to design a flow sensor for mobile robot navigation.That is the mobile should not hit the walls on right and left,just go straight.distance is to be measured continuously as velocity of the image and the this data is used to navigate the robot along the straight path.I will be very thankful if anyone guides me on this..Waiting for reply..
Pages: [1]