I’ve ordered my first Arduino and want to
take on the challenge of using it to control a bot for my son.
I have a simple servo control program (outputs serial data) that I used with an old controller
that bit the dust.
Task 1: parse a string of serial data (chain of two string values like: Servo1,Position,,Servo2,Position,,Servo3,Position,…
Task 2: use the Task 1 values to change the positions of 6 actual servos.
Task 3: use the Task 1 values to drive a 595 shift register to control some lights by converting the servo position values to 16 clocked bits with latch.
I’ve seen several code samples for serial reading, servo and 595 control, but I just don’t know how I should pull it all together.
Any ideas on how I should approach this?