1. For downloading SimTools plugins you need a Download Package. Get it with virtual coins that you receive for forum activity or Buy Download Package - We have a zero Spam tolerance so read our forum rules first.

    Buy Now a Download Plan!
  2. Do not try to cheat our system and do not post an unnecessary amount of useless posts only to earn credits here. We have a zero spam tolerance policy and this will cause a ban of your user account. Otherwise we wish you a pleasant stay here! Read the forum rules
  3. We have a few rules which you need to read and accept before posting anything here! Following these rules will keep the forum clean and your stay pleasant. Do not follow these rules can lead to permanent exclusion from this website: Read the forum rules.
    Are you a company? Read our company rules

News Open source force feed back

Discussion in 'DIY peripherals' started by Hoantv, Oct 2, 2019.

  1. Sieben

    Sieben Active Member

    Joined:
    Nov 6, 2018
    Messages:
    324
    Balance:
    2,087Coins
    Ratings:
    +104 / 1 / -0
    Fundamentals. ) It's due to some hardware specs, driver topology and layout. And a motor. This is generally alright for motor controllers and motors to have it. But.

    This is diy relay and one mosfet with a right mosfet driver.

    12v 40% gain for a 24v motor. I bet it can be even lower. No min force.
    12v40% Relay.jpg
    And 12v 40% BTS
    12v40%BTS.jpg
    22v 40% BTS
    22v40% BTS.jpg
    And you can add min force to it. Generally simply some extra % of gain. Or some more gain to get rid of the dz. For your motor.

    And, i made the classical h bridge driver, and that also has all the same picture as a bts in that terms. But it can be and should be redone in some other way. And it can be changed there, to have a quick response on minor pwm amount. ) h-bridge can be pwmed on both sides, and can be set to dir ( just open up) one mosfet and pwm another. That are a preferable way. But, as long as the BTS is kinda already is controlled in this manner, too, as it seems to be, so you have to cope with it, and don't have to look up for a code to solve it )

    Also, i don't know will it help with a bts, but mosfet drivers DO need to supply right amount of current at least some amps to open close it's mosfets as it should be. And now think of the controller amount of power supply that goes to the bts mosfets drivers.... ) All can be in it too)

    It's like, controlling with pwm, even the logic gate mosfets with an opto too, pulling on a gate the required voltage,
    https://www.xsimulator.net/community/threads/diy-mosfet-h-bridge-driver.13286/page-2#post-179538

    and how does it work with a right powerful mosfet gate driver. Very huge difference)
    https://www.xsimulator.net/community/threads/diy-mosfet-h-bridge-driver.13286/page-3#post-195661
    Last edited: May 21, 2020
  2. Hoantv

    Hoantv Member

    Joined:
    Jul 19, 2019
    Messages:
    98
    Balance:
    789Coins
    Ratings:
    +62 / 1 / -0
    My Motion Simulator:
    AC motor, Arduino
    I saw you made another driver. Is it better than bts 7960 kit?
    I found more kit that are monster sparkfun and 7971.
    Monster is expensive. 7971 is cheaper, around $20.
    It doesn’t need heat sinks, already has optocouplers.
    About min torque. I think must shift value for torque not min. For example,
    Before: 0, 50, 100
    Shifter 0+ 100, 50+ 100, 100+100.
    But still have problem it is hard to move (like friction and damper)
  3. Sieben

    Sieben Active Member

    Joined:
    Nov 6, 2018
    Messages:
    324
    Balance:
    2,087Coins
    Ratings:
    +104 / 1 / -0
    What is your psu ratings?
    Frankly yes, that one with relay is better. Believe or not, but you can see the linearity tests. And really pumps more to motor. There are no lags as it might seems to be due to the mechanical relay. Only drawback is a sound. So you'd better think of the sound proof enclosing)) The classical with a pure mosfet topology, have to be redone some other way. It also has dz. I'll try another topology, then weather try another IR mosfets drivers, or add the one from the relay after the IR gate drivers. ))) And i'll be a monster too)
    https://www.xsimulator.net/community/threads/diy-mosfet-h-bridge-driver.13286/page-3#post-195661
    • Like Like x 1
  4. Hoantv

    Hoantv Member

    Joined:
    Jul 19, 2019
    Messages:
    98
    Balance:
    789Coins
    Ratings:
    +62 / 1 / -0
    My Motion Simulator:
    AC motor, Arduino
    I dont know, i used a adapter 24V 10A. It dont have spec :))! I follow your thread, may be i will do another driver like you :))
  5. Sieben

    Sieben Active Member

    Joined:
    Nov 6, 2018
    Messages:
    324
    Balance:
    2,087Coins
    Ratings:
    +104 / 1 / -0
    That's great but, it's a finer points being described with drivers. I bet, the issue can be solved some other way too.
  6. Hoantv

    Hoantv Member

    Joined:
    Jul 19, 2019
    Messages:
    98
    Balance:
    789Coins
    Ratings:
    +62 / 1 / -0
    My Motion Simulator:
    AC motor, Arduino
    Update: Gui prototype
    • Like Like x 1
    • Winner Winner x 1
  7. Sieben

    Sieben Active Member

    Joined:
    Nov 6, 2018
    Messages:
    324
    Balance:
    2,087Coins
    Ratings:
    +104 / 1 / -0
    Nice man! Could you do a code for bldc motors, to make it soft solution instead of hardware one?
  8. Hoantv

    Hoantv Member

    Joined:
    Jul 19, 2019
    Messages:
    98
    Balance:
    789Coins
    Ratings:
    +62 / 1 / -0
    My Motion Simulator:
    AC motor, Arduino
    Yes, could you tell me show a algorithm?
    I dont how bldc work.
  9. Sieben

    Sieben Active Member

    Joined:
    Nov 6, 2018
    Messages:
    324
    Balance:
    2,087Coins
    Ratings:
    +104 / 1 / -0
    Just recently come accross this article. https://www.ijser.org/paper/New-Control-Algorithm-for-Brushless-Dc-motor-Drive.html

    But, all working principles for blds you can find with ease, i mean that if it can be done with a software code, and then by means of that the motor driver itsel is nothing more then just 3 half bridges topology, standart one, we need a code to controll it, without jumping to some other stuff. I mean, to do a controll without "extra converters" pwm to blds controll, directly from the controller board itself. Like MMOS is kinda having this, the svpwm config, but reported as not a working one.

    This thread. The thing is also that it's not a standard way of speed controll that is required here, but a torque (vector) controll for blds.
    https://www.xsimulator.net/communit...th-hoverboard-motor.13178/page-17#post-197582

    Simply put, I bet you will know what to do better then with all of this and so on) :);)

    Once again. Nice work on Gui prototype.
    Last edited: May 12, 2020
  10. Hoantv

    Hoantv Member

    Joined:
    Jul 19, 2019
    Messages:
    98
    Balance:
    789Coins
    Ratings:
    +62 / 1 / -0
    My Motion Simulator:
    AC motor, Arduino
    About bldc motor, i found they have high speed but low torque. Do you suggest some motors. I will buy to try with them.
  11. Sieben

    Sieben Active Member

    Joined:
    Nov 6, 2018
    Messages:
    324
    Balance:
    2,087Coins
    Ratings:
    +104 / 1 / -0
    No, you are wrong. Check the complite thread in previous message.
  12. Hoantv

    Hoantv Member

    Joined:
    Jul 19, 2019
    Messages:
    98
    Balance:
    789Coins
    Ratings:
    +62 / 1 / -0
    My Motion Simulator:
    AC motor, Arduino
    Okie. I found a bldc 0.7 nM with driver around 70$. I will try.
    After doing some test with bts7960. I found that, when r_en and l_en is high at the sametime, motor is difficult to move although pwm = 0.
    I tried to set r_en = 1, l_en=0 or vice versa and set both r_pwm and l_pwm but moto didn’t move. May be have a problem here.
  13. Sieben

    Sieben Active Member

    Joined:
    Nov 6, 2018
    Messages:
    324
    Balance:
    2,087Coins
    Ratings:
    +104 / 1 / -0
    Take a note, it has to have foc/vector controller for bldc. I have an idea to use the native bike bldc controllers, with swapping the two phases and two hall sensors to change its direction by means of h- bridge or a relay. Its controllers should have a vector controlle already.

    Do you make two dir and then one pwm for lpwm rpwm then? It should work. By means of one pwm+2 dirs. I"ll repeat that i don't have such an issues with braking motor with 5volts on both ren len.
  14. Sieben

    Sieben Active Member

    Joined:
    Nov 6, 2018
    Messages:
    324
    Balance:
    2,087Coins
    Ratings:
    +104 / 1 / -0
    Do it like that, and tell please, does it make a change for you. pwm+dir mode.
    MMOS.
    [​IMG]
  15. Hoantv

    Hoantv Member

    Joined:
    Jul 19, 2019
    Messages:
    98
    Balance:
    789Coins
    Ratings:
    +62 / 1 / -0
    My Motion Simulator:
    AC motor, Arduino
    Here is the motor and driver i will buy.

    https://m.vi.aliexpress.com/item/32...er_id=9d3853584c4c4288876d47e67b8e4b3e&is_c=N

    https://m.vi.aliexpress.com/item/40...er_id=9d3853584c4c4288876d47e67b8e4b3e&is_c=N

    About bts, i tested another schemtic:
    - turn right Pin 9, len = 1; pin 11 ren=0
    - turn left Pin 11, ren = 1; pin 9 len = 0
    but the problem is the motor didn’t move I active ren or len. The motor only run if i activated both ren and len.
    I’ve tested like your picture, the result is the same, motor didnot move because active only ren or len.
  16. Sieben

    Sieben Active Member

    Joined:
    Nov 6, 2018
    Messages:
    324
    Balance:
    2,087Coins
    Ratings:
    +104 / 1 / -0
    As far as i know, this will not work, the driver you choose. I think you better hold it with bldc.
    Last edited: May 18, 2020
  17. Hoantv

    Hoantv Member

    Joined:
    Jul 19, 2019
    Messages:
    98
    Balance:
    789Coins
    Ratings:
    +62 / 1 / -0
    My Motion Simulator:
    AC motor, Arduino
    I will buy 7971 to test again, i still test with bldc too :)!
  18. Sieben

    Sieben Active Member

    Joined:
    Nov 6, 2018
    Messages:
    324
    Balance:
    2,087Coins
    Ratings:
    +104 / 1 / -0
    Bay the way. Try to put the spring Effect on the desktop a bit. At least with 1 pwm and dir it should be set to "On" in order to work right.
  19. Hoantv

    Hoantv Member

    Joined:
    Jul 19, 2019
    Messages:
    98
    Balance:
    789Coins
    Ratings:
    +62 / 1 / -0
    My Motion Simulator:
    AC motor, Arduino
    I see all firmware have it. But I dont understand why we need this? It only for testing or other purpose?
    Currently I sent data to stm32 but still have problem with float value ( for kp, ki, kd of PID control).
  20. Hoantv

    Hoantv Member

    Joined:
    Jul 19, 2019
    Messages:
    98
    Balance:
    789Coins
    Ratings:
    +62 / 1 / -0
    My Motion Simulator:
    AC motor, Arduino
    Update: GUI sent configuration data to stm32 successfully

    • Like Like x 1
    • Winner Winner x 1