[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4807: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3904)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4809: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3904)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4810: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3904)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4811: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3904)
DAVID-Laserscanner Forum • View topic - Simple Turntable with Arduino
Dear DAVID Community,

In 2016, DAVID and this forum have been integrated into HP Inc.
This forum has been read-only since then, and will be switched off by then end of 2019.

To everyone who has contributed here, we thank you for all your work and for the constructive, helpful and friendly atmosphere you have created!
Please continue to discuss on the HP Support Forums.

Simple Turntable with Arduino

Which camera works? Where can you buy an adequate laser? And more...

Simple Turntable with Arduino

Postby WalterMo » Wed Oct 27, 2010 3:40 pm

Attachments
Turntable Controller Ardu5.jpg
ARDUTUR2.jpg
User avatar
WalterMo
Moderator
 
Posts: 2363
Joined: Mon Apr 02, 2007 6:52 pm
Location: Braunschweig, Germany

Re: Simple Turntable with Arduino

Postby Khalid Khattak » Thu Oct 28, 2010 2:23 pm

Hi Walter,
Again the breath taking work you have done on the turntable and a generous attitude to share with us... I am really thankful for the efforts for promoting David Laser Scanner...
Currently i am in other city without my hardware setup so having no scans to show..
Regards
PC: Dell Inspiron i3, 2.27GHz,4GB RAM,64 bit windows 7
CAMERA:
David CCD Mono USB
LASER:
David 5mW Green line laser
PROJECTOR:
3D LED Mini Projector 250lumens, Native 1024x600
[b]http://free3dscans.blogspot.com/
Khalid Khattak
 
Posts: 942
Joined: Thu Apr 23, 2009 1:30 pm
Location: Pakistan

Re: Simple Turntable with Arduino

Postby WalterMo » Fri Oct 29, 2010 7:55 pm

If a bigger motor is needed for the turntable it's better not to drive it by an EasyDriver. It could be overburdened. E.g. the microstep driver from Marcus Mechatronics is a better choice:
http://www.markusmechatronics.com/Tosdriver_eng.html

It can drive 1.5 A per phase and its IC can easily be equipped with a suitable heatsink. By means of microswitches on the board you can select four different step modes. The driver board doesn't come as a ready device but as a kit. And the kit consists only of a printed circuit board and the IC, a TA8435HQ.
I have tested both, the EasyDriver V4 and the Markus Mechatronics board. The latter I have left for the controller.

There are less differences to the EasyDriver V4:
The board needs an external 5V supply which comes from the Arduino.
The motor current cannot be adjusted by a potentiometer but is determined by two resistors. I have chosen 2 x 1.5 Ohm (equal to 0.5A per phase).

Walter

Edit 1: The circuit diagram was modified a bit. Nov. 1th, 2010.
Edit 2: I have attached a circuit diagram with the Pololu A4988 as the motor driver. March 2012. The Markus Mechatronics Driver isn't still available. :(
Edit 3: Instead of the diode 1N4001 at the lower picture margin use a 1N5400. Only that one at the input jack.
Edit 4: The Markus Mechatronics board is not available anymore.
Attachments
TurntableControllerArdu5 open2.jpg
Opened device
ARDUTUR.jpg
ARDUTU3.jpg
Pololu board in 1/8 micro step mode
User avatar
WalterMo
Moderator
 
Posts: 2363
Joined: Mon Apr 02, 2007 6:52 pm
Location: Braunschweig, Germany

Re: Simple Turntable with Arduino

Postby Khalid Khattak » Sun Jan 09, 2011 4:55 pm

Attachments
DSC06169.jpg
DSC06170.jpg
DSC06172.jpg
Last edited by Khalid Khattak on Sun Jan 09, 2011 4:59 pm, edited 1 time in total.
PC: Dell Inspiron i3, 2.27GHz,4GB RAM,64 bit windows 7
CAMERA:
David CCD Mono USB
LASER:
David 5mW Green line laser
PROJECTOR:
3D LED Mini Projector 250lumens, Native 1024x600
[b]http://free3dscans.blogspot.com/
Khalid Khattak
 
