**5. Programming technique**

Our methodology towards the coding began with investigating the impact of rotating values on servo motors. The left thigh and right thigh were at first set to 90 degrees. The left foot was set to 0 and the right foot was placed to 180 degrees as shown in **Figure 4**.

Programming steps:

1.Define four servo objects to operate the legs.

2.Initialize ports to the defined objects.

3.Mention the primary position of the servo motors.

4.Stroll by turning the servo horns in estimated angles.

**153**

language [9].

**Figure 4.**

*Turning values of servo horns.*

**6. Human-robot collaboration**

*Tiny Blind Assistive Humanoid Robot*

*DOI: http://dx.doi.org/10.5772/intechopen.97333*

5.Identify if there is an obstacle found within a distance of less than 30.

6.If found, initialize servo horns to their initial position and illuminate LED.

Few lines are shown here as an example, this is not the complete code. One will need to generate the full code by understanding the algorithm appropriately. A

The above steps are programmed on the Arduino integrated development environment (IDE). It is a cross-stage application written in the Java programming

In human-robot cooperation, Both contribute their particular capacities. The robots play out the actual work. The human operator controls and screens. The Robot

7.If not found, repeat step 4, keeping the LED low.

suggestion is not to copy the above code but to understand it.

*Tiny Blind Assistive Humanoid Robot DOI: http://dx.doi.org/10.5772/intechopen.97333*

*Collaborative and Humanoid Robots*

and pushes a stride forward.

motor did.

**5. Programming technique**

shown in **Figure 4**.

Programming steps:

1.Define four servo objects to operate the legs.

2.Initialize ports to the defined objects.

3.Mention the primary position of the servo motors.

4.Stroll by turning the servo horns in estimated angles.

to help the rightmost servo motors go ahead.

• Similarly, the servo of the leftmost thigh will pivot to the contrary side a piece

• After the right servo motors is put ahead, the leftmost foot servo motor raises and the leftmost thigh servo turns more prominent than the right foot servo

• Same time the right thigh servo motor does likewise as the leftmost thigh servo

• In that case, if an item is identified by the ultrasonic sensor, the drove lights

In this cycle, the Robot explores starting with one spot then onto the next.

Our methodology towards the coding began with investigating the impact of rotating values on servo motors. The left thigh and right thigh were at first set to 90 degrees. The left foot was set to 0 and the right foot was placed to 180 degrees as

and the humanoid set the servo motors to the initial state.

• This step is recalled while the microcontroller is controlled.

**152**

5.Identify if there is an obstacle found within a distance of less than 30.

6.If found, initialize servo horns to their initial position and illuminate LED.

7.If not found, repeat step 4, keeping the LED low.

Few lines are shown here as an example, this is not the complete code. One will need to generate the full code by understanding the algorithm appropriately. A suggestion is not to copy the above code but to understand it.

The above steps are programmed on the Arduino integrated development environment (IDE). It is a cross-stage application written in the Java programming language [9].
