I dont understand why motor tops out at 1.38v

I'm trying to build a project with a bunch of motors so I thought I would start simple with a simple motor I got in a kit.

I have a DBH-12V motor controller...that took a while to figure out the details as there is no clear datasheet on it.
I came up with the following wiring (no idea how to insert attachment)
Picture attached shows setup.

I wrote a look that increments from 1 to 256 the value to AnalogWrite to a PWM output.
I measure the voltage and it does go from 0 to 5v

The issue is that the motor starts at 0 and gets faster (UNTIL 1.38V), it then slows down and stays constant.

The loop does a count down from 5V (its still at slow constant speed) until it hits 1V and then it speeds up a bit until starts getting near 0 which stops it.

Why would the motor not keep going faster ?
Thanks for any help

Tim

2020-04-08 00_07_10-Tennis Ball Machine ‎- OneNote.png

You have neglected to post details of all the hardware. That means links to datasheets or product pages, in particular we know nothing about your motor or your power supply, or what actual model motor controller you
have, "DBH-12V" is not very specific it seems.

(And it should go without saying to post your code).

Hi,
Welcome to the forum.

Please read the post at the start of any forum , entitled "How to use this Forum".
OR
http://forum.arduino.cc/index.php/topic,148850.0.html.
Then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.

Can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png?

Thanks.. Tom... :slight_smile:

void setup() {
  // put your setup code here, to run once:
#define PWM_M1 3
  pinMode(PWM_M1, OUTPUT);

#define CURRENT_M1 A2
  pinMode(CURRENT_M1, INPUT);

  Serial.begin(38400, SERIAL_8N1);
}

void loop() {
  // put your main code here, to run repeatedly:
  int current;

  for (int i = 0; i <= 255; i++) {
    analogWrite(PWM_M1, i);
    Serial.print("Motor input:");
    Serial.print(i);
    Serial.print("  Current Sense:");
    delay(100);
    current = analogRead(CURRENT_M1);
    Serial.println(current);
  }

A video of the motor spinning faster and then hitting limit and dropping (the meter shows current through the motor

i did put a current meter in series with the motor and it tops out at about .85A and then it drops down to about .45A (even though the input voltage keeps increasing)

Also the best info on the motor controller is in this link
https://www.raspberrypi.org/forums/viewtopic.php?t=241060

Please display your image(s) in your post so we can see it(them) without downloading it(them). See this Simple Image Posting Guide

...R

And your power supply for the motor?

its a 5V supply that came with my arduino kit ..will attach pic....do you think its not able to handle ? is there a good way to check with a meter ?
power supply.jpg

power supply.jpg

i guess people ask enough questions ....to lead to the answer...

so sure enough the power supply couldn't handle it, I replaced the power supply and it operates as I expect AND the current sensing seems pretty good

Thanks for all the help
Tim

Hello,
I bet you'll not coming that soon to ask an other question .. :smiley:
That's how i like forums... you ask something and locals just ask you questions in return (that are not mandatory).. just cause they like it that way .. :smiley: