Show Posts
Pages: 1 ... 37 38 [39] 40 41 ... 305
571  Using Arduino / Motors, Mechanics, and Power / Re: Battery dies after few seconds on: July 30, 2014, 10:02:11 am
Quote
The load is not that high I think.

Theres's only 1 way to find out: measure the current.
572  General Category / General Discussion / Re: Original or clone? on: July 30, 2014, 04:22:02 am
And also, btw, that DFR LCD shield is the one mentioned in the sticky at the top of the displays forum: mine falls foul of the test.
573  Using Arduino / Programming Questions / Re: what is the difference between char and int and why can you not convert them? on: July 30, 2014, 02:56:48 am
Quote
pointers are difficult and pointless

But then they would be called pointlessers or pointerlesses, surely?
574  General Category / General Discussion / Re: Original or clone? on: July 30, 2014, 01:26:51 am
Clone.  The original doesn't have the reset button in the upper left corner.  There should be a blank area there for a label.

But John, the pics on this very site show the R3 has the reset button top left....

http://arduino.cc/en/Main/ArduinoBoardUno
575  Using Arduino / Programming Questions / Re: Conversion of angle on: July 30, 2014, 01:12:39 am
I don't think anyone actually understands your question....
576  Community / Website and Forum / Re: Unread posts not showing on: July 30, 2014, 01:11:20 am
I've had  this in my bookmarks bar for some time:

http://forum.arduino.cc/index.php?action=unread;boards=2,3,4,5,6,7,8,9,10,11,12,66,67,14,15,18,24,25,29,1;
577  Using Arduino / Storage / Re: I2C communication problem on: July 29, 2014, 11:29:34 pm
Wondering why you posted twice....  if it was to put the code tags round the code, you could have chosen Modify and fixed this one.


I posted in the other thread
578  Community / Website and Forum / Re: Unread posts not showing on: July 29, 2014, 11:22:34 pm
Quote
Its not supposed to show all of them, just the ones in a certain time frame.

Yeah I was starting to see that it had to do with time. I was wondering if it had to do with my being on and off line, couldn't see a pattern. Thanks, I'll try the &all.

Edit: I went from 9 to 150 pages so yep that works thanks.

Do you have any idea what the "certain time frame" is, though?
579  Using Arduino / Storage / Re: I2C communication problem on: July 29, 2014, 11:19:34 pm
My I2C EEPROM usage is limited to lifting some code from the Playground, and adding one line as suggested by forum member cattledog.

I think the whole write thing needs to be wrapped in a begin/end transmission as below. I may be wrong, but that's the way the code in the playground works. The code below is a function but you could put the begin, end and delay into your in-line code.

Code:
// below is the write function, untouched from playground, except ***
void i2c_eeprom_write_byte( int deviceaddress, unsigned int eeaddress, byte data ) {
  int rdata = data;
  Wire.beginTransmission(deviceaddress);
  Wire.write((int)(eeaddress >> 8)); // MSB
  Wire.write((int)(eeaddress & 0xFF)); // LSB
  Wire.write(rdata);
  Wire.endTransmission();
  delay(5);  //added at cattledog's suggestion ***
}
580  Using Arduino / Project Guidance / Re: Tech project help on: July 29, 2014, 10:15:55 pm
If you prefer a push button rather than delay(), CrossRoads suggested a means of "starting" a sketch in a recent thread. That particular requirement was to hold the sketch at the end of setup() before starting loop() so the following code was the very last lines in setup(). It could, I guess, be put at the top or middle of setup() if that was the requirement.

Have a pushbutton on a pin with the other side of the pin to ground. Use the  internal pullup, so the pin is high unless pushed. With the code below, it only escapes to continue once the button is pressed and the pin goes low.

Code:
//Attribution: CrossRoads
void setup(){
pinMode (pinX, INPUT_PULLUP); // button with internal pullup resistor, connect to Gnd when pressed
//other setup stuff, like Serial.begin, SPI.begin, etc.
:
:
// last thing:
while (digitalRead(pinX) == HIGH){
// hang out waiting for a LOW
}
// LOW received, proceed
}
581  Using Arduino / Programming Questions / Re: Conversion of angle on: July 29, 2014, 07:57:05 am
Maybe I'm just thick, but I don't even understand the OP's question. What does it mean, to "convert angle into +70 degree and -70 degree format"?

582  Using Arduino / Programming Questions / Re: Conversion of angle on: July 29, 2014, 07:36:31 am
Quote
I wanted to convert angle into +70degree and -70 degree format
What does that mean?
583  Community / Website and Forum / Re: Unread posts not showing on: July 29, 2014, 04:16:38 am
Send a message to webmaster at ardiuno dot cc, let them know.

Yep.... I'll try narrow down the circumstances under which it happens, first.
584  Products / The Arduino Starter Kit / Re: Pull Up/Pull Down Resisters on: July 29, 2014, 04:07:46 am
It's your choice: it depends if you want the line to go high when button is pressed (pulled down most of the time) or go low when pressed (pulled up most of the time). It's mostly a matter of how you want your logic to work.

That said:

  • It's easier to implement the Arduino built-in resistors, and those are only pullUP
  • It seems the prevailing wisdom is to have pullups rather, and then only a ground wire to the sensor rather than a 5V line in case of shorts.
585  Using Arduino / Project Guidance / Re: Mean value for wind direction on: July 29, 2014, 03:50:02 am
How about some damping of the wind vane?

Here's a patent on the matter: http://www.google.com/patents/US20120156036
Pages: 1 ... 37 38 [39] 40 41 ... 305