Society of Robots - Robot Forum

Mechanics and Construction => Mechanics and Construction => Topic started by: SoR on April 17, 2010, 12:00:03 PM

Title: modify servo help
Post by: SoR on April 17, 2010, 12:00:03 PM
How do i modify a servo in the 50$ robot if i dont have a microcontroller made yet?
Title: Re: modify servo help
Post by: amando96 on April 17, 2010, 04:25:06 PM
Could you explain yourself better  ???
Title: Re: modify servo help
Post by: SmAsH on April 17, 2010, 05:26:03 PM
You don't. You need the microcontroller built and programmed with the center servo.hex.
Title: Re: modify servo help
Post by: SoR on April 18, 2010, 04:25:41 PM
I meant how do i plug in the microcontroller into the servo to modify it and make it rotate
Title: Re: modify servo help
Post by: SoR on April 18, 2010, 04:26:48 PM
Ive also tried to download the hex program but it will bring upa long series of computer language
Title: Re: modify servo help
Post by: TomDOW2 on April 20, 2010, 11:16:13 AM
You say it just shows the binary language, have you followed the instructions in the tutorial on how to upload the program?
(I am a complete begginer so I am most likely wrong: Im following the $50 tutorial as well, It will be my 1st robot).
Title: Re: modify servo help
Post by: Choco_liger on April 22, 2010, 04:05:50 AM
Well yeah, firstly you do need the micro controller. I think it may be possible with one of those big signal sending thingies but I'm not too sure on that.

To get the hex file just right click the link and go save link as.

This worked for me. After you've done this just follow the rest of the modify servo tutorial.
http://www.societyofrobots.com/actuators_modifyservo.shtml (http://www.societyofrobots.com/actuators_modifyservo.shtml)

I hope this helps.  ;)

EDIT: Sorry I forgot to say how to attach the servo to the micro controller. Although it's pretty straight forward. On the cable of your servo it has the colors black, red and yellow. Facing your micro controller on the front (not the soldering and wiring stuff) put your connector on it so the black wire part of it is on the left. Oh and this is on the header pins on the middle left side. Oh and also this is for the one in the tutorial.

Title: Re: modify servo help
Post by: SoR on April 24, 2010, 07:32:32 PM
ok, i did the program upload, saved the link so now wat?????? thanks
Title: Re: modify servo help
Post by: corrado33 on April 24, 2010, 07:41:10 PM
What are you saying, did you program your microcontroller? 
Title: Re: modify servo help
Post by: Choco_liger on April 25, 2010, 04:26:02 AM
Uh.. follow the instructions. They come in handy.

You will need to program your robot now. Use a serial dongle programmer and use AVR studio and PonyProg,
or use the more expensive AVRISP mKII programmer and use AVR studio again and push the button select the button with a pretty picture of a mini black IC chip with the words AVR.

