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

my first panel-less scan

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

my first panel-less scan

Postby treleau » Tue Jun 01, 2010 5:18 pm

Hello Davidian,

I present my new installation for the panel-less scanning and a fist scan of my head.
But I don't understand how I can synchronized the laser with David :? I do working more hard ? :roll:

Treleau

pannelles instalation2.jpg


treleau.jpg
User avatar
treleau
 
Posts: 64
Joined: Wed Feb 03, 2010 3:01 pm

Re: my first panel-less scan

Postby milz » Tue Jun 01, 2010 8:56 pm

hello Treleau

Did you mean switch laser on/off by press start in David ?
the controller on your picture looks like a arduino and adafruit motorshield.
at first you need make David talk to the arduino
http://www.david-laserscanner.com/wiki/ ... l/com_port
and start the arduino to listen on serial port
http://arduino.cc/en/Reference/Serial

You can found some informations here viewtopic.php?f=9&t=1960#p12115
I powered the laser directly by 5V at a digital pin with a resistor.
thats a BAD way so i have ordered some stuff from a german electronic supplier (Pollin)
see here viewtopic.php?f=9&t=1960#p12122
You need to use a external powersupply which will swichted by the arduino and a relay
+ a step down converter to reduce the power.

mfg milz
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

Re: my first panel-less scan

Postby treleau » Wed Jun 02, 2010 3:20 pm

Hello Milz

thanks for your reply
The Pollin's link are very interesting.
Yes, I use Arduino and adafruit's motor shield.
But I am a novice in electronic :oops:
For beginning, I'll, just, want ask to David run the stepper. But I must download a specific script in Arduino ?
And, what interface I'll must used ? (or only "parameters" in Advanced Setting)
It's very confuse for me, but thanks to your Arduino's link I can work and, maybe, understanding something. :)
For the laser power-supply, I have a lot of way to do. :roll:
An other thanks Milz. :D
Treleau
User avatar
treleau
 
Posts: 64
Joined: Wed Feb 03, 2010 3:01 pm

Re: my first panel-less scan

Postby milz » Wed Jun 02, 2010 7:16 pm

Hello Treleau

you only need to set the com port in the advanced setting to the same com port you use for
uploading a sketch to the arduino. (you cant upload a sketch if DLS use the port)

Here is a simple sample which run the motor 100 steps forward by pressing start in DLS.
I didnt test the code but i think it will work -)

Code: Select all
#include <AFMotor.h> // include the Adafruit motor libary

// Create the stepper motor object with AF_Stepper(steps, stepper#) to setup the motor H-bridge and latches.
// Steps indicates how many steps per revolution the motor has. a 7.5degree/step motor has 360/7.5 = 48 steps.
// Stepper# is which port it is connected to. If you're using M1 and M2, its port 1. If you're using M3 and M4 its port 2
AF_Stepper motor(200, 2); // Initzialze the motor Example is a 1,8 degree (360/1,8=200) stepper at M3 and M4
int incomingByte;  // Message from DLS
int mSpeed = 15; // Set Motor speed here
int mSteps = 100; // Set steps for scan here


void setup() {
  Serial.begin(9600); // Beginn serial communication
  motor.release(); // Release the power from motor coils
  motor.setSpeed(mSpeed);  // Set speed for the motor
  delay(3000); //wait 3 sec.
}

void loop()
{
  if (Serial.available() > 0)
  {
    incomingByte = Serial.read(); // Available command (C E G 1 2 3 O S T R Z)
    switch (incomingByte) // Check command
    {
    case 83: scan(); // Receive command S goto Scan mode
    }
  }
}
void scan()
{
  motor.setSpeed(mSpeed); // Set speed for the motor
  delay(100);
  // see http://www.ladyada.net/make/mshield/use.html section stepper for more info about available parameters
  // Direction: (FORWARD | BACKWARD)
  // Motor steps (SINGLE | DOUBLE | INTERLEAVE | MICROSTEP.)
  motor.step(mSteps, FORWARD, MICROSTEP); // Start running motor with mSteps
  Serial.println("T"); // Send the Command T for stop to DLS
  delay(50);
  motor.release(); // Release the power from motor coils
  Serial.flush(); // clean up
  incomingByte=0;
}


mfg milz
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

Re: my first panel-less scan

Postby MagWeb » Wed Jun 02, 2010 9:24 pm

Maybe this Sketch helps.

Load it to arduino. It uses DAVID default messages plus:
AnlyzeImage = M
SetupCamScanning = U

It can also (optional) control a laser on M4 (using a voltage reduction)
and a 12V light on M3;

