Arduino based Laser Control

A forum for the Arduino based Mach4/Darwin Laser Control Panel
Post Reply
RobS
Old Timer
Posts: 6
Joined: Mon Sep 08, 2014 12:17 am

Re: Arduino based Laser Control

Post by RobS »

hi guys
i just tried to run the code and get the following message

LaserControl.ino: In function 'void setup()':
LaserControl:70: error: 'InitTimers' was not declared in this scope
LaserControl:71: error: 'SetPinFrequency' was not declared in this scope
LaserControl:77: error: 'pwmWrite' was not declared in this scope
LaserControl.ino: In function 'void DiagsOut()':
LaserControl:460: error: 'Console' was not declared in this scope

can someone help please
Bob
User avatar
ArtF
Global Moderator
Global Moderator
Posts: 4589
Joined: Sun Sep 05, 2010 6:14 am
Contact:

Re: Arduino based Laser Control

Post by ArtF »

Bob:

  Sounds like a syntax error.. did you modify the code any and perhaps miss a brace or something?

Art
User avatar
ArtF
Global Moderator
Global Moderator
Posts: 4589
Joined: Sun Sep 05, 2010 6:14 am
Contact:

Re: Arduino based Laser Control

Post by ArtF »

Bob:

  Also, is this a leonardo or another cpu?

Art
RobS
Old Timer
Posts: 6
Joined: Mon Sep 08, 2014 12:17 am

Re: Arduino based Laser Control

Post by RobS »

Hi art no I did not modify it. It's a leodardo
User avatar
ArtF
Global Moderator
Global Moderator
Posts: 4589
Joined: Sun Sep 05, 2010 6:14 am
Contact:

Re: Arduino based Laser Control

Post by ArtF »

Rob:

  Looks like your system isnt seeing the PWM library. Did you copy the libraries to the proper folders?
In the first page of this thread youll find PWMLib.. you need to install that in your Arduino libraries..
Lets see what errors you get after that..

Art
RobS
Old Timer
Posts: 6
Joined: Mon Sep 08, 2014 12:17 am

Re: Arduino based Laser Control

Post by RobS »

Ok Art I will look at that tomorrow I'm of to a party now thanks
Bob
RobS
Old Timer
Posts: 6
Joined: Mon Sep 08, 2014 12:17 am

Re: Arduino based Laser Control

Post by RobS »

Hi art

I have now got the errors down to the following

Image

I cannot find a console libary anywhere.
as you can probably tell I am a complete beginner with Arduino

Thanks
Bob
User avatar
ArtF
Global Moderator
Global Moderator
Posts: 4589
Joined: Sun Sep 05, 2010 6:14 am
Contact:

Re: Arduino based Laser Control

Post by ArtF »

Bob:

console is built in .. Do you have its headers at top of code..

#include <Bridge.h>
#include <Console.h>

Art
DanL
Old Timer
Posts: 362
Joined: Wed Sep 10, 2014 1:35 pm

Re: Arduino based Laser Control

Post by DanL »

you are using the wrong ide you need to up grade to new version that has the bits in it that you are missing 1.5.7
User avatar
ArtF
Global Moderator
Global Moderator
Posts: 4589
Joined: Sun Sep 05, 2010 6:14 am
Contact:

Re: Arduino based Laser Control

Post by ArtF »

Bob:

&nbsp;Im a beginner too, this was the first arduino code Ive written.. might be only the YUN has a bridge.. Id remove the bridge.h line but I think you do need the console.h line..

Art
User avatar
ArtF
Global Moderator
Global Moderator
Posts: 4589
Joined: Sun Sep 05, 2010 6:14 am
Contact:

Re: Arduino based Laser Control

Post by ArtF »

Dan:

Thx.. I appreciate the help..

Art
DanL
Old Timer
Posts: 362
Joined: Wed Sep 10, 2014 1:35 pm

Re: Arduino based Laser Control

Post by DanL »

art the only parts I have left is wire.h, pwm.h and liquidcrystal.h I think the rest is for yun it complies with out any issues with the bits removed
Dustan
Old Timer
Posts: 2
Joined: Tue Oct 07, 2014 7:44 am

Re: Arduino based Laser Control

Post by Dustan »

Hi All,
I was just wondering if anyone has made this work with a 40 watt CO2 laser, I think Arts laser is RF?? and mine im not sure how it REALLY works but its like the chinese lasers&nbsp; just a High voltage power supply that Im pretty sure takes PWM and/or TTL (5v) to turn it on... also think it needs something like 20kHz- 50kHz signal? Hopefully you know what kind of laser Im talking about by that crappy description..... I was just hoping to get better results with grey scale stuff I seem to only be able to get a few "shades" and would like to make better pictures like the Light houst Art made with his laser
User avatar
ArtF
Global Moderator
Global Moderator
Posts: 4589
Joined: Sun Sep 05, 2010 6:14 am
Contact:

Re: Arduino based Laser Control

Post by ArtF »

Hi Dustan:

&nbsp; I have a chinese one as well. the RF one does need a tickle and runs at 5Khz PWM..

My chinese is controlled by its own hardware, but I had to replace the tube recently. The
power supply takes two inputs to fire. First, it takes a pwm ( or a voltage) to control its power. I highly suspect the
5khz the control panel is programmed for will also control the power of a chinese laser. In fact, if the
desired result is to mimic a rf tube like my synrad, I suspect the TTL and PWM could be paralleled , that is feed
the pwm to both inputs to the high voltage supply. The PWM will ( or should ) control both the TTL on/off
as well as the power. Hard to say for sure though, it may be&nbsp; necessary to have a code change in the output
that basically sends another output that stays on as long as power is above zero, and the pwm used as is for the
pwm input of the power supply.

&nbsp; Im sure many of us will gladly help if you get to that point. When I changed my glass tube this year I took note
of how it works but I didnt experiment enough to tell how the timing is on it. I suspect , but dont know for sure
that the best way would be a small code fragment in laserFire that says
if( LaserPower > 0 ) SetTTLOn( 1) else SetTTLOn( 0 ) ..
We can help you write the TTL control if its required if anyone gets to that spot. Id love to see one work, and may
even end up switching my chinese 50watt if it works out well.. My panel works great for the RF tube, and I knew we'd
end up making a high voltage version eventually. :)

Art


&nbsp;
DanL
Old Timer
Posts: 362
Joined: Wed Sep 10, 2014 1:35 pm

Re: Arduino based Laser Control

Post by DanL »

I think the sky's the limit for your controller art if it can do most types of laser`s it probable it will just needs more grunt to do more stuff higher khz boards
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests