Show Posts
|
|
Pages: 1 ... 3 4 [5] 6 7 ... 118
|
|
63
|
Using Arduino / General Electronics / [ANSWERED] RTC: how important is the capacitance of the crystal?
|
on: May 10, 2013, 07:46:37 am
|
Hi gang.... I went to get a DS1307 RTC and the required 32.768kHz 12.5pF crystal. They didn't have a 1307, so I took a 1302 instead.... I know the interfacing is different and have found a library for it. BUT.... only when I got home did I realise that the 1302 requires a 32.768kHz crystal of 6pF, but I had purchased one of 12.5pF. Is that likely to be a problem? (Confession: I don't even know what it means for a crystal to have a capacitance, although I do know what a capacitor is...  ) TIA, Jim
|
|
|
|
|
64
|
Using Arduino / Motors, Mechanics, and Power / Re: Motor Shield R3 No Torque
|
on: May 10, 2013, 01:36:09 am
|
|
You should check the voltage at the shield output.
Check the datasheet for the L298 chip: it loses a minimum of 1.8V, rising to a loss of 3.2V at 1A and 4.9V at 2A. Your 7.4V battery will therefore at best be giving 5.6 which would be ok for the 6V motor I guess BUT it depends what the no load current of the motors are.
If you have an ammeter, hook the motor to the battery and measure the no load current... double that for two motors, and if you're up in the vicinity of 1 amp you may well be shy of voltage at the motors. (Edit... or check the motor datasheet) (More edit... and of course the voltage loss will increase when the motor is under load and requires more current.)
|
|
|
|
|
65
|
Using Arduino / Motors, Mechanics, and Power / Re: second servo does not turn but vibrates
|
on: May 09, 2013, 10:30:55 pm
|
Sounds like a power issue. Do you use the 5V pin of the Arduino to power the servos ? The 5V pin can not supply enough current, not even for one servo. You need a seperate power supply of 4.8 to 6V for the servos.
OP already said this.... Also the servos are powered separately. (not via arduino board.)
|
|
|
|
|
70
|
Using Arduino / Motors, Mechanics, and Power / Re: second servo does not turn but vibrates
|
on: May 09, 2013, 09:09:28 am
|
|
That code looks ok to me- I don't see anything obviously wrong.
So two suggestions:
Enable Serial and add some serial.print lines so you can (for example) see the changes in val2 so you can see it's doing anything Swop the wiring for the pots so you can see if they both actually work, ditto for the servos.
|
|
|
|
|
73
|
Using Arduino / Project Guidance / Re: RC Timer servo--why it just runs when give it power
|
on: May 08, 2013, 10:27:56 pm
|
--->rather from its own supply with the ground from the servo linked to the Arduino ground. This is why I hesitated to connect servo to other supply. I read your line in a book but don't quite understand it. I have attached my board, could you please check my comment in there is correct way of connecting the breadboard for servo power? Many thanks in advance.
I connect this servo to arduino board's 5v slot, do you mean that slot does not have enough power to run this servo? If so, why does it just turn randomly (back and forth)? Ok, so it seems you have connected the servo to the Arduino for power.... all sorts of weird behaviour seems to happen when that's how servos are hooked up. And of course it may damage the Arduino... Have a look at the pic I've attached... note that the Arduino is powered in whatever way suits you, the servo has its own power, and the servo ground is connected to the Arduino ground. Yellow to Arduino i/o pin, of course.
|
|
|
|
|
75
|
Using Arduino / Project Guidance / Re: RC Timer servo--why it just runs when give it power
|
on: May 08, 2013, 12:47:57 am
|
You don't need this line: pinMode(LEFTFRONTSERVOPIN, OUTPUT); //sets the left servo signal pin to output .... but I have no idea if it being there will make the servo do what you describe. How is it powered?- always better not to have it powered from the Arduino; rather from its own supply with the ground from the servo linked to the Arduino ground.
|
|
|
|
|