I hope this helps (once again)  :D
Title: Re: modify servo help
Post by: SoR on April 30, 2010, 04:24:55 PM
ok, im sorry, im a noob at this and there are no robot clubs in naperville, so let me aska question. How do I connect the servo to the microcontroller?
Title: Re: modify servo help
Post by: SoR on April 30, 2010, 04:28:25 PM
also, I click on the link constantly but it brings a bunch of numbers and letters plus there is no link so Im stuck
Title: Re: modify servo help
Post by: SoR on April 30, 2010, 04:31:03 PM
heres wat it looks like
:1000000012C02BC02AC029C028C027C026C025C0C6
:1000100024C023C022C021C020C01FC010C41DC0E6
:100020001CC01BC01AC011241FBECFE5D4E0DEBF28
:10003000CDBF10E0A0E6B0E0E8E6F8E002C0059031
:100040000D92A636B107D9F710E0A6E6B0E001C0E0
:100050001D92A337B107E1F7BDC2D2CFCF93DF9393
:10006000CDB7DEB7E4E3F0E01082E5E3F0E0108224
:10007000E1E3F0E08FEF8083DF91CF910895CF939C
:10008000DF93CDB7DEB724970FB6F894DEBF0FBE6F
:10009000CDBF69837A838B839C830BC089819A81CE
:1000A000AB81BC810197A109B10989839A83AB8394
:1000B000BC8389819A81AB81BC810097A105B10580
:1000C00069F724960FB6F894DEBF0FBECDBFDF915F
:1000D000CF910895CF93DF93CDB7DEB7A2E3B0E021
:1000E000E2E3F0E080818F7E8C93DF91CF910895E1
:1000F000CF93DF93CDB7DEB7A2E3B0E0E2E3F0E069
:10010000808180618C93DF91CF910895CF93DF93AD
:10011000CDB7DEB724970FB6F894DEBF0FBECDBFC4
:1001200069837A838B839C83A2E3B0E0E2E3F0E00F
:10013000808181608C9389819A81AB81BC81BC0173
:10014000CD019DDFA2E3B0E0E2E3F0E080818E7FAD
:100150008C9368EC70E080E090E091DF24960FB61D
:10016000F894DEBF0FBECDBFDF91CF910895CF933E
:10017000DF93CDB7DEB724970FB6F894DEBF0FBE7E
:10018000CDBF69837A838B839C83A2E3B0E0E2E3F3
:10019000F0E0808182608C9389819A81AB81BC81FF
:1001A000BC01CD016CDFA2E3B0E0E2E3F0E08081CE
:1001B0008D7F8C9368EC70E080E090E060DF2496A7
:1001C0000FB6F894DEBF0FBECDBFDF91CF9108957B
:1001D000CF93DF93CDB7DEB724970FB6F894DEBF89
:1001E0000FBECDBF69837A838B839C83A2E3B0E08B
:1001F000E2E3F0E0808184608C9389819A81AB8115
:10020000BC81BC01CD013BDFA2E3B0E0E2E3F0E062
:1002100080818B7F8C9368EC70E080E090E02FDF32
:1002200024960FB6F894DEBF0FBECDBFDF91CF91FD
:100230000895CF93DF93CDB7DEB767E270E080E03B
:1002400090E064DF69E270E080E090E090DFDF91B1
:10025000CF910895CF93DF93CDB7DEB761E270E021
:1002600080E090E053DF63E270E080E090E07FDFC9
:10027000DF91CF910895CF93DF93CDB7DEB76DE1D6
:1002800070E080E090E042DF6DE270E080E090E0BE
:100290006EDFDF91CF910895CF93DF93CDB7DEB7B7
:1002A0006DE270E080E090E031DF6DE170E080E0D1
:1002B00090E05DDFDF91CF910895CF93DF93CDB7CD
:1002C000DEB763E270E080E090E020DF63E270E0A0
:1002D00080E090E04CDFDF91CF910895CF93DF93E2
:1002E000CDB7DEB7BBDE83D185E0C1D181E0DDD102
:1002F000DF91CF910895CF93DF93CDB7DEB785E03F
:1003000083D29927909369008093680020916800B8
:100310003091690080916C0090916D008217930775
:100320008CF480916000909161008A329105F4F024
:10033000809160009091610002979093610080939A
:10034000600014C0209160003091610080916200D3
:1003500090916300821793074CF080916000909118
:10036000610002969093610080936000809160002C
:1003700090916100AA2797FDA095BA2FBC01CD01ED
:1003800027DFDF91CF910895CF93DF93CDB7DEB70D
:1003900024970FB6F894DEBF0FBECDBF8AEF90E072
:1003A0009A8389838AE290E0909361008093600051
:1003B0008AEF90E09A83898310C0809160009091C9
:1003C0006100AA2797FDA095BA2FBC01CD0100DFDF
:1003D00089819A8101979A83898389819A811816E4
:1003E00019065CF368EB7BE080E090E048DE51C0EA
:1003F00085E00AD299279093690080936800209144
:1004000068003091690080916E0090916F008217B2
:10041000930744F4809168009091690090936F0075
:1004200080936E0020916800309169008091640093
:10043000909165002817390744F4809168009091E5
:1004400069009093650080936400809160009091B2
:10045000610001969093610080936000809160003C
:1004600090916100AA2797FDA095BA2FBC01CD01FC
:10047000AFDE8091600090916100AA2797FDA09562
:10048000BA2FBC01CD01A4DE60E777E180E090E007
:10049000F6DD2091600030916100809162009091C2
:1004A0006300821793070CF0A3CF80916E009091A8
:1004B0006F002091640030916500820F931F9C8330
:1004C0008B838B819C8199232CF48B819C81019659
:1004D0009C838B838B819C819595879590936D00F0
:1004E00080936C0024960FB6F894DEBF0FBECDBF8C
:1004F000DF91CF910895CF93DF93CDB7DEB72297E9
:100500000FB6F894DEBF0FBECDBF85E07DD1992731
:100510009093690080936800209168003091690091
:1005200080916E0090916F008217930744F4809140
:1005300068009091690090936F0080936E00209105
:1005400068003091690080916400909165002817DF
:10055000390744F480916800909169009093650098
:100560008093640080916E0090916F0020916400F0
:1005700030916500820F931F9A83898389819A81C4
:1005800099232CF489819A8101969A8389838981A0
:100590009A819595879590936D0080936C008091DA
:1005A0006E0090916F00019790936F0080936E00A2
:1005B000809164009091650001969093650080930E
:1005C000640022960FB6F894DEBF0FBECDBFDF9158
:1005D000CF910895CF93DF93CDB7DEB77FDE8BDE6B
:1005E0006CDE60E971E080E090E049DDF8CFCF9308
:1005F000DF93CDB7DEB7A6E2B0E0E6E2F0E08081BF
:1006000080688C93A6E2B0E0E6E2F0E080818F7D26
:100610008C9386E02CD081E048D0A7E2B0E0E7E2FE
:10062000F0E080818F7D8C93A6E2B0E0E6E2F0E01E
:10063000808188608C93109272007894DF91CF91C2
:100640000895CF93DF93CDB7DEB7A6E2B0E0E6E240
:10065000F0E08081877F8C93A6E2B0E0E6E2F0E0F4
:1006600090818FE789238C93DF91CF910895CF9369
:10067000DF93CDB7DEB721970FB6F894DEBF0FBE7C
:10068000CDBF8983A6E2B0E0E6E2F0E08081982F5A
:10069000987F8981892B8C9321960FB6F894DEBFC1
:1006A0000FBECDBFDF91CF910895CF93DF93CDB72C
:1006B000DEB721970FB6F894DEBF0FBECDBF89839A
:1006C000A7E2B0E0E7E2F0E08081982F8FE3292FE6
:1006D00028238981992700249695879507949695D4
:1006E00087950794982F802D822B8C9321960FB697
:1006F000F894DEBF0FBECDBFDF91CF910895CF93A9
:10070000DF93CDB7DEB721970FB6F894DEBF0FBEEB
:10071000CDBF8983A7E2B0E0E7E2F0E08081982FC7
:10072000907E89818F71892B8C9321960FB6F894D6
:10073000DEBF0FBECDBFDF91CF910895CF93DF9382
:10074000CDB7DEB7A6E2B0E0E6E2F0E080818061FE
:100750008C93A6E2B0E0E6E2F0E0808180648C93C6
:10076000DF91CF910895CF93DF93CDB7DEB7E6E267
:10077000F0E08081992780749070DF91CF91089587
:10078000CF93DF93CDB7DEB721970FB6F894DEBFD6
:100790000FBECDBF898310927200A7E2B0E0E7E2FE
:1007A000F0E08081982F907E89818F71892B8C93C6
:1007B000A6E2B0E0E6E2F0E0808180618C93A6E200
:1007C000B0E0E6E2F0E0808180648C93E6E2F0E065
:1007D00080819927807490700097C1F7E4E2F0E07F
:1007E0008081282F3327E5E2F0E080819927982F38
:1007F0008827822B932B21960FB6F894DEBF0FBE6D
:10080000CDBFDF91CF910895CF93DF93CDB7DEB702
:1008100021970FB6F894DEBF0FBECDBF89838981C3
:10082000AFDF9695879596958795992721960FB670
:10083000F894DEBF0FBECDBFDF91CF9108951F9218
:100840000F920FB60F9211248F93CF93DF93CDB7F2
:10085000DEB78FEF80937200DF91CF918F910F9071
:080860000FBE0F901F901895C8
:060868001E003800FF0035
:00000001FF

