Laser pointer discussion. Read/write reviews of laser pointers and laser pointer companies. Learn about all types of laser pointers and lasers





Welcome to Laser Pointer Forums! If you are looking for a laser pointer or want to compare different laser pointer companies, you may want to check out the LPF Laser Pointer Company Database. The link will open in a new window for your convenience.








Green Laser Pointers by Category Blue Laser Pointers by Category Red Laser Pointers by Category
Yellow Laser Pointers by Category Violet Laser Pointers by Category Orange Laser Pointers by Category
Top Laser Pointers by Power - 1 Watt+ Top Laser Pointers by Power - 500mW+ Top Laser Pointers by Power - 250mW+
Laser Pointer Database High Power Laser Pointers Laser Pointer Diodes
Laser Technology Laser Pointer Parts Lasers by Wavelength
Top 10 Laser Pointer Companies Laser Pointer Company Database Visible Beam Laser Pointers


One laser store meets all your needs

























Go Back   Laser Pointer Forums - Discuss Laser Pointers > Lasers > Laser Shows



LPF List of Laser Pointer Companies (link opens new window)



Reply
 
LinkBack Thread Tools Display Modes
Old 06-02-2013, 11:39 PM #81
camvo's Avatar
Class 1M Laser
 
Join Date: Sep 2011
Location: Holland, Rotterdam
Posts: 102
Rep Power: 14
camvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to behold
camvo camvo is offline
Class 1M Laser
camvo's Avatar
 
Join Date: Sep 2011
Location: Holland, Rotterdam
Posts: 102
Rep Power: 14
camvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to behold
Default Re: ARDUINO & DAC for XY projector

OK Bionic-Badger.

I will modify the current board to connect it to the DUE.

It means I will cut off the BOARDUINO part.

When it is finished, I will post it on this thread.


__________________
50mW 532nm (ripped from a cheap stage projector)
500mW 532nm (in the laser harp)

1W RGB (500mW-660nm, 200mW-532nm, 500mW-450nm) Touch the white beam and it is: "AUCH!!"

The white laser burned the paint off from the door!
I am thinking of starting a "door-etching-business"
camvo is offline   Reply With Quote







LPF List of Laser Pointer Companies (link opens new window)







Old 06-03-2013, 03:44 PM #82
OldNo7's Avatar
Class 1 Laser
 
Join Date: Nov 2012
Location: Ventura, Ca
Posts: 77
Rep Power: 282
OldNo7 has a reputation beyond reputeOldNo7 has a reputation beyond reputeOldNo7 has a reputation beyond reputeOldNo7 has a reputation beyond reputeOldNo7 has a reputation beyond reputeOldNo7 has a reputation beyond reputeOldNo7 has a reputation beyond reputeOldNo7 has a reputation beyond reputeOldNo7 has a reputation beyond reputeOldNo7 has a reputation beyond reputeOldNo7 has a reputation beyond repute
OldNo7 OldNo7 is offline
Class 1 Laser
OldNo7's Avatar
 
Join Date: Nov 2012
Location: Ventura, Ca
Posts: 77
Rep Power: 282
OldNo7 has a reputation beyond reputeOldNo7 has a reputation beyond reputeOldNo7 has a reputation beyond reputeOldNo7 has a reputation beyond reputeOldNo7 has a reputation beyond reputeOldNo7 has a reputation beyond reputeOldNo7 has a reputation beyond reputeOldNo7 has a reputation beyond reputeOldNo7 has a reputation beyond reputeOldNo7 has a reputation beyond reputeOldNo7 has a reputation beyond repute
Default Re: ARDUINO & DAC for XY projector

If your just driving an LED wouldn't it be easier to use a transistor?
Attached Thumbnails
ARDUINO & DAC for XY projector-screencapture.jpg  
OldNo7 is offline   Reply With Quote
Old 06-03-2013, 06:54 PM #83
camvo's Avatar
Class 1M Laser
 
