h-bridge problem


Results 1 to 12 of 12

Threaded View

  1. #1
    vision's Avatar
    vision Guest

    Question h-bridge problem

    hi,

    I'm a beginner in this amazing world of PICs and I have encountered 2 problems in controlling a dc motor direction...

    1. I used this H-bridge to control my motor (see attachments) and works fine while adding a voltmeter across the output but when load it with any load e.g my 9v motor the voltage decreases to a value of 0.01v and couldn't drive my motor.

    2. I wrote this program that reads a potentiometer value ,if this value is greater than 12kohms turns the motor CW, less than 12k ohms turns the motor CCW:
    device=16f84a
    dim R_Value as byte
    trisb=%00000001

    start:
    portb=0
    r_value=pot portb.0,153
    if r_value > 65 then goto rotate_lower 'Making motor rotate CW
    if r_value < 59 then goto rotate_higher 'Making motor rotate CCW

    Rotate_Lower:
    portb.1=1
    delayms 250
    goto start

    Rotate_Higher:
    portb.2=1
    delayms 250
    goto start
    the program worked but instead of comparing the value to 12 k ohms it performs this operation at 1.2k ohms (I have checked my scale!)

    any help will be appreciated, thank you
    Attached Images Attached Images  

Similar Threads

  1. 18F4620 HPWM Half Bridge Mod problem
    By showtime in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 2nd November 2007, 12:55
  2. USART Problem , but don't know where, in pc? or in PIC?
    By precision in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 15th July 2007, 08:12
  3. Hardware problem or what ?
    By Steve S. in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 4th March 2007, 21:39
  4. 1 slave 1 master 1 MAX232 1 problem ?
    By SuB-ZeRo in forum mel PIC BASIC Pro
    Replies: 19
    Last Post: - 31st July 2005, 22:59
  5. weird 12F629/675 problem
    By peterdeco1 in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 7th October 2004, 01:08

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