Paid Help needed please

Hi there
First post so here goes...

I discovered the wonderful world of Arduino because I wanted to build a flashing light machine

Pretty simple, one light that strobed, another dimmed and faded

I failed

It wasn't that I didn't try, and try and try again
I just could not get my head around it

I'm not stupid (well I hope not :wink:
I can strip down a car engine and rebuild it and hold my own in conversations on Zen ethics and philosophy

But after 3 months of wrangelling by poor brain around programming I have no alternative but to give in and recognise I am not cut out for this

As a teacher I am used to encouraging students to not to give up - but ....

I can't do this. I got to this point for just one project. I feel that my brain is overheating

I now have nothing but the utmost respect for programmers and have worked long and hard to appreciate your craft

I'm giving up

I've come to the realization that for what I need to do - I can't

Soooooo..... if there is anyone out there who might wish to help

Its an interesting project and funds are available - you will be paid

But personally, I need my brain back!

Please, I wish to offend nobody by offering payment - I have tried and failed and wish only to move on to a solution

Kindest regards to all

The most common problem when trying to run two patterns in parallel is using 'delay' for timing. The 'Blink Without Delay' example shows a way of generating a lighting pattern using the millis() function rather than delay().

The first step is a rough specification of the two patterns. How often are the strobes? What levels do the dimming and fading light hit, in what order, and with what timing?

And, how exactly on-time do the brightness transitions need to occur?

Post the code you have. I'm sure someone will fix it for free.

Another alternative is to set up an interrupt from one of the timers. you can then cause your strobes and fades to occur based on a counter that increments in the interrupt routine. You main loop will then not end up waiting for an event or number to be reached it simply test for it and moves on whilst the ISR does the timing for you.

Cheers Pete.

Yes, I absolutely hate delay(). I wish the Arduino team would just take the "Blink" sketch out of the examples.

There is a thread here on having more than one event running using "Blink Without Delay", which uses the millis() or micros() timer to time events asynchronously.

http://forum.arduino.cc/index.php?topic=223286.0

I'd suggest you post in Programming Questions, if you need more help with this.

http://forum.arduino.cc/index.php?board=4.0