Posts: 942
Joined: Thu Apr 23, 2009 1:30 pm
Location: Pakistan

Re: Simple Turntable with Arduino

Postby Khalid Khattak » Sun Jan 09, 2011 4:56 pm

internal closeup..
Attachments
DSC06175.jpg
PC: Dell Inspiron i3, 2.27GHz,4GB RAM,64 bit windows 7
CAMERA:
David CCD Mono USB
LASER:
David 5mW Green line laser
PROJECTOR:
3D LED Mini Projector 250lumens, Native 1024x600
[b]http://free3dscans.blogspot.com/
Khalid Khattak
 
Posts: 942
Joined: Thu Apr 23, 2009 1:30 pm
Location: Pakistan

Re: Simple Turntable with Arduino

Postby WalterMo » Sun Jan 09, 2011 9:38 pm

Hi Khalid,
You have got a very professional and high loadable turntable! Nice device!

How to determine the worm gear ratio? I think by testing it with a known number of steps.
My code was programmed for a 1.8° motor in 1/8th microstep mode. And the rotation increment was set to 45°. That means for 45° we needed 200 single steps.
So make a test and push several times (but count it) the 'Next Pos' button. If the table has made nearly a 360° rotation, measure the angle difference to 360°. You know that your 1.8° motor in half step mode would need 400 steps (without a gear) for 360°. Taking all this into account you can determine the gear ratio.

But before increase the speed and reduce all the 10 ms delays in the sketch to 1ms. If this isn't still fast enough, let the motor rotate in full step mode.

Edit: Yes Khalid, you should change the two lines which you had already mentioned in your last post:

microAngle = motorAngle/80; // Used micro step angle.
k = incrementAngle/motorAngle*80; // Number of steps needed to go to next pos

Or wait until you can use the LCD display. Then put a laser on the table and let it rotate along the room walls for 360°. This will be more precise.
User avatar
WalterMo
Moderator
 
Posts: 2363
Joined: Mon Apr 02, 2007 6:52 pm
Location: Braunschweig, Germany

Re: Simple Turntable with Arduino

Postby Khalid Khattak » Mon Jan 10, 2011 5:17 pm

Thanks Walter for admiring the turntable...I think i have to rotate the Worm shaft and count the No of rotation to get one complete rotation of turntable..I ordered on 12th August from Sparkfun but so far not received the Display and Easydriver:(
PC: Dell Inspiron i3, 2.27GHz,4GB RAM,64 bit windows 7
CAMERA:
David CCD Mono USB
LASER:
David 5mW Green line laser
PROJECTOR:
3D LED Mini Projector 250lumens, Native 1024x600
[b]http://free3dscans.blogspot.com/
Khalid Khattak
 
Posts: 942
Joined: Thu Apr 23, 2009 1:30 pm
Location: Pakistan

Re: Simple Turntable with Arduino

Postby Khalid Khattak » Sun Jan 16, 2011 2:47 pm

PC: Dell Inspiron i3, 2.27GHz,4GB RAM,64 bit windows 7
CAMERA:
David CCD Mono USB
LASER:
David 5mW Green line laser
PROJECTOR:
3D LED Mini Projector 250lumens, Native 1024x600
[b]http://free3dscans.blogspot.com/
Khalid Khattak
 
Posts: 942
Joined: Thu Apr 23, 2009 1:30 pm
Location: Pakistan

Re: Simple Turntable with Arduino

Postby WalterMo » Mon Jan 17, 2011 1:05 pm

Hi Khalid,
Yes your math seems to be correct, but a gear ratio of 14.4? I think it must be an integer.
But:
microAngle = motorAngle/(2 x 14.4); // Used micro step angle. 2 = halfstep.

Maybe you can increase the speed a bit by completely deleting all delay lines. The display will also work for this case. But the main time consuming commands of the sketch are those which deal with the LCD display. Therefore, because you don't have this display yet, delete all (or some) of these commands in the void loop. I mean only for a test. Later on, if the speed is still not sufficient, we could change the code in such a way that the display isn't updated for each motor step change.
User avatar
WalterMo
Moderator
 
Posts: 2363
Joined: Mon Apr 02, 2007 6:52 pm
Location: Braunschweig, Germany

Re: Simple Turntable with Arduino

Postby Khalid Khattak » Mon Jan 17, 2011 1:40 pm

thanks Walter.. I was also amazed to see the gearing ratio..it should be in integer as it is designed by a reputable company.. I will see further with a sharp thin line to check its repeatability and adjust it...

i will delete all the delays and check whether the speed is improved or not... Thanks for helping me in code:)
PC: Dell Inspiron i3, 2.27GHz,4GB RAM,64 bit windows 7
CAMERA:
David CCD Mono USB
LASER:
David 5mW Green line laser
PROJECTOR:
3D LED Mini Projector 250lumens, Native 1024x600
[b]http://free3dscans.blogspot.com/
Khalid Khattak
 
