My question relates to the initiation sketch which is quite long so a link below: http://www.mrossphoto.com/PHSPT/High_Speed_Trigger_Memory_Initialization_pde.pde
The instructions state specifically to run it once only but due to various errors I had made with the wiring, the first time I ran it basically nothing happened. After which I made some corrections and had to attempt it again with no success for the second try.
I have now gone all the way back to the beginning and would like to know if I need to clear the Arduino Mega's memory before trying it again?
Depending on what "various errors" in wiring means, you could have damaged your Arduino.
Trying if various simple sketches like blink, fade etc work on various pins would be a good place to start.
Thanks for the swift reply Shpaget. I am not sure exactly what I did but a puff of the magic blue smoke was the result but I was too slow in reacting to see where it was coming from.
The Blink sketch works but I have not tried any of the others. If I assume that the Mega is not damaged, what would be the effect if I would run the initialisation script again though?
Well, the smoke came from somewhere. You should try to figure out what component is burned. You may be able to identify it visually by discoloration or even a crack in the packaging. Maybe you can replace that part.
Since your Blink sketch works it could be that only some of your pins got busted. Try editing the sketch to use other pins. See if all of them work.
The wiring diagram has 4 flashes hung off of a single opto-coupler's pin. What flashes were you using? What is the voltage limit of the opto-coupler? If you are using old flashes, particularly those made in the 70's, the flashes could send hundreds of volts through the hot-shoe/pc-sync. Mechanical cameras made back then didn't care about high voltages, but modern electrical cameras do and so flashes typically are safer (no more than 6 volts). Given your shutter is also controlled by the same opto-coupler, it may be you burned out the opto-coupler. Given the flashes are all on the same circuit, it may be one of the flashes burned out the others.
I did not get as far as plugging in the flashes, which will be 2 x Canon 430 EX II and 1 x 580 EX. The blue smoke emerged without anything attached. I have replaced all components apart from the Arduino Mega and even ditched the solderless breadboards and soldered everything on a new board. Thank you for your thoughts and consideration.
As suggested, I have tested all the digital pins by altering the blink sketch accordingly and I am glad to report they all are working fine. Before I attempt to upload the initialisation sketch again, there a way to test the analogue pins as well?
Thanks
Ok, tested with the AnalogReadSerial sketch and registered a reading I could influence with the pot from 0- 1023 on A0 but on A1-A14 I get a reading of 200-300 irrespective of the pot setting. Not sure what that means.