Lasermove.exe is a simple app to move the laser using this sketch(Note: To get DAVID to talk to the port, you´ve to close the port within Lasermove.exe)
Attachments
StepDAV06_2010.rar
(1.57 KiB) Downloaded 199 times
Lasermove.rar
(16.36 KiB) Downloaded 202 times
MagWeb
Moderator
 
Posts: 2499
Joined: Wed Jul 18, 2007 8:48 pm

Re: my first panel-less scan

Postby treleau » Thu Jun 03, 2010 9:25 am

Hello Gunter and Mils

Thanks for the two script.I am spoilt :D
Lasercontrol is operate but my motor don't move at the same speed. :? Nevertheless, I put the same motor's parameter of my script's test .(remember, I have a synchronous motor: viewtopic.php?f=6&t=1782 )

But when I request at David to start, nothing happen. :(

I choose the Port COM3 in arduino and David's advanced settings, but the communication between David and Arduino seems not operate.
I choose M3 and M4 in sketch ( AF_stepper motor (10, 2)) (my motor run with 10 steps).
I close the active port in Lasercontroll.

I 'll test the script with another stepper, perhaps it's my synchronous motor the guilty. :roll:

Treleau
User avatar
treleau
 
Posts: 64
Joined: Wed Feb 03, 2010 3:01 pm

Re: my first panel-less scan

Postby MagWeb » Thu Jun 03, 2010 9:45 am

Enable the debugger in the advanced settings.
Running DAVID: Is there any "could not send message" ?
MagWeb
Moderator
 
Posts: 2499
Joined: Wed Jul 18, 2007 8:48 pm

Re: my first panel-less scan

Postby treleau » Thu Jun 03, 2010 10:17 am

I run David with enable debugger and I obtain that: :shock:

Error David 2.jpg


Treleau
User avatar
treleau
 
Posts: 64
Joined: Wed Feb 03, 2010 3:01 pm

Re: my first panel-less scan

Postby MagWeb » Thu Jun 03, 2010 10:31 am

Are you sure that arduino is connected to port COM 3?

Means: Using the ARDUINO software: are you able to load some sketch to the board using port 3?
MagWeb
Moderator
 
Posts: 2499
Joined: Wed Jul 18, 2007 8:48 pm

Re: my first panel-less scan

Postby treleau » Thu Jun 03, 2010 10:50 am

I have no problem for communicate with my arduino an I can load sketch. Only David seems have a problem. :|
And lasecontrol run good. :wink:
arduino COM3. 2.jpg

error com3.jpg

Treleau
User avatar
treleau
 
Posts: 64
Joined: Wed Feb 03, 2010 3:01 pm

Re: my first panel-less scan

Postby MagWeb » Thu Jun 03, 2010 11:43 am

Strange,

make sure that no other software except DAVID uses that port: So close Lasercontrol and Arduinosoftware - maybe reboot your system and try again
(just to mention: once loaded to the board, you should need nothing but DAVID to perform the actions)
MagWeb
Moderator
 
Posts: 2499
Joined: Wed Jul 18, 2007 8:48 pm

Re: my first panel-less scan

Postby treleau » Thu Jun 03, 2010 12:21 pm

Yes, it' very strange.

I reboot my system and open only David, but it's the same thing :cry:

Treleau
User avatar
treleau
 
Posts: 64
Joined: Wed Feb 03, 2010 3:01 pm

Re: my first panel-less scan

Postby milz » Thu Jun 03, 2010 2:12 pm

hello treleau

did you change the baud rate in David or the sketch?
see: " Serial.begin(9600); ". 9600 is the baud rate ... must be the same in DAVID.

mfg milz
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

Re: my first panel-less scan

Postby treleau » Thu Jun 03, 2010 2:37 pm

I begin to dissolve me into the despair.
Please, don't let me down !

autoportrait5.jpg



Treleau
Last edited by treleau on Thu Jun 03, 2010 3:04 pm, edited 1 time in total.
User avatar
treleau
 
Posts: 64
Joined: Wed Feb 03, 2010 3:01 pm

Re: my first panel-less scan

Postby treleau » Thu Jun 03, 2010 2:48 pm

I believe that this parameter, but it is already at 9600.
Good endeavour Milz :)

advanced setting 9600.jpg

9600 arduino jpg.jpg

Treleau
User avatar
treleau
 
Posts: 64
Joined: Wed Feb 03, 2010 3:01 pm

Next

Return to Laser and Camera Hardware

Who is online

Users browsing this forum: No registered users and 0 guests

cron