Show Posts
Pages: [1] 2 3 4
1  Using Arduino / Project Guidance / Re: DS18B20(solar heating) display through webserver - need help(now with LCD) on: April 14, 2014, 08:51:06 am
HI,

How to get address of thermometer ???

Code:
DeviceAddress insideThermometer = { 0x28, 0x96, 0xC2, 0xBC, 0x04, 0x00, 0x00, 0xA1 };
DeviceAddress outsideThermometer = { 0x28, 0xA5, 0x0E, 0xBD, 0x04, 0x00, 0x00, 0x99 };
2  International / Deutsch / Re: DS18S20 output on webpage on: April 12, 2014, 06:57:09 am
HI,

Will u please upload circuit diagram for this.

means on which pin should i connect DS18S20 ?


3  Community / Exhibition / Gallery / Re: Arduino Webserver with Temperature Monitor / Control on: April 12, 2014, 05:55:12 am
After uploading code i am not able to load page,

i have changed IP address as per my req.

need help
4  Topics / Home Automation and Networked Objects / Re: Voice activated lights on: April 11, 2014, 09:56:09 pm
See below tutorial....
5  Topics / Home Automation and Networked Objects / Web based Temperature Logging on: April 11, 2014, 09:55:14 pm
HI,

I want to get temperature and light intensity  status via web server,

any tutorial?
6  Using Arduino / Project Guidance / Re: LINE FOLLOWER ROBOT on: March 12, 2014, 01:39:35 pm
Hi,

Thanks for prompt response...

as per my understanding, i am modifying push button code to work as line follower code.

see my below code , still its not completed just i want to show how i am doing...let me correct if i am wrong. i ll try to complete asap.

Code:
// constants won't change. They're used here to
// set pin numbers:
const int Sensor1 = 2;     // the number of the sensor pin
const int Sensor2 = 3;     // the number of the sensor pin
const int Sensor3 = 4;     // the number of the sensor pin
const int Sensor4 = 5;     // the number of the sensor pin
const int Sensor5 = 6;     // the number of the sensor pin
const int Sensor6 = 7;     // the number of the sensor pin
const int Sensor7 = 8;     // the number of the sensor pin
const int Sensor8 = 9;     // the number of the sensor pin
const int motor1 =  10;      // the number of the Motor pin
const int motor2 =  11;      // the number of the Motor pin
const int motor3 =  12;      // the number of the Motor pin
const int motor4 =  13;      // the number of the Motor pin

// variables will change:
int sensor1 = 0;         // variable for reading the sensor status
int sensor2 = 0;         // variable for reading the sensor status
int sensor3 = 0;         // variable for reading the sensor status
int sensor4 = 0;         // variable for reading the sensor status
int sensor5 = 0;         // variable for reading the sensor status
int sensor6 = 0;         // variable for reading the sensor status
int sensor7 = 0;         // variable for reading the sensor status
int sensor8 = 0;         // variable for reading the sensor status

void setup() {
  // initialize the motor pin as an output:
  pinMode(motor1, OUTPUT);
  pinMode(motor2, OUTPUT);
  pinMode(motor3, OUTPUT);
  pinMode(motor4, OUTPUT); 
  // initialize the sensor pin as an input:
  pinMode(sensor1, INPUT);
  pinMode(sensor2, INPUT);
  pinMode(sensor3, INPUT);
  pinMode(sensor4, INPUT);
  pinMode(sensor5, INPUT);
  pinMode(sensor6, INPUT);
  pinMode(sensor7, INPUT);
  pinMode(sensor8, INPUT); 
}

void loop(){
  // read the state of the sensor value:
  buttonState = digitalRead(buttonPin);

  // check if the pushbutton is pressed.
  // if it is, the buttonState is HIGH:
  if (buttonState == HIGH) {     
    // turn LED on:   
    digitalWrite(ledPin, HIGH); 
  }
  else {
    // turn LED off:
    digitalWrite(ledPin, LOW);
  }
}

and ya please try to explain in as much as possible coz i am mechanical engineer and m not much aware abt some basic things....  smiley-grin
7  Using Arduino / Project Guidance / Re: LINE FOLLOWER ROBOT on: March 12, 2014, 07:37:40 am
i am going to use dc motor.

how to control speed via coding .???
8  Using Arduino / Project Guidance / Re: LINE FOLLOWER ROBOT on: March 11, 2014, 06:46:44 am
Any one ????
9  Using Arduino / Project Guidance / LINE FOLLOWER ROBOT on: March 09, 2014, 01:22:37 pm
Hi,

Can any one help me to make line follower robot using arduino.

i have purchased below items. also found code from one site but i dont know how to use below code for my ir array.

