Go to Post [In FIRST]...Arab and Israeli students speak on the same level, because they are alliance partners. - Tottanka [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

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 29-02-2008, 10:13
yossi56 yossi56 is offline
Registered User
FRC #0007
 
Join Date: Feb 2008
Location: israel
Posts: 4
yossi56 is an unknown quantity at this point
how to generate P.W.M pulse between 0-100 d.c

Hello all,I use in mini robot controller (innovation first)
and i try to generate P.W.M pulse between 0 to 100 dutey cycle.
I read R. Kevin Watson pwm (3) files ,but they didnt help me because they are good to - servo pwm pulse.

i need the pwm 0-100 dutey cycle because i connect my p.w.m output from mini robot controller ("innovation first") to L298 (some h bridge componet), and servo (pwm) pulse not matching fot this operation.

What i can need to do to generate P.W.M pulse between 0 to 100 dutey cycle?

thanks yossi
  #2   Spotlight this post!  
Unread 29-02-2008, 10:52
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,658
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: how to generate P.W.M pulse between 0-100 d.c

yossi,

The IFI controllers are all based around interfacing with hobby servos and IFI H-Bridges that all take hobby servo pulse-train inputs, so the hardware as configured isn't going to be really useful for what you're attempting. If you're using the full-size IFI Robot Controller, then PWM outputs 13-16 are under direct control of the programmable user processor and are hooked directly into the PIC microprocessors CCP units. You can look in the PIC reference manual and datasheet on Kevin Watson's website to get info on how you could set these up to output a true 0-100% duty cycle PWM output. If you're using the Vex controller, PWM outputs 1-4 are arranged in a similar fashion. If you need more than 4 duty-cycle outputs, then your options are limited:
  1. Use the digital IOs combined with timers and really fast interrupt handlers to bootleg a duty-cycle generation output.
  2. Find or make a serial to duty-cycle PWM conversion board.
  3. Hack the IFI controller's Master hardware and firmware to force it to do what you want it to.
That last option is obviously the most difficult and most likely to totally hose your controller. I'm convinced it's technically possible to pull it off, but it would be very very difficult and it'd require a fairly extensive amount of code decompiling, reverse engineering, etc.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
  #3   Spotlight this post!  
Unread 29-02-2008, 23:03
Jim E Jim E is offline
Registered User
FRC #1523 (M.A.R.S.)
Team Role: Mentor
 
Join Date: Jun 2006
Rookie Year: 2005
Location: Lantana, FL
Posts: 188
Jim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond reputeJim E has a reputation beyond repute
Re: how to generate P.W.M pulse between 0-100 d.c

It sounds like you are taking the 8520 cpu in the mini controller to do something outside of FIRST. This forum deals with FIRST competitions.

That being said, IFI has default software on their website to control all of the pins on the EDU controller. I would guess (I'm not a lawyer) that you could use this software for any purpose, whether for profit or educational purposes. Kevin Watson's code is strictly for educational purposes w/o paying royalties.

You must understand how to program, and understand how to read in C, to use the above solutions. I'm not sure if Easy C supports the PIC18F8520 processor.

You will want to study the 8520 datasheet. It shouldn't be too difficult to figure out how IFI distributes the I/O to the outside world.

IFI has documented this processor. It was used in the 2005 competition in the Full-size RC Controller.
__________________
Team MARS = 1.523 AU from the SUN!

Jim E.
  #4   Spotlight this post!  
Unread 01-03-2008, 14:15
yossi56 yossi56 is offline
Registered User
FRC #0007
 
Join Date: Feb 2008
Location: israel
Posts: 4
yossi56 is an unknown quantity at this point
Re: how to generate P.W.M pulse between 0-100 d.c

Thanks jim and Kevin, This Thread will publish to my college studying and I hard to find another forum like this because experience of members here,so sorry if it is not popular to show Threads like this here.

I try to explain my mission and wiil be more solution for me,

In my project I need get 3-16 Volt when my source Vcc is 24 Volt,
i try get the control of this voltage range with PWM pulse (with mini robot controller "innovation first".)

So i serch for new suggestion to do it.

Thanks again,Yossi.
Closed Thread


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
How far have you gotten in "100 Bottles of Milk on the Wall"... Billfred Chit-Chat 25 29-03-2009 18:01
MAKE A MOTOR PULSE???? jax1488 Programming 7 25-01-2008 14:40
How many teams are 100% student built Robo_Coyote General Forum 60 18-02-2007 02:37
How do I get distance between Camera and the target? sjung9442 Programming 5 27-01-2006 09:44
PUlse counting junkyarddawg Technical Discussion 1 31-01-2002 15:33


All times are GMT -5. The time now is 11:09.

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