Join Date: Sep 2011
Location: Holland, Rotterdam
Posts: 102
Rep Power: 14
camvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to behold
camvo camvo is offline
Class 1M Laser
camvo's Avatar
 
Join Date: Sep 2011
Location: Holland, Rotterdam
Posts: 102
Rep Power: 14
camvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to behold
Default Re: ARDUINO & DAC for XY projector

Yes OldNo7.

Why would you want to drive something as simple as a LED with a DAC??

Overkill!!
__________________
50mW 532nm (ripped from a cheap stage projector)
500mW 532nm (in the laser harp)

1W RGB (500mW-660nm, 200mW-532nm, 500mW-450nm) Touch the white beam and it is: "AUCH!!"

The white laser burned the paint off from the door!
I am thinking of starting a "door-etching-business"

Last edited by camvo; 06-03-2013 at 11:26 PM.
camvo is offline   Reply With Quote
Old 06-04-2013, 10:28 AM #84
Class 2 Laser
 
Join Date: Feb 2012
Location: UK
Posts: 330
Rep Power: 80
Multimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond repute
Multimode Multimode is offline
Class 2 Laser
 
Join Date: Feb 2012
Location: UK
Posts: 330
Rep Power: 80
Multimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond repute
Default Re: ARDUINO & DAC for XY projector

Quote:
Originally Posted by OldNo7 View Post
If your just driving an LED wouldn't it be easier to use a transistor?
I think the comment BB made was regarding users who have driven a LED with the DAC pin and damaging the OP.

Canvo is not doing this, he is using the DAC to drive the scanner signal and an opamp would give some additional buffering protection

That circuit showing the transistor needs a current limiting resistor in series with the LED

ATB
MM
Multimode is offline   Reply With Quote
Old 06-04-2013, 05:15 PM #85
OldNo7's Avatar
Class 1 Laser
 
Join Date: Nov 2012
Location: Ventura, Ca
Posts: 77
Rep Power: 282
OldNo7 has a reputation beyond reputeOldNo7 has a reputation beyond reputeOldNo7 has a reputation beyond reputeOldNo7 has a reputation beyond reputeOldNo7 has a reputation beyond reputeOldNo7 has a reputation beyond reputeOldNo7 has a reputation beyond reputeOldNo7 has a reputation beyond reputeOldNo7 has a reputation beyond reputeOldNo7 has a reputation beyond reputeOldNo7 has a reputation beyond repute
OldNo7 OldNo7 is offline
Class 1 Laser
OldNo7's Avatar
 
Join Date: Nov 2012
Location: Ventura, Ca
Posts: 77
Rep Power: 282
OldNo7 has a reputation beyond reputeOldNo7 has a reputation beyond reputeOldNo7 has a reputation beyond reputeOldNo7 has a reputation beyond reputeOldNo7 has a reputation beyond reputeOldNo7 has a reputation beyond reputeOldNo7 has a reputation beyond reputeOldNo7 has a reputation beyond reputeOldNo7 has a reputation beyond reputeOldNo7 has a reputation beyond reputeOldNo7 has a reputation beyond repute
Default Re: ARDUINO & DAC for XY projector

I understand he's making a DAC for the galvos. My mind just jumped ahead to the TTL modulation. I should have explained that. Sorry, it was early Monday morning and I was at the lake all weekend.

Now, after thinking about it you really only need a pull-down resistor for TTL.

@camvo I'm glad your taking the time to do this. I'm excited to see what turns out.
OldNo7 is offline   Reply With Quote
Old 06-04-2013, 09:17 PM #86
camvo's Avatar
Class 1M Laser
 
Join Date: Sep 2011
Location: Holland, Rotterdam
Posts: 102
Rep Power: 14
camvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to behold
camvo camvo is offline
Class 1M Laser
camvo's Avatar
 
Join Date: Sep 2011
Location: Holland, Rotterdam
Posts: 102
Rep Power: 14
camvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to behold
Default Re: ARDUINO & DAC for XY projector

