New to Arduino Need help with project

I am getting 2 Uno boards in the near future. I am new to coding, I am an electrician with 20+ yrs experience. I am working on a new project and thought a microcontroller would work better than a PLC using relay logic. I am having trouble finding information on how to use the UNO as a motor controller with a soft start system that will use a hall effect sensor for speed control and programming the UNO to be the potentiometer so I can integrate a motor controller that already has one built in. I was going to cut off the pot from the motor control and wire it into the UNO which would be the POT. Does anybody have a code for that, the system needs to have a soft start and use the hall effect sensor for rpm control which needs to be precise the motor needs to stay at 1750 to 1800 RPMs and the UNO needs to be the POT. Any help would be highly appreciated. Thank You!

Pretty poor start to a tutorial.

Your topic was moved to its current location as it is more suitable.

Your email was also removed unless you want plenty of spam ?

Could you also take a few moments to Learn How To Use The Forum.

It will help you get the best out of the forum in the future.

Thank you

Any hints on what type of motor?
Ac/dc, 1 phase/3 phase brushless?
Power of the motor ( 10 mW or 300 kW)?
12V / 380V?
Resistance of POT?

Can you provide links to the components you will be using - eg the motor and speed controller?

If the POT provides a ground referenced DC voltage to the controller it may be fairly easy - so please check with a meter to see if that is the case.

1st possible motor from amazon # 775 DC Motor DC 12V - 24V Max 6000-12000 RPM Ball Bearing Large Torque High Power Low Noise Gear Motor Electronic Component Motor |Brand|SP|
| --- | --- |
|Speed|12000 RPM||Voltage|12 Volts||Horsepower|12000 Watts||Item Weight|340 Grams|

  • ★ Type: Mini DC motor; Rated voltage: 12V 24V; No-load speed: 12000 ± 10% RPM;
  • ★Reversing: brush; protection function: fully enclosed; certification: CE;
  • ★Weight: 340g (APPROX); CAD size reference picture; is_customized: Yes.
  • ★Application: printer, rearview mirror / front beam level adjuster, toy car;
  • ★ Packaging: 1PCS x DC Motor; one year can be returned if there is a quality problem
    Specifications for this item|Brand Name|SP||Ean|0708082091861|
    |Horsepower|12000 watts||Item Weight|12.0 ounces||Part Number|775 12V 24V Gear Motor|
    |Speed|12000 rpm||UNSPSC Code|26100000||UPC|708082091861|
    |Voltage|12 volts|
    2nd possible motor * Power 1/4 HP* Voltage 12 DC* Speed/Amps
    2600 RPM, 2.2 amps no load 2300 RPM, 25 amps, 7 in.lbs. torque* Rotation Reversible
  • Bearings Ball* Enclosure TENV* Duty Continuous* Frame Rigid welded base
  • Mount 4-1/8" x 2-1/2"* Shaft 5/16" dia. x 11/16" w/flat* Size 4-1/4" dia. x 4-1/2"
  • Shpg. 8 lbs.
    1st possible controller Adjustable Digital display 10-55V 60A PWM DC Brushed Motor Speed Controller Switch Control 12V 24V 36V 48V Forward Brake Reverse For power wheels regulation (60A PWM)Brand: TKXEC

2nd possible controller
#2994 Pololu G2 High-Power Motor Driver 18v25

Hall effect sensor Hall Effect Magnetic Sensor Module, 3144E A3144 Hall Effect Sensor KY-003 DC 5V for Arduino PIC AVR Smart Cars by MUZHI(6 Pcs)

UNO power supply DC Converter 12V to 5V 3A 15W DC Buck Converter Module, DC to DC Reduced Voltage Regulator Car Power Converter Output Power Adapter, Wire Interface (1 Piece)

I ordered 2 of everything for redundancy not sure which one will work motor-wise or controller, I even ordered 2 UNO just in case. Thank You to everyone who replied! First time using a forum and programming. The only things I have ever programmed were PLC's which use relay logic and symbols and set up networks phone systems audio systems etc. never actually written a program before. So again Thank You! to all.

[quote="steveb411, post:6, topic:1033949, full:true"]
1st possible motor from amazon # 775 DC Motor DC 12V - 24V Max 6000-12000 RPM Ball Bearing Large Torque High Power Low Noise Gear Motor Electronic Component Motor |Brand|SP|
| --- | --- |
|Speed|12000 RPM||Voltage|12 Volts||Horsepower|12000 Watts||Item Weight|340 Grams|

  • ★ Type: Mini DC motor; Rated voltage: 12V 24V; No-load speed: 12000 ± 10% RPM;
  • ★Reversing: brush; protection function: fully enclosed; certification: CE;
  • ★Weight: 340g (APPROX); CAD size reference picture; is_customized: Yes.
  • ★Application: printer, rearview mirror / front beam level adjuster, toy car;
  • ★ Packaging: 1PCS x DC Motor; one year can be returned if there is a quality problem
    Specifications for this item|Brand Name|SP||Ean|0708082091861|
    |Horsepower|12000 watts||Item Weight|12.0 ounces||Part Number|775 12V 24V Gear Motor|
    |Speed|12000 rpm||UNSPSC Code|26100000||UPC|708082091861|
    |Voltage|12 volts|
    2nd possible motor * Power 1/4 HP* Voltage 12 DC* Speed/Amps
    2600 RPM, 2.2 amps no load 2300 RPM, 25 amps, 7 in.lbs. torque* Rotation Reversible
  • Bearings Ball* Enclosure TENV* Duty Continuous* Frame Rigid welded base
  • Mount 4-1/8" x 2-1/2"* Shaft 5/16" dia. x 11/16" w/flat* Size 4-1/4" dia. x 4-1/2"
  • Shpg. 8 lbs.
    1st possible controller Adjustable Digital display 10-55V 60A PWM DC Brushed Motor Speed Controller Switch Control 12V 24V 36V 48V Forward Brake Reverse For power wheels regulation (60A PWM)Brand: TKXEC

2nd possible controller
#2994 Pololu G2 High-Power Motor Driver 18v25

Hall effect sensor Hall Effect Magnetic Sensor Module, 3144E A3144 Hall Effect Sensor KY-003 DC 5V for Arduino PIC AVR Smart Cars by MUZHI(6 Pcs)

UNO power supply DC Converter 12V to 5V 3A 15W DC Buck Converter Module, DC to DC Reduced Voltage Regulator Car Power Converter Output Power Adapter, Wire Interface (1 Piece)

I ordered 2 of everything for redundancy not sure which one will work motor-wise or controller, I even ordered 2 UNO just in case. Thank You to everyone who replied! First time using a forum and programming. The only things I have ever programmed were PLC's which use relay logic and symbols and set up networks phone systems audio systems etc. never actually written a program before. So again Thank You! to all.

Sorry I have no idea why it just posted it twice!

Sorry!

Hi Steve; some odd choices - can you tel us a bit more about your application?

Hi John

I just need to spin the motor at a set RPM with a small load which will be a constant amount. I was going to use a hall effect sensor with a NeFeB magnet attached to the motor to detect the rotational speed. The one major problem is the motor's input voltage will fluctuate due to a charging system that will eventually engage and change the voltage to about 14.5 volts DC. I am thinking that as long as the Arduino can adjust the RPM of the motor automatically by just using the Hall effect sensor because that is the only variable I need to worry about. The only other thing I am concerned about is a soft start of the motor so the torque on my device is more manageable after that there will be a button to start and stop the motor. I would also like to use the LCD screen that comes with the starter kit to display the RPMs of the motor, the input voltage to the motor, and hopefully the amps being used by the motor. I have to say it seems easy on paper but for someone new to coding it feels impossible. I am going to go through the training and educational aspects that come with the Arduino starter kit. I am hopefully going to understand it better when I am done with it. I would like to use the Pololu driver instead of the other one. I am only getting the one from Amazon as a backup because of the display. The larger motor that I am getting (1/4 HP) is also a backup to the smaller one which I prefer. I also wanted to ask you about the power supply I picked out, the one that will be hard-wired from the car voltage with the 14.5 volt charging system to the Arduino will that work better or should I use a battery adapter that connects to the battery and has a lighter socket that will have a plug-in cell phone charger than a USB cable to the Arduino. I admit I would prefer to have a fused hardwired power supply Looks better ( more professional looking). Thank You for the reply. Steve Boyd

Sorry! DougP I am very very new to this site and forum ( which is my first forum of any kind!) I will try and be better in the future. I have to say one thing when I was reading about Arduino and this site and it said open source it really is open with no strings attached! I have never heard of or seen any site like this before. There are usually strings attached of one kind or another, but not here. I just found the library and it is awesome! I hope one day I will be good enough and worthy enough to add to it one day! I'll talk you later. Steve B

1 Like

What is it FOR?

Horsepower 12000 Watts
Voltage: 12V ~ 24V
Rated current: 4A, 10A, 12A (recommended starting current 10A)

24V * 12A = 288W NOT 12kW!

Hi, @steveb411

Sorry but I had to spread it a little.
HINT for new forum members, try and point form your descriptions and spread it a little to make reading esier.

Tom... :smiley: :+1: :coffee: :australia:
PS. Great that you are giving us the necessary info and what you want to do. :+1: :+1: :+1: :+1:

Hi Tom!

Sorry about that! I will do that from now on makes sense I guess I had a brain Fart!

Steve

Steve,

I'm new as well to this stuff. So, take this with a large grain.

I just finished prototyping two boards that have a piece of what you're trying to do; Reading a hall effect or mag sensor off a tach and then doing something with it.

A piece of advice is to break up your project into a couple of mini projects. ie. (just a suggestion):

  1. Read a hall effect into the Uno and display the results (serially or via a lcd).
  2. Use the Uno to vary a stepper motor or any other control device that would mimic your pot./motor controller.
  3. Use a buck converter of sufficient voltage in range to split the input voltage to Uno and other devices on your board. Meaning branch off 5v to Uno, and 12 or whatever to other on board devices.

Plenty of examples with 'google'.

JFYI, I fried 3 or 4 boards getting my learning curve up just a little :-). So you might want to order a couple more boards, hehe.

Roarkhen,

Thank You! I am gonna get a couple more now since you said so! I have a question for you, If I read the site correctly the language is C++. I hope it is I am on another site right now trying to learn C++ so I can be ahead of the curve before I get all the materials for this project. Thanks again for the information, even if I don't burn up any boards its always good to have extras. LOL
Steve B

Steve,

Yes, although i'm not sure how far into the standard it is. But, sure, learning C++ is a good start. Any language is a good start. It's more about learning how to code logic than it is the semantics of the language. Although if you've written enough (too many) languages, you get in your own way sometimes.

I'd couple pulling simple examples off this site and bread board to get an idea how to work. Learn the Arduino IDE, and go back and forth with whatever learning tools your using (book, online, youtube) and the code snippets in the IDE with a board hooked up.

You'll be getting into trouble in no time.

Roark

Thank You!

I let you know how many boards I blow up! LOL

steve

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.