3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Skateboard with PIC microcontroller and LEDs

Step 4Build the circuit

Build the circuit
This circuit is based on a PIC16F870 microcontroller. This controller was chosen because of the number of input/output pins, and the fact that I have a programmer for this chip. The input is a single pushbutton that cycles through each of the 15 LED flashing patterns. The outputs drive transistor switches, which turn on the individual LEDs. The transistor switches were used to keep the power dissipation through the microcontroller under the specified maximum (200 mA max). The power supply for the circuit is a slightly modified LM317 kit that is available at Ramsey Kits. The power supply was chosen because the circuit will be potted (encased in potting epoxy) and the LM317 will not require a heatsink. The kit provided a ready made circuit board and parts to construct the power supply, DC input is provided by six AAA batteries (9 volts). Since the kit is designed to accept AC power input, I removed the Diode bridge rectifier and large cap as my input is already DC. The power output was adjusted to achieve 5 volts for the microcontroller and the full 9 volts are used to power the LEDs. The entire circuit was tested on a bread board, then built on a prototype board from radio shack. The parts list can be derived from the schematic. The assembly code and video of testing are also attached.

Edited: Here is the YouTube video:

« Previous StepDownload PDFView All StepsNext Step »
1 comment
Oct 10, 2011. 3:40 AMjimmytvf says:
seems like a christmas tree, but is very cool though

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
1
Followers
1
Author:fourball