Go to Post A bunch of kids in prom dresses staring through telescopes must have been quite a sight! - BlondeNerd [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 07-02-2006, 20:47
Superstitions's Avatar
Superstitions Superstitions is offline
Gadget Wizard
FRC #0039
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Gilbert AZ
Posts: 13
Superstitions is an unknown quantity at this point
change pwm range preserve input sensitivity

I am using analog input (pot) from the user console to control a motor speed through a victor speed control. The analog gets converted to PWM_1= 0 to 254. I want my PWM (PWM_2) output to the victor to be 100 to 254. We are controlling ball distance by changing speed of ball shot with victor to a motor. I want input to this to be from the pot and want to presrve the ability to be able to go in reverse a little if the shooter gets jammed. I have come up with a formula for the conversion:
(PWM_1*154/254) + 100 =PWM_2.
My questions are
1) will this be excessively taxing on the RC program
2) is this the best way to make full use of the 0 to 5 volt analog input
3) do I need to use the terms PMW_1 and PMW_2 or can I use a term (PMW_1 temp)
Thanks in advance, please take it easy on me I am just starting out.

Last edited by Superstitions : 07-02-2006 at 21:49.
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Accelerometer code ImmortalAres Programming 28 04-06-2005 01:02
Change joystick to pwm mapping Joe Lewis Programming 3 30-03-2005 19:27
Compiling Failed Teh Mike Programming 7 09-02-2005 13:27
heres the code. y this not working omega Programming 16 31-03-2004 15:18
Some EDURobotics Problems squide Robotics Education and Curriculum 9 20-01-2004 10:27


All times are GMT -5. The time now is 14:55.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi