Pages: 1 [2]   Go Down
Author Topic: Pimp Your Pumpkin - An Arduino Jack-O-Lantern  (Read 4573 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Sr. Member
****
Karma: 4
Posts: 310
Posts: 40382
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Didn't make a video, I wouldn't want to frighten everyone.
« Last Edit: October 24, 2010, 07:43:05 pm by Big_Oil » Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 29
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Here is my version...my boys & I have been playing with a plasma cutter smiley



I'm using a RuggedCircuits Gator+ and a Maxbotix Ultrasonic Range Finder...

More pics on our family blog...http://raisinggeeksandgearheads.blogspot.com/2010/10/october-24th-plasma-cutting-welding.html


Logged

ottawa, canada
Offline Offline
God Member
*****
Karma: 6
Posts: 990
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Matt: What's the sensor?
Logged

Northern Norway
Offline Offline
Jr. Member
**
Karma: 0
Posts: 58
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

shouldn't the correct statement be 255 like this:
- analogWrite(CANDLELED, random(0, 255));
not like this:
-analogWrite(CANDLELED, random(0, 256));

Or am I wrong?

Nice simple project btw!
Logged

Spending too much time on this..

0
Offline Offline
Sr. Member
****
Karma: 0
Posts: 375
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
shouldn't the correct statement be 255 like this:
- analogWrite(CANDLELED, random(0, 255));
not like this:
-analogWrite(CANDLELED, random(0, 256));

Or am I wrong?

You are wrong  smiley-wink

Max is exclusive, so you have to use 256 if you ever want a value of 255.

http://arduino.cc/en/Reference/Random
Logged

San Francisco, CA
Offline Offline
Newbie
*
Karma: 0
Posts: 30
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Matt: What's the sensor?

It's a Sharp Long Range Infrared Proximity Sensor (GP2Y0A02YK0F) that I got from Sparkfun: http://www.sparkfun.com/commerce/product_info.php?products_id=8958

I was pleasantly surprised with how well it worked.  Sparkfun is limiting limiting purchases of this part to four per person because it's such a hard-to-find item.
Logged

ottawa, canada
Offline Offline
God Member
*****
Karma: 6
Posts: 990
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

[quoteIt's a Sharp Long Range Infrared Proximity Sensor (GP2Y0A02YK0F) that I got from Sparkfun: http://www.sparkfun.com/commerce/product_info.php?products_id=8958

I was pleasantly surprised with how well it worked.  Sparkfun is limiting limiting purchases of this part to four per person because it's such a hard-to-find item.
][/quote]

thanks.  I used a PIR motion detector last year for a Cylon pumpkin and i wasn't that happy - it just does an on/off reading - this looks a lot more flexible.  And your lighting scheme is brilliant.
Logged

Pages: 1 [2]   Go Up
Jump to: