Author Topic: My very first simple robot - Yay!  (Read 1432 times)

0 Members and 1 Guest are viewing this topic.

Offline KelpyTopic starter

  • Full Member
  • ***
  • Posts: 82
  • Helpful? 0
My very first simple robot - Yay!
« on: August 10, 2010, 03:08:58 AM »
OK, so it's not brilliant, and obviously needs tweeking, but as a complete novice in all things electronic and programming, it has given me satisfaction to actually get it to work.
Let's face it though, all the hard work has been done by Admin. Thanks go to him.

(The video is not very good quality, and is cut short - camcorder battery died on me :'( )

[youtube=425,350]ll21u9iLP-Y#ws[/youtube]


Tips and advice very welcome.
« Last Edit: August 10, 2010, 03:11:51 AM by Kelpy »

Offline amadord

  • Jr. Member
  • **
  • Posts: 21
  • Helpful? 0
Re: My very first simple robot - Yay!
« Reply #1 on: August 10, 2010, 06:07:21 AM »
good job man!

Offline Mansoor

  • Jr. Member
  • **
  • Posts: 20
  • Helpful? 0
Re: My very first simple robot - Yay!
« Reply #2 on: August 15, 2010, 06:11:37 PM »
Good work! I am working on the same project. but I didnt want to use servos i wanted to use motors instead. so i tried plugging in the motor directly into the output pins of the mictorcontroller. that didnt go well, and after a few times it killed my microcontroller. now iam using an H bridge chip to power the motors. One comment about your robot though. it seams to keep going left and right and does not have a go straight command. did u remove that part of the code? did u set the threshold too low?

Offline KelpyTopic starter

  • Full Member
  • ***
  • Posts: 82
  • Helpful? 0
Re: My very first simple robot - Yay!
« Reply #3 on: August 18, 2010, 09:09:06 AM »
One comment about your robot though. it seams to keep going left and right and does not have a go straight command. did u remove that part of the code? did u set the threshold too low?

Thanks for the comments, Mansoor. Sorry to hear about killing your MC.

The code is untouched, I wouldn't know where to start in changing it, to be honest.

As my PC has been destroyed, and I have only just got it back up and running (with loads of stuff missing :'(), I haven't had time to 'play'. I'm going to try and see if I can understand the coding, and maybe play with the settings. You're right, it doesn't seem to want to go straight, but that was with the very bright sunlight on my bench. In the kitchen, on the floor, it just keeps going straight until it bashes into something LOL.

Offline Mansoor

  • Jr. Member
  • **
  • Posts: 20
  • Helpful? 0
Re: My very first simple robot - Yay!
« Reply #4 on: August 18, 2010, 01:56:11 PM »
the photovore programme is simple to understand. you ill find it easy for sure. in the source files in the avr programme you will see the important system that admin made for us. you can easily see the comparisons he is making in the code and understand how the robot functions. it basically compares the sensor voltages and goes with higher one. all done using if statements. check out Cprogramming website they have a whole section with C tutorials.

 


Get Your Ad Here