Arduino board.  - http://www.ifuturetech.org/product/arduino-nano/
 IR Array - http://probots.co.in/index.php?main_page=product_info&cPath=9&products_id=456
BO motor - http://www.ifuturetech.org/product/bo-2/
L293D Driver kit - http://www.ifuturetech.org/product/l293d-motor-driver/

Found code from one site but i dont know how to use this code for my ir array.  i dont know how to replace PololuQTRSensors.h for my project , see below code. can any one help me to modify below code so i can use with exiting parts.

 
Code:
#include <PololuQTRSensors.h>
// motor driver pin
#define out_STBY 6
#define out_B_PWM 9
#define out_A_PWM 3
#define out_A_IN2 4
#define out_A_IN1 5
#define out_B_IN1 7
#define out_B_IN2 8
#define motor_A 0
#define motor_B 1
#define motor_AB 2

#define NUM_SENSORS 8 // number of sensors used - numero di sensori usati
#define TIMEOUT 2500 // waits for 2500 us for sensor outputs to go low - aspetta 2500 us prima di mandare low i sensori
  //define QTR pololu sensor
PololuQTRSensorsRC qtrrc((unsigned char[]) {2, 12, 11, 10, 17, 16, 15, 14}
 , NUM_SENSORS, TIMEOUT, 255);
unsigned int sensors[NUM_SENSORS];
  void setup()
{
  Serial.begin(115200);
  // define motor drive output pin - definisci i pin di output del motore
  pinMode(out_STBY,OUTPUT);
  pinMode(out_A_PWM,OUTPUT);
  pinMode(out_A_IN1,OUTPUT);
  pinMode(out_A_IN2,OUTPUT);
  pinMode(out_B_PWM,OUTPUT);
  pinMode(out_B_IN1,OUTPUT);
  pinMode(out_B_IN2,OUTPUT);
  motor_standby(false);// motor stand-by off and stop - togli i motori dallo stand-by e fermali
  stopMotors();
  delay(2000);
  SensorCalibration(); // sensor calibration - calibra i sensori
  delay(2000);
}

