??? 02/02/05 22:35 Read: times |
#86421 - to late Responding to: ???'s previous message |
ahh to late im afraid the circuit has already been made but after a week of coding i noticed a problem.
Just exactly what im doing!! -just thought this might give a better understanding of what i am doin. The project is an internet controlled web which will basically move pan and tilt. When the 8751 microprocessor receives either a character 'l' , 'r' , 'u' or 'd' the motors will step in the chosen direction for half a second. I realised that the circuit had no way of knowing how far the motors were allowed to step in total so could end up moving in a 360 degree motion, therefore twisting the wires. So to fix this problem i decided to program a count into the code so it was only allowed to step 10 times making the motors only move to a max of 90 degrees in total. So basically when the motors step for half a second a '1' is added to the count, when the count reaches 10, the motors will not be allowed to move in that certain direction anymore. Only the oposite direction is allowed. Then i realised one more problem and this was with the reset, when i reset the microprocessor the count in the register will be cleared, therefore the micro will not know where the starting positions of the motors were. So what i wanted to do was to make the micro step the motors back to there starting position before the micro resets. I hope i have explained this well. |
Topic | Author | Date |
running code before reset!! | 01/01/70 00:00 | |
explain | 01/01/70 00:00 | |
What button? | 01/01/70 00:00 | |
to late | 01/01/70 00:00 | |
solutions | 01/01/70 00:00 | |
sort of | 01/01/70 00:00 | |
right ok | 01/01/70 00:00 | |
No, But | 01/01/70 00:00 | |
ill give the button a go | 01/01/70 00:00 | |
what is the problem? | 01/01/70 00:00 | |
Use nonvolatile memory | 01/01/70 00:00 | |
'Warm reset', 'Early power fail' | 01/01/70 00:00 | |
interesting | 01/01/70 00:00 | |
you can't teach old dogs new tricks | 01/01/70 00:00 | |
Hardware Reset? | 01/01/70 00:00 | |
bad idea | 01/01/70 00:00 | |
bad idea.......80% agree | 01/01/70 00:00 | |
May be is.. | 01/01/70 00:00 | |
hardware reset possible..![]() | 01/01/70 00:00 |