Jump to content
43oh

Turn Signal/Hazard Flasher


Recommended Posts

Hello,

 

I was not entirely sure where to post this. The MSP430 is still very new to me. RobG helped me tremendously with some code for a very cool power/lighting controller for childrens battery powered ride on. While I can figure out a lot of stuff, it mostly comes from looking at other's code samples.

 

I have a new project I would like to do. A turn Signal/hazard Flasher. Would anyone be willing to help me with some code?

 

What I need is:

 

Inputs: (All inputs will be switched by ground)

 

Left Turn Signal

Right Turn Signal

Hazard

 

Outputs:

Left Turn Signal

Right Turn Signal

 

I would like for the turn signal rate to be adjustable via a potentiometer. I would also like the hazard to have a Euro flash(two quick flashes). A video I found to describe the hazard flash.

 

https://www.youtube.com/watch?v=b7UTuZk8rOE

 

The chips I have hand are MSP430G2452. Thanks in advance!

 

Link to post
Share on other sites

Well, I have a custom car where I repalced 15lbs of wiring with a wireless control for the brakes and turn signals and hazards.

I have a little msp430 board that gets a 'turn left' message and does the flashing itself until it hears a no-turn or right-turn message,

and then it stops flashing.  Actual flashing code is about as simple as it gets, just use the watchdog timer at 1 second intervals,

and turn on/off the light. You need a 3v relay or mosfet to toggle the 12v power (I use LEDs for my lights also, very low power)

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...