Jump to content

LaunchPad controlling up to 8 RC Servos

Recommended Posts

  • Replies 53
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

Here's my take on controlling RC servos with LaunchPad. Again, I am using my favorite shift register, 74HC595 (later I will be adding another example which will use 74HC164.) Since the voltage may b

Short answer is all servos will work at the same time.   Servo requires 1ms-2ms pulse every 20ms. Because of that, we only need one CCR to control all servos at the same time. We shift start time o

Thanks to you both, worked like a charm!!   I replaced the original code in the while loop in the ADC ISR with oPossum's formula to set the servo positions:   const int adc_min = 0; /

Posted Images

Yes, using const will usually put stuff in flash rather than RAM. This is not part of the C/C++ spec, but rather an obvious and common optimization done by compilers for embedded systems. Some compilers may require a special #pragma or other directive to ensure placement in flash - CCS and MSPGCC do not. Linker files can also be used to effect proper placement, but that is usually only done in special cases.

Link to post
Share on other sites
  • 8 months later...



Thank you for posting all this sample code. Not being a C programmer, I'm still a little confused by it but I'm learning.


I have a question though, when watching all the videos I noticed that the servos only rotated 90 degrees, which mine did as well. Is this just the way the way the 430 handles servos or is there something I can change in the code to allow a full 180 degree rotation?



Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...