I have 2 DC boat motors that I want to control using only 08M chips. My current configuration is independent motor control with 1 chip for 1 motor (like a bulldozer or skidloader control scheme for example), each chip reading a single POT to determine direction and speed for its own motor. This current system works very nicely, but I want to eliminate the double controls and use a joystick instead. However, I want to implement it with only two 08M's (Yes, I know the 28X will do it nicely, but I want to do it with what I have on hand now, no extra $$ layout).
I'm having trouble figuring out exactly how to tackle this challenge. My thought is to have each 08M read both joystick POT's (one POT for speed and forward/reverse control and one for directional control), and from those ADC results, determine the direction and speed of its own motor. Its easy enough to read the ADC's and assign them to variables, then output the interpreted data for each motor, but coming up with the algorithms and code to have each chip interpret that data is giving me a brain fart. I need someone to point me in the right direction here. I don't think I need the full code, just the basic concept and/or algorithm to manipulate the data. Any help and thoughts would be appreciated.
If I need to give more detail, let me know.
I'm having trouble figuring out exactly how to tackle this challenge. My thought is to have each 08M read both joystick POT's (one POT for speed and forward/reverse control and one for directional control), and from those ADC results, determine the direction and speed of its own motor. Its easy enough to read the ADC's and assign them to variables, then output the interpreted data for each motor, but coming up with the algorithms and code to have each chip interpret that data is giving me a brain fart. I need someone to point me in the right direction here. I don't think I need the full code, just the basic concept and/or algorithm to manipulate the data. Any help and thoughts would be appreciated.
If I need to give more detail, let me know.