Micro Servo Robot

Slow playback problem found !!

The Problem with the slow playback is in the Button part.

 

void Button() // check buttons for single and
doubleclick
{
  if (digitalRead(6) == false)
  {
    delay(20);
    if (digitalRead(6) == true) // taster
losgelassen

 

The delay of 20 msec is the reason why the CPU cycle time is too long and the servos too slow.

PullUp

interesting! the 20ms is used to debounce the button.

The button MUST have a 10k pullup resistor to +5V! Maybe software pullup also work. https://www.arduino.cc/en/Reference/Constants

If the button is pressed digital IN6 goes to GND (if (digitalRead(6) == false)) and the 20ms is debouncing time before check for release the button. Soā€¦ if this solves the slow running problem we search since months: thx to czpollib

 

Speed Problem: > Input 6 PullUp

!!! The resistor at input 6 (button) have to be a PullUp to +5V. Pressed button goes to GND !!! 

Maybe that also work with software PullUpā€¦ ;-) https://www.arduino.cc/en/Tutorial/InputPullupSerial

I hope this solves all the speed problemsā€¦ P.

i need your help!

hey Pinaut!
im really interested in your project I have been aldready made one robot arm as yours But i need the schemic from you Can you post your schemic, so I can wire button to arduino and apply the code
And one more thing Im not good at english Can you explain me brieftly How to make robot move smoothly after activating  the positions of servo rc in eeprom 

Sincerely thank!

hello there

love the way you write your code i want to implement a part of it to my personal deskhelp (check profilefoto)

like to have your opinion about it i implemented a extra rotating axel in the midle of the arm and are going to check this afternoon if i can bring this back to your code and some storing capabillities and disign the arm to copy the movements from 

i am kind of new to this so please let me now Greetings nico

lest of the day

DSCF4024.jpg

speed Problem: > Input 6 PullUp

can anyone confirm if this is the solution for the speed problem?

Your help is very helpful for me!

Dear Pinaut!

Your robot is very awesome and i think you are also very smart too.

Iā€™m a student can you give me the flowchart? so that i can understand the code.

Some of them are difficult for me to understand.

Thank you in advance and Looking forward to your reply!

 


Smooth Robot

Can u share this parts 3d files ? 

I dont hava a program the design this parts.

Or can give this parts sizes ?

Thanks

I liked this,because your robot is very smooth.

nice project. why not start

Nice project. Why not start your own thread? Would make sense for future postings and discussions

slow motion fix

10k PullUp resistor at pin 6!

Part design

There are no design files. Balsawood and a knife is all u need. The size u can imagine compare to the servos. One suggestion: The teach arm and robot arm can have different size, but should have same ratio between rotation axles. P.

Flowchart

Flowchart and circuit diagram added. :slight_smile:

Wood

 I liked it before, now that I know it is made with a knife and balsa wood, I like it even more.

There are only a handful of us that arenā€™t making robots out of either pre cut parts or 3D printed parts. Nice job and original work.

finall

I will start my own sory kinda new with this never posted before tough you might like it since i got inspired by your movie link on youtube i was already thinking how to control my arm but the mimic function is stupid proof by the way did you write the base code or am i looking for someone else

thanks anyway as soon as i got my own set up wil post link

DSCF4028.jpg

update

ready with the disign rest of the parts are printing

i hope its finished tommorow

nice

very nice

helpā€¦

hi pinautā€¦

ı want to ask you for my arduino robot armā€¦i used arduino uno and 6 servo motor ,my question can i change your code for just one arm ā€¦i mean i dont want use another arm ,i want hold mine robot arm and budge it, teach some movement ā€¦is it posisible? i hope you can understand my problem ā€¦

Yes you can you have to ad some arrays
You have to ad some arrays an ad some extra analogRead and extra servo,s min max settings in the step calculator
Watch out whit SensValue you need one more than you have axis so your case 7 one is for the potensio to calculate delay i would keep them al ordert and put that one on SensValue[6] make sure to change it from 3 to 6 ps i would check the code carvully i am busy adding some functions right now and found some weird anomaly,s probaly the result of multiple programers greets nicolini

Yes you can you have to ad some arrays
You have to ad some arrays an ad some extra analogRead and extra servo,s min max settings in the step calculator
Watch out whit SensValue you need one more than you have axis so your case 7 one is for the potensio to calculate delay i would keep them al ordert and put that one on SensValue[6] make sure to change it from 3 to 6 ps i would check the code carvully i am busy adding some functions right now and found some weird anomaly,s probaly the result of multiple programers greets nicolini