[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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 488: 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 - Laser Scanner for Planeless Scanning
Dear DAVID Community,

As you are probably aware, the entire DAVID company, team and product range has been integrated into HP Inc.
This forum is now read-only. Relevant content has been migrated to HP and merged into HP's Support Forums on November 1, 2016.

To start new discussions for 3D Scanning, please register and post your new topic at the HP Support Forums

Laser Scanner for Planeless Scanning

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

Laser Scanner for Planeless Scanning

Postby WalterMo » Mon Nov 15, 2010 6:25 pm

This new controller, suitable for the planeless scanning, is a teamwork of Sven and me.
Sven has programmed the Arduino code and I have made the hardware. For a better understanding of the code he has added a lot of comments to the single statements.

The device is very similar to the 'Simple Laserscanner with Arduino':
viewtopic.php?f=6&t=1999

.....and the 'Simple Turntable with Arduino':
viewtopic.php?f=6&t=2383

But in contrast to the 'Simple Laserscanner' this controller is suitable also for planeless scanning. It is possible to do it manually or remote controlled by DAVID. Latter will work if the device is connected via an USB cable to your pc and both toggle switches, 'Laser' and 'Motor' are in its middle position. Additionally some parameters in the Advanced Settings must be set or changed:

1) Communication, COM, Portname = COMx (the number of x you will find on the device manager, USB Serial Port).
A hint: Use each time the same USB port of your pc. So the number x will be constant.

2) Communication, Messages, AnalyzeImage = set one or up to four M.
One M (the ratio motor step rate to frame rate is 1, that means high resolution with very low speed).
Four M (4 motor steps from one frame to the next. Result: higher speed). Best is to test it yourself.

3) Laserscanner, LaserPlaneCalculation, LaserMotionEstimation, Enabled = True
4) ........................................................................, MotionBase = 2
5) ........................................................................, ScanStartDetectionMode = 0
6)........................................................................., UseRememberedPlanePoses = True

Hardware

Sometimes it's difficult to get exactly the same components for a remake as what was noted on the circuit diagram. So I will give some hints:

1) LCD display:
You can use displays with 2 x 16 or 2 x 20 characters. If you have the latter please download the program 'Katie' to the Arduino. Otherwise 'KatieB'. The content on both displays is basically the same, but due to less characters the text is compressed and the unit 'Hz' for the real clock rate (downright) is saved.
It is not a requirement that you have such a display for planeless scanning if you set the controller to 'AUTO'. See below my second post of Nov 17th.

2) Voltage stabilizer for the 3V laser:
Instead of LD1117V30 you can use LD111V33 or the LM1086CT-3.3. Their TO-220 packages are pin-compatible.

3) Diodes 1N4001:
Instead of the 1N4001 you can use 1N4002, 1N4003, 1N4004, 1N4005, 1N4006 or 1N4007.

4) Transistor to switch the laser on and off:
I have chosen two BS170 in parallel because this type is rather common. There are some other MOSFETs suitable. E.g. the IRLIZ34N or the IRL530NS will also work fine. Power transistors like the latter must be used 'alone'. Important is to select a N-Channel MOSFET with a low gate_source voltage, so called Logic-Level ones.

5) Resistor R3:
This resistor is necessary to limit the backlight illumination current of the built-in LEDs. Some displays don't need it, they can directly connected to 5V. Take a look on the data sheet of your display. For the beginning and if you feel uneasy, use 180 Ohm. But some displays even need a higher voltage than 5V. If so, choose the 8.2V of the controller. Important: In this case R3 is imperative!

6) The 10k potentiometer at the display is necessary for adjusting a fine visibility of the characters.

7) The 10k potentiometer for 'Speed' must have a linear characteristic of its resistor. It can also be a 1k one. It is a linear working component, but here it acts digital, means the full range is subdived by the outreading software to 6 discrete levels. But instead of this potentiometer you can also use a 6-ary step switch. See my post below of Nov 17th.

8.) I have used two push buttons in series for the Reset of the step counter. So it's a bit safer not to reset inadvertently.

9) The toggle switches for 'Laser' and 'Motor' must be 3-position ones. Type: On-Off-On. They are connected to analog inputs and will be readout by 3 levels: 0V, 5V and just the half of 5V = 2.5V. Therefore the two resistors „around“ them must have exactly the same value.
But if you have problems to find this special toggle switches, here I have posted an alternative with SPDTs = “Single Pole Double Throw”:
viewtopic.php?f=6&p=16440#p16440

