Loading...
  Show Posts
Pages: [1] 2 3 ... 6
1  Using Arduino / Project Guidance / Re: How to make a quadcopter! on: April 15, 2013, 12:16:31 pm
tnx replay but i didn't get what i wanted!
2  Using Arduino / Project Guidance / How to make a quadcopter! on: April 15, 2013, 08:28:00 am
hello there
i want to make a quad-copter starting from zero, i have some experience in electronic and i'm good at Arduino.
i don't what to buy and where to buy the materials?
can anyone help me?
thanks smiley
3  Topics / Device Hacking / how can i run arduino IDE on android? on: February 20, 2013, 11:36:07 am
hello
i want to upload code directly from android to arduino?
can they talk to each other
i saw some post that talked about running Arduino IDE in android by linux version
thanks for replay
best regards
4  Using Arduino / Sensors / Re: Problem with connecting and reading value from MQ - 4 to arduino on: February 05, 2013, 09:17:52 am
i found the solution tnx, now it is working
5  Using Arduino / Sensors / Re: Problem with connecting and reading value from MQ - 4 to arduino on: February 05, 2013, 09:11:23 am
but what about H1??
6  Using Arduino / Sensors / Re: Problem with connecting and reading value from MQ - 4 to arduino on: February 05, 2013, 09:08:09 am
thanks for replay smiley
7  Using Arduino / Sensors / Re: Problem with connecting and reading value from MQ - 4 to arduino on: February 05, 2013, 08:20:02 am
I used this breakout board
https://www.sparkfun.com/products/8891
8  Using Arduino / Sensors / Problem with connecting and reading value from MQ - 4 to arduino on: February 05, 2013, 08:15:00 am
I got a  MQ - 4 sensor and breakout board,
the data sheet of the breakout board is like that:
GND -------------- gnd of arduino
B1 ---------------- ???????
H1----------------????????
A1 ----------------?????????
Please if you know which pin i should connect them please replay
i searched internet and read the datasheet but i couldn't get any information for that pins.
and i got this code online for reading value:
Code:
int sensorValue;

void setup()
{
  Serial.begin(9600);      // sets the serial port to 9600
}

void loop()
{
  sensorValue = analogRead(0);       // read analog input pin 0
  Serial.println(sensorValue, DEC);  // prints the value read
  delay(100);                        // wait 100ms for next reading
}
best regards
9  Using Arduino / Programming Questions / Re: HMC6352 compass converting degrees to direction problem? on: February 01, 2013, 02:56:46 pm
thanks for the idea but i can't do it?
10  Using Arduino / Programming Questions / Re: HMC6352 compass converting degrees to direction problem? on: February 01, 2013, 02:52:49 pm
li didn't understand . can u make it clearly?
11  Using Arduino / Programming Questions / Re: HMC6352 compass converting degrees to direction problem? on: February 01, 2013, 02:41:38 pm
Code:
if (value > 68 && value < 112) {
    Serial.println("E");
  }
    if (value > 23 && value < 67) {
    Serial.println("NE");
  }
   if (value > 338 && value < 22) {
    Serial.println("N");
  }
   if (value > 293 && value < 337) {
    Serial.println("NW");
  }
   if (value > 248 && value < 292) {
    Serial.println("W");
  }
   if (value > 202 && value < 247) {
    Serial.println("SW");
  }
   if (value > 158 && value < 201) {
    Serial.println("S");
  }
   if (value > 113 && value < 157) {
    Serial.println("SE");
  }
And i get
Code:
SE
SE
SE
SE
E
E
E
E
E
E
NE
NE
NE
NE
NW
12  Using Arduino / Programming Questions / Re: HMC6352 compass converting degrees to direction problem? on: February 01, 2013, 02:37:28 pm
thanks it is workings smiley
Code:
107E
107E
106E
106E
106E
100E
86E
69E
62503726208103336506377E
88E
94E
101E
103E
104E
112124135134134133134132133133132133132132134132132132132132132132132132132135
13  Using Arduino / Programming Questions / Re: HMC6352 compass converting degrees to direction problem? on: February 01, 2013, 02:35:38 pm
&& can't be if one if them true it will be true
14  Using Arduino / Programming Questions / Re: HMC6352 compass converting degrees to direction problem? on: February 01, 2013, 02:31:40 pm
Code:
101E
101E
102E
98E
15  Using Arduino / Programming Questions / HMC6352 compass converting degrees to direction problem? on: February 01, 2013, 02:23:45 pm
hello everyone
i want to covert to the value of the degree to direction
Code:
//All this does is read the heading from HMC6352 and spit it out via serial

#include <Wire.h>
int HMC6352SlaveAddress = 0x42;
int HMC6352ReadAddress = 0x41; //"A" in hex, A command is:

int headingValue;

void setup(){
  // "The Wire library uses 7 bit addresses throughout.
  //If you have a datasheet or sample code that uses 8 bit address,
  //you'll want to drop the low bit (i.e. shift the value one bit to the right),
  //yielding an address between 0 and 127."
  HMC6352SlaveAddress = HMC6352SlaveAddress >> 1; // I know 0x42 is less than 127, but this is still required

  Serial.begin(9600);
  Wire.begin();
}

void loop(){
  //"Get Data. Compensate and Calculate New Heading"
  Wire.beginTransmission(HMC6352SlaveAddress);
  Wire.write(HMC6352ReadAddress);              // The "Get Data" command
  Wire.endTransmission();

  //time delays required by HMC6352 upon receipt of the command
  //Get Data. Compensate and Calculate New Heading : 6ms
  delay(6);

  Wire.requestFrom(HMC6352SlaveAddress, 2); //get the two data bytes, MSB and LSB

  //"The heading output data will be the value in tenths of degrees
  //from zero to 3599 and provided in binary format over the two bytes."
  byte MSB = Wire.read();
  byte LSB = Wire.read();

  int headingSum = (MSB << 8) + LSB; //(MSB / LSB sum)
  headingSum = headingSum / 10;
int value = headingSum ;
Serial.print(headingSum);

  if (value > 68 || value < 112) {
    Serial.println("E");
  }
   

  delay(500);
}
but the result are wrong  the if statement doesn't work
any one can help me?
thanks for replaying
Pages: [1] 2 3 ... 6