Show Posts
Pages: 1 2 [3]
31  Forum 2005-2010 (read only) / Syntax & Programs / Re: help with relay duration on: January 08, 2011, 10:00:50 pm
I actually would like to stop the program completely. But ill give your method a try. thanks for the quick reply.
32  Forum 2005-2010 (read only) / Syntax & Programs / help with relay duration on: January 08, 2011, 09:17:44 pm
Hi, im having trouble writing code for a relay that i want to turn on if a value is received from analog pin 0. The problem is that i want the if statement to stop looping after one run. Heres what i have so far:
Quote
 
 const int rPin =  8;      // the number of the Relay pin
 void setup() {
     pinMode(rPin, OUTPUT);      
 }
 
 void loop() {
   int val = analogRead(0);
     val = map(val, 0, 1023, 0, 10);
if (val == 9) {    
    // turn LED on:    
    digitalWrite(rPin, HIGH);//Turn on the relay
    delay(850);//wait for the drive to open all the way
    digitalWrite(rPin, LOW);//Turn off the relay
  }
   delay(10);
 }

33  Forum 2005-2010 (read only) / Interfacing / Serial Communications on Mac? How to? on: October 24, 2009, 09:33:44 pm
Hey everybody, I Just go my First Arduino (Duemilanove).
Im doing the LiquidCrystal Serial Input Tutrorial, and i wanted to know how i could use flash(or any thing else) to send serial data to the arduino?

Thanx.
Nadav
34  Forum 2005-2010 (read only) / Interfacing / Re: Arduino controlled CNC on: October 18, 2010, 05:20:14 pm
if you could send me all your plans it would be very helpful
thanks.
35  Forum 2005-2010 (read only) / Interfacing / Re: Arduino controlled CNC on: October 18, 2010, 05:15:15 pm
any way you can post the software up on the forum?
and thanks for the reply
36  Forum 2005-2010 (read only) / Interfacing / Arduino controlled CNC on: October 18, 2010, 04:54:43 pm
Hi, so me and my dad are thinking of building a cnc mill.
I was wondering if any of you have any ideas on how to use the arduino as a mac compatible cnc controller.

Im thinking of going about it something like this: CAD software on mac => GCode => Arduino Board => Stepper Driver => Stepper Motor

Any ideas as to how we should go about doing this (code, parts, etc)? Also if you guys can give us some idea of how to put it all together in the arduino ide it would be very appreciated.

Thanks,
Nadav
37  Forum 2005-2010 (read only) / Interfacing / Arduino Multimeter? on: February 10, 2010, 07:10:04 pm
Hey everyone, I was just wondering, is there anyway to use my Arduino as a multimeter?
If yes, what parts would be required?
Pages: 1 2 [3]