OutToLunch
New Member
I've been playing around with a little development kit from TI for the MSP430 MCUs called the eZ430-F2013 (Link: **broken link removed**). The kit is about the size of a thumb drive, you just plug it into a USB port and you can program it from a development platform. Pretty easy stuff, really. Been a while since I did any coding, though, so it took a while to do this.
OK, so what I did is nothing earth shattering. The concept here is that I have LED lighting set up on my motorcycle and right now it is either on or off. I have it set up in three sections - lighting the front wheel, lighting the motor and then lighting the rear wheel. I wanted to make it a little more interesting, so I programmed the mcu to flash some LEDs. I added some LEDs driven by 2n7000 fets off of the mcu pins and also wired in some switches to the mcu pins.
There are 9 selectable flashing modes for the 3 LED sections:
- All Flash
- Chase Left-Right
- Chase Right-Left
- Alternate Flash
- All Fade
- Chase Left-Right Fading
- Chase Right-Left Fading
- Alternate Fade
- Run Thru (goes thru each of the 8 above modes for a short period of time)
I also have a control for speeding up or slowing down the flash/fade rate.
So the ultra exciting video below shows it in action. The button on the left is the MODE select button. The Middle button is for slowing down the flash/fade rate and the Right button is to speed up the flash/fade rate. There may be a few little bugs in it, but overall it works just the way i wanted it to and doesn't lock itself up.
The mcu is running on its own - I have the kit plugged into the USB port just for power. Follow the link below for the video...
YouTube - LED Flash
I'll post the code in a reply to this cuz it's too long otherwise...
OK, so what I did is nothing earth shattering. The concept here is that I have LED lighting set up on my motorcycle and right now it is either on or off. I have it set up in three sections - lighting the front wheel, lighting the motor and then lighting the rear wheel. I wanted to make it a little more interesting, so I programmed the mcu to flash some LEDs. I added some LEDs driven by 2n7000 fets off of the mcu pins and also wired in some switches to the mcu pins.
There are 9 selectable flashing modes for the 3 LED sections:
- All Flash
- Chase Left-Right
- Chase Right-Left
- Alternate Flash
- All Fade
- Chase Left-Right Fading
- Chase Right-Left Fading
- Alternate Fade
- Run Thru (goes thru each of the 8 above modes for a short period of time)
I also have a control for speeding up or slowing down the flash/fade rate.
So the ultra exciting video below shows it in action. The button on the left is the MODE select button. The Middle button is for slowing down the flash/fade rate and the Right button is to speed up the flash/fade rate. There may be a few little bugs in it, but overall it works just the way i wanted it to and doesn't lock itself up.
The mcu is running on its own - I have the kit plugged into the USB port just for power. Follow the link below for the video...
YouTube - LED Flash
I'll post the code in a reply to this cuz it's too long otherwise...