I know programming, but I dont know anything about robots , electricity or microcontrollers.
And I have two projects in my mind.
The first one is about creating a device similar to an electrical timer,
and to allow electricity on and off when I want. I’d appreciate some
step by step things I’d have to do, what devices do I need ?
Maybe I should write about my second project, so I dont open
another topic. My second robot would be more like a physical one,
like having the robot to push a buton. There are many uses
of that feature.
Yes that is what I mean. And it doesn’t matter how ugly my device would be, I’m interested to know how would I make one ?
Or how would I make a robot to plug and unplug the jack from the socket, if that were more easier ?
It may help to understand how you intend to use the timer as there are many ways to go about it. In my ROVer project (links below), I use Relays, for example, which are connected to a battery array (could also be a wall socket, for example), that are programmed with an Arduino (via Shift Out board) to switch on and off the power based on some specific rules that I’ve programmed. That’s a very flexible solution that you could work to flip your switch, as it where, for one of many several reasons.
having the robot plug itself into a wall socket is actually really hard. A timer and relay seem best, but without details of your application / project, it’s difficult to provide specifics.