Society of Robots - Robot Forum
Software => Software => Topic started by: newbie on July 07, 2007, 12:59:55 AM
-
anyone can upload a programming for "Stampy the Sumo Robot" http://www.societyofrobots.com/robot_sumo.shtml (http://www.societyofrobots.com/robot_sumo.shtml), i am using atmega168 and avr studio 4, i want my sumo robot has the same function as "Stampy the Sumo Robot", pls help!!!!!
admin edit: I changed the subject to something more useful than 'Help ! need help!!!!!!'
-
really i need help!!!!!!
-
this should be it.
http://www.societyofrobots.com/downloads/Mobot_2007_v1.zip
this is where I got it from
http://www.societyofrobots.com/robot_mobot_2007.shtml
-
i think that one is line following robot command, i need sumo robot command. can i use http://www.societyofrobots.com/downloads/stampy_sumo_source_code.zip (http://www.societyofrobots.com/downloads/stampy_sumo_source_code.zip) to program atmega168 with avr studio?
-
can i replace the icsp header with a serial port ? i do not have a iscp header!!!! how to add serial port to the circuit in http://www.societyofrobots.com/step_by_step_robot_step3C.shtml (http://www.societyofrobots.com/step_by_step_robot_step3C.shtml)?
Pls reply, reply the above question too!!!!
-
FYI, my Stampy sourcecode is for a PIC16F877 and not for AVR.
how to add serial port to the circuit in http://www.societyofrobots.com/step_by_step_robot_step3C.shtml?
You will need to send serial data from the UART (tx and rx on your AVR). Then connect those to pins to a rs232 to serial adaptor (about ~$6). Just search this forum and google for those terms.
If I ever get my SparkFun parts in (they seem to be having serious shipping issues lately) Ill write a tutorial for this using AVR.
-
Hey Admin, did you ever bother to get one of the Arduinos from them to check out? It's pretty nice for someone just staring out to get the feel of MCU's, and it's nice for people like me who don't have time to mess around with building their own prototyping board, and buying dongles and such.
-
Nope, but the specs looked good to me.
-
(they seem to be having serious shipping issues lately)
took them a week to ship my cable.
nothing new
-
i think that one is line following robot command, i need sumo robot command. can i use http://www.societyofrobots.com/downloads/stampy_sumo_source_code.zip (http://www.societyofrobots.com/downloads/stampy_sumo_source_code.zip) to program atmega168 with avr studio?
i solve the problem about icsp header by buying AVRISP AVR IN -SYSTEM PROGRAMMER http://www.rsmalaysia.com/cgi-bin/bv/rswww/searchBrowseAction.do?N=0&Ntk=I18NRSStockNumber&Ntt=4725933&Nty=1&D=4725933&callingPage=/order/OrderHistoryView.jsp&BV_SessionID=@@@@0535305059.1184232628@@@@&BV_EngineID=ccccaddlgkglfkhcefeceeldgondhgm.0&cacheID=mynetscape&Nr=avl:my (http://www.rsmalaysia.com/cgi-bin/bv/rswww/searchBrowseAction.do?N=0&Ntk=I18NRSStockNumber&Ntt=4725933&Nty=1&D=4725933&callingPage=/order/OrderHistoryView.jsp&BV_SessionID=@@@@0535305059.1184232628@@@@&BV_EngineID=ccccaddlgkglfkhcefeceeldgondhgm.0&cacheID=mynetscape&Nr=avl:my), will it work?
i hope admin can upload the code for atmega in one week time, please... send an e-mail to notify me after you upload it.
-
You can find my Stampy code for AVR here:
http://www.societyofrobots.com/robot_50_robot_sharpIR.shtml
http://www.societyofrobots.com/downloads/robot_source_50_sharpIR_v1.zip
As for the code for serial, count on it taking me weeks not days to post it ;D
-
can i use the above command which you gave with my board http://www.societyofrobots.com/step_by_step_robot_step3B.shtml (http://www.societyofrobots.com/step_by_step_robot_step3B.shtml), i replaced the microprocessor in that board with atmega168. Can it has 100% same function like stampy ? :'( i really need it, the competition is coming very soon in 2 weeks !!!!!!!
really thank you. :)
-
You need to make a few small changes in your code, but yes it will work.
Follow the instructions here:
http://www.societyofrobots.com/step_by_step_atmega168_swapout.shtml
-
should i change the atmega 8 option into atmega 168 if i am using atmega 168 (http://www.societyofrobots.com/images/sbs_avrstudio3.png)
does the command included a command which do not let the sumo robot came out from the battle ring(http://filexoom.com/public/23502/Picture1.png?no_history)?
if no, how to add it ? i will use a photoresistor to detect the outer line.
does the command include a command which let the ir sensor rotate (http://www.societyofrobots.com/images/robot_sumo_flip.jpg)?
if i want to add some command, which place should i add to?
At which point should i plug the ir sensor, servo motor (for ir), servo motors and photoresistors ?
i really a newbie, really thank you for everybody support !!!! thank you!!!! you guys are great!!!!!!!!
-
should i change the atmega 8 option into atmega 168 if i am using atmega 168
yes
does the command included a command which do not let the sumo robot came out from the battle ring
the algorithm makes your robot only go to the opposing robot. there will never be a cliff between your robot and the opposing robot. therefore you do not need to ever detect a line
does the command include a command which let the ir sensor rotate
just command the servo to rotate just like you do for the wheels. all my code is well commented and should be self explanatory.
-
the algorithm makes your robot only go to the opposing robot. there will never be a cliff between your robot and the opposing robot. therefore you do not need to ever detect a line
so, the robot will not move when it does not detect opponent? or after finishing rotate the ir sensor (servo motor) without any opponent detected, it will turn round like stampy? i want it to turn round like stampy, what should i add?
http://www.youtube.com/player2.swf?hl=en&video_id=aSMj-evshlo&l=161&t=OEgsToPDskKIAUzLZwgiIV1P8n0qWhAX&soff=1&sk=y46yK-0EE6jjc_Ij-o0jvQU
i want to add four photoresistors at the side of the robot to prevent it from going out when it push the opponent out from the battle ring and when opponent want to push it out of the battle ring, what should i add?
(http://filexoom.com/public/23520/untitled.jpg?no_history)
-
this is my algorithm for the four photoresisitor with leds like mobot:
if sensor1 on the balck line, while other sensor on white surface, robot will turn right.
if sensor3 on the balck line, while other sensor on white surface, robot will turn right.
if sensor1&3 on the balck line, while other sensor on white surface, robot will turn right.
if sensor2 on the balck line, while other sensor on white surface, robot will turn left.
if sensor4 on the balck line, while other sensor on white surface, robot will turn left.
if sensor2&4 on the balck line, while other sensor on white surface, robot will turn left.
if sensor1&2(front) on the balck line, while other sensor on white surface, robot will turn right.
if sensor3&4(back) on the balck line, while other sensor on white surface, robot will move forward as usual.
when all the sensor on white line, the robot will function as usual.
-
so, the robot will not move when it does not detect opponent? or after finishing rotate the ir sensor (servo motor) without any opponent detected, it will turn round like stampy?
The answers to all your questions are in the tutorial.
"Algorithm
The algorithm takes data from a scanning Sharp IR Rangefinder, and uses edge detection to decide where to drive. If no target is available, it would go into a search mode and spin clockwise. Otherwise, it would attempt to drive towards the left side of the opposing robot."
i want to add four photoresistors at the side of the robot to prevent it from going out when it push the opponent out from the battle ring and when opponent want to push it out of the battle ring, what should i add?
Again, this is not necessary. With the Stampy algorithm, your robot will only drive towards the opposing robot, not over the table. The table does not end between your robot and the other robot, therefore it will never go over the table.
-
Again, this is not necessary. With the Stampy algorithm, your robot will only drive towards the opposing robot, not over the table. The table does not end between your robot and the other robot, therefore it will never go over the table.
i knew the robot will not goes off from the table (battle ring), but it will go off from the battle ring when the opponent push when it is in a spin mode or when it cannot detect the opponent. :-\ ! the robot which went off from the ring will be qualified as loser although without any pushing from the opponents. i scare my robot will lose without reason. below show 1 condition where my robot will went off from the battle ring. :(
(http://filexoom.com/public/23563/untitled%20copy.jpg?no_history)
(the arrow show the heading / front part of the robots.)
-
any person can reply the above questions? please help me :'( :'( :'( :'( :'( :'( :'( :'( :'( :'(
-
hi sheng fatt,
so you are suggesting adding photoresistors to the bottom of your robot so it can detect when it has reached the line and try to avoid being pushed over.
yes, that should work.
obviously you will need to modify the circuit to add the sensors and modify the program to monitor the sensors and take evasive action.
if you want people on this forum to design and write the changes for you then i'm afraid you are out of luck.
we are mostly too busy working on our own robots.
dunk.
-
admin or any person, pls help me in changing the program if i want to add my algorithm above. please, please help me. :'( :'( :'( :'( :'( :'( :'( :( :( :( :( :(
-
http://www.societyofrobots.com/robotforum/index.php?topic=1480.0
http://www.societyofrobots.com/robotforum/index.php?topic=602.0
Please stop sending me pm's telling me answer your post every time you make a post. If all 934 members on the forum did this, I will not have time to help anyone!
(only you can build your robot, otherwise it wouldnt be yours ;))
-
i tried my self on the programming, however i face a problem,
are there any code to represent equal to "=" ?
-
AFAIK, the "=" operator is an assignment operator and is used exclusively to assign the variable on the right with a value. If you are doing comparisons, like in an IF statement for eg, the you use the "==" operator which is used to compare values.
And dont PM me either please with questions. If you have them, post them in the forum. then everybody can benefit from the answers.
-
do you have any schematic circuit, i do not want the graphical circuit, http://www.societyofrobots.com/step_by_step_robot_step3B.shtml (http://www.societyofrobots.com/step_by_step_robot_step3B.shtml),
can i connect a normal motor to this board? where should i plug in?
-
do you have any schematic circuit, i do not want the graphical circuit, http://www.societyofrobots.com/step_by_step_robot_step3B.shtml
Ummmm no . . . but if you just draw lines between the color dots, that would be what you want . . . seriously, the circuit is so simple it doessnt require a traditional schematic . . . just plug and play.
can i connect a normal motor to this board? where should i plug in?
Nope. You will need a motor driver first. Search the forum for this, many people have asked in the past . . . The advantage of a servo is that it has a motor driver already built in, along with gears and feedback control as well.
-
so, we need to use a servo motor although for the wheel?
-
I dont understand your question . . .
For those who dont know what they are doing, I suggest using servos for your first bot . . .