Micro Servo Robot

I need some Help.

Hello, Any one can help me please. when I press the button conected to the PIN (6). when I open the serial monitor and I press it dont respond and dont put me that the step was saved… I have to press it more than one time for print me that was saved… help please I purchase the servos :frowning: and dont work … 

Sorry for my bad English.

button

1 klick to safe positions; Double klick for playmode (and serial out saved data)

!!! The button needs pullup resistor to 5V!!!

**Button **

Hello and thank’s Very uch for answer. I did it. I put the one resistor of 10k to VCC from pin6 but nathing :frowning:

 

**Please Help me. **

or just give me your code: he code you have loaded in your arduino that you show in the video. Please 

just want to confirm, the

just want to confirm, the pull up resistor fixed the ‘very slow motion on the play mode’.

note for other: make sure to change the code in “MiniRobot_1_3EN.ino_.zip” just like the note in the diagram “Micro_Servo_Robot_Diagramm.pdf”.

 

servo turn the opposite direction in teach mode

is there any way to flip the rotation in the code?

somehow the ‘hand’ (sensor at pin A2) and ‘rotate’ (sensor at pin A0) spin the ‘hand’ (servo at pin 10) and ‘rotate’ (servo at pin 3) the opposite rotation, while the shoulder and griper is fine/correct.

Never mind, I found it. I flipped the values at

ist[0] = map(SensVal[0], 150, 900, 600, 2400)

to

ist[0] = map(SensVal[0], 900, 150, 600, 2400)

1 Like

**Hello Pinaut **

I resold the fiirst problem but now I have Problem with the playback its very very slow 

please any help ? 

**SLOW PLAYBACK RESOLD! **

Hello I resold The problem Of the playback  slow. 

I changed the calc part: 

ORIGINAL: 

void calculate()

{

      // travel distance for each servo

      dif[0] = abs(ist[0]-sol[0]);

      dif[1] = abs(ist[1]-sol[1]);

      dif[2] = abs(ist[2]-sol[2]);

      dif[3] = abs(ist[3]-sol[3]);

 

      // biggest travel way from all 4 servos

      stepsMax = max(dif[0],dif[1]);

      stepsMax = max(stepsMax,dif[2]);

      stepsMax = max(stepsMax,dif[3]);

      // stepsMax is the biggest distance a servo have to do beween momentary position and new pos read from the array

 

      //Serial.println(stepsMax); 

 

      if (stepsMax < 500) // del(ay) between a single step is bigger is move is smaler. just looks cool

        del = 1200; // CHANGE THIS TO 650

      else

        del = 600; // AND THIS OTHER TO 301

 

 

8MHz / 16MHz

did you use a 8MHz arduino? just wondering because u divide the delay time in half

but much more important to fix slow running problem is the pullup resistor at pin 4 and 6!

play mode very faste

hi everybody,

my mode playback  speed is good but i need to make a slow play mode … any idea?

 

-

-

make the playback slower

the speed results from the delay between micro steps. try play around with the integer ‘del = 1200’  ;-)

make follow mode slower

thank you so much Pinaut. but i need to make the manual mode slower

slow teach mode

This makes no sense to me. In the teach mode the servos are updated after 25ms. Slower update will end in jumpy movements. Slow movement in teach mode its in your hand. This is to be taken literally :-)

**HELP **

Hi everyone, i’m Leo from Rio de Janeiro, Brazil 

I put together the parts, uploaded de code to the arduino, and the servos just gone crazy, and do random moves, nothing like the pot control showed in the video…

the pots are of 20k, i used one arduino Nano 3.0

 

i put together in the 5v of the Nano: the pots, the servos and the 2 pullup switch/button

on the GND: the pots, and the servos…

12316640_462903540561968_5203010640769471569_n.jpg

12294852_462903500561972_3232951438135976318_n.jpg

12289557_462903557228633_7128103563612601665_n.jpg

i did not use any battery

12294666_462903510561971_6793211406287032008_n.jpg

slow teach mode

yes, you are right. but in arduino uno we can controle the speed by “VarSpeedServo” library… but this library work just with uno :frowning:

independent power supply

I think you have to supply
the servomotor with an independent power supply

I did it, but stays the

I did it, but stays the same… I want it to pick some bearing balls and put in a circuit to roll back to the end

wiring

i did this wiring, i have some doubts on the original diagram 

kkkkk.jpg

Finally got it

after 3 days, i finally got it running, posted the video down below

when plugged in, the servos became shaky, but it can be controlled by those pots, and the teach, play modes working fine…

i think the pots are the problem with the shaky issues…

 

forgive-me the bad english, i’ve learned in the childhood and never practice…

 

thanks man for the robot, i’m deep in love with it !!

 

Cheers !!!

https://www.youtube.com/watch?v=K8MYgDFZSuI