Arduino Oddity — Pulse Width Modulation (PWM) on Only Certain Ports
UPDATE II: Edited links to Makezine’s protoshield and TodBot’s candle light code.
UPDATE: I’m an idiot. Once I removed the protoshield, I saw that the board has clearly marked these pins as PWM! D’oh! I guess I got too comfortable using the shield and never bothered to actually look at the Diecimila itself.
Hmmm… I was modifying Todbot’s candlelight effect code to use multiple LEDs, but it seems that only certain ports on the Arduino allow such (3, 5, 6, 9, 10, and 11); the others merely flash on/off. The whole point of the code is to illuminate the LED in varying brightness such that it looks like a flickering candle.
I’m using this particular prototyping shield (others can be found here, here, here, or here) and ran the tests again on the bare Arduino, but found nothing wrong with the shield. I need to research this to find out why. I’ll update this post when I discover the reason.
No comments yet.
-
Recent
- Linksys WRT54GL Lockup Fix
- The Kindle 2 has Arrived!
- Rechargeable MintyBoosts!
- Together We Served
- ybox2
- It Ain’ Workin’
- Wow! That Was Dangerous…
- Land of the Orangemen
- Minty Boost
- Back on the Road Again
- Arduino Oddity — Pulse Width Modulation (PWM) on Only Certain Ports
- How F’ing Hard Is It to Look Something Up?
-
Links
- WordPress.com
- WordPress.org
- Instapundit
- WSJ Opinion Journal
- Power Line
- Tim Blair
- Transterrestrial Musings
- Megan McArdle
- The Volokh Conspiracy
- Samizdata
- Don Surber
- The Anchoress
- Cafe Hayek
- UrbanGrounds
- Radley Balko
- OxBlog
- TigerHawk
- Joanne Jacobs
- Michelle Malkin
- Ed Driscoll
- Roger L. Simon
- Jules Crittenden
- John Jay Ray
- John Rosenberg
- Ann Althouse
- Daily Pundit
- RedState
- James Lileks’ The Bleat
- Tom McGuire
- Donald Luskin
- Steve Sailor
- Greg Mankiw
- Marginal Revolution
- Michael Yon
- Slashdot
- OmniNerd
- Popular Mechanics
- Popular Science
- Appliancist
- Evil Mad Scientist
- Todbot
- Pocketables
- Micro PC Talk
- West Virginia Hotdog Blog
- Wristwatch Review
- Wristwatch Report
- Fratello Watches
- Professional Watches
- Velociphile’s Journey into Wristwatches
- Distrowatch (Linux Distros)
- Woodgears Woodworking
- Octopart
- Adafruit
- SparkFun
- NKC Electronics
- Modern Device Company
- Battery Warehouse Direct
- AVR Freaks
- Hacked Gadgets
- M-Cubed Electronics
- Almost All Digital Electronics
- deep darc
- RapidRepair LiPo Batteries
- Political Abacus
-
Archives
- March 2009 (1)
- February 2009 (2)
- July 2008 (2)
- March 2008 (1)
- February 2008 (3)
- January 2008 (2)
- December 2007 (9)
-
Categories
-
RSS
Entries RSS
Comments RSS