Arduino based Laser Control

A forum for the Arduino based Mach4/Darwin Laser Control Panel
Post Reply
RobS
Site Admin
Posts: 6
Joined: Mon Sep 08, 2014 11: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
ArtF
Global Moderator
Global Moderator
Posts: 4557
Joined: Sun Sep 05, 2010 5:14 pm
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
ArtF
Global Moderator
Global Moderator
Posts: 4557
Joined: Sun Sep 05, 2010 5:14 pm
Contact:

Re: Arduino based Laser Control

Post by ArtF »

Bob:

  Also, is this a leonardo or another cpu?

Art
RobS
Site Admin
Posts: 6
Joined: Mon Sep 08, 2014 11:17 am

Re: Arduino based Laser Control

Post by RobS »

Hi art no I did not modify it. It's a leodardo
ArtF
Global Moderator
Global Moderator
Posts: 4557
Joined: Sun Sep 05, 2010 5:14 pm
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
Site Admin
Posts: 6
Joined: Mon Sep 08, 2014 11: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
Site Admin
Posts: 6
Joined: Mon Sep 08, 2014 11: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
ArtF
Global Moderator
Global Moderator
Posts: 4557
Joined: Sun Sep 05, 2010 5:14 pm
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
Site Admin
Posts: 357
Joined: Thu Sep 11, 2014 12:35 am

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
ArtF
Global Moderator
Global Moderator
Posts: 4557
Joined: Sun Sep 05, 2010 5:14 pm
Contact:

Re: Arduino based Laser Control

Post by ArtF »

Bob:

 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
Post Reply