Code and Wiring for DB1 Motor Control  

  RSS

Robo Pi
(@robo-pi)
Noble Member
Joined: 6 months ago
Posts: 1041
2019-11-12 2:57 pm  

@dronebot-workshop

Hi Bill,

Is there a way to get the code and wiring for the complete motor control system?   You had promised some time ago to make the code available on GitHub but I never saw that happen.

I'm ready to wire up and program the Arduino Mega and the two Nano's or Atmega328 chips (I'll actually be using STM32 boards in place of the Nano or Atmega chips) but the code should be similar enough.

I'd like to get the motors up and running with the nice smooth acceleration you had talked about in a previous DB1 episode.    I could figure out how to do this on my own, but since this is what you are also planning to do I thought it would be nice to use your scheme so we can be on the same page.  I'd like to see how you did this anyway.  I think you also had emergency stop routines, etc.   I wanted to duplicate all of that too so when it comes time for higher-level control we'll be on the same page.

It sure would be nice to get these robots up and running.   There sitting here waiting to be wired up and programmed.  I've been waiting for this wiring and code all summer. 😊 

DroneBot Workshop Robotics Engineer
James


Quote
Spyder
(@spyder)
Honorable Member
Joined: 6 months ago
Posts: 541
2019-11-12 6:53 pm  
Posted by: @robo-pi

nice smooth acceleration

I found this...

https://www.airspayce.com/mikem/arduino/AccelStepper/AccelStepper_8h_source.html

The main page...

https://www.airspayce.com/mikem/arduino/AccelStepper/examples.html

The main arduino page...

https://www.airspayce.com/mikem/arduino/

The main main page...

https://www.airspayce.com/mikem/

He's probably got an index with an actual web page in there someplace, but I didn't bother to look for the fancy bits, just the important parts


ReplyQuote
Robo Pi
(@robo-pi)
Noble Member
Joined: 6 months ago
Posts: 1041
2019-11-12 8:29 pm  

@spyder

Thanks.  But I'm driving PM motors.   Besides, I want to see Bill's larger scheme.  He's using a Mega to control two smaller microcontrollers, each one dedicated to a PM  motor.   And he also has an Emergency Stop system set up, as well as possible other features.   So I want to try to duplicate  what he's doing as closely as possible.   This way when we get to the other layers I'll be in harmony with how he intends to give commands to the Mega to control the robot.

DroneBot Workshop Robotics Engineer
James


ReplyQuote
Robo Pi
(@robo-pi)
Noble Member
Joined: 6 months ago
Posts: 1041
2019-11-12 9:05 pm  

@spyder

By the way.  Thanks for the link to the stepper motor control library.   That's a nice site, I saved the link for later possible use.  I plan on building a stepper motor driven arm  so these routines may indeed come in useful  for that project.   That's a really well-organized site.

DroneBot Workshop Robotics Engineer
James


Spyder liked
ReplyQuote
Spyder
(@spyder)
Honorable Member
Joined: 6 months ago
Posts: 541
2019-11-13 1:26 am  

@robo-pi

You're welcome 🙂

Even if you can't immediately use it, you might be able to at some point, or it might be of use to somebody else, considering how many other Random Robots we're Collectively Constructing 


ReplyQuote
Bif99
(@bif99)
Eminent Member
Joined: 4 months ago
Posts: 27
2019-11-21 12:33 am  

@dronebot-workshop

I too have been waiting patiently for Bill's sketches for the DB-1 project that were referenced in Ep-11. I would like to test the two Nano motor control even though I will probably upgrade to the 328P when available.  BTY, I posted a method for making cable assemblies using aviation connectors some time ago.  It is quite elegant.  Please check it out and let me know what you think of my method.


ReplyQuote

Please Login or Register