10) Here are some useful infos regarding the EasyDriver board: http://schmalzhaus.com/EasyDriver/

11) Instead of the EasyDriver V4 (max. 750mA per phase) you can also use the Big EasyDriver.....:
http://www.schmalzhaus.com/BigEasyDriver/
.....or the Pololu driver board:
http://www.watterott.com/index.php?page ... &info=1787
The last two can drive up to 2 Amp per phase and are also suitable for different microstepping modes. On this site is an example how to connect a Pololu:
viewtopic.php?f=6&t=4154

12) Instead of the Arduino Duemilanove we can use its successor, the Arduino Uno. The Uno is completely hard- and software compatible.

13) All resistors should have a wattage of 0.25W and a tolerance of 5%.

Walter

Edit: If you intend to use this controller and Sven's Katie software not with DAVID V2 but with V3 please read my post from Oct 11th 2011:
viewtopic.php?f=6&t=2421&start=210
Attachments
PlanelessControllerArdu3.jpg
PlanelessArdu4.jpg
User avatar
WalterMo
Moderator
 
Posts: 2363
Joined: Mon Apr 02, 2007 6:52 pm
Location: Braunschweig, Germany

Re: Laser Scanner for Planeless Scanning

Postby Sven » Mon Nov 15, 2010 6:36 pm

Attachments
Katie.zip
Ardiuno source code "Katie"
(5.29 KiB) Downloaded 1141 times
User avatar
Sven
DAVID Developer
 
Posts: 1541
Joined: Mon Jan 22, 2007 8:59 am
Location: Braunschweig, Germany

Re: Laser Scanner for Planeless Scanning

Postby Khalid Khattak » Mon Nov 15, 2010 7:01 pm

Hi Walter and Sven... What a generous peoples you are.. I love you both... Thanks for sharing.. I have to read it in details..
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: Laser Scanner for Planeless Scanning

Postby pottersfriend » Mon Nov 15, 2010 7:32 pm

Yes, thanks! Very helpful.
pottersfriend
 
Posts: 153
Joined: Wed Jun 03, 2009 1:49 am
Location: Washington State, USA

Postby hal » Mon Nov 15, 2010 10:11 pm

Good works guys! :D

Sharing is a good way to grow up this scan-community.
Thanks for your efforts, Walter and Sven.

Mattia
User avatar
hal
Moderator
 
Posts: 1527
Joined: Thu Mar 01, 2007 4:08 pm
Location: Cavaria con Premezzo (VA), Italy.

Re: Laser Scanner for Planeless Scanning

Postby pottersfriend » Mon Nov 15, 2010 10:51 pm

Just found out that the latest EasyStepper boards are fixed to 1/8th microstepping but I was still curious if anyone thinks it would be a good idea to add some sort of microstepping control for earlier EasyStepper or Pololu boards? I have a Pololu board, which is very similar to the EasyStepper, and I've been playing around with the microstepping but have always found it a pain to have to change the microstepping in the software and upload it to the Arduino. It would be nice to be able to set it with another knob on the controller if possible.

Not sure if other users would find the option useful, but thought I'd mention it. Something to think about I guess.

Thanks again for all of your hard work. I'm looking forward to playing with this when I get some time.
pottersfriend
 
Posts: 153
Joined: Wed Jun 03, 2009 1:49 am
Location: Washington State, USA

Re: Laser Scanner for Planeless Scanning

Postby WalterMo » Tue Nov 16, 2010 10:04 am

Here we have an overview of all EasyDriver boards:
http://schmalzhaus.com/EasyDriver/

The latest versions V4.2 and V4.3 have the possibility to change the step mode by external „hardware programming“. There are the two logic inputs MS1 and MS2. If they are left open the board runs in 1/8 step microstepping. By connecting one or both to 0V (Gnd), fullstep, halfstep or quarterstep can be achieved. See the datasheet of the IC A3967.
User avatar
WalterMo
Moderator
 
Posts: 2363
Joined: Mon Apr 02, 2007 6:52 pm
Location: Braunschweig, Germany

Re: Laser Scanner for Planeless Scanning

Postby WalterMo » Wed Nov 17, 2010 8:44 am

