Relay Library

I have combined a servo sketch with a relay sketch. They both work separately but not together. The sketch verifies but will not upload. Is there a library for the relay I need to download?

killsaw2.ino (1.03 KB)

An upload problem will never be caused by a missing library. If the sketch verifies, then you have all the libraries.

Please do this:

  • (In the Arduino IDE) File > Preferences
  • Uncheck the checkbox next to "Show verbose output during: compilation"
  • Check the checkbox next to "Show verbose output during: upload
  • Click "OK"
  • Sketch > Upload
  • After the upload fails, you'll see a button on the right side of the orange bar "Copy error messages" (or the icon that looks like two pieces of paper at the top right corner of the black console window in the Arduino Web Editor). Click that button.
  • In a forum reply here, click on the reply field.
  • Click the </> button on the forum toolbar. This will add the forum's code tags markup to your reply.
  • Press "Ctrl + V". This will paste the upload output between the code tags.
  • Move the cursor outside of the code tags before you add any additional text to your reply.

thanks, I will let you know if it works.

My instructions won't make it work. They are intended to give us the information we need to help you fix the upload error.