Show Posts
Pages: [1] 2 3 ... 267
1  Using Arduino / Microcontrollers / Re: L293DNE Hbrdge on: July 30, 2014, 11:32:41 pm
I forget the exact details, but I think there may have been a short to ground on one of the output pins.

So 4 pins out of 16 isn't enough grounding for you then?
2  Using Arduino / Project Guidance / Re: Controlling a 9 Volt Motor Via Transistor on: July 30, 2014, 11:19:00 pm
Assuming you have an NPN transistor (you don't say what it is), this will might help.
3  Using Arduino / Microcontrollers / Re: How to stop program? on: July 30, 2014, 10:05:52 pm
I don't think the OP was asking about having the old program run before he uploads the new one, CB. I read it that he didn't want the program to run until he wanted it to, perhaps in case the environment wasn't ready for it, hence his loopy code waiting for a button.

The below is similar, as suggested by CrossRoads a few days ago:

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
}

But if he DID mean that he's worried the old code shouldn't run while he's prepping the hardware for the next project, then yep I agree, clean the board with BareMinimum.
4  Using Arduino / Project Guidance / Re: RTC on: July 30, 2014, 11:27:30 am
Can the RTC activate a servo motor at certain times during the day?

No.


BUT.... the Arduino can look at the time over and over, so the ARDUINO can activate the servo when the time is right.
5  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.
6  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.
7  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?
8  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
9  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....
10  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;
11  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
12  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?
13  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 ***
}
14  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
}
15  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"?

Pages: [1] 2 3 ... 267