I have modified Sven's Katie software a bit for a smaller display with 2 x 16 characters.
The new name is now KatieB.

Edit (May 2012): Also please find KatieB V1.1 for DAVID V3.
Attachments
KatieB.zip
Arduino source code "KatieB"
(5.53 KiB) Downloaded 476 times
KatieB_1_1.zip
Arduino source code "KatieB v1.1"
(5.79 KiB) Downloaded 416 times
User avatar
WalterMo
Moderator
 
Posts: 2363
Joined: Mon Apr 02, 2007 6:52 pm
Location: Braunschweig, Germany

Re: Laser Scanner for Planeless Scanning

Postby Ordibble Plop » Wed Nov 17, 2010 9:33 am

Many thanks Walter and Sven for devising this controller and publishing it. I know what I want for Christmas so I had better put my beard on and go to the shops :)
Ordibble Plop
 
Posts: 103
Joined: Mon Mar 12, 2007 7:18 am
Location: New Zealand

Re: Laser Scanner for Planeless Scanning

Postby WalterMo » Wed Nov 17, 2010 6:52 pm

The controller Ardu3 can also be used without a LCD display. But then it's better to use a step switch instead of the 10k potentiometer. This ensures that each time the correct same speed is adjusted. Otherwise, because there isn't a control by the display, it might happen that it differs for the reference and the repetition scan. :(

Walter
Attachments
Potentiometerersatz.jpg
Instead of the potentiometer
User avatar
WalterMo
Moderator
 
Posts: 2363
Joined: Mon Apr 02, 2007 6:52 pm
Location: Braunschweig, Germany

Re: Laser Scanner for Planeless Scanning

Postby pottersfriend » Wed Nov 17, 2010 7:46 pm

@Walter - I re-read the EasyStepper description so I guess I was a bit confused on the microstepping. I think the "Quick Specs:" text is referring to the older boards where he said, "It is permanently set to use 8 step microstepping mode." Anyway, just wanted to put this here so others know, as you stated, the newer boards DO support microstepping.

Thanks for the clarification.

Darin
pottersfriend
 
Posts: 153
Joined: Wed Jun 03, 2009 1:49 am
Location: Washington State, USA

Re: Laser Scanner for Planeless Scanning

Postby pledgy2000 » Thu Nov 25, 2010 9:58 pm

Hi all

I have ordered an Arduino and lcd so I can have a go at building a controller.
At the moment I am using a second PC running Mach3 to control the stepper motor so it will be a big improvement.
I have been looking at the circuit diagram and can understand all but the ground connection to the easy driver step/direction.
You have the ground connected via 10k resistors to both the step and direction lines so with my limited knowledge I am unsure as to where the ground is coming from.

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

Re: Laser Scanner for Planeless Scanning

Postby WalterMo » Thu Nov 25, 2010 11:27 pm

Hi Dave,

The Gnd of both 10k resistors is coming out of the EasyDriver board. Means it is the very same as the Power In Gnd. Both Gnd are connected on (by) the board. I have simply drawn it in this way to save Gnd lines around the board.
Regarding Gnd lines in general: Best is to distribute Gnd lines radially from the 9V input jack to each load (board). The same is true for the 8.2V wires.

Walter
User avatar
WalterMo
Moderator
 
Posts: 2363
Joined: Mon Apr 02, 2007 6:52 pm
Location: Braunschweig, Germany

Re: Laser Scanner for Planeless Scanning

Postby pledgy2000 » Fri Nov 26, 2010 8:39 pm

Hi Walter

Thank you for explaining that it all makes sense now, I am used to drives that isolate the motor supply from the step and direction.
My Arduino came today so I will be busy experimenting this week end.

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

Re: Laser Scanner for Planeless Scanning

Postby milz » Sun Nov 28, 2010 8:40 am

Xeon x5650@4ghz
Cam : USB2 CCD 1024x768 / USB3 1280x900
Laser : LC532-5-3-F(16x65) Focusable Green
Projector Acer X110P / Acer K132
dControl one David control box + Turntable + automatic texture lights
mooooom bathroom!!!!!!
User avatar
milz
 
Posts: 520
Joined: Wed Jul 15, 2009 12:24 pm
Location: Germany Cologne

Next

Return to Laser and Camera Hardware

Who is online

Users browsing this forum: No registered users and 2 guests

cron