Loading...
  Show Posts
Pages: 1 [2] 3 4 ... 22
16  Using Arduino / Motors, Mechanics, and Power / Re: Need help employing a PID library for fan control on: March 18, 2013, 12:30:38 am
I am not sure this will help, but do you want:

digitalWrite (mosfetLED, Output);     // Output variable modulates LED brightness

OR

digitalWrite(mosfetLED, HIGH);   // sets the LED on >>>>>>>>>>>>  http://arduino.cc/en/Reference/DigitalWrite

OR

analogWrite(mosfetLED, val);     //where val is 0 to 255  >>>>>>> http://arduino.cc/en/Reference/AnalogWrite 
17  Using Arduino / Programming Questions / Re: button trouble? on: March 13, 2013, 10:54:48 pm

  lastButtonState1 = reading1;     //<<<<<<<<<<<<<<<<<<<< This happens every time you go through loop
  lastButtonState2 = reading2;     //<<<<<<<<<<<<<<<<<<<< This happens every time you go through loop

Perhaps they should be made equal only when something is detected.



18  Using Arduino / Programming Questions / Re: button trouble? on: March 12, 2013, 11:43:20 pm
Good for you for starting to learn the Arduino platform!

Note: when you compile the code you attached, there are numerous errors in the bottom of your IDE window.
Review these errors
Track these errors down one by one and correct them.
HINT: perhaps you failed to declare some variables.

Get your code to work using 1 button.

Finally add code for the 2nd button.
19  Using Arduino / Microcontrollers / Re: Arduino uno power select priority on: March 08, 2013, 12:24:36 am
If I understand you correctly, you can use this circuit. To achieve what you want.

As long as the PWRIN is 1 Volt more positive than +Battery, no power would be consumed from the battery until PWRIN disappears.
20  Using Arduino / Project Guidance / Re: arduino for beginners on: March 01, 2013, 01:47:57 am
I would highly recommend you checkout/buy this book if you want to study the Arduino platform:

http://shop.oreilly.com/product/9780596802486.do?sortby=bestSellers
21  Using Arduino / Programming Questions / Re: Real Time Clock module to display time and date on LCD on: February 27, 2013, 01:18:17 am
Quote
can some tell me how did we assigned this address:#define DS1307_I2C_ADDRESS 0x68  . how we get this I2c address
This is the address the manufacturer of the 1307 has been given for the chip.

Edit:  Examples here  http://www.ladyada.net/library/i2caddr.html
22  Using Arduino / Sensors / Re: phototransistor detecting led on: February 25, 2013, 01:33:55 pm
Common Collector & Common Emitter
Quote
inverted signal?
Yes.  Not a problem, use software to invert the results.

http://hyperphysics.phy-astr.gsu.edu/hbase/electronic/transwitch.html#c4
23  Using Arduino / Sensors / Re: phototransistor detecting led on: February 24, 2013, 09:12:32 pm
I would use this layout instead:
24  Using Arduino / Motors, Mechanics, and Power / Re: 30RPM Worm Drive on: February 23, 2013, 01:25:17 am
Try a 12V Window Crank Motor. Inexpensive, low current readily available.

http://www.princessauto.com/pal/product/8366478/
Or
Motor

Edit: the ones I use, form PA, draw 800ma at 5VDC (~17RPM)  and 1amp at 9VDC (~25RPM)
The shaft is 1/2", and for what it's worth I cannot stall the motor with 4" pliers.
25  Using Arduino / Project Guidance / Re: Output Sound with 1/8'' Audio Stereo Jack PLEASE HELP NEED GUIDANCE on: February 20, 2013, 11:53:26 pm
You could use Tone.
Frequency could be adjusted from your ping sensor distance calculations.
 
Syntax
tone(pin, frequency)
tone(pin, frequency, duration)

http://arduino.cc/en/Reference/Tone
http://arduino.cc/en/Tutorial/Tone
26  Using Arduino / General Electronics / Re: Basic transistor question on: February 19, 2013, 01:15:04 am
Quote
MOSFET STP60NE06
This is not a bipolar transistor like the TIP120 is, but it will work in place of it.
See the link below for some theory:
http://www.electronics-tutorials.ws/transistor/tran_7.html
And:
https://www.youtube.com/watch?v=Te5YYVZiOKs
27  Using Arduino / Motors, Mechanics, and Power / Re: How strong of a STEPPER MOTOR do I need ? on: February 18, 2013, 10:07:44 pm
You may want to look at a linear actuator device attached to your motor.
http://en.wikipedia.org/wiki/Linear_actuator
28  Using Arduino / General Electronics / Re: One power supply and different nodes on: February 15, 2013, 11:12:44 pm
This is what you want, excluding the Arduino cctry.
29  Development / Other Software Development / Re: Time and TimeAlarms Libraries – Ask here for help or suggestions on: February 14, 2013, 01:51:02 am
Quote
I want to  send a command to my program ,so an hour or a day is added to timer.
When you detect the command you can use the following:

time_t t  = now();
setTime(t + X );                     //X would be 3600 for 1 hour or 86400 for 1 day

OR

adjustTime(X) ;                     //X is + or - moves the time ahead or back X seconds ex: +3600 or -3600
30  Using Arduino / Project Guidance / Re: Set up and Program Help!! on: February 14, 2013, 01:24:13 am
What part do you need help with?
Pages: 1 [2] 3 4 ... 22