Show Posts
Pages: 1 ... 39 40 [41] 42 43 ... 294
601  Using Arduino / Motors, Mechanics, and Power / Re: HELP !! I NEED HELP !!! on: June 30, 2014, 10:19:32 pm
looks to be German.

Dutch, actually.
602  Using Arduino / Project Guidance / Re: Help with PIR Motion Sensor/GPRS on: June 30, 2014, 12:15:13 pm
Ok that's a weird one, because I've never seen that String.h in an include before, and as I say it compiled for me without consciously installing that String.h.

I'm wondering if it's an Arduino version thing, but sorry, I can't advise.
603  Using Arduino / Project Guidance / Re: Help with PIR Motion Sensor/GPRS on: June 30, 2014, 11:38:49 am
Did you install the library for the cap sensor?

I did, and the code verifies error-free for me.

edit: Gives "sensor_sentinel:93: error: 'CapacitiveSensor' does not name a type" otherwise.
604  Using Arduino / Programming Questions / Re: need a delay on a release of a button on: June 30, 2014, 10:47:09 am
Quote
i'v tried to use millis but the result was not the expected

the "delay" incresed with the time of the pressed button

You probably read millis() when the button became pressed: you probably need to read millis() and start the timer when the button becomes released.
605  Using Arduino / Programming Questions / Re: need a delay on a release of a button on: June 30, 2014, 10:23:02 am
hello i'm a noob and I'v looked everywere and i cant solve this problem


Well no, it's unlikely that you would find an answer to that specific problem. What did you find and what code have you come up with so far?
606  Community / Bar Sport / Students caught out.... on: June 30, 2014, 10:00:27 am
I was at my favourite supplier on the way home and he told me this salutary story:

Seems a few uni students were in the shop a while ago, buying parts for a project. Another punter offered to do the work for them, for a suitable financial consideration. The students accepted.

Unbeknownst to them all, two further customers, who heard the whole exchange, were lecturers at the same uni.... Those students were expelled, and the guy's work was traced back to so 50 other projects.

Justice prevailed.
607  Using Arduino / Project Guidance / Re: Help with servo (first time use) on: June 30, 2014, 07:32:39 am
I don't think a continuous rotation "servo" can be sent to a position: that functionality is essentially removed when it's made into continuous rotation device.

You're going to need a new "real" servo, I reckon.
608  Using Arduino / Programming Questions / Re: What is destroying my arduinos? on: June 30, 2014, 04:53:15 am
What were / are the PWMs driving?- maybe something drawing too much current, or you got zapped by an inductive load with no flyback diode?

Or you fed to many volts into the Arduino's power supply?

Circuit pic might help. Might be too late to save those boards but might prevent killing another one.
609  Using Arduino / Motors, Mechanics, and Power / Re: HELP !! I NEED HELP !!! on: June 30, 2014, 04:41:58 am
More or less correct, but you have it spinning in a circle I think, since the two motors are never at the same speed.

Perhaps change all the writes to analog , and make sure both motors are at same speed and correct direction for straight line.

But in any case, since this is a school assignment I've probably said too much already.....
610  Using Arduino / Programming Questions / Re: L293d Dual Motor Control on: June 30, 2014, 03:36:57 am
http://people.mech.kuleuven.be/~dvanthienen/soiree_pratique/HackerManual.pdf

Here' the link for the circuit diagram. Please take a look.

Apply your mind; have a look at the photo in that pdf.... One motor has pink wires from Arduino, one has blue. So trace back to the pin numbers on Arduino, and adjust / add code as appropriate. Hint: kind of double-up the code but on a new set of pins.
611  Using Arduino / Motors, Mechanics, and Power / Re: HELP !! I NEED HELP !!! on: June 30, 2014, 03:32:21 am
Info: I'm given a task by my professor. My job is to modify this code to make both motors to funtion at the same period of time such as : Going forward, Going backward/Reverse. Can somebody help me ? Below is the link for circuit diagram ( Link: http://people.mech.kuleuven.be/~dvanthienen/soiree_pratique/HackerManual.pdf)


Apply your mind; have a look at the photo in that pdf.... One motor has pink wires from Arduino, one has blue. So trace back to the pin numbers on Arduino, and adjust / add code as appropriate. Hint: kind of double-up the code but on a new set of pins.
612  Using Arduino / Motors, Mechanics, and Power / Re: HELP !! I NEED HELP !!! on: June 30, 2014, 01:54:54 am
And you should select your code before you hit the # key.

You have this:

Code:

.... but you really

Code:
want this.

So, you guys in the same class?- http://forum.arduino.cc/index.php?topic=252236
613  Using Arduino / Project Guidance / Re: Uuuuuubbbber Newbie on: June 30, 2014, 01:38:06 am
one quick question….. Which part should I start w. first? (i.e. is there a specific order I should do things?)
lights then sound then alarm?

I doubt it makes a huge amount of difference.

To me, it's important to get the design right as early as possible, the philosophy, the approach, whatever you want to call it. Otherwise you run the risk, in a relatively complex project like this, of getting part A right in isolation but find it prevents you doing part B without undoing half of part A.

Also, I strongly advise getting Blink Without Delay under your belt asap. Blink (with delay) is one of the things you are likely to learn first in any tutorials, and it tends to lead to "ah, i'll just do this with delay()" approach in everything. That's one of the things that will scupper you later, when A works with delay() but you then can't do B at the same time.

Edit.... This is a very useful video. It shows Blink Without Delay being used to time 2 things independently.
614  Using Arduino / Programming Questions / Re: L293d Dual Motor Control on: June 29, 2014, 11:48:37 pm
http://people.mech.kuleuven.be/~dvanthienen/soiree_pratique/HackerManual.pdf

Here' the link for the circuit diagram. Please take a look.

I'm just leaving home for work.... will try to get a gap later.
615  Using Arduino / Programming Questions / Re: L293d Dual Motor Control on: June 29, 2014, 11:23:11 pm
For simple testing, but probably not for real life with all those delays as already pointed out, you can simply duplicate the code for another motor. Probably best to use variable names for the pins, easier to keep track of.

Btw on a Uno pins 7 and 8 are not PWM as your comment says: but then you didn't say what board you have.

Anyway, where you have this:

Code:
pinMode(5, OUTPUT);//Motor aangesloten op pin 7 en 8, deze zijn PWM capable
 pinMode(6, OUTPUT);

.... you could add another motor on say pins 10 and 11:

Code:
pinMode(5, OUTPUT);//Motor aangesloten op pin 7 en 8, deze zijn PWM capable
 pinMode(6, OUTPUT);
 pinMode(10, OUTPUT);//Motor aangesloten op pin 7 en 8, deze zijn PWM capable
 pinMode(11, OUTPUT);

Connect pins 10 and 11 to the unused input pins on the L293 (we don't know which ones you used: you should post a schematic), and the second motor on the unused output pins (we don't know which ones you used: you should post a schematic).

Then lines like this for an existing motor:

Code:
analogWrite(5, 128);

.... become like this for the new one:

Code:
analogWrite(10, 128);


Pages: 1 ... 39 40 [41] 42 43 ... 294