Show Posts
Pages: 1 [2]
16  Topics / Interactive Art / Re: Project - LASERino (Laser Staging Box) on: February 06, 2013, 04:49:50 pm
My plan is to build a lasershow box too,but using a true x-y control with servos...
Ciao. I wish you a good start doing your laser box! smiley
But pay attention, galvos are the right stuff to produce what you want. Do not use servos. Check out Youtube for several videos how people build x-y axis controlled laser shapes, images or even scrolling text. Good luck
17  Topics / Interactive Art / Project - LASERino (Laser Staging Box) on: February 06, 2013, 05:49:53 am
Hello community

I'd like to share my first Arduino project with you. The aim is to create a small laser staging box with a green 20mw laser producing several shapes with mirrors. The main mirror glued on a servo is redirecting the laser beam to the target mirrors producing the shapes. The delay between the switch from one shape to the other is controllable by a poti.

Here's the part list I am using:
- Arduino Nano
- 20mW laser module from ebay
- Plastic Box 240 x 147 x 67 mm
- Power Jack for 12V input
- Fix voltage regulator 7805
- 500Ohm Poti
- 9g Servo from ebay
- Stepper motor with driver from ebay
- Geared DC motor with 400rpm from ebay
- Some square and round mirrors from handcraft shop
- Small electronic equipment like: Cables, solder, diodes, LEDs, resistors, capacitors, photoresistor, screws and glue
- Shutterfree hands and patience smiley

Here are some first impressions about how it should look like and some test videos with the laser module.

First prototype tries with servo and TTL of laser pulsing. Servo attached to pin D12 and TTL of laser on D13 (same as onboard LED)



Another try pointing the laser beam to a rotating mirror on a DC motor and pulse laser with 3ms TTL. This is not the final 400rpm DC motor I will use.


Begin of mounting the parts into the box


And here's an actual Fritzing schema. I am still missing the stepper (on delivery)



I will keep this thread updated when I progress in construction and will post the final Arduino code when the box is finished.
18  International / Deutsch / Re: Welche Schrauben fürs Nano on: February 04, 2013, 12:03:28 pm
Vielen Dank. Ja, M1.6 scheint 1.7mm zu sein. Conrad (888672 - 62) hat welche mit entsprechender Mutter (888715 - 62)
19  International / Deutsch / Welche Schrauben fürs Nano on: February 04, 2013, 08:58:35 am
Hallo Leute.

Welche Schrauben entsprechen den 0.07" (1.7mm) Löcher für das Verschrauben des Nano Boards? Sind das wirklich M2 Schrauben?
20  Using Arduino / Programming Questions / Re: Call dynamically created function name on: January 04, 2013, 07:19:36 am
Quote
   
Call dynamically created function name

I have a better idea: rather than just dynamically create function names, dynamically create a compiler that compiles your dynamically created code that is dynamically flashed into a dynamically powered arduino so that it dynamically responds to inputs that are dynamically applied to dynamically assigned pins with dynamically changing frequencies and dyanmically altered amplitude.

All dynamically done, all the way.

Ok, I got it  smiley-lol smiley-grin

Anyway thanks for all the help
21  Using Arduino / Programming Questions / Re: Call dynamically created function name on: January 04, 2013, 06:52:32 am
On your hardware? If yes, the http://www.arduino.com.au/Simulator-for-Arduino.php is crap

Tell us what you want to do, not how you think it should be done.
I want call functions randomly.
22  Using Arduino / Programming Questions / Re: Call dynamically created function name on: January 04, 2013, 06:43:32 am
You don't have enough elements in "funcs" - "rand(4)" returns 0..3 inclusive.
Otherwise, the code is fine.
Doesn't look like, I got the same error even if I set the exact amount of elements -> random(3) (which is 0-2)

But back to main topic: So there is no way to call a function name which as been created dynamically by a string?
23  Using Arduino / Programming Questions / Re: Call dynamically created function name on: January 04, 2013, 05:20:47 am
Thanks for your answer. Since I don't have my hardware yet I tested your code in the Simulator and it does not work. It says "funcs[random(4)]();" is an unknown command.
24  Using Arduino / Programming Questions / Call dynamically created function name on: January 04, 2013, 03:22:16 am
Hi

I'm trying this:

Code:
String Func;
int Delay = 1000;

void setup() {
}

void loop() {
Func = "Func";
Func += random(1,4);
}

void Func1()
{
delay(Delay);
}
void Func2()
{
delay(Delay);
}
void Func3()
{
delay(Delay);
}

The value of the string "Func" is successfuly having a random number appended, but the function itself is not called (the delay is not executed). I cannot just execute
Code:
 Func;

Can anybody help me in creating dynamically function name calls with the random number? I trying to avoid to hardcode an array with the function names like here http://arduino.cc/forum/index.php/topic,40842.0.html

Thanks in advance
Pages: 1 [2]