Show Posts
Pages: 1 ... 31 32 [33] 34 35 ... 88
481  Using Arduino / Programming Questions / Re: Reversing dc motor with momentary press of microswitches on: February 18, 2014, 04:30:51 pm
Oooops - try this

Code:
const int

PWM_A   = 3,
DIR_A   = 12,

SNS_A   = A0;
int ROT = 1;



void setup() {
  // Configure the A output

  pinMode(DIR_A, OUTPUT);    // Direction pin on channel A
    pinMode(7, INPUT);    // Direction pin 7 on channel A
     pinMode(2, INPUT);    // Direction pin   2 on channel A
 Serial.begin(9600);
  Serial.println("camera panning test");
  delay (500);
}

void loop() {


if (digitalRead(7) == HIGH)  // if the limit switch is high

{
ROT = 1;
}

if (digitalRead(2) == HIGH)  // if the limit switch is high

{
ROT = 0;
}

  digitalWrite(DIR_A, ROT);   
 analogWrite(PWM_A, 255); 
}
482  Using Arduino / Programming Questions / Re: Reversing dc motor with momentary press of microswitches on: February 18, 2014, 04:13:53 pm
Code:
const int
ROT = 1,
PWM_A   = 3,
DIR_A   = 12,

SNS_A   = A0;



void setup() {
  // Configure the A output

  pinMode(DIR_A, OUTPUT);    // Direction pin on channel A
    pinMode(7, INPUT);    // Direction pin 7 on channel A
     pinMode(2, INPUT);    // Direction pin   2 on channel A
 Serial.begin(9600);
  Serial.println("camera panning test");
  delay (500);
}

void loop() {


if (digitalRead(7) == HIGH)  // if the limit switch is high

{
ROT = 1;
}

if (digitalRead(2) == HIGH)  // if the limit switch is high

{
ROT = 0;
}

  digitalWrite(DIR_A, ROT);   
 analogWrite(PWM_A, 255); 
}
483  Using Arduino / Project Guidance / Re: Atmel studio on: February 18, 2014, 11:56:48 am
The 45 can be added easily to the arduino IDE, the ATTINY20 can be with a little work. That's why I asked - I just registered for the Atmel Studio Download & got an instant response, Maybe your email ended up in some spam filter somewhere?
484  Using Arduino / Project Guidance / Re: Atmel studio on: February 18, 2014, 11:25:49 am
a little more info that ATTINYs . . .What ATTINY?
485  Using Arduino / Microcontrollers / Re: HELP in PROGMEM on: February 18, 2014, 09:51:13 am
PROGMEM is stored in the Flash - You cant change it in your code, Sorry.
486  Using Arduino / Installation & Troubleshooting / Re: Uno will not connect after blink program and battery pack on: February 17, 2014, 02:26:39 pm
Try a new lead - Cheap USB leads are notorious for failing.
487  Using Arduino / Microcontrollers / Re: Atmega168 in standalone mode -please help on: February 17, 2014, 11:25:51 am
If it is truly 6Volts - I think you have exceeded the 5.5 Volts Max voltage of the ATMEGA
488  Using Arduino / Installation & Troubleshooting / Re: Help Downloading Sketches on: February 17, 2014, 08:42:36 am
on that page - look at the right hand side of the screen and you will see [ download zip ] button. click that ind it will download the files.
489  Using Arduino / Project Guidance / Re: GSM and GPS modules for arduino mega on: February 16, 2014, 05:15:05 pm
Can you provide a full description of what you require :

How many updates a Minute for GPS
How many updates for GSM (or is it Poll only) or should it only report when it has moved when in Parked mode
Is this a one off, or a prototype for production (and do you require design services)
Do you want the unit to log all movement to an SD card and readable later.

More info = more help.
490  Community / Website and Forum / Re: What's this # crap in my arduino.cc urls? on: February 16, 2014, 04:55:14 pm
Hee Hee ! A name I've used from 1981 & my ZX81 days.
491  Using Arduino / Programming Questions / Re: Arduino UNO Mac OS 10.6.8 (error compiling) on: February 16, 2014, 04:48:25 pm
No Problem, We were all newbies at some point
492  Using Arduino / Project Guidance / Re: Need help detecting sound levels on: February 16, 2014, 04:34:29 pm
 This sensor provides an output voltage from 0 to +5 Vdc which is proportional to the intensity of noise detected
493  Using Arduino / General Electronics / Re: High Power Transistors on: February 16, 2014, 04:31:15 pm
Search for MOSFET or TRIAC Circuits.
494  Using Arduino / Project Guidance / Re: GPS Tracker on: February 16, 2014, 03:45:56 pm
Can you write to a file on the SD without the GPS Stuff? as I have had SD shields with other pins as the CS pin.
495  Using Arduino / Project Guidance / Re: how to interface the rs232 to arduino uno on: February 16, 2014, 03:22:35 pm
Hardware serial and 2 instances oF softwareseriL
Pages: 1 ... 31 32 [33] 34 35 ... 88