Show Posts
Pages: 1 2 [3] 4 5 ... 14
31  Using Arduino / Programming Questions / Re: increase count by only 1 on: June 21, 2013, 09:34:23 pm
I was thinking of something like this:

Code:
At beginning...
Bool FirstTime;

In Setup...
FirstTime = true;

In loop...
if ((AUX3Val > 1700) && (GearVal < 1500)) {

  if (FirstTime) {
    WingFoldCount++;
    FirstTime = false;
  }

  Count=0;
}
else {
  FirstTime = true;  // reset flag
}
32  Using Arduino / General Electronics / Re: Arduino to power LED kit?? on: June 21, 2013, 09:24:22 pm
Hi Shadow,

That's a pretty big bite for a first project with no experience...  You might try some simpler circuits at your kitchen table with transistors and LEDs first.

What's your proficiency re the Arduino?

Pat.
33  Using Arduino / General Electronics / Re: pot wiring on: June 21, 2013, 09:20:36 pm
Yep, that's the way most people do it, for that very reason.
34  Using Arduino / Motors, Mechanics, and Power / Re: Servo with Transistor problem. on: June 21, 2013, 09:18:44 pm
Hi carloskr,

Does it still try to move if you stop sending it pulses?  You may be able to use an if statement to create a dead zone around 0 / center that doesn't send anything.

Pat.
35  Using Arduino / Programming Questions / Re: increase count by only 1 on: June 21, 2013, 09:13:13 pm
Hi grantastley,

You should probably include your code (in code blocks - paste your code into a reply, select it, then select the # button on the toolbar above).

Anyway, what you really need to do here is include a flag variable that indicates whether you've already incremented the Count, and if so, don't do it again (in an if statement).

Pat.
36  Using Arduino / General Electronics / Re: pot wiring on: June 21, 2013, 09:08:44 pm
Right, it has to do with whether you want the pot turned "all the way right" (i.e., clockwise) to be 5V or 0V.

Pat.
37  Using Arduino / General Electronics / Re: Arduino To Trigger Transistor - Resistor Needed? on: June 21, 2013, 08:03:02 am
Quote
I was under the impression that the transistor would be open, no power flow, if no power was applied and closed, power flowing, when power was applied to the base. However I am experiencing the opposite. Anything I can do to change this? I'm guessing not.

That's true for an NPN type.  I think I saw that you are using a PNP type, which is consistent with what you're seeing, per dc's note.

You would need to re-layout your circuit differently for an NPN (not difficult - google "transistor as a switch").

Pat.
38  Using Arduino / Project Guidance / Re: Voltage Sensor. on: June 20, 2013, 08:07:18 pm
The fact that you can reliably read the 5V indicates that the code and Arduino are ok.

The random readings are expected when the pin is not connected to anything - this is called floating, and is caused by electrical noise, which can be fixed by a pull-up or pull-down resistor (10k resistor connected to +5v or Gnd).

That all said, it sounds like your sensor isn't doing what you expect it to do.  Do you have a spec for it? How do you know it takes 5v and not 12?
39  Using Arduino / Project Guidance / Re: Voltage Sensor. on: June 20, 2013, 07:25:27 pm
I'm not familiar with that sensor.  You can try a quick experiment to make sure the code and Arduino are reading voltages correctly by connecting a 1.5v battery: negative to Gnd and positive A15 instead of the sensor. You should get a solid reading.  Maybe try connecting the Arduino +5v to A15 also, to be complete.

What readings do you get?

Pat.
40  Using Arduino / Project Guidance / Re: Voltage Sesor. on: June 20, 2013, 07:11:05 pm
Hi dycero,

Two quick questions:

1) what sensor are you using, and can we see the code you're using to read it?
2) are you sure that the shield isn't interfering, or using, the pin?

Pat.
41  Using Arduino / General Electronics / Re: Arduino To Trigger Transistor - Resistor Needed? on: June 20, 2013, 06:48:48 pm
So, I've got to ask...  Why are you driving the sensor from a GPIO pin? Do you need to turn it on and off for some reason under program control?  I usually just connect the sensor input voltage to the +5v supply.

Also, the data sheet advertises a "Low 3.4mA average current requirement." I didn't see the 100mA spec.  Maybe I overlooked it...

Pat.
42  Using Arduino / Programming Questions / Re: Robot WOnt Move! on: June 20, 2013, 06:30:14 pm
Hi 111,

So.... What does it do?
43  Community / Gigs and Collaborations / Re: Will pay for help with Ardunio-controlled siren project on: June 19, 2013, 09:30:36 pm
Quote
My thinking was that the backup battery would ensure the alarm goes off even if the lines are cut.

Does your battery backup also protect the wifi and Internet access? If not, you should consider the GSM option.
44  Using Arduino / Project Guidance / Re: DIY Game Show Buzzer on: June 18, 2013, 09:22:40 pm
Quote
this will be my first diy project with the arduino uno

Welcome!  This is probably too ambitious for a first project. I suggest you tinker around with LEDs and switches for a little bit to get the hang of writing sketches first.  There are a lot of resources on this forum for those wanting to learn.

How much coding experience have you got?

Of course we're all here to help you if you run into trouble.
45  Community / Gigs and Collaborations / Re: Programing Code Assistance For Led Mouth on Ten Foot Costume on: April 20, 2013, 09:14:14 pm
Hi jbuss,

Sounds like a great project!

Quote
I do hate to ask, but if anyone has the code or knows the code for this to work

Just a few thoughts...

1. You'll need to be more specific about what you would like the Arduino to do.  We'd like to help, but are not quite sure what you are trying to do.
2. I doubt that anyone has created exactly what you are creating, so there won't be any code around for you to use.  You'll have to write most of yourself, although there will likely be many examples you can copy.
3. What programming experience do you have?

Pat.
Pages: 1 2 [3] 4 5 ... 14