Show Posts
Pages: 1 ... 1068 1069 [1070] 1071 1072 ... 1906
16036  Using Arduino / Project Guidance / Re: dc motors help. on: April 25, 2012, 05:00:57 am
on/off in one direction only?
16037  Using Arduino / Programming Questions / Re: Creating a new library. Tutorial please on: April 25, 2012, 04:43:14 am
Quote
ISO C++ forbids declaration of 'Testing' with no type
Well, that's very true, it does do that.
16038  Using Arduino / Project Guidance / Re: dc motors help. on: April 25, 2012, 03:58:12 am
If you want fully solid-state control of speed and direction you'll need at least four transistors (bipolar or MOSFETS) per motor to make an H-bridge, which will also give you braking.
Or, you could do the reversing with a DPDT relay (which will still need a transistor to drive it), and the speed control could be done with a single transistor, or, more likely a Darlington pair or a logic-level MOSFET.

If this is a tracked tank, you'll need to make sure your motors are running at pretty much the same speed if they're driving different sprockets, or you'll run the risk of shedding the track.
16039  Using Arduino / Programming Questions / Re: largest array in progmem? on: April 24, 2012, 09:23:02 am
Quote
but when i try to up load to the mega if i have an array above about 500 bytes the IDE locks up
Depends on the data, but could this be another manifestation of the three consecutive ! "feature" of the bootloader?
16040  Using Arduino / Programming Questions / Re: No if's or while's in a switch case? on: April 24, 2012, 08:39:53 am
And always remember: Most programming languages will allow you to shoot yourself in the foot, but C hands you a loaded, cocked gun with a hair-trigger!
16041  Using Arduino / Motors, Mechanics, and Power / Re: servo Clock on: April 24, 2012, 07:32:37 am
Quote
I am concerned that you read some part of it as recommending 18volts into a servo.
I assumed the 18volts were being fed to the Arduino's regulator to warm up the environment.
Either way OP, don't do it.
16042  Using Arduino / Programming Questions / Re: fading LED loops, getting stuck in a for loop on: April 24, 2012, 07:20:26 am
Or even
Code:
r = random(0,256);
etc.
16043  Using Arduino / Project Guidance / Re: Problems with connecting gps module to Arduino Mega 1280 on: April 24, 2012, 07:18:48 am
The only device with that name I could find appears to be a USB device.
How have you connected it?
16044  Using Arduino / Motors, Mechanics, and Power / Re: servo Clock on: April 24, 2012, 07:15:39 am
Get a four AA cell holder with four AA cells.
Connect the black wire to your Arduino's ground, and the red wire to the servo supply wires.
Do not use 9V batteries, unless you're powering a smoke alarm.
Do not use two 9V batteries unless you're powering two smoke alarms.
16045  Using Arduino / Programming Questions / Re: No if's or while's in a switch case? on: April 24, 2012, 06:54:31 am
No, the syntax is correct, otherwise the compiler would have complained.
It's the semantics that are wrong.
16046  Using Arduino / Programming Questions / Re: No if's or while's in a switch case? on: April 24, 2012, 06:48:17 am
Code:
if (digitalRead(legsw == HIGH))
BZZZZT!
Code:
if (digitalRead(legsw == HIGH && average != (levelVal *4 )))
BZZZZT!
16047  Using Arduino / Project Guidance / Re: Problems with connecting gps module to Arduino Mega 1280 on: April 24, 2012, 06:36:17 am
You haven't said which GPS you're using, but it may be that you need RS232 level converters.
16048  Using Arduino / Programming Questions / Re: fading LED loops, getting stuck in a for loop on: April 24, 2012, 06:03:45 am
Code:
if (r1 > r){
    for(i = r1; r1 > r; i--){
Well, "i" varies, but "r1" and "r" will always keep the same initial relationship.
16049  Using Arduino / Programming Questions / Re: How to create a 38 Khz pulse with arduino using timer or PWM? on: April 24, 2012, 05:45:08 am
If you're going to use it for modulated IR, just connect one end of your LED to your constant 38kHz source, and the other end to another output pin.
Waggling the other output pin at your desired (<38kHz!) rate produces a modulated 38kHz IR beam.
16050  Using Arduino / Programming Questions / Re: help with boolean on: April 24, 2012, 05:17:10 am
I thought I was (am?) having a deja vu.
They looked to be on the same topic, so I merged them.

Code:
  pinMode(Mute, OUTPUT);                // Set the switch pin as 1p.
What is a "1p"? (apart from 1/100th of a pound sterling)
Pages: 1 ... 1068 1069 [1070] 1071 1072 ... 1906