Posts: 942
Joined: Thu Apr 23, 2009 1:30 pm
Location: Pakistan

Re: Simple Turntable with Arduino

Postby WalterMo » Wed Jan 19, 2011 6:44 pm

Hello Khalid,
Have just modified the code a bit for a turntable with a gear. For testing I have used this equipment and presettings:
1.8° motor with a 64:1 planetary gear: http://en.nanotec.com/planetary_gear_gple40.html
Motor driver board in half step mode: http://www.markusmechatronics.com/Tosdriver_eng.html

Angle increment if the „Next Pos.“ button is pressed: 22.5°.
Angle increment if the „Step“ button is pressed: 1°.

Measured time for a 45° rotation: 12 sec. Of course with the LCD display.
These lines must be filled out in the sketch:

//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! DEFINE HERE !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
incrementAngle = 22.5; // Define angle increment (in degrees)
motorAngle = 1.8; // Motor-step angle (in degree).
lcd.begin(16, 2); // Define your LCD Display here! Characters and rows.
z = 64; // Define gear ratio
microStepMode = 2; // 1 = fullstep, 2 = halfstep, 4 = 1/4 step, 8 = 1/8 step
//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

If you like, please check it.

Walter
Attachments
TurntableControllerForumV3.zip
(1.94 KiB) Downloaded 492 times
User avatar
WalterMo
Moderator
 
Posts: 2363
Joined: Mon Apr 02, 2007 6:52 pm
Location: Braunschweig, Germany

Re: Simple Turntable with Arduino

Postby pledgy2000 » Wed Jan 19, 2011 10:35 pm

pledgy2000
 
Posts: 13
Joined: Tue Nov 02, 2010 12:03 pm

Re: Simple Turntable with Arduino

Postby Khalid Khattak » Thu Jan 20, 2011 3:16 pm

PC: Dell Inspiron i3, 2.27GHz,4GB RAM,64 bit windows 7
CAMERA:
David CCD Mono USB
LASER:
David 5mW Green line laser
PROJECTOR:
3D LED Mini Projector 250lumens, Native 1024x600
[b]http://free3dscans.blogspot.com/
Khalid Khattak
 
Posts: 942
Joined: Thu Apr 23, 2009 1:30 pm
Location: Pakistan

Re: Simple Turntable with Arduino

Postby mipu » Sun May 15, 2011 5:57 pm

dear waltermo,

i just wired my arduino up acording to your diagram and code - it works! thank you very much for sharing!
windows 7 quadcore, benq beamer, canon dslr, automatic rotating table.
mipu
 
Posts: 101
Joined: Thu Apr 21, 2011 8:15 pm
Location: Tirol, Austria

Re: Simple Turntable with Arduino

Postby mipu » Thu Jun 02, 2011 9:39 am

windows 7 quadcore, benq beamer, canon dslr, automatic rotating table.
mipu
 
Posts: 101
Joined: Thu Apr 21, 2011 8:15 pm
Location: Tirol, Austria

Next

Return to Laser and Camera Hardware

Who is online

Users browsing this forum: No registered users and 2 guests

cron