Embedded C for controlling motors and sonars