Hi all, well i`m sorry to say i could do with some help again,after setting up a simple program to use pwm to operate a led, working off the potentiometer on the ver3 development board, all seemed ok as the led dimmed as expected.
Next step was to replace the led with a servo as found in r/c modelling, but the servo moves in a haphazard way and gives off a high pitched whistle and over heating!
![Evil or Very Mad :evil:](./images/smilies/icon_evil.gif)
, ie. it is just not working right...it should normally not make any sound until the motor works, and then it is only a `grunt` kind of sound.
I guess a failed to remember that PWM means different things to different people, to me it means r/c signal which is a high pulse of 1ms to 2ms and then low for the rest of the 20ms (even as much as 50ms).
To others PWM means high/low pulses....and all manor of cycles and/or frequencies
![Question :?:](./images/smilies/icon_question.gif)
!
Here lies my problem, the high pitched whistle only happens when the signal is connected to the servo (power on circuit/servo all the time) so the servo is being pulsed in an unusually high way, but the program is set up to give out the longest pulse i can manage which is 16.384ms...not the ideal 20ms, but should be close enough!....this was setting the 16f88 pic to its lowest xtl-speed and using the maximum `255` in the PWM component: properties, known as the `period`.
I suspect that the high going pulse is itself a higher frequency pulse train!...i just don`t know!
Next problem i can see is that i need to run the pic chips as fast as possible but this causes the PWM to be far too fast a cycle/ frequency.
There does not seem to be enough speed choice in the PWM component: property setup to allow me to get the 20ms to 50ms that i need to get for one cycle.
I tried using a delay in the program but it did not make any difference. ...how come
What i relay need is the 16F88 pic to run at its max speed to enable me to run the eventual program monitoring of different inputs and other formula, and speed is paramount importance here.
The pic`s PWM function to get on with job of outputting a signal conforming with 1ms to 2ms high pulse with a cycle of between 20ms to 50ms. as per r/c signals.
Am i expecting too much from flowcode and ver3 Development board?
I confess that i am a complete beginner with programing pics...that`s why i bought flowcode!!
![Mr. Green :mrgreen:](./images/smilies/icon_mrgreen.gif)