Title: Re: modify servo help
Post by: Choco_liger on May 01, 2010, 12:21:31 AM
To plug your servo in, you use the little connector that is attached to the wires to your header pins.

To use the hex file, you need to use AVR studio.
Create a new project name it whatever, add the hex file as a source file and upload it using PonyProg or a AVRISP mKII programmer. Follow the rest of the tutorial to modify them.

If it proves to be too hard then just buy some servo's already modified.

Lastly please try to use the tutorials even if it is hard, but you'll learn more about it that way.

Good luck.

Title: Re: modify servo help
Post by: SoR on May 02, 2010, 06:32:30 PM
ok, ill just by premodded servos thnks fo ur time everyone
ps.there is no power of the youth
Title: Re: modify servo help
Post by: chelmi on May 02, 2010, 07:05:03 PM
ok, ill just by premodded servos thnks fo ur time everyone

If you are not able to upload an hex file to the MCU, you won't get far in the $50 robot tut (If that's what you are trying to do).
Buying modified servos won't help.
Title: Re: modify servo help
Post by: Choco_liger on May 03, 2010, 02:33:50 AM
I'm not too sure what was wrong. I think he didn't have a micro controller in the first place.

Quote
ps.there is no power of the youth
 :D Sure, whatever.

EDIT: Sorry I should learn how to use the quotes.
Title: Re: modify servo help
Post by: SoR on May 03, 2010, 07:04:58 PM
what? i still need a hex file???/ @#$%&!  >:(   crap!
Title: Re: modify servo help
Post by: chelmi on May 03, 2010, 07:13:00 PM
read the tutorial, it's pretty clear.

