Loading...
  Show Posts
Pages: 1 2 [3] 4
31  Using Arduino / General Electronics / Re: 12v 5v power supply, and transistor question on: November 28, 2011, 04:47:42 am
ok so i made the schematic messer and added the mosfet and a pull-down resistor for the gate

EDIT: removed pic
32  Using Arduino / General Electronics / Re: Good Solder Wire on: November 28, 2011, 03:12:02 am
i really like the SparkFun solder http://www.sparkfun.com/products/10243
33  Using Arduino / General Electronics / Re: 12v 5v power supply, and transistor question on: November 28, 2011, 02:24:16 am
Yes.
You're in Australia?

ok so with this mosfet http://littlebirdelectronics.com/products/nchannel-mosfet-60v-30a
12V goes into the SOURCE
signal from arduino into the GATE
and the DRAIN goes to the LEDs anode
is that right?


and yes i am in AUS
34  Using Arduino / General Electronics / Re: 12v 5v power supply, and transistor question on: November 28, 2011, 01:58:27 am
would something like this work http://littlebirdelectronics.com/products/nchannel-mosfet-60v-30a
35  Using Arduino / General Electronics / 12v 5v power supply, and transistor question on: November 28, 2011, 01:02:09 am
ok so i am making a light for a fish tank and i need a to make a power supply that can deliver 12v and 5v at the same time.

this is what i was thinking

the 12v will end up powering the LEDs and the 5v will power the arduino and the RTC.
will this design work or do i need to rethink it.

now my other question is which transistor type do i use to control the LEDs. the LEDs draws about 1 amp.

i am not sure if i should use a P-channel or a N-channel mosfet and i will be using PWM to control the brightness

i hope i explained that well enough  smiley
36  Using Arduino / Project Guidance / Re: Is this possible? on: November 18, 2011, 08:44:28 am
and if you don't want to play with high voltages and put it relays just rig up a cheap servo to flick the switch
37  Using Arduino / Project Guidance / Re: timer for fish tank lights on: November 18, 2011, 08:34:51 am
Are you trying to have the Arduino keep track of the time or do you plan to use a RTC (preferred)?
ok so i did not explain what i meant in my original post.
what i need is a way of keeping time
i will have a look for some info on RTC

EDIT: i am think about this breakout board from sparkfun http://littlebirdelectronics.com/products/deadon-rtc-ds3234-breakout
38  Using Arduino / Project Guidance / Re: Is this possible? on: November 18, 2011, 07:53:46 am
a simple sensor like this will do http://www.sparkfun.com/products/10988
and there is a tutorial on page 26 of this book http://www.sparkfun.com/tutorial/AIK/ARDX-EG-SPAR-PRINT-85-REV-10.pdf
39  Using Arduino / Project Guidance / Re: timer for fish tank lights on: November 18, 2011, 07:51:10 am
ok i will give it a go now
40  Using Arduino / Project Guidance / Re: timer for fish tank lights on: November 18, 2011, 07:39:05 am
there is no code this is just theory until i get my parts
41  Using Arduino / Project Guidance / timer for fish tank lights on: November 18, 2011, 07:24:12 am
hey i am making a light for my fish tank, i will be using 20-30 of theses LEDs http://littlebirdelectronics.com/products/super-bright-led-white-100pcs
i want to make it slowly dim any time after 8:30pm but only if there is not ambient light and then slowly brighten at 7:00am.

the part i am having trouble with is the clock, i just cant work it out

i hope i have explained it well.
42  Using Arduino / Programming Questions / Re: count 0-170 then back on: November 08, 2011, 09:44:11 pm
ok so the code below is the one i am using and i am now using a 5v regulator and it has fixed the problem of the servo jumping to 90º

Code:
#include <Servo.h>
Servo fan;

void setup()
{
  Serial.begin(9600);
  Serial.println("Starting");
  fan.attach(9);
  delay(1000);
}

void loop()
{
  for(int val = 0; val <= 170; val++){
    Serial.println(val);
    fan.write(val);
    delay(150);
  }
  for(int val = 170; val >= 0; val--){
    Serial.println(val);
    fan.write(val);
    delay(150);
  }
  
}
43  Using Arduino / Programming Questions / Re: count 0-170 then back on: November 08, 2011, 12:49:42 pm
Quote
and it's only the one servo
And that one servo sucks a lot more current than the Arduino can safely supply. But, hey, it's your Arduino.
ok good point.
looks like i will be down at the electronics store in the morning
44  Using Arduino / Programming Questions / Re: count 0-170 then back on: November 08, 2011, 12:32:27 pm
Quote
but when it gets back to 0º it jumps to 90º.
Odd because when I run this the printed output looks fine. Is your printed output fine?
yer mine is fine

Quote
could the heat from the voltage regulator be the problem
Put your finger on it is it hot? If you can stand to hold your finger on for longer than 10 seconds then it is not too hot.

Most likely is interference from the motor and fan causing the arduino to reset or crash.
i don't think so it was sitting on my desk next to the laptop


How are you powering the servos? Not from the Arduino, I hope.
yes i was, i do have a 5v regulator but i don't have any caps or perfboard to get it working.
and it's only the one servo

45  Using Arduino / Programming Questions / Re: count 0-170 then back on: November 08, 2011, 11:49:55 am
ok so this is my new code
Code:
#include <Servo.h>
Servo fan;

void setup()
{
  Serial.begin(9600);
  Serial.println("Starting");
  fan.attach(9);
  delay(1000);
}

void loop()
{
  for(int val = 0; val <= 170; val++){
    Serial.println(val);
    fan.write(val);
    delay(50);
  }
 
  for(int val = 170; val >= 0; val--){
    Serial.println(val);
    fan.write(val);
    delay(50);
  }
 
}

now it does its 180º anti-clockwise and then 180º clockwise, but when it gets back to 0º i jumps to 90º. i can not find what part of the code is doing this.

P.S. i have it going and it did the loop 5-10 times and then it just stopped and i needed to restart the arduino..... i have it plugged in through the USB and wall socket. could the heat from the voltage regulator be the problem
Pages: 1 2 [3] 4