I finished designing the PCB. Sneak preview in the attachment. (Pink color is copper fill areas.)

I have made it shield style so you can just snap it on your DUE.
So no wiring. And you can free your DUE for other projects when desired in a matter of seconds.
(Oops...the salesman in me popped up.)

The board will have TTL blanking only.


The previous version which I made had no pull down resistors on the blanking pins OldNo7 and it worked fine.
(See in the first few posts the results.)

I will first actually make the board and test it. Then brag about it.
After that I will publish the final version for anyone interested.


(Still waiting for the new power supply for the RGB laser.)

.
Attached Thumbnails
ARDUINO & DAC for XY projector-pcb-galvo-due-shield.png  
__________________
50mW 532nm (ripped from a cheap stage projector)
500mW 532nm (in the laser harp)

1W RGB (500mW-660nm, 200mW-532nm, 500mW-450nm) Touch the white beam and it is: "AUCH!!"

The white laser burned the paint off from the door!
I am thinking of starting a "door-etching-business"

Last edited by camvo; 06-04-2013 at 09:23 PM.
camvo is offline   Reply With Quote
Old 06-06-2013, 12:20 PM #87
Class 2 Laser
 
Join Date: Feb 2012
Location: UK
Posts: 330
Rep Power: 80
Multimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond repute
Multimode Multimode is offline
Class 2 Laser
 
Join Date: Feb 2012
Location: UK
Posts: 330
Rep Power: 80
Multimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond repute
Default Re: ARDUINO & DAC for XY projector

Quote:
Originally Posted by camvo View Post
I finished designing the PCB. Sneak preview in the attachment. (Pink color is copper fill areas.)
I will first actually make the board and test it. Then brag about it.
After that I will publish the final version for anyone interested.
(Still waiting for the new power supply for the RGB laser.)
.
Hi Camvo,

Looks good, I need a correction board, so I'd be interested in seeing the final result. Hope you get the PSU soon (want to see that RGB beam).

I've been thinking about the 328 and if I can squeeze any more out of it.
The SPI is running at the moment at 4mhz and this can be adjusted to run up to the full clock frequency by this command SPI_CLOCK_DIV2 (this would give me 8mhz.)

I'm not sure if this will free up the processor much as the data is handled by the SPI hardware. However IF the processor is waiting for the hardware to finish, then it could potentially save a lot of time.
I'll try it later.

