You shouldn't need the LED board at all! Although I have only run this for 4 minutes at a time, I only concentrated on what the LED board sent out, when it wasn't throwing an error. It was consistent, and I tried to account for every situation - start, stop, speed up/down, key removed. Every other feature the LED board has, like change programs etc.. can only effect the speed value sent to the power/motor-board. As this unit didn't have an incline motor, all it can really do is control the motor.BT, I have to say there are things I don't understand yet. Will I still need the LED board at all or will the PIC convince the power board that all is ok?
It appears to need constant packets, regardless of whether the speed value is changed.When the 2 packets are sent to set the speed will the controller stay at that speed or does it need a constant feed of identical packets?
Good question. Given that the LED board sends out speed values that are incremented at the start (slow start up), I believe it is down to the control signal to determine the slow start - the motor board just sets the speed to what its told to.To change speed depending on above answer, would I simply change the binary all at once and allow the motor board to ramp up or down the speed or do I need to change the binary one bit at a time?
Yeah I used to avoid interrupts where-ever possible But once you start using timers has 'hartbeats' or periodic updating of things, you start to get into the mindset of 'synchronous events', that need to be done in regular intervals, and asynchronous events, that can be done regularly, but with no real urgency. It can get complicated very quickly, but also allows a micro to do a hell of a lot... and react quicker to events.One other thing that puzzles me is the timing issues. I have never had much success with interrupts and tend to avoid them if I can. Will I need them or is there a way I can create the packets without them? Maths is not my strong point so any simple way is always best for me. Plus any way you can simplify the method will always benefit others with the same problems.
Any time sirCan't thank you enough for all the work you put into this project mate. I know its doubtful but if you ever get stuck and I can help I am there like a shot.