I would like to use an arduino uno to control a relay.
I would like the relay on pin8 to be set HIGH 500 mS
LOW 100 mS
HIGH 200mS
LOW 300mS
HIGH 50mS
LOW 100mS
HIGH 50mS
LOW 100mS
for a sequence of 50 states that is inclusive of the above
Can this be done or will I run out of RAM
RAM is fine. Chattering the relay with 50mS pulses will destroy a mechanical relay in short order. Use an SSR. But more importantly what are you trying to do?
//if you can give assistance as to why that does not compile/work, thanks, though point about continuos relay 50mS understood, but there would be the high and low states for the longer durations between
Read the forum guidelines to see how to properly post code and some good information on making a good post.
Use the IDE autoformat tool (ctrl-t or Tools, Auto format) before posting code in code tags.
You can go back and fix your original post by highlighting the code and clicking the </> in the menu bar.
Please include the entire error message. It is easy to do. There is a button (lower right of the IDE window) called "copy error message". Copy the error and paste into a post in code tags. Paraphrasing the error message leaves out important information.
Thank you all so much, my eyes are are a bit! and yes the forum has been most helpful, to correct the idea of 50mS for the relay it is only for an initial understanding of difference and overall the code with slightly longer latency shall be of use to me