![Photo](http://forums.netduino.com/public/style_images/master/profile/default_large.png)
Anyone else building Netduino Powered Halloween Props?
#1
Posted 23 October 2012 - 06:49 PM
#2
Posted 23 October 2012 - 06:50 PM
![:)](http://forums.netduino.com/public/style_emoticons/default/smile.png)
#3
Posted 23 October 2012 - 07:27 PM
- ShVerni likes this
#4
Posted 23 October 2012 - 11:05 PM
![;)](http://forums.netduino.com/public/style_emoticons/default/wink.png)
- JerseyTechGuy likes this
#5
Posted 24 October 2012 - 02:02 AM
#6
Posted 25 October 2012 - 02:13 AM
Thanks! It's not as fancy as the stuff you've got going, but I'll get there one day. Even though flickering the LEDs seems simple, it still took me a while to figure out how to pass arguments to threads when I start them (I had to use lambda expressions). It's great how much you can learn from even the simplest (or spookiest) of projects.
#7
Posted 25 October 2012 - 11:00 AM
Thanks! It's not as fancy as the stuff you've got going, but I'll get there one day. Even though flicking the LEDs seems simple, it still took me a while to figure out how to pass arguments to threads when I start them (I had to use lambda expressions). It's great how much you can learn from even the simplest (or spookiest) of projects.
It's good having a project especially a fun one. Makes the learning more meaningful.
A good one to try if you want to kick it up a notch is to use 3 LEDs. I did one a while back for a larger candle. I used 3 LEDs and they were all together except the height of each varied a bit. I ended up making a sort of flame shape out of silicone to cover all 3. All 3 LEDs flickered independently so it made for a cool effect. Later that was easy to translate into a candelabra. Each LED was for a separate candle this way the 3 candles didn't seem to flicker together.
#8
Posted 25 October 2012 - 06:59 PM
A good one to try if you want to kick it up a notch is to use 3 LEDs. I did one a while back for a larger candle. I used 3 LEDs and they were all together except the height of each varied a bit. I ended up making a sort of flame shape out of silicone to cover all 3. All 3 LEDs flickered independently so it made for a cool effect. Later that was easy to translate into a candelabra. Each LED was for a separate candle this way the 3 candles didn't seem to flicker together.
I'm actually using four LEDs which maxes out the PWM ports on my Netduino mini (I have to use a transistor switch to enable a speaker for scary noises), they all run in separate threads so they all flicker independently, but they all use the same function so they follow the same randomness rules. If that sentence doesn't make a lot of sense (which, knowing me, is pretty likely) I'd be happy to provide the code.
Maybe there's a better way than using one PWM port per LED (like driving multiple LEDs with the same port), but I wanted to make the LEDs all behave separately to give the flame more realism. However, that silicone flame shape is a brilliant idea that I might have to borrow, along with some of the other spooky ideas you have going.
#9
Posted 28 October 2012 - 07:13 PM
#10
Posted 28 October 2012 - 07:46 PM
I purchased a couple of the Parallax Rev B PIRs.
I connected one the PIRs to my Netduino Classic, and it worked fine without a pull resistor. I wrote sample code to operate the onboard LED and a digital output for a relay. Connecting the PIR to Ground, 3.3 vdc and D2
using System; using System.Threading; using Microsoft.SPOT; using Microsoft.SPOT.Hardware; using SecretLabs.NETMF.Hardware; using SecretLabs.NETMF.Hardware.Netduino; namespace PIR_Test { public class Program { static OutputPort D1 = new OutputPort(Pins.GPIO_PIN_D1, false); static InputPort PIR = new InputPort(Pins.GPIO_PIN_D2, false,Port.ResistorMode.Disabled); static OutputPort LED = new OutputPort(Pins.ONBOARD_LED, false); public static void Main() { Thread.Sleep(20000); while (true) { LED.Write(PIR.Read()); D1.Write(PIR.Read()); } } } }Chuck
#11
Posted 28 October 2012 - 08:33 PM
Hi Dave,
I am interested to see your Halloween projects as well.
Question, does the Parallax PIR sensor also has a built-in pull-up resistor?
http://www.parallax....83/Default.aspx
Thanks
Yes it does. This is why I love that sensor. Plug and play.
#12
Posted 29 October 2012 - 04:52 AM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users