(Assuming you are doing the 50$ robot)

- do you have a programmer?
- did you make the board?

Chelmi
Title: Re: modify servo help
Post by: Choco_liger on May 04, 2010, 03:15:15 AM
Yes. chelmi is quite right.
Title: Re: modify servo help
Post by: SoR on May 15, 2010, 06:47:39 PM
Choco, did u get a bunch of computer languge or  a window that said download?
Title: Re: modify servo help
Post by: chelmi on May 15, 2010, 07:09:43 PM
What you are seeing is the content of the hex file. You need to save this on your computer and upload it to the atmega using a programmer.

1. Right click on the link and select "Save link target as..." or something like that.
2. Select where you want to save the .hex
3. Use the programmer to upload the file (how you do this depends on the exact programmer you have)

Chelmi.
Title: Re: modify servo help
Post by: Derme302 on May 26, 2010, 03:17:03 AM
If you still don't get a download window, try changing your browser (If your using Intenet Explorer go to Fire Fox or Google Chrome).
Title: Re: modify servo help
Post by: Alfa_Zulu on July 13, 2010, 02:31:50 AM
buying pre modded servos wont help you if you can't program the robot as already being mentioned by chelmi

1. Have you made the $50 robot PCB yet? (this is just the Atmega8 and the header pins and stuff)
2. do you own a programmer? if so what type?

reply with this information andIi'll try to help :D
Title: Re: modify servo help
Post by: Choco_liger on July 13, 2010, 03:14:26 AM
@minhduybk09
I suppose you were supposed to post this in another topic?

@everyone else
I think SoR's problem was because he couldn't get the file in the first place.

Btw, this topic was about 1-2 months old.  ;D
Title: Re: modify servo help
Post by: Alfa_Zulu on July 13, 2010, 05:08:55 AM
that doesn't mean he had fixed it lol
Title: Re: modify servo help
Post by: Choco_liger on July 13, 2010, 05:21:23 AM
that doesn't mean he had fixed it lol

True, True.