1. Do not share user accounts! Any account that is shared by another person will be blocked and closed. This means: we will close not only the account that is shared, but also the main account of the user who uses another person's account. We have the ability to detect account sharing, so please do not try to cheat the system. This action will take place on 04/18/2023. Read all forum rules.
    Dismiss Notice
  2. 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!
  3. 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
  4. 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

Something's wrong. No smooth motor movement. Help needed!

Discussion in 'Ready, set, go - Start your engines' started by DawidMajewsi, Feb 16, 2025.

  1. DawidMajewsi

    DawidMajewsi New Member

    Joined:
    Sep 10, 2021
    Messages:
    8
    Balance:
    - 227Coins
    Ratings:
    +6 / 0 / -0
    My Motion Simulator:
    2DOF
    Hello!
    I'm trying to make platform drives, but I'm having problems with the smooth operation of the motor.
    components I used:
    - DC 24V 250W motor (wheelchair)
    - Hall potentiometer 6127V1A360L.5
    - DC 12V ~ 48V 100A controller (Aliexpress)
    - Arduino Uno + Shield

    Software:
    - Arduino SMC code

    https://drive.google.com/file/d/1y0vorE4k5fFaJBjK8lhGiyDnpI0ndUL9/view?usp=sharing

    - My connection diagram:
    https://drive.google.com/file/d/15zbrHMCDrDrVQ3_POF3GRqYH5Xr2kX3G/view

    upload_2025-2-16_20-57-46.png
    [​IMG]

    - SMC3Utils v1.01 program

    - Connection according to this thread:
    https://www.xsimulator.net/community/threads/reasonably-priced-100a-motor-controllers.17638/

    Below is a link to videos showing the motor movement:
    https://drive.google.com/file/d/1uD8XQB_LmRU0l8eaWVO9nYhBhwOgGx0p/view?usp=sharing
    https://drive.google.com/file/d/1pqdcBGjP7ihNawg2KfaXwbGOLgylTLpx/view?usp=sharing

    Please help me what I am doing wrong, where to look for the error? I tried different settings in SMC3Utils v1.01, I noticed that the potentiometer reading is also detected on the second motor, despite the signal being only connected to pin A1, for example.

    Attached Files:

  2. Joe Cortexian

    Joe Cortexian Member Gold Contributor

    Joined:
    Sep 8, 2021
    Messages:
    126
    Balance:
    765Coins
    Ratings:
    +26 / 0 / -0
    My Motion Simulator:
    3DOF
    Start by setting kp to 200-500 and ki to zero.
  3. Josh Latka

    Josh Latka New Member

    Joined:
    Jan 31, 2025
    Messages:
    21
    Balance:
    112Coins
    Ratings:
    +5 / 0 / -0
    My Motion Simulator:
    2DOF
    I don’t see a 5v connection from the adruino to the motor controller. Your potentiometer is connected to 5v but not your motor controller
    Your motor controller will need read the pwm signal until it has a 5v power source.
    Connect the 5v from the h bridge to the adruino
    You will need to use a breakout board or splice the 5v connection with the 5v wire on the potentiometer
    If you don’t want to splice wiring together you can obtain a breakout cookie or breakout board that will give you more 5v connections
    If you spice wiring I recommend soldering the wires and using heat shrink tube to shield the connection
  4. DawidMajewsi

    DawidMajewsi New Member

    Joined:
    Sep 10, 2021
    Messages:
    8
    Balance:
    - 227Coins
    Ratings:
    +6 / 0 / -0
    My Motion Simulator:
    2DOF
    Thank you for your valid attention. I missed it, but for some strange reason I started entering commands to move the engine via the serial port: [en2], [mo2] and [A512] etc. and although the engine did not respond after entering the commands, suddenly the engine started working properly, the graph calmed down and runs smoothly "as if something had been unlocked" - even with no 5V connected to the controller...