Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / controlling motors with DB?

Years of Service
User Offline
Joined: 20th Jan 2004
Location: CH
Posted: 8th Dec 2019 11:38
I have no idea how to do this:
Can I have any kind of interaction between DB and motors?
Say I wanted to implement a writing/drawing machine, controlled with DB: Is it possible?
If yes, where to start? What elements/interfaces would I need? Has somebody done it?
Any input on the topic is most welcomed
Years of Service
User Offline
Joined: 24th Feb 2005
Location: nm usa
Posted: 4th Jan 2020 05:08
i built a 3d printer long ago using dbpro. but dbpro itself cannot control motors i used it for generating slices of a model and generating 3d coordinates then running them through a gcode grble controller then to the stepper ic board and finally magic. agk however can control serial i/o

Years of Service
User Offline
Joined: 23rd Jul 2006
Posted: 7th Jan 2020 01:15
Hi dontaskme:

The short answer in regards to sending a signal to a motor is yes. Any program that can access the various input output ports on a computer can in theory control motors. You would have to figure out the voltage etc. so you don't damage your computer. Going back, and this will date me, people used the commodore 64's joystick ports to control all kinds of things. Also the serial out to the disk drive was used for just those sort of things - after all, the disk drive ran on a motor.

if you were to hook up a mechanical disk drive, hard drive, etc to the USB port of your computer, you are in essence controlling that motor. With the correct commands sent you could in theory control the speed and direction of that motor. What I'm talking about are all kinds of hacks. There isn't outright a means to control a motor but you could do it using DBPros basic language. Think of rumble packs in a joystick/controller. There are commands in DBPro for the intensity of the rumble I believe. Replace the motor in the joystick with one that has wheels or whatever.
Enjoy your day.

Login to post a reply

Server time is: 2020-01-20 17:23:21
Your offset time is: 2020-01-20 17:23:21