(I have a Raspberry Pi SBC, this runs with a 700mHz Arm processor - just to be different, I might give that a go, but I'll be back at the bottom of the learning curve!
It's about 30 so is a good price to performance ratio).

ATB
MM
Multimode is offline   Reply With Quote
Old 06-06-2013, 02:54 PM #88
camvo's Avatar
Class 1M Laser
 
Join Date: Sep 2011
Location: Holland, Rotterdam
Posts: 102
Rep Power: 14
camvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to behold
camvo camvo is offline
Class 1M Laser
camvo's Avatar
 
Join Date: Sep 2011
Location: Holland, Rotterdam
Posts: 102
Rep Power: 14
camvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to behold
Default Re: ARDUINO & DAC for XY projector

That is also why I decided to use the ARDUINO DUE.
I know nothing about the programming the Raspberry Pi.


The board basically would do the correction of any DAC 0~+5V.
So also the DAC output of a RB-PI.

I etched the PCB yesterday evening so I hope before the end of the weekend, to get things running.
__________________
50mW 532nm (ripped from a cheap stage projector)
500mW 532nm (in the laser harp)

1W RGB (500mW-660nm, 200mW-532nm, 500mW-450nm) Touch the white beam and it is: "AUCH!!"

The white laser burned the paint off from the door!
I am thinking of starting a "door-etching-business"
camvo is offline   Reply With Quote
Old 06-07-2013, 06:42 PM #89
Class 2 Laser
 
Join Date: Feb 2012
Location: UK
Posts: 330
Rep Power: 80
Multimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond repute
Multimode Multimode is offline
Class 2 Laser
 
Join Date: Feb 2012
Location: UK
Posts: 330
Rep Power: 80
Multimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond repute
Default Re: ARDUINO & DAC for XY projector

Well,.... the SPI going from 4mhz to 8mHz increased the speed from 13.6Kpps to 14.6Kpps.
Bit dissapointing

Next step, might try some Rasberry Pi.
Multimode is offline   Reply With Quote
Old 06-08-2013, 11:24 PM #90
camvo's Avatar
Class 1M Laser
 
Join Date: Sep 2011
Location: Holland, Rotterdam
Posts: 102
Rep Power: 14
camvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to behold
camvo camvo is offline
Class 1M Laser
camvo's Avatar
 
Join Date: Sep 2011
Location: Holland, Rotterdam
Posts: 102
Rep Power: 14
camvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to behold
Default Re: ARDUINO & DAC for XY projector

Hi guys,


Well, I finished the shield and it works. (OMG!!)
There was a minor error in the PCB but it was easy to fix it.

I could not test the blanking because I am still waiting for the RGB power supply.
Once I got that in, I will hook it up.


And...as I promised in the begining of this thread, the PCB-Layout is attached. For Free!!!!
(the corrected version.)

I attached some images and movie of the results.

If you want to open the PCB, you have to download DESIGNSPARK

It is free sofware but you will need it to print the PCB mask if you want to make you own shield.
Attached Thumbnails
ARDUINO & DAC for XY projector-shield-due-top.jpg   ARDUINO & DAC for XY projector-shield-due-bottom.jpg   ARDUINO & DAC for XY projector-due-shield-detail-top.jpg   ARDUINO & DAC for XY projector-due-shield-detail-bottom.jpg   ARDUINO & DAC for XY projector-waves-shield.jpg  

ARDUINO & DAC for XY projector-due-shield-layout.png  
Attached Files
File Type: wmv SINE WAVE 50pts-1cycle from shield.wmv (5.68 MB, 263 views)
File Type: zip ILDA ARDUINO DUE.zip (20.7 KB, 249 views)
__________________
50mW 532nm (ripped from a cheap stage projector)
500mW 532nm (in the laser harp)

1W RGB (500mW-660nm, 200mW-532nm, 500mW-450nm) Touch the white beam and it is: "AUCH!!"

The white laser burned the paint off from the door!
I am thinking of starting a "door-etching-business"

Last edited by camvo; 06-08-2013 at 11:36 PM.
camvo is offline   Reply With Quote
Old 06-12-2013, 10:41 PM #91
camvo's Avatar
Class 1M Laser
 
Join Date: Sep 2011
Location: Holland, Rotterdam
Posts: 102
Rep Power: 14
camvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to behold
camvo camvo is offline
Class 1M Laser
camvo's Avatar
 
Join Date: Sep 2011
Location: Holland, Rotterdam
Posts: 102
Rep Power: 14
camvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to behold
Default Re: ARDUINO & DAC for XY projector

I did some more programming on the shield.

I added a MOSFET transisitor (BUK555) to create blanking.

I created a dash-dot line and it is possible to rotate the line it around its center.

No flickering and smoothly.

So far, so good!!!

Below the code:


Code:
int grad     = 0;
float rad    = 0;
float pi     = 3.14;

int blanking = 46;     //laser blanking pin

int valx     = 2040;   // set x to center
int valy     = 2040;   // set y to center
int valxc    = 0;      // set x to center
int valyc    = 0;      // set y to center
int midx     = 2040;   // master center for x
int midy     = 2040;   // master center for y

int k        = 0;      // position in imdata aray
int step     = 1;      // rotation speed
int zoom     = 3;      // size of image

int points   = 31;      // number of points in the image

int imgdata [250] =
    {
     0,  -600,  0,	   
     1,  -600,  0,
     0,  -600,  0,
     0,  -500,  0,	   
     1,  -500,  0,	   
     1,  -400,  0,
     0,  -300,  0,
     1,  -300,  0,	   
     0,  -300,  0,
     0,  -200,  0,	   
     1,  -200,  0,	   
     1,  -100,  0,	   
     0,  -100,  0,
     0,     0,  0,
     1,     0,  0,
     0,     0,  0, 
     0,   100,  0,
     1,   100,  0,
     1,   200,  0,
     0,   200,  0,
     0,   300,  0,
     1,   300,  0, 
     0,   300,  0, 
     0,   400,  0,
     1,   400,  0,  
     1,   500,  0,	     
     0,   500,  0,	   
     0,   600,  0,   
     1,   600,  0,
     0,   600,  0,
    };
 
void setup()   

{                
 pinMode(blanking, OUTPUT);
 pinMode(DAC0, OUTPUT); 
 pinMode(DAC1, OUTPUT); 
 analogWriteResolution(12);  
 
} // end void setup

void loop() 
{
 for (int grad = 0; grad < 360; grad=grad+step)
     {
      float rad = 2*pi * (grad/360.0);
      for (k = 0; k < points*3; k++)  
          {   
           if (imgdata[k] == 0)                // laser ON/OFF
              {
               digitalWrite(blanking, LOW);    //turn off laser
              }
              else
              {
               digitalWrite(blanking, HIGH);   //turn laser on
              }
 
          k = k + 1;                          //inc counter to index to x coord
          valx  = imgdata[k];                 //pick up the x-coordinate from the image data array
          valxc = imgdata[k];                 //make a copy for the rotation calculation
          k = k + 1;                          //inc counter to index to Y coord
          valy  = imgdata[k];                 //pick up the y-coordinate from the image data array
          valyc = imgdata[k];                 //make a copy for the rotation calculation
 
          valx = valxc * cos(rad) - valyc * sin(rad);
          valy = valxc * sin(rad) + valyc * cos(rad);  
      
          //output x & y co-ord
          analogWrite(DAC1, valx * zoom + midx);
          analogWrite(DAC0, valy * zoom + midy);  

          delay(1);
          //delayMicroseconds(750);        // pauses for 10 microseconds  
         }     
       }
} // end void loop



//(x,y)---->(x*Cos()-y*Sin(), x*Sin()+y*Cos()
Attached Files
File Type: wmv ROTATING DASH DOT LINE.wmv (14.10 MB, 231 views)
__________________
50mW 532nm (ripped from a cheap stage projector)
500mW 532nm (in the laser harp)

1W RGB (500mW-660nm, 200mW-532nm, 500mW-450nm) Touch the white beam and it is: "AUCH!!"

The white laser burned the paint off from the door!
I am thinking of starting a "door-etching-business"
camvo is offline   Reply With Quote
Old 06-13-2013, 04:08 PM #92
Class 2 Laser
 
Join Date: Feb 2012
Location: UK
Posts: 330
Rep Power: 80
Multimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond repute
Multimode Multimode is offline
Class 2 Laser
 
Join Date: Feb 2012
Location: UK
Posts: 330
Rep Power: 80
Multimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond reputeMultimode has a reputation beyond repute
Default Re: ARDUINO & DAC for XY projector

Hi Camvo,

Looking gooooood
Multimode is offline   Reply With Quote
Old 06-13-2013, 06:37 PM #93
Bionic-Badger's Avatar
Class 4 Laser
 
Join Date: Oct 2007
Location: Oregon, USA
Posts: 5,478
Rep Power: 3157
Bionic-Badger has a reputation beyond reputeBionic-Badger has a reputation beyond reputeBionic-Badger has a reputation beyond reputeBionic-Badger has a reputation beyond reputeBionic-Badger has a reputation beyond reputeBionic-Badger has a reputation beyond reputeBionic-Badger has a reputation beyond reputeBionic-Badger has a reputation beyond reputeBionic-Badger has a reputation beyond reputeBionic-Badger has a reputation beyond reputeBionic-Badger has a reputation beyond repute
Bionic-Badger Bionic-Badger is offline
Class 4 Laser
Bionic-Badger's Avatar
 
Join Date: Oct 2007
Location: Oregon, USA
Posts: 5,478
Rep Power: 3157
Bionic-Badger has a reputation beyond reputeBionic-Badger has a reputation beyond reputeBionic-Badger has a reputation beyond reputeBionic-Badger has a reputation beyond reputeBionic-Badger has a reputation beyond reputeBionic-Badger has a reputation beyond reputeBionic-Badger has a reputation beyond reputeBionic-Badger has a reputation beyond reputeBionic-Badger has a reputation beyond reputeBionic-Badger has a reputation beyond reputeBionic-Badger has a reputation beyond repute
Default Re: ARDUINO & DAC for XY projector

Looks good. It's nice not having to worry that some floating point calculations are going to kill your frame rates huh?
__________________
You must spread some Reputation around before giving it to <person> again.
Bionic-Badger is offline   Reply With Quote
Old 06-13-2013, 09:43 PM #94
camvo's Avatar
Class 1M Laser
 
Join Date: Sep 2011
Location: Holland, Rotterdam
Posts: 102
Rep Power: 14
camvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to behold
camvo camvo is offline
Class 1M Laser
camvo's Avatar
 
Join Date: Sep 2011
Location: Holland, Rotterdam
Posts: 102
Rep Power: 14
camvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to behold
Default Re: ARDUINO & DAC for XY projector

Thanks guys,

I will post a new movie as soon as I get the power supply of the RGB laser.
__________________
50mW 532nm (ripped from a cheap stage projector)
500mW 532nm (in the laser harp)

1W RGB (500mW-660nm, 200mW-532nm, 500mW-450nm) Touch the white beam and it is: "AUCH!!"

The white laser burned the paint off from the door!
I am thinking of starting a "door-etching-business"

Last edited by camvo; 06-14-2013 at 07:46 AM.
camvo is offline   Reply With Quote
Old 06-15-2013, 10:12 PM #95
camvo's Avatar
Class 1M Laser
 
Join Date: Sep 2011
Location: Holland, Rotterdam
Posts: 102
Rep Power: 14
camvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to behold
camvo camvo is offline
Class 1M Laser
camvo's Avatar
 
Join Date: Sep 2011
Location: Holland, Rotterdam
Posts: 102
Rep Power: 14
camvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to beholdcamvo is a splendid one to behold
Default Re: ARDUINO & DAC for XY projector

FINALLY!!!

The new power supply of the RGB came in today.

I implemented the RGB blanking on the code.

Have a look at the results.



Here is the code I used:

Code:
int grad     = 0;
float rad    = 0;
float pi     = 3.14;


int lred      = 50;    // blanking pin red
int lgreen    = 46;    // blanking pin green
int lblue     = 42;    // blanking pin blue

int valx     = 2040;   // set x to center
int valy     = 2040;   // set y to center
int valxc    = 0;      // copy of valx for the rotation formula
int valyc    = 0;      // copy of valy for the rotation formula
int midx     = 2040;   // master center for x
int midy     = 2040;   // master center for y

int k        = 0;      // position in imdata aray
int step     = 1;      // rotation speed
int zoom     = 3;      // size of image

int points   = 24;      // number of points in the image

// image data
int imgdata [250] =
    {
     0,   200,   200,	   
     1,   200,   200,
     1,   400,   200,
     1,   400,   400,	   
     1,   200,   400,	
     1,   200,   200,
     0,  -400,   200,
     2,  -400,   200,
     2,  -200,   200,	   
     2,  -200,   400,
     2,  -400,   400,
     2,	 -400,   200,
     0,  -400,  -400,	   
     3,  -400,  -400,	   
     3,  -200,  -400,
     3,  -200,  -200,
     3,  -400,  -200,
     3,  -400,  -400,
     0,   200,  -400, 
     4,   200,  -400,
     4,   400,  -400,
     4,   400,  -200,
     4,   200,  -200,
     4,   200,  -400,
    };
 
void setup()   

{                
 pinMode(lred,   OUTPUT);
 pinMode(lgreen, OUTPUT); 
 pinMode(lblue,  OUTPUT);
 
 pinMode(DAC0,  OUTPUT); 
 pinMode(DAC1,  OUTPUT); 
 
 analogWriteResolution(12);  
 digitalWrite(lred,   LOW);    //turn off laser
 digitalWrite(lgreen, LOW);    //turn off laser
 digitalWrite(lblue,  LOW);    //turn off laser
} // end void setup

void loop() 
{
 for (int grad = 0; grad < 360; grad=grad+step)
     {
      float rad = 2*pi * (grad/360.0);
      for (k = 0; k < points*3; k++)  
          {   
           switch (imgdata[k]) 
             {
              case 0:
                black();
                break;
              case 1:
                red();
                break;
              case 2:
                green();
                break;
              case 3:
                blue();
                break;
              case 4:
                white();
                break;
              case 5:
                turq();
                break;
              case 6:
                yellow();
                break;
              case 7:
                lila();
                break;
              default: 
                black(); // just to be safe    
             }

          k = k + 1;                          //inc counter to index to x coord
          valx  = imgdata[k];                 //pick up the x-coordinate from the image data array
          valxc = imgdata[k];                 //make a copy for the rotation calculation
          k = k + 1;                          //inc counter to index to Y coord
          valy  = imgdata[k];                 //pick up the y-coordinate from the image data array
          valyc = imgdata[k];                 //make a copy for the rotation calculation
 
          valx = valxc * cos(rad) - valyc * sin(rad);
          valy = valxc * sin(rad) + valyc * cos(rad);  
      
          //output x & y co-ord
          analogWrite(DAC1, valx * zoom + midx);
          analogWrite(DAC0, valy * zoom + midy);  

          delay(1);                        // pauses for xx miliseconds
          //delayMicroseconds(800);        // pauses for xx microseconds  
         }     
       }
} // end void loop

//(x,y)---->(x*Cos()-y*Sin(), x*Sin()+y*Cos()

void black()  // color 0
{
 digitalWrite(lred,   LOW);
 digitalWrite(lgreen, LOW);
 digitalWrite(lblue,  LOW);  
}

void red()    // color 1
{
 digitalWrite(lred,   HIGH);
 digitalWrite(lgreen,  LOW);
 digitalWrite(lblue,   LOW);
} 
 
void green()  // color 2  
{
 digitalWrite(lred,    LOW);
 digitalWrite(lgreen, HIGH);
 digitalWrite(lblue,   LOW);
}

void blue()   // color 3
{
 digitalWrite(lred,    LOW);
 digitalWrite(lgreen,  LOW);
 digitalWrite(lblue,  HIGH);
}

void white()  // color 4
{
 digitalWrite(lred,   HIGH);
 digitalWrite(lgreen, HIGH);
 digitalWrite(lblue,  HIGH);
}

void turq()   // color 5
{
 digitalWrite(lred,    LOW);
 digitalWrite(lgreen, HIGH);
 digitalWrite(lblue,  HIGH);
}

void yellow() // color 6 
{
 digitalWrite(lred,   HIGH);
 digitalWrite(lgreen, HIGH);
 digitalWrite(lblue,   LOW);
}

void lila()   // color 7
{
 digitalWrite(lred,   HIGH);
 digitalWrite(lgreen,  LOW);
 digitalWrite(lblue,  HIGH);
}
__________________
50mW 532nm (ripped from a cheap stage projector)
500mW 532nm (in the laser harp)

1W RGB (500mW-660nm, 200mW-532nm, 500mW-450nm) Touch the white beam and it is: "AUCH!!"

The white laser burned the paint off from the door!
I am thinking of starting a "door-etching-business"
camvo is offline   Reply With Quote
Old 06-16-2013, 05:17 AM #96
Bionic-Badger's Avatar
Class 4 Laser
 
Join Date: Oct 2007
Location: Oregon, USA
Posts: 5,478
Rep Power: 3157
Bionic-Badger has a reputation beyond reputeBionic-Badger has a reputation beyond reputeBionic-Badger has a reputation beyond reputeBionic-Badger has a reputation beyond reputeBionic-Badger has a reputation beyond reputeBionic-Badger has a reputation beyond reputeBionic-Badger has a reputation beyond reputeBionic-Badger has a reputation beyond reputeBionic-Badger has a reputation beyond reputeBionic-Badger has a reputation beyond reputeBionic-Badger has a reputation beyond repute
Bionic-Badger Bionic-Badger is offline
Class 4 Laser
Bionic-Badger's Avatar
 
Join Date: Oct 2007
Location: Oregon, USA
Posts: 5,478
Rep Power: 3157
Bionic-Badger has a reputation beyond reputeBionic-Badger has a reputation beyond reputeBionic-Badger has a reputation beyond reputeBionic-Badger has a reputation beyond reputeBionic-Badger has a reputation beyond reputeBionic-Badger has a reputation beyond reputeBionic-Badger has a reputation beyond reputeBionic-Badger has a reputation beyond reputeBionic-Badger has a reputation beyond reputeBionic-Badger has a reputation beyond reputeBionic-Badger has a reputation beyond repute
Default Re: ARDUINO & DAC for XY projector

Looks good! Nice and smooth!

You should try benchmarking the system to see how many points you can push out.
__________________
You must spread some Reputation around before giving it to <person> again.
Bionic-Badger is offline   Reply With Quote
Reply

Tags
arduino, dac, lasershow





Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


LinkBacks (?)
LinkBack to this Thread: http://laserpointerforums.com/f47/arduino-dac-xy-projector-82479.html
Posted By For Type Date
Volcan Veins This thread Refback 07-17-2016 08:34 PM
?ASTRAL PLANE? This thread Refback 05-01-2016 09:04 PM
???????? This thread Refback 04-27-2016 09:39 AM
myswap.sinaapp.com Site Overview This thread Refback 04-24-2016 07:36 AM
I want peace This thread Refback 04-20-2016 12:47 AM
:???*:???:?? This thread Refback 04-19-2016 12:44 PM
</title> <style>figure{margin:0}</style> <link rel="shortcut icon" href="http://31.media.tumblr.com/avatar_a882b8c904c1_128.png"> <link rel="alternate" type="application/rss+xml" href="http://sidlolly.tumblr.com/rss"> <link rel="shortcut icon" href=" This thread Refback 03-12-2016 07:21 PM
Untitled document This thread Refback 01-26-2016 09:03 PM
So let's start creepy games This thread Refback 01-05-2016 05:06 PM
Untitled document This thread Refback 11-07-2015 08:26 PM
myswap-(wd-galvo) This thread Refback 10-18-2015 12:46 AM
Ethical Consumption Under Late Capitalism This thread Refback 10-17-2015 06:07 AM
/diy/ - Do-It-Yourself Thread #612500 This thread Refback 05-24-2014 02:50 PM
LASERS | Pearltrees This thread Pingback 03-21-2014 03:15 AM
Scanning - Next Steps & Help (Page 1) ? Printer Control ? Pryntech This thread Refback 09-05-2013 09:45 PM










Loading








Green Laser Pointers by Category Blue Laser Pointers by Category Red Laser Pointers by Category
Yellow Laser Pointers by Category Violet Laser Pointers by Category Orange Laser Pointers by Category
Top Laser Pointers by Power - 1 Watt+ Top Laser Pointers by Power - 500mW+ Top Laser Pointers by Power - 250mW+
Laser Pointer Database High Power Laser Pointers Laser Pointer Diodes






Privacy Policy | Advertising Disclaimer | Terms of Use


 


All times are GMT. The time now is 12:03 AM.


Powered by: vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO
Privacy Policy | Advertising Disclaimer | Terms of Use
Copyright (C) 2017 Laser Pointer Forums, LLC