Mini Hash Humonoid Code
Mini Hash Humonoid Code
h"
#include <Wire.h>
#include <Adafruit_PWMServoDriver.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#include "XT_DAC_Audio.h"
#define SCREEN_HEIGHT 64
#include "ExpressionBitmap.h"
#include "VoiceHexData.h"
#define frequency 50
void MiniHashHumanoid::init_hash() {
pwm.begin();
pwm.setPWMFreq(frequency);
if (!display.begin(SSD1306_SWITCHCAPVCC, 0x3C)) {
for (;;);
initial_face();
pwm.setPWM(servo, 0, servo_pwm);
/* Initial position */
void MiniHashHumanoid::initial_position() {
int pwm_array[16] = {100, 100, 325, 325, 550, 550, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325}; /*
RH1,RH2,RL1,RL2,LH1,LH2,LL1,LL2,HEAD,DMY1,DMY2,DMY3,DMY4,DMY5,DMY6 */
servo_position[i] = pwm_array[i];
move_servo(1000, pwm_array);
DacAudio.FillBuffer();
//Serial.println("hehe");
else {
set_servo(i, (int)servo_target[i]);
servo_position[i] = servo_target[i];
}
/
*************************************************************************************
*****************/
void MiniHashHumanoid::initial_face() {
display.clearDisplay();
display.display();
display.clearDisplay();
display.display();
delay(500);
initial_face();
delay(1000);
void MiniHashHumanoid::talking_face() {
display.clearDisplay();
display.display();
}
void MiniHashHumanoid::happy_face() {
display.clearDisplay();
display.display();
void MiniHashHumanoid::angry_face() {
display.clearDisplay();
display.display();
void MiniHashHumanoid::sad_face() {
display.clearDisplay();
display.display();
void MiniHashHumanoid::crying_face() {
display.clearDisplay();
display.display();
/
*************************************************************************************
*****************/
void MiniHashHumanoid::say_hi(int count) {
XT_Wav_Class PlayVoice(hellohumanoids);
PlayVoice.RepeatForever = false;
DacAudio.Play(&PlayVoice);
talking_face();
int pwm_array1[16] = {500, 250, 325, 325, 550, 550, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
move_servo(1500, pwm_array1);
int pwm_array2[16] = {500, 175, 325, 325, 550, 550, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
int pwm_array3[16] = {500, 250, 325, 325, 550, 550, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
move_servo(1000, pwm_array2);
move_servo(1000, pwm_array3);
int pwm_array4[16] = {100, 100, 325, 325, 550, 550, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
move_servo(1500, pwm_array4);
initial_face();
/
*************************************************************************************
*****************/
void MiniHashHumanoid::my_name_hash_jr() {
XT_Wav_Class PlayVoice(mynamehashjr);
PlayVoice.RepeatForever = false;
DacAudio.Play(&PlayVoice);
talking_face();
int pwm_array1[16] = {300, 175, 325, 325, 550, 550, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
int pwm_array2[16] = {300, 100, 325, 325, 550, 550, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
int pwm_array3[16] = {300, 175, 325, 325, 550, 550, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
int pwm_array4[16] = {100, 100, 325, 325, 550, 550, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
move_servo(1500, pwm_array1);
move_servo(1000, pwm_array2);
move_servo(1000, pwm_array3);
move_servo(1500, pwm_array4);
initial_face();
/
*************************************************************************************
*****************/
void MiniHashHumanoid::i_am_mini_robot() {
XT_Wav_Class PlayVoice(iamaminirobot);
PlayVoice.RepeatForever = false;
DacAudio.Play(&PlayVoice);
talking_face();
int pwm_array1[16] = {300, 175, 325, 325, 450, 550, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
int pwm_array2[16] = {300, 100, 325, 325, 450, 550, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
int pwm_array3[16] = {300, 175, 325, 325, 500, 550, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
int pwm_array4[16] = {100, 100, 325, 325, 550, 550, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
move_servo(1500, pwm_array1);
move_servo(1000, pwm_array2);
move_servo(1000, pwm_array3);
move_servo(1500, pwm_array4);
initial_face();
/
*************************************************************************************
*****************/
void MiniHashHumanoid::say_yes() {
XT_Wav_Class PlayVoice(sayyes);
PlayVoice.RepeatForever = false;
DacAudio.Play(&PlayVoice);
talking_face();
int pwm_array1[16] = {225, 100, 325, 325, 550, 550, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
int pwm_array2[16] = {100, 100, 325, 325, 550, 550, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
move_servo(1000, pwm_array1);
move_servo(1500, pwm_array2);
initial_face();
}
/
*************************************************************************************
*****************/
void MiniHashHumanoid::say_no() {
XT_Wav_Class PlayVoice(sayno);
PlayVoice.RepeatForever = false;
DacAudio.Play(&PlayVoice);
talking_face();
int pwm_array1[16] = {100, 100, 325, 325, 550, 550, 325, 325, 275, 325, 325, 325, 325, 325, 325, 325};
int pwm_array2[16] = {100, 100, 325, 325, 550, 550, 325, 325, 375, 325, 325, 325, 325, 325, 325, 325};
int pwm_array3[16] = {100, 100, 325, 325, 550, 550, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
move_servo(500, pwm_array1);
move_servo(1000, pwm_array2);
move_servo(500, pwm_array3);
initial_face();
/
*************************************************************************************
*****************/
void MiniHashHumanoid::say_thank_you() {
XT_Wav_Class PlayVoice(saythankyou);
PlayVoice.RepeatForever = false;
DacAudio.Play(&PlayVoice);
talking_face();
int pwm_array1[16] = {200, 150, 325, 325, 450, 500, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
int pwm_array2[16] = {100, 100, 325, 325, 550, 550, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
move_servo(1500, pwm_array1);
move_servo(1500, pwm_array2);
initial_face();
/
*************************************************************************************
*****************/
void MiniHashHumanoid::do_happy_face() {
happy_face();
XT_Wav_Class PlayVoice(happyfacevoice);
PlayVoice.RepeatForever = false;
DacAudio.Play(&PlayVoice);
int pwm_array1[16] = {200, 100, 325, 325, 550, 550, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
int pwm_array2[16] = {100, 100, 325, 325, 550, 550, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
move_servo(1000, pwm_array1);
move_servo(1000, pwm_array2);
initial_face();
/
*************************************************************************************
*****************/
void MiniHashHumanoid::do_angry_face() {
angry_face();
XT_Wav_Class PlayVoice(angryfacevoice);
PlayVoice.RepeatForever = false;
DacAudio.Play(&PlayVoice);
int pwm_array1[16] = {200, 100, 325, 325, 550, 550, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
int pwm_array2[16] = {100, 100, 325, 325, 550, 550, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
move_servo(1000, pwm_array1);
move_servo(1000, pwm_array2);
initial_face();
/
*************************************************************************************
*****************/
void MiniHashHumanoid::do_sad_face() {
sad_face();
XT_Wav_Class PlayVoice(sadfacevoice);
PlayVoice.RepeatForever = false;
DacAudio.Play(&PlayVoice);
int pwm_array1[16] = {200, 100, 325, 325, 550, 550, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
int pwm_array2[16] = {100, 100, 325, 325, 550, 550, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
move_servo(1500, pwm_array1);
move_servo(2000, pwm_array2);
initial_face();
}
/
*************************************************************************************
*****************/
void MiniHashHumanoid::do_crying_face() {
crying_face();
XT_Wav_Class PlayVoice(cryingfacevoice);
PlayVoice.RepeatForever = false;
DacAudio.Play(&PlayVoice);
int pwm_array1[16] = {200, 100, 325, 325, 550, 550, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
int pwm_array2[16] = {100, 100, 325, 325, 550, 550, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
move_servo(1500, pwm_array1);
move_servo(1500, pwm_array2);
initial_face();
/
*************************************************************************************
*****************/
void MiniHashHumanoid::hands_up() {
int pwm_array1[16] = {525, 100, 325, 325, 125, 550, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
move_servo(3000, pwm_array1);
}
/
*************************************************************************************
*****************/
void MiniHashHumanoid::hands_down() {
int pwm_array1[16] = {100, 100, 325, 325, 550, 550, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
move_servo(3000, pwm_array1);
/
*************************************************************************************
*****************/
int pwm_array1[16] = {100, 400, 325, 325, 550, 400, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
move_servo(1500, pwm_array1);
int pwm_array2[16] = {100, 250, 325, 325, 550, 250, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
int pwm_array3[16] = {100, 400, 325, 325, 550, 400, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
move_servo(1000, pwm_array2);
move_servo(1000, pwm_array3);
int pwm_array4[16] = {100, 100, 325, 325, 550, 550, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
move_servo(1500, pwm_array4);
}
/
*************************************************************************************
*****************/
int pwm_array1[16] = {100, 100, 325, 375, 550, 550, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
int pwm_array2[16] = {100, 100, 325, 375, 550, 550, 325, 375, 325, 325, 325, 325, 325, 325, 325, 325};
move_servo(1000, pwm_array1);
move_servo(1000, pwm_array2);
int pwm_array3[16] = {100, 100, 325, 250, 550, 550, 325, 375, 325, 325, 325, 325, 325, 325, 325, 325};
int pwm_array4[16] = {100, 100, 325, 400, 550, 550, 325, 375, 325, 325, 325, 325, 325, 325, 325, 325};
move_servo(1000, pwm_array3);
move_servo(1000, pwm_array4);
int pwm_array5[16] = {100, 100, 325, 375, 550, 550, 325, 375, 325, 325, 325, 325, 325, 325, 325, 325};
int pwm_array6[16] = {100, 100, 325, 325, 550, 550, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
move_servo(1000, pwm_array5);
move_servo(1000, pwm_array6);
/
*************************************************************************************
*****************/
int pwm_array1[16] = {100, 100, 325, 325, 550, 550, 325, 275, 325, 325, 325, 325, 325, 325, 325, 325};
int pwm_array2[16] = {100, 100, 325, 275, 550, 550, 325, 275, 325, 325, 325, 325, 325, 325, 325, 325};
move_servo(1000, pwm_array1);
move_servo(1000, pwm_array2);
int pwm_array3[16] = {100, 100, 325, 275, 550, 550, 325, 400, 325, 325, 325, 325, 325, 325, 325, 325};
int pwm_array4[16] = {100, 100, 325, 275, 550, 550, 325, 250, 325, 325, 325, 325, 325, 325, 325, 325};
move_servo(1000, pwm_array3);
move_servo(1000, pwm_array4);
int pwm_array5[16] = {100, 100, 325, 275, 550, 550, 325, 275, 325, 325, 325, 325, 325, 325, 325, 325};
int pwm_array6[16] = {100, 100, 325, 325, 550, 550, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
move_servo(1000, pwm_array5);
move_servo(1000, pwm_array6);
/
*************************************************************************************
*****************/
int pwm_array1[16] = {100, 400, 325, 400, 550, 400, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
move_servo(1000, pwm_array1);
int pwm_array2[16] = {100, 250, 325, 325, 550, 250, 325, 250, 325, 325, 325, 325, 325, 325, 325, 325};
int pwm_array3[16] = {100, 400, 325, 400, 550, 400, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
move_servo(1000, pwm_array2);
move_servo(1000, pwm_array3);
int pwm_array4[16] = {100, 100, 325, 325, 550, 550, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
move_servo(1000, pwm_array4);
/
*************************************************************************************
*****************/
int pwm_array1[16] = {100, 100, 325, 325, 550, 550, 325, 250, 325, 325, 325, 325, 325, 325, 325, 325};
int pwm_array2[16] = {100, 325, 325, 250, 550, 325, 325, 250, 325, 325, 325, 325, 325, 325, 325, 325};
move_servo(2000, pwm_array1);
move_servo(2000, pwm_array2);
int pwm_array3[16] = {100, 400, 325, 250, 550, 250, 325, 250, 400, 325, 325, 325, 325, 325, 325, 325};
int pwm_array4[16] = {100, 250, 325, 250, 550, 400, 325, 250, 250, 325, 325, 325, 325, 325, 325, 325};
move_servo(1000, pwm_array3);
move_servo(1000, pwm_array4);
int pwm_array5[16] = {100, 100, 325, 325, 550, 550, 325, 250, 325, 325, 325, 325, 325, 325, 325, 325};
int pwm_array6[16] = {100, 100, 325, 325, 550, 550, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
move_servo(2000, pwm_array5);
move_servo(2000, pwm_array6);
}
/
*************************************************************************************
*****************/
int pwm_array1[16] = {100, 100, 325, 400, 550, 550, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
int pwm_array2[16] = {100, 325, 325, 400, 550, 325, 325, 400, 325, 325, 325, 325, 325, 325, 325, 325};
move_servo(2000, pwm_array1);
move_servo(2000, pwm_array2);
int pwm_array3[16] = {100, 400, 325, 400, 550, 250, 325, 400, 250, 325, 325, 325, 325, 325, 325, 325};
int pwm_array4[16] = {100, 250, 325, 400, 550, 400, 325, 400, 400, 325, 325, 325, 325, 325, 325, 325};
move_servo(1000, pwm_array3);
move_servo(1000, pwm_array4);
int pwm_array5[16] = {100, 100, 325, 400, 550, 550, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
int pwm_array6[16] = {100, 100, 325, 325, 550, 550, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
move_servo(2000, pwm_array5);
move_servo(2000, pwm_array6);
/
*************************************************************************************
*****************/
int pwm_array2[16] = {100, 100, 375, 325, 550, 550, 375, 325, 325, 325, 325, 325, 325, 325, 325, 325};
int pwm_array3[16] = {150, 100, 275, 300, 550, 550, 275, 300, 325, 325, 325, 325, 325, 325, 325, 325};
int pwm_array4[16] = {100, 100, 275, 325, 550, 550, 275, 325, 325, 325, 325, 325, 325, 325, 325, 325};
move_servo(speed, pwm_array1);
move_servo(speed, pwm_array2);
move_servo(speed, pwm_array3);
move_servo(speed, pwm_array4);
int pwm_array5[16] = {100, 100, 325, 325, 550, 550, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
move_servo(speed, pwm_array5);
/
*************************************************************************************
*****************/
int pwm_array1[16] = {100, 100, 375, 300, 550, 550, 375, 300, 325, 325, 325, 325, 325, 325, 325, 325};
int pwm_array2[16] = {100, 100, 375, 325, 550, 550, 375, 325, 325, 325, 325, 325, 325, 325, 325, 325};
int pwm_array3[16] = {100, 100, 275, 350, 550, 550, 275, 350, 325, 325, 325, 325, 325, 325, 325, 325};
int pwm_array4[16] = {100, 100, 275, 325, 550, 550, 275, 325, 325, 325, 325, 325, 325, 325, 325, 325};
move_servo(speed, pwm_array1);
move_servo(speed, pwm_array2);
move_servo(speed, pwm_array3);
move_servo(speed, pwm_array4);
int pwm_array5[16] = {100, 100, 325, 325, 550, 550, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
move_servo(speed, pwm_array5);
/
*************************************************************************************
*****************/
int pwm_array1[16] = {100, 100, 325, 325, 550, 550, 325, 300, 325, 325, 325, 325, 325, 325, 325, 325};
int pwm_array2[16] = {100, 100, 325, 288, 550, 550, 325, 288, 325, 325, 325, 325, 325, 325, 325, 325};
int pwm_array3[16] = {100, 100, 375, 288, 550, 550, 325, 288, 325, 325, 325, 325, 325, 325, 325, 325};
int pwm_array4[16] = {100, 100, 375, 325, 550, 550, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
int pwm_array5[16] = {100, 100, 375, 350, 550, 550, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
int pwm_array6[16] = {100, 100, 375, 362, 550, 550, 325, 362, 325, 325, 325, 325, 325, 325, 325, 325};
int pwm_array7[16] = {100, 100, 325, 362, 550, 550, 325, 362, 325, 325, 325, 325, 325, 325, 325, 325};
int pwm_array8[16] = {100, 100, 325, 325, 550, 550, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
move_servo(500, pwm_array1);
move_servo(500, pwm_array2);
move_servo(500, pwm_array3);
move_servo(500, pwm_array4);
move_servo(500, pwm_array5);
move_servo(500, pwm_array6);
move_servo(500, pwm_array7);
move_servo(500, pwm_array8);
int pwm_array9[16] = {100, 100, 325, 325, 550, 550, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
move_servo(speed, pwm_array9);
/
*************************************************************************************
*****************/
int pwm_array1[16] = {100, 100, 325, 350, 550, 550, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
int pwm_array2[16] = {100, 100, 325, 362, 550, 550, 325, 362, 325, 325, 325, 325, 325, 325, 325, 325};
int pwm_array3[16] = {100, 100, 325, 362, 550, 550, 275, 362, 325, 325, 325, 325, 325, 325, 325, 325};
int pwm_array4[16] = {100, 100, 325, 325, 550, 550, 275, 325, 325, 325, 325, 325, 325, 325, 325, 325};
int pwm_array5[16] = {100, 100, 325, 325, 550, 550, 275, 300, 325, 325, 325, 325, 325, 325, 325, 325};
int pwm_array6[16] = {100, 100, 325, 288, 550, 550, 275, 288, 325, 325, 325, 325, 325, 325, 325, 325};
int pwm_array7[16] = {100, 100, 325, 288, 550, 550, 325, 288, 325, 325, 325, 325, 325, 325, 325, 325};
int pwm_array8[16] = {100, 100, 325, 325, 550, 550, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
move_servo(500, pwm_array1);
move_servo(500, pwm_array2);
move_servo(500, pwm_array3);
move_servo(500, pwm_array4);
move_servo(500, pwm_array5);
move_servo(500, pwm_array6);
move_servo(500, pwm_array7);
move_servo(500, pwm_array8);
int pwm_array9[16] = {100, 100, 325, 325, 550, 550, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
move_servo(speed, pwm_array9);
/
*************************************************************************************
*****************/
int pwm_array1[16] = {100, 100, 325, 325, 550, 550, 325, 400, 325, 325, 325, 325, 325, 325, 325, 325};
int pwm_array2[16] = {100, 100, 325, 325, 550, 550, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
move_servo(400, pwm_array1);
move_servo(400, pwm_array2);
/
*************************************************************************************
*****************/
int pwm_array2[16] = {100, 100, 325, 325, 550, 550, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
move_servo(400, pwm_array1);
move_servo(400, pwm_array2);
/
*************************************************************************************
*****************/
int pwm_array1[16] = {100, 475, 325, 325, 550, 175, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
move_servo(2000, pwm_array1);
int pwm_array2[16] = {100, 175, 325, 325, 550, 475, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
int pwm_array3[16] = {100, 475, 325, 325, 550, 175, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
move_servo(1000, pwm_array2);
move_servo(1000, pwm_array3);
int pwm_array4[16] = {100, 100, 325, 325, 550, 550, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
move_servo(2000, pwm_array4);
}
/
*************************************************************************************
*****************/
height = 30;
int pwm_array1[16] = {100, 100, 325, 400, 550, 550, 325, 250, 325, 325, 325, 325, 325, 325, 325, 325};
int pwm_array2[16] = {100, 100, 325, 325, 550, 550, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
move_servo(1000, pwm_array1);
move_servo(1000, pwm_array2);
/
*************************************************************************************
*****************/
int pwm_array1[16] = {100, 100, 375, 325, 550, 550, 375, 325, 375, 325, 325, 325, 325, 325, 325, 325};
int pwm_array2[16] = {100, 100, 275, 325, 550, 550, 275, 325, 275, 325, 325, 325, 325, 325, 325, 325};
move_servo(1000, pwm_array1);
move_servo(1000, pwm_array2);
}
int pwm_array3[16] = {100, 100, 325, 325, 550, 550, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
move_servo(1000, pwm_array3);
/
*************************************************************************************
*****************/
int pwm_array1[16] = {100, 400, 325, 325, 550, 250, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
move_servo(2000, pwm_array1);
int pwm_array2[16] = {100, 250, 325, 400, 550, 400, 325, 250, 325, 325, 325, 325, 325, 325, 325, 325};
int pwm_array3[16] = {100, 400, 325, 325, 550, 250, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
move_servo(1000, pwm_array2);
move_servo(1000, pwm_array3);
int pwm_array4[16] = {100, 100, 325, 325, 550, 550, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
move_servo(1000, pwm_array4);
/
*************************************************************************************
*****************/
int pwm_array1[16] = {100, 100, 325, 288, 550, 550, 325, 288, 325, 325, 325, 325, 325, 325, 325, 325};
int pwm_array2[16] = {100, 100, 325, 362, 550, 550, 325, 362, 325, 325, 325, 325, 325, 325, 325, 325};
move_servo(1000, pwm_array1);
move_servo(1000, pwm_array2);
int pwm_array3[16] = {100, 100, 325, 325, 550, 550, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
move_servo(1000, pwm_array3);
/
*************************************************************************************
*****************/
int pwm_array1[16] = {500, 100, 325, 325, 325, 550, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
move_servo(2000, pwm_array1);
int pwm_array2[16] = {325, 100, 325, 325, 150, 550, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
int pwm_array3[16] = {500, 100, 325, 325, 325, 550, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
move_servo(1000, pwm_array2);
move_servo(1000, pwm_array3);
}
int pwm_array4[16] = {100, 100, 325, 325, 550, 550, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325};
move_servo(1000, pwm_array4);
/
*************************************************************************************
*****************/