HB-25 program?
Iguanaman
Posts: 32
in Propeller 1
I an working with the program HB-25 motor controller object by C J v1.4 . I am trying to find the pin out for this program but can find nothing. The documentation given is just not getting through to me. What am I missing???? 13 july 2019(sat)
Comments
HB-25 pins (you need 'W' to control the HB-25 and 'B' for ground). In this case R is not connected...
From the CJ_HB25_014.spin code:
That Object has 4 PUBlic Methods that can be used by your program.
Config
Set_Motor1
Set_Motor2
Pulse_Motors
Pulse_Motors is the only Method that doesn't use Parameters.
Config needs a Pin number, Mode (0 for single or 1 for dual), and a State (0 for manual or 1 for auto refresh)
Set_Motor1 and Set_Motor2 need a Pulse rate from 1000 to 2000 since the code will limit values to this range.
Referring to the code segment dgately posted.
The CONstants section are for any values that will not change such as Pin numbers.
The OBJects section is for any Objects that your program will use such as Parallax Serial Terminal.
HB will be what your program uses for the HB25 Object, but the actual Object is called CJ_HB25_014.spin
Your program will then have a series of PUBlic or PRIvate Methods depending on what it is doing.
PUBlic Methods can be called by another program will PRIvate Objects can only be used in the same program they are in.
I like to create a Setup or Initialization Method.
CONstants allow you to quickly change the code.