Copy and Paste

Hi, I am new to this but love it immensely. Could someone please tell me how to copy a sketch code and then paste it into my Uno? I don't think I could type out 500+ lines of code at this point.
thank you,
Robert

Where is the code you want to copy?

Ctrl-A selects all the text

Ctrl-C copies it to the clipboard

Ctrl-V pastes whatever is on the clipboard.

...R

You can't paste code directly into the Uno. Depending where it's coming from you may be able to paste it into the Arduino IDE and then you need to compile it and upload it into the Uno.

Steve

Hello,
Could someone please tell me where i could get a sketch (code) and a wiring schematic for a two servo (lid & arm) "Useless Box"?
I've found some code on the internet, but it doesn't help without a wiring schematic, at least for me, since i'm new to this.
thanks

Would trying to buy a ready one fom the maker be an option?

to select code in about any program you click and hold at the beginning of the text and as you hold the mouse button down, move your cursor to the end of the text. once the text is highlighted, right click the mouse over the text and pick either copy of paste from the drop down menu.

If you find a sketch that looks good to you and then post a link to it here, we can tell you how to wire it.

Railroader:
Would trying to buy a ready one fom the maker be an option?

In practice, will almost certainly be cheaper.

By the way, as far as I know, the basic ones use only one motor, not a servo. The arm lifts the lid as it starts to move.

Just a gearmotor. The switch itself is a reversing switch and another switch at the bottom of the arm movement is a limit switch.

Using an Arduino just allows you to introduce various pseudo-random delays and falterings of the movement to make it more entertaining.

Alternatively, use Linux. :grinning:

Be careful if you copy out of a web page- it may take some odd characters with it.

If when you compile you get a message something like stray 302 (I forget the exact deets), that may be why.

@RobertHB, do not cross-post. Threads merged.

Is this really a.cross-post ?

"500+ lines of code" and " a two servo (lid & arm) "Useless Box""would seem to be two completely different beasts to me.

TheMemberFormerlyKnownAsAWOL:
Is this really a.cross-post ?

Both posts strike me as "needs lotsaTLC". So cross-post-ish.

But, I could easily be wrong.