Hi this is my first post on the arduino forum.
Back in the late 70's my dad took me to see the first star trek film . Is was spectacular none of the cg we see today, but fully lit 10 foot long models that looked real .
A few months later there was a big present under the Christmas tree , and you guest it , it was a huge two foot long USS Enterprise kit .... Woooo ! Hoooo ! THANKS DAD !
I then sent off for a few leds and two 555 chips and some resitors and some dolls house 6v pea bulbs.
I was 13 a the time and had big plans for my Enterprise kit. But then i grew up, moved on, wife kids and a job. Never built the enterprise , and almost forgot that lovely Christmas morning when i was a lad.
Roll on some years later ..
Last month i went to see mum and dad to give them a hand sorting out the attic (loads off rubbish to go!) my dad said on the phone. So up the ladder to the loft and turn the light on, and started to pass all the junk down to me dad. And in the far corner of the attic , next to a my old box of slot car track a large box covered in dust. The Enterprise!! Not any old Enterprise kit, my Enterprise kit.
It was the last thing i past down from the attic to my dad. Then sat down for a lovely sunday lunch made by my mum . You never got round to building the spaceship did you! No i didn't dad.
I open the box and forgot that i had put all the components i had sent of for in the box all those years ago. I knew what was coming up next .. (Since my dad retired he contracted caner 2 years ago, and is getting over chemotherapy, and has taken up building model motorbikes cars and trucks.)
Can i have a crack at building the spaceship for you son, and can you download a circuit diagram for me to make the spaceships lights flash. (Dad was in the auto electrical service industry and was a dab hand with a 20w weller iron and a 2mm chisel bit)
Ok dad ! But things have moved on a bit since 555 chips and and dolls house 6v pea bulbs. So i am planing to get some coloured 1.8mm leds and a length of 5v white led strip and a USS Enterprise kit for him for Christmas. And program a Arduino to power his spaceship kit.
I have had fun with my son building Arduino Uno robots, and we have made a obstacle avoiding robot a line following robot, and a arduino android bluetooth HC-05 module smart car. And played with the code to power them with servo or L298N motor modules.
My first port of call was www.gammon.com and download the <LedFlasher.h> and <LedFader.h> library and read his state engine tutorial and have a play with his blink and fade tutorials . Had my sketch up and running after lots of pulling of hair out, and debugging, and looking at what other people have done using the <LedFlasher.h> and <LedFader.h> librarys that Mr Gammon has made.
My sketch is up an running but i have made a schoolboy error and the orange led hangs and wont go back to the blue led!
(Sequence) (Seconds) Startup Sequence 1 sec for each state 1,2,3,4,5,6,7,8,9,10
1 Floodlight. 1 sec on startup /will stay on always
2 Floodlight. 1 sec on startup /will stay on always
3 Floodlight. 1 sec on startup /will stay on always
4 Floodlight. 1 sec on startup /will stay on always
5 Floodlight. 1 sec on startup /will stay on always
6 Floodlight. 1 sec on startup /will stay on always
7 Deflector ORANGE. 1 sec /stays on for 60 secs
8 Navigation green. 1 sec /will stay on always
9 Strobe white. 1 sec /will stay on always
10 Torpedo red. 1 sec /will tern off after 6 secs
11 Deflector BLUE. led will go on after Deflector ORANGE led goes off,and stay on for 60 secs, and Torpedo will go on for 6secs 1,2,3,4,5,6,8,9 will stay on always..
Deflector ORANGE. led will go on after Deflector BLUE led goes off, and stay on for 60 secs, and Torpedo will go on for 6secs 1,2,3,4,5,6,8,9 will stay on always..
Deflector BLUE. led will go on after Deflector ORANGE led goes off, and stay on for 60 secs, and Torpedo will go on for 6secs 1,2,3,4,5,6,8,9 will stay on always..
And so on, and so on,.. in a loop..
Can you point me in the direction to my error i made in my sketch please.