Here is an approach using block language programming and an Arduino Nano board (~ $3).
The middle window is where you drag programming blocks to and configure. As shown
the block code stays at a given servo angle for 5 secs, that can be changed to pretty
much anything you want.
mBlock then converts that to Arduino code (shown in right hand window) and programs
board. Lots of fun. Kids are using it to program simple robots.
There are other block languages, like Snap4Arduino, that can even do things like a
talking voltmeter of freq meter or whatever, with board tethered to PC. Simple block
programming.
Looking at middle window the first block tells the Arduino to start running code on
powerup. The next block, "forever", tells Arduino to run over and over forever the
code between its arms. Next block sets the servo angle, then a 5 sec wait whicl at that
angle is done. Then angle changed and again that is held for 5 secs. And run that se-
quence over and over. Note if you needed button control thats easy to add.

mBlock is free.
Arduino Nano board -

Regards, Dana.
The middle window is where you drag programming blocks to and configure. As shown
the block code stays at a given servo angle for 5 secs, that can be changed to pretty
much anything you want.
mBlock then converts that to Arduino code (shown in right hand window) and programs
board. Lots of fun. Kids are using it to program simple robots.
There are other block languages, like Snap4Arduino, that can even do things like a
talking voltmeter of freq meter or whatever, with board tethered to PC. Simple block
programming.
Looking at middle window the first block tells the Arduino to start running code on
powerup. The next block, "forever", tells Arduino to run over and over forever the
code between its arms. Next block sets the servo angle, then a 5 sec wait whicl at that
angle is done. Then angle changed and again that is held for 5 secs. And run that se-
quence over and over. Note if you needed button control thats easy to add.

mBlock is free.
Arduino Nano board -

Regards, Dana.
Last edited:

