Show Posts
Pages: 1 ... 3 4 [5] 6 7 ... 304
61  Using Arduino / General Electronics / Re: Are momentarily shorted batteries still safe to use? on: August 30, 2014, 01:20:39 am
Those 4-pin square switches are a curse.....
62  Using Arduino / Programming Questions / Re: Thankyou on: August 30, 2014, 01:16:46 am
Thank you JimboZA, my program and circuit works now.

int counter = 0;   is defiantly missing from my book.  

You're welcome.

I'd be surprised if nobody already told them, but maybe you should email them....

By the way, makes it easier to read code if you put it in tags, then it:

like this

Just select the text you want to show as code, and hit the # button above  the  smiley-wink  smiley-sweat smilies.
63  Using Arduino / Programming Questions / Re: 'Beginning C for Arduino by Jack Purdum' book errors? Modified Blink program on: August 30, 2014, 12:41:05 am
Never seen the book, but easy enough to fix...

int led1 = 13;
int led2 = 12;
int counter = 0;  //<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< add this
64  Using Arduino / Programming Questions / Re: Help on: August 29, 2014, 01:57:38 pm
You could put a delay() at the end of the servo move part, with a bit of an experiment to see how long the delay is. But it's no guarantee: if the load on the servo prevented its movement, it might never reach its target but when delay was up, you would incorrectly assume it had. Aslo very inefficient but maybe that doesn't matter.

There are servos with feedback; if this is a real-life problem not just an exercise, you might consider one like this.

To combine the sketches, you basically use one as your "target", do a save as with new name, then copy the code from the other one into there. The part above setup() goes above setup() in the target, the part in setup() goes into the new setup(), and loop's code goes into loop(). Check that you don't have duplicate variable names or pin usage.
65  Using Arduino / Project Guidance / Re: short circuit with arduino on: August 29, 2014, 10:55:51 am
+5VDC will flow from one into the other.

.... except that volts don't flow  smiley-cool.

Current does though:

20mA to flow into or out of
66  Using Arduino / Motors, Mechanics, and Power / Re: setup with two stepper motors 28BYJ48 12 V on: August 29, 2014, 05:39:11 am
You should be looking for ungeared steppers, probably NEMA 17

drive stepper motors such as the NEMA 17

I wish folk would stop referring to steppers by their NEMAxx numbers as if that described their electro-mechanical characteristics. The NEMAxx number defines a motor's face shape and size, and the positioning of its mounting holes.

67  Community / Bar Sport / Arduinoes and wall light switches on: August 29, 2014, 05:10:23 am
Is it just me, or does there seem to be a spate of questions about switching room lights by Arduino, and at the same time recognise that the wall switch is now in the wrong position.

Wondering if this is a college project somewhere?
68  Community / Bar Sport / Re: Reality check - when to stop adding features on: August 29, 2014, 05:08:04 am
I didn't read all of that, must confess, way too long, so what I say below may be redundant.

Reality check - when to stop adding features

The answer must surely be, when the URS has been met. The URS dictates the project scope, and you get paid to deliver that, nothing more, nothing less.

You don't just "add" features- they're all designed in and constructed accordingly. This is true of any project, regardless of the discipline. You don't just, halfway through building a house, say "hmmmmm let's stick a swimming pool over there".

Change during the project must be managed: so if for example a new product / technique etc comes along, or the client has a whim to add something, or you as developer have such a whim, simply a matter of change request which gets rejected or approved. If approved, scope is amended, project continues.

Features do not just get added.
69  Using Arduino / Programming Questions / Re: 'check' was not declared in this scope issue on: August 29, 2014, 03:20:06 am
It might be there already, could be this one:

        else if (dataIn == 'w')
          determinant = 'w';
return determinant;
} //<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

In the IDE, when you park cursor just after a bracket of any shape, it puts a box around its partner so you can check the pairings. See attached pic, not your code though. Red line is cursor.

70  Using Arduino / Programming Questions / Re: 'check' was not declared in this scope issue on: August 29, 2014, 02:52:37 am
But "int check()" is a function, so it must be outside of loop, structured ala that link I posted.

The line "det = check()" calls the function named check, which has to be outside of loop.


void setup()
//you can call check from here

void loop()
//and you can call check from here

// and then you code check down here, below loop()
// edit.... or you can put it riiiiiight at the top, above setup() but it's more usual to go here

int check()
// blah
71  Using Arduino / General Electronics / Re: PIR sensors People Vs animals? on: August 29, 2014, 02:27:09 am
A test cat? Have you ever tried to get a cat to co-operate?
72  Using Arduino / Programming Questions / Re: 'check' was not declared in this scope issue on: August 29, 2014, 02:23:39 am
Your function "check" is missing its {}...

int check()
{   //>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>. needs this, and closing one later
  if (Serial.available() > 0)    //Check for data on the serial lines.
    dataIn = Seri
73  Using Arduino / General Electronics / Re: PIR sensors People Vs animals? on: August 29, 2014, 12:42:38 am
but it should work the same way correct?

You would need to ask your manufacturer about that. What does their datasheet say?
74  Topics / Robotics / Re: A robotic controller with built-in Arduino UNO on: August 29, 2014, 12:31:18 am
Built-in Arduino UNO R3

Do you mean that literally, or do you mean it has the functionality of an Uno?

If the former, well I wonder how you managed to fit it inside there; if the latter, you need to be careful of your wording for copyright reasons.
75  Using Arduino / General Electronics / Re: PIR sensors People Vs animals? on: August 29, 2014, 12:27:17 am
I'm reading most pir sensors can filter out between people and animals.

According to adafruit, you can set the sensitivity of their PIR module, so perhaps it could be set to ignore a cat but trigger for a human.

Pages: 1 ... 3 4 [5] 6 7 ... 304