void loop()
{
  follow_segment(); // follow the black line - segui la linea nera
}
// PID parameters
int Kp=120;
int Ki=100;
int Kd=100;
// follow the black line - segui la linea nera
void follow_segment()
{
  int last_proportional = 0;
  long integral=0;
  int primo=0;
  int posizione = qtrrc.readLine(sensors); // read the IR sensors - leggi i sensori IR
  long int proportional = posizione;
  int P = proportional * Kp/1000; // Proportional parameter
  long int derivative = proportional - last_proportional; //Derivative parameter
  if (primo==0) // firt cycle set derivative to zero - al primo giro imposta il derivativo a zero
     {
      primo=1;
      derivative=0;
    }
  int D=derivative*Kd/1000;
  integral += proportional;
  int I=integral*Ki/1000; //integral parameter
  // Remember the last position - ricorda l'ultima posizione
  last_proportional = proportional;
  int PID =P + I + D; //calculate the PID
  // print some values on the serial port - scrivi qualche valore sulla seriale
  unsigned char zz;
   for (zz = 0; zz < NUM_SENSORS; zz++)
    {
      Serial.print(sensors[zz]);
      Serial.print(' ');
    }
    Serial.print(" position: ");
    Serial.print(posizione);
    Serial.print(" P:");
    Serial.print(P);
    Serial.print(" I:");
    Serial.print(I);
    Serial.print(" D:");
    Serial.print(D);
    Serial.print(" PID:");
    Serial.print(PID);
  // set the values for the motors based on the PID gain - setta i valori del motore basati sul PID
    const int maximum = 40; // the maximum speed
     if (PID > 0){
       if (PID > maximum) PID=maximum;
       motor_speed2(motor_B,maximum);
       motor_speed2(motor_A,maximum-PID);
      Serial.print(" Motore_B:");     Serial.print(maximum);
    Serial.print(" Motore_A:");      Serial.print(maximum-PID);
      }
      else {
       if (PID < -maximum) PID=-maximum;
       motor_speed2(motor_B,maximum+PID);
        motor_speed2(motor_A,maximum);
      Serial.print(" Motore_B:");     Serial.print(maximum+PID);
    Serial.print(" Motore_A:");      Serial.print(maximum);
      }
      Serial.println("");
}
// ------------------ stop the robot - ferma il robottino -----------------------
void stopMotors(){
  motor_brake(motor_A);
  motor_brake(motor_B);
}
// ------------------ Motor driver mgmt routines - routine per gestire i motori -----------------------
void motor_speed2(boolean motor, char speed) { //speed from 0 to 100
  if (motor == motor_A)
   speed = -speed;
  byte PWMvalue=0;
  PWMvalue = map(abs(speed),0,100,50,255); //anything below 50 is very weak
  if (speed > 0)
    motor_speed(motor,0,PWMvalue);
  else if (speed < 0)
    motor_speed(motor,1,PWMvalue);
  else {
    motor_coast(motor);
  }
}
void motor_speed(boolean motor, boolean direction, byte speed) { //speed from 0 to 255
  if (motor == motor_A) {
    if (direction == 0) {
      digitalWrite(out_A_IN1,HIGH);
      digitalWrite(out_A_IN2,LOW);
    } else {
      digitalWrite(out_A_IN1,LOW);
      digitalWrite(out_A_IN2,HIGH);
    }
    analogWrite(out_A_PWM,speed);
  } else {
    if (direction == 0) {
      digitalWrite(out_B_IN1,HIGH);
      digitalWrite(out_B_IN2,LOW);
    } else {
       digitalWrite(out_B_IN1,LOW);
      digitalWrite(out_B_IN2,HIGH);
    }
    analogWrite(out_B_PWM,speed);
  }
}
// stand-by motor
void motor_standby(boolean state) { //low power mode
  if (state == true)
    digitalWrite(out_STBY,LOW);
  else
    digitalWrite(out_STBY,HIGH);
}
// stop the motors
void motor_brake(boolean motor) {
  if (motor == motor_A) {
    digitalWrite(out_A_IN1,HIGH);
    digitalWrite(out_A_IN2,HIGH);
  } else {
    digitalWrite(out_B_IN1,HIGH);
    digitalWrite(out_B_IN2,HIGH);
  }
}
// motors coast - fai girare i motori in folle
void motor_coast(boolean motor) {
  if (motor == motor_A) {
    digitalWrite(out_A_IN1,LOW);
    digitalWrite(out_A_IN2,LOW);
    digitalWrite(out_A_PWM,HIGH);
  } else {
    digitalWrite(out_B_IN1,LOW);
     digitalWrite(out_B_IN2,LOW);
    digitalWrite(out_B_PWM,HIGH);
  }
}
// IR sensor calibration
void SensorCalibration() {
  int counter, i;
  for (counter=0; counter<40; counter++)
  {
    if (counter < 10 || counter >= 30) {
      motor_speed2(motor_A,10);
      motor_speed2(motor_B,-10);
    }
    else   {
      motor_speed2(motor_A,-10);
      motor_speed2(motor_B,10);
    }
    qtrrc.calibrate();
    // Since our counter runs to 80, the total delay will be
    // 80*20 = 1600 ms.
    delay(20);
  }
     // print the calibration minimum values measured when emitters were on
    for (i = 0; i < NUM_SENSORS; i++)
  {
    Serial.print(qtrrc.calibratedMinimumOn[i]);
    Serial.print(' ');
  }
  Serial.println();
    // print the calibration maximum values measured when emitters were on
  for (i = 0; i < NUM_SENSORS; i++)
  {
    Serial.print(qtrrc.calibratedMaximumOn[i]);
    Serial.print(' ');
  }
  Serial.println();
  Serial.println();
  stopMotors();
  delay(2000);
}
10  Using Arduino / Networking, Protocols, and Devices / GPS Gtop010 on: February 28, 2014, 06:30:55 am
Hi,

I have purchase GPS sensor form this site.

http://www.ifuturetech.org/product/gps-module/

can anyone guide me to connect GPS to arduino??

i am first time using GPS module.

Chetan
11  Using Arduino / Project Guidance / Re: GSM MODEM WITH STANDALONE ARDUINO on: August 08, 2013, 10:35:28 am
Yes Dear,

Ground connected
12  Using Arduino / Project Guidance / Re: GSM MODEM WITH STANDALONE ARDUINO on: August 02, 2013, 09:30:22 am
ok..
13  Using Arduino / Project Guidance / Re: GSM MODEM WITH STANDALONE ARDUINO on: August 02, 2013, 08:42:04 am
From here ..

http://arduino.cc/en/Main/Standalone

i made on pcb, please have look on arduino image(in my first post)
14  Using Arduino / Project Guidance / Re: GSM MODEM WITH STANDALONE ARDUINO on: August 02, 2013, 08:35:09 am
by 12v adopter.

GSM modem working perfectly with arduino board.
15  Using Arduino / Project Guidance / Re: GSM MODEM WITH STANDALONE ARDUINO on: August 02, 2013, 05:53:51 am
Oh,,

i have connected resistor at back side,

not working means,

i am not getting any message/output by stand alone atduino.

other examples are working perfectly.
Pages: [1] 2 3 4