Dc motor closed-loop control software 3D for print


 Dc motor closed-loop control software  3d model for 3d printers

 Dc motor closed-loop control software  3d model for 3d printers
 Dc motor closed-loop control software  3d model for 3d printers Dc motor closed-loop control software  3d model for 3d printers Dc motor closed-loop control software  3d model for 3d printers Dc motor closed-loop control software  3d model for 3d printers Dc motor closed-loop control software  3d model for 3d printers
561 Views 0 Likes 0 Downloads Download

Designer

Miguel Sánchez

3d model description

How to build a servomotor with an arduino brain. Based on servostrap https://github.com/danithebest91/ServoStrap
This program uses an Arduino for a c...losed-loop control of a DC-motor.

Motor motion is detected by a quadrature encoder.

Two inputs named STEP and DIR allow changing the target position.

Serial port prints current position and target position every second.

Serial input can be used to feed a new location for the servo (no CR LF).



Pins used:

Digital inputs 2 & 8 are connected to the two encoder signals (AB).

Digital input 3 is the STEP input.

Analog input 0 is the DIR input.

Digital outputs 5 & 6 control the PWM outputs for the motor (I am using half L298 here).

Please note PID gains kp, ki, kd need to be tuned to each different setup.

Motor's specs : http://www.mabuchi-motor.co.jp/en_US/cat_files/rs_385sh.pdf

Update: I have just added a new version of the firmware that using an additional interrupt on pin change will allow 4x encoder resolution. PWM output frequency has been raised outside of the audible range too (31Khz) but output pins have been changed, so check the comments in the code.

Update2: I have uploaded the capture of an analyzer showing the signals from the encoder, the step and dir pins and the PWM outputs of an ongoing print operation. The saleae software can be downloaded to browse through the capture (use latest beta). https://www.saleae.com/Downloads

Update3: I have added a much more elaborate version of the controller code now with EEPROM support and serial port setting of PID values https://github.com/misan/dcservo/blob/master/dcservo.ino


3d model print parameters

DC motor with encoder
Arduino board
H-bridge driver
Power supply...

Tags

Motor closed-loop Motor Closed-loop Tools Utils

License

CC Atribution

Related 3d models with tags

earrings

earrings

Motorcycle Chain lube accessory

Motorcycle Chain lube accessory

Handicap Logo Earrings - Proud to be Different

Handicap Logo Earrings - Proud to be Different

Freeze cube

Freeze cube

Loop Keychain

Loop Keychain

Dual Mode Spring Motor Rolling Chassis

Dual Mode Spring Motor Rolling Chassis

Submarine Motor mounting bracket - Rubber Band Version

Submarine Motor mounting bracket - Rubber Band Version

Indicators for Stepper Motor Tests

Indicators for Stepper Motor Tests

Watch Strap Loop

Watch Strap Loop

Motorized roller blinds

Motorized roller blinds

Earring PPT1

Earring PPT1

Zen 2.0 Jewelry set pendant and earrings

Zen 2.0 Jewelry set pendant and earrings

NEMA17 4:1 Gearbox

NEMA17 4:1 Gearbox

Spiral Curtain Tieback or Holdback

Spiral Curtain Tieback or Holdback

PLA / PVA Spring Motor Demonstrator

PLA / PVA Spring Motor Demonstrator

Tire Valve Caps - Car / Bike Accessory

Tire Valve Caps - Car / Bike Accessory

Chess Set - Jellyfish drooloop

Chess Set - Jellyfish drooloop

Dual Mode Windup Car

Dual Mode Windup Car

Jet Engine Fan

Jet Engine Fan

Tabletop Tri-Mode Spring Motor Rolling Chassis

Tabletop Tri-Mode Spring Motor Rolling Chassis

1:10 scale V8 Engine Block fits over 540 style rc motor

1:10 scale V8 Engine Block fits over 540 style rc motor

miniMe™ - DIY mini Robot Platform - Design Concepts

miniMe™ - DIY mini Robot Platform - Design Concepts

Closed chamber ('green house') UM2

Closed chamber ('green house') UM2

Motor Solenoide / Solenoid Engine

Motor Solenoide / Solenoid Engine

Spring Motor Rolling Chassis Version 2

Spring Motor Rolling Chassis Version 2

PLA Spring Motor Demonstrator 2

PLA Spring Motor Demonstrator 2

motorcycle screw on oil funnel

motorcycle screw on oil funnel