HPWM Control


Results 1 to 4 of 4

Thread: HPWM Control

Threaded View

  1. #1
    Join Date
    Feb 2005
    Location
    Indiana
    Posts
    24

    Default HPWM Control

    I have an H-Bridge that can run under joystick control or R/C Transmitter Control.
    While running under R/C Transmitter Control, I want the PWM to go to zero if the transmitter is accidentally shutoff or batteries go dead (i.e loss of good pulse signal from the receiver.
    I have attached the code I'm working with below. Using a 16f877A@20MHZ.
    Right now, when you shutoff the transmitter, the motor goes wild. Full speed to zero speed and back and forth. My last attempt to solve this was to add the line "if duty0>260 then duty0=0" just before the jump to genpwm2: which runs the HPWM command. Note, duty0=255 is max duty cycle. I'm working in the LOOP2: section of the code only right now.
    Thanks,
    John
    Attached Files Attached Files
    JRudd

Similar Threads

  1. HPWM of the port of two HPWM
    By ja2rqk in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 25th April 2007, 15:05
  2. sound command & music
    By trying in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 26th May 2006, 14:14
  3. 3 HPWM channels
    By docwisdom in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 4th April 2006, 02:43
  4. RC H-bridge control
    By RFsolution in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 10th March 2006, 14:10
  5. HPWM Motor Control
    By hughgoodbody in forum General
    Replies: 7
    Last Post: - 30th January 2005, 22:41

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts