@jeff2
someone with more experience with the propeller programming may be able to help you with witing the 'guts' of the program. i'm just starting out with the propeller myself, recieved my copy of the 'programming and customizing the multicore propeller microcontroller' just today. but i would start with designating a pin for the green and a separate pin for the yellow as inputs, flowchart out some logic that deals with the 4 states of logic, left turn, right turn, brake, and brake with turn.
Another option to all this would be to take a stopwatch, time how long that your turn signal stays lit when blinking, then just concentrate on making the light sequence that you desire to execute within the 'on' time of your flash. the you wouldn't have to mess with programming all that logic, when the signal is high, the sequence for that pin starts, then finishes before the flash goes off, which turns the led's off, then on the next flash on, the sequence starts all over again. when you hit the brake, the sequence starts for both the left and right, finishes, then stays on as long as the brake is applied (as long as the input is high). then the turn signals would be 'self-resetting' as the sequence would start over everytime the flash input goes high.
Most of us here are very busy professionals. We don't design hardware and write code for anybody that just wants a solution to their desire. You need to do some work also. You need to get in touch with the fundamentals of the Propeller chip and basic electrical interfacing. · I suggest · First: · Download the Propeller Manual: http://www.parallax.com/Portals/0/Downloads/docs/prod/prop/WebPM-v1.1.pdf · Read it. · · Second: · Download the Propeller Education Kit documents: http://www.parallax.com/Portals/0/Downloads/docs/prod/prop/PELabsFunBook-v1.1.pdf · Do the projects. · Then after that if you have specific questions, I for one, will be happy to answer them. · What you are after may come clear after you perform these two tasks. It will also open a world of many other projects that you will be able to do on your own.
Jeff2 said...
How would you go about writing this program?
Comments
someone with more experience with the propeller programming may be able to help you with witing the 'guts' of the program. i'm just starting out with the propeller myself, recieved my copy of the 'programming and customizing the multicore propeller microcontroller' just today. but i would start with designating a pin for the green and a separate pin for the yellow as inputs, flowchart out some logic that deals with the 4 states of logic, left turn, right turn, brake, and brake with turn.
Another option to all this would be to take a stopwatch, time how long that your turn signal stays lit when blinking, then just concentrate on making the light sequence that you desire to execute within the 'on' time of your flash. the you wouldn't have to mess with programming all that logic, when the signal is high, the sequence for that pin starts, then finishes before the flash goes off, which turns the led's off, then on the next flash on, the sequence starts all over again. when you hit the brake, the sequence starts for both the left and right, finishes, then stays on as long as the brake is applied (as long as the input is high). then the turn signals would be 'self-resetting' as the sequence would start over everytime the flash input goes high.
·
I suggest
·
First:
·
Download the Propeller Manual:
http://www.parallax.com/Portals/0/Downloads/docs/prod/prop/WebPM-v1.1.pdf
·
Read it.
·
·
Second:
·
Download the Propeller Education Kit documents:
http://www.parallax.com/Portals/0/Downloads/docs/prod/prop/PELabsFunBook-v1.1.pdf
·
Do the projects.
·
Then after that if you have specific questions, I for one, will be happy to answer them.
·
What you are after may come clear after you perform these two tasks. It will also open a world of many other projects that you will be able to do on your own.