This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DRV8301 with bike throttle

Other Parts Discussed in Thread: DRV8301, TMS320F28069M, CONTROLSUITE, MOTORWARE

Hi

I have just purchased “Three Phase BLDC & PMSM Motor Kit with DRV8301 and InstaSPIN-enabled Piccolo TMS320F28069M MCU”

My application is to use this kit to control 48v/350w sensored BLDC via throttle. I have never used this kit before and I have just started going through the quick start guidelines. However, I would appreciate if I can get some guides about the following

How am I going to connect the wires from the BLDC sensor to the kit

How am I going to connect the throttle to the kit and allow it to communicate with the BLDC

Thank you

  • Hi Hussian

    Have you installed controlSUITE or Motorware softwares from TI.com? Most of the guides and documents, even experiments are included in the two softwares. You can get step-by-step guide through the them and get to know the whole hardware and software implementation of the kit.

    Also, you can go to the C2000 forum for any MCU, coding, algrithm problems.

    http://e2e.ti.com/support/microcontrollers/c2000/ 

    Best regards,

     

  • Thanks Wilson Zuo. I will go through the guides and documents and will let you know if i have any confusion.
    Thank you very much for your kind assistant.
  • the example projects in MotorWare don't use hall sensors. We may add one eventually (to show start-up with Halls) but primarily the solutions are fully sensorless or use encoders for high precision velocity/position applications.

    we use this kit on e-bikes often. The throttle is connected through an ADC channel, much like a potentiometer. You can follow the Potentiometer example from the document here:
    C:\ti\motorware\motorware_1_01_00_13\docs\tutorials
  • Thanks ChrisClearman, i will try to run the controller tomorrow and hopefully it run the hub. BTW, i bought this controller because of you and if its run well, i am planning to buy some extra unties
  • hello,

    I have the same kit and I already did lab1 and lab2a,
    and now I want to control my 48 vdc bldc motor without using the computer and instamotion.
    can I use the speed control knob in the kit to control the motor?
    and what is the correct program I have to flash it in the card to control the motor?

    thanks
  • there are several posts discussing use of the POT on the DRV8301 EVM, you can use the search feature.
    the SW changes are discussed in the tutorial located:
    C:\ti\motorware\motorware_1_01_00_13\docs\tutorials

    Use whichever project you like.
    Use the FLASH build configuration on the project.
    Make sure any boot mode switches are configured correctly on your HW to allow the chip to boot to flash.
    And of course since you aren't instrumenting the variables from CCS you will need to change the SW to set certain variables automatically at run-time, or when a button is pushed or something.
  • Thanks  Chris for replaying,

    I will go through the tutorials about using the POT and if there are more question i will ask if u dont mind x_x

    Im sorry for that but can you please tell me if im correct or not, im setting the SW for my F28069M to auto setting which is

    sw1 onon

    Sw2 down down

    Sw3 onon  

    Is this setting allow me to boot and to flash the program yes?

    And can i use  let's say lab02a to flash it to the card and run the motor without the computer ?

    Thanks a lot, and sorry for disturb.

  • review the documentation please
    C:\ti\motorware\motorware_1_01_00_13\docs\boards\control\f2806x\docs\qsg_hw_cncd28069miso.pdf

    note SW3 position 1

    you won't want to use proj_lab02a because you have no access to changing any of the gains (proj_lab05) nor any of the additional features you may require from labs 7, 9, or 10. I'd work through all the labs and make sure you fully understand....
  • Hi

    I have the same kit, and I want to send and receive commands through isolation spi port, so do you know any tutorial that help me with this?

    regards,
  • thanks chris,

    i did labs up to lab3
    and now im trying to add the potentiometer but it wont,

    i did all what is mentioned in the HAL tutorial and everything goes fine but the reading is not changing when i move the pot.

    can you show me more details about using the pot and where to paste the codes exactly.

    thanks
  • hi, you should scale the potentiometer value to kRPM, so I did that with a global variable like this:


    void updateGlobalVariables_motor(CTRL_Handle handle)
    {
    .
    .
    gPotentiometer = _IQmpy(HAL_readPotentiometerData(halHandle),_IQ(0.3)); // 0 to 300 RMP

    gMotorVars.SpeedRef_krpm = gPotentiometer ;
    .
    .

    }
  • Hi OscarD,

    Thanks for your help,

    actually im new on programing c, and im a student, i did all the steps on the Hal tutorial , now you said that i have to add the codes you just give me on the lab3a.c ? If yes, where to add ?  Thanks

  • Hello Chris,

    Thanks a lot for your great support, your advices from the beginning were very useful and helpful.

    I have used lab03a, and successfully I managed to run the motor via the potentiometer POT and the computer,
    So, now i want to run the motor using only the POT without the computer.

    Correct me if i'm not mistake from my understanding from your reply, i need to change the SW3 position 1 to off mode ?
    Do i have to add any extra command or configuration, or only do the setting for SW3 to use the kit as stand alone with the motor ?

    Thank you in advance for your kind support.
  • Its worked !!!! Thanks a lot OscarD for your great advice.
    now i'm looking forward to run the motor by using the KIT potentiometer without the computer.
    any advice ?

    thanks again for your support.
  • Hi Chris,
    I manged to rum the controller using the speed pot potentiometer. Any idea which type or name of throttle can be used to replace the potentiometer in DRV8301 kit
  • sorry, we've never purchased a throttle, we just wire in to what's there on an actual bike.
  • Thank Chris for your fast reply,
    i am have am actual bike, can i connect the three wire of the bike throttle straight away to the pot and it will work.
  • depends on if your throttle is putting out 0-5V or less. You probably need to buffer it down to 0 to 3.3V
  • Hello chris,

    Im trying to use my BLDC 48v to run small car that i have build it.

    I have done with all labs until 3 and i did inertia id lab also and everything was perfect.

    But, when i fixed the motor on my car it wont run it, but when i lift the car and free the tyre, the tyre is rotating as normal an i can control it easily, but when i leave the car on the ground it wont run,!!!!

    Is there any other parameters that i have to add it to user.h to make the car run?

    Is the problem with the weight ?

    When i connect the motor with the controller comes with the motor it runs my car perfectly but i want to use my drv8301 f28069m .

    Thanks a lot for your efforts,

  • Hello Mohammed,

    I am doing a similar application on a similar project I am doing. It sounds like you motor is not using enough current to overcome to initial rolling resistance to move which happens because it is not using enough current. I am stuck where I am not able to implement the speed control to the bike.

    Could I contact you to better understand how you got this to work?

    My email is san.norena@gmail.com 

    Thank you.