Show Posts
Pages: 1 ... 24 25 [26] 27 28 ... 38
376  Community / Exhibition / Gallery / Re: UV LED dress completed! on: May 18, 2012, 09:33:34 pm
I was able to pump one out with my girlfriend. 


cool story, bro  smiley

haha.

great looking outcome, and some good photography too
377  Using Arduino / Project Guidance / arduino controlled LED stairs using softpwm on: May 14, 2012, 02:31:53 pm
I'm looking at putting some LED's up my stairs and thinking about using a ATmega328p IC to run the 14 channels I need. I will also need a couple of digital inputs for sensors so I might set up the analog inputs as digital. This should keep the project really cheap and be quite simple for me to get going.

Any suggestions / issues doing it like this?
378  Using Arduino / Programming Questions / Re: softPWM library on: May 09, 2012, 06:24:09 pm
Thanks, that's really good to know.

I'm looking at putting some LED's up my stairs and thinking about using a ATmega328p IC to run the 14 channels I need. I will also need a couple of digital inputs for sensors so I might set up the analog inputs as digital. This should keep the project really cheap and be quite simple for me to get going smiley

Can you see any issues with this set up? I don't need the cpu for anything else.
379  Using Arduino / Programming Questions / softPWM library on: May 07, 2012, 05:56:29 pm
Hi all. I'm just trying to find out if the softPWM library allows you to use any digital / analog pins, instead of only the few PWM pins on the uno?
380  Using Arduino / Programming Questions / Re: Monitor two sensors to do different tasks simultaneously ? on: April 30, 2012, 06:24:55 pm
Hi again guys. I'm struggling here. I have cobbled together some code mainly from Nick's tutorial.

I'm trying to get the basics going for now, as I said I want to monitor two sensors but I'm just looking at one for now.

The aim of the code was to read a digital pin, and if that pin is high to set another digital pin high, and also store the time the event happened.
The i added another if statement, which would look at the millis since the event, and if they are equal or above 5000 to turn off the led.

It doesn't seem to work, the led just goes on and off when I change the pin state, but does not stay on for 5000 ms. I want it to work from the pulse output of a PIR so if the pin is low I don't want to turn off the led until the time has elapsed.

What am i doing wrong?

Code:
// Which pins are connected to which LED
const byte greenLED = 9;
const byte redLED = 10;

int const onTime = 5000;    //constant on time)

int val = 0;     // variable for reading the pin status


// Variable holding the timer value so far. One for each "Timer"
unsigned long left;
unsigned long right;


void setup ()
{
  pinMode (greenLED, OUTPUT);
  pinMode (redLED, OUTPUT);
  pinMode(2, INPUT);
  left = millis ();
  right = millis ();

}  // end of setup




void loop()
{


  val = digitalRead(2);  // read input value



  if (val == HIGH)
  {
    digitalWrite(9, HIGH);
    left = millis ();

  }


  if (left >= 5000);
  {
    digitalWrite(9, LOW);
  }


}
381  Using Arduino / Programming Questions / Re: Monitor two sensors to do different tasks simultaneously ? on: April 29, 2012, 08:30:32 pm
Thanks for the responses. I see what you mean about noobs getting stuck and set in the 'delay' way, this is the first out of a few simple projects that I won't be able to use it.

Thanks Nick for the link, looks good I will check it out
382  Using Arduino / Programming Questions / Monitor two sensors to do different tasks simultaneously ? on: April 28, 2012, 09:15:24 pm
Hi all. I want to use two PIR sensors, basically if sensor #1 is tripped, I want to turn on light #1, delay for a while then fade off. if sensor #2 is tripped I want to turn on light #2, delay for a while then fade off.

Thinking about how I would program it, if sensor #1 has tripped and the arduino is in the delay stage of the code with the light on, it wont be able to run through the rest of the code and poll the other sensor pin to see if that has tripped also?

is there a simple way around this?

thanks  smiley-lol
383  Using Arduino / Installation & Troubleshooting / Re: Drop in chip is not letting me upload sketches but is running fine on: April 22, 2012, 06:07:01 pm
Thanks Nick! I feel really silly now but that was the problem smiley

Many thanks again, saved me a headache  smiley
384  Using Arduino / Installation & Troubleshooting / Drop in chip is not letting me upload sketches but is running fine on: April 22, 2012, 05:50:05 pm
Hi all, I bought a ATMEGA328p from ebay, already programmed with the bootloader. It also has the blink sketch running on it. I was hoping to use my uno to act as a programmer so i could download a sketch that I want to run in a standalone project.

When I put the processor in the uno I can see the blink sketch starts up but I cant download to it. I get this error avrdude: stk500_getsync(): not in sync: resp=0x00. When the IDE is trying to upload I see the RX led flash a few times then nothing and the blink sketch continues to run.

I have just put the original 328p back in the same board and that will upload fine.

Is there something vital I'm missing or is it likely to be a dodgy processor?

Thanks
385  Using Arduino / Project Guidance / Re: Use Arduino to Connect to Dropbox on: April 11, 2012, 12:26:11 pm
you modify the file locally and the software sees its changed then uploads it (i think  smiley-razz )
386  Using Arduino / Project Guidance / LED spindicator (animated HDD activity LEDs) on: April 03, 2012, 06:35:00 pm
Hi all, I have come across this project and think its pretty smart. Has anyone tried anything like it with an arduino? What would be the best approach?

http://www.pcbheaven.com/userpages/hdd_led_spindicator/
387  Using Arduino / LEDs and Multiplexing / Re: Controlling IC1903 strip with arduino on: March 27, 2012, 05:57:01 pm
would be good to have a look at these, they are pretty damn cheap on ebay from china smiley
388  Using Arduino / Displays / Re: SPLC780D or S6A0069 LCD'S compatible with HD44780? on: March 26, 2012, 05:18:55 pm
ok thanks for the help Don  smiley
389  Using Arduino / Displays / Re: SPLC780D or S6A0069 LCD'S compatible with HD44780? on: March 25, 2012, 06:52:51 pm
Thanks Don, which of the two would you say would be nearest to compatible with the HD44780 controllers?

390  Using Arduino / Displays / SPLC780D or S6A0069 LCD'S compatible with HD44780? on: March 24, 2012, 09:06:11 pm
Hi all, I have made a project using a HD44780 20x4 LCD display and now need some more. I can find some using SPLC780D & S6A0069 but not sure if they will be drop in replacements?

Thanks in advance
Pages: 1 ... 24 25 [26] 27 28 ... 38