go_away

Author Topic: A Stamply like (Object folowing robot wit IR Rangefinder) robot  (Read 889 times)

0 Members and 1 Guest are viewing this topic.

Offline SUTO the GTopic starter

  • Jr. Member
  • **
  • Posts: 42
  • Helpful? 0
A Stamply like (Object folowing robot wit IR Rangefinder) robot
« on: February 21, 2013, 05:58:18 AM »
Can a Stamply like (Object folowing robot wit IR Rangefinder) robot be accomplished with a different steering mechanism (not differential drive) without running in to big problems? I mean using almost the same software only with minor adjustments, and same electronics?

Offline newInRobotics

  • Supreme Robot
  • *****
  • Posts: 1,015
  • Helpful? 48
  • N.I.R.
Re: A Stamply like (Object folowing robot wit IR Rangefinder) robot
« Reply #1 on: February 21, 2013, 06:04:01 AM »
What different steering mechanism do You have in mind?
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian W

Offline SUTO the GTopic starter

  • Jr. Member
  • **
  • Posts: 42
  • Helpful? 0
Re: A Stamply like (Object folowing robot wit IR Rangefinder) robot
« Reply #2 on: February 21, 2013, 06:32:03 AM »
Like this!

Offline newInRobotics

  • Supreme Robot
  • *****
  • Posts: 1,015
  • Helpful? 48
  • N.I.R.
Re: A Stamply like (Object folowing robot wit IR Rangefinder) robot
« Reply #3 on: February 21, 2013, 07:15:19 AM »
With rack and pinion steering mechanism You loose maneuverability, compared to differential steering. As differential steering bot (such as Stampy) can spin on the spot, it makes it easy to track/follow object, because there is no need to make partial/full 3 point turns in order to approach detected target. This is not possible with rack and pinion steering mechanism, so following object becomes more complex task which has to be dealt with in software. Also, software orchestrating Stampy drives 2 motors, hence steering is achieved by changing PWM ratio between them, where with steering system You want, there is only 1 servo to do all the work, so turn_left(), turn_right() code from Stampy will not drive robot the same way in this case, hence some code will have to be re-written.

Can I ask, what exactly are You planning to use Your robot for?
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian W

Offline SUTO the GTopic starter

  • Jr. Member
  • **
  • Posts: 42
  • Helpful? 0
Re: A Stamply like (Object folowing robot wit IR Rangefinder) robot
« Reply #4 on: February 21, 2013, 07:41:03 AM »
I want to use it for object following!

Offline SUTO the GTopic starter

  • Jr. Member
  • **
  • Posts: 42
  • Helpful? 0
Re: A Stamply like (Object folowing robot wit IR Rangefinder) robot
« Reply #5 on: February 21, 2013, 07:46:45 AM »
For a school project! I want it to do the simple differential one! But my teacher insisted on doing something with 4 wheels and a steering mechanism!

Offline newInRobotics

  • Supreme Robot
  • *****
  • Posts: 1,015
  • Helpful? 48
  • N.I.R.
Re: A Stamply like (Object folowing robot wit IR Rangefinder) robot
« Reply #6 on: February 21, 2013, 08:28:21 AM »
If Your bot is not going to be used as a sumo bot, then there shouldn't be any bigger problems while tracking hand-held object that does not change its trajectory radically.
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian W

Offline SUTO the GTopic starter

  • Jr. Member
  • **
  • Posts: 42
  • Helpful? 0
Re: A Stamply like (Object folowing robot wit IR Rangefinder) robot
« Reply #7 on: February 21, 2013, 08:30:26 AM »
Aha! And the changing of the software shouldn`t be too difficult no?

Offline newInRobotics

  • Supreme Robot
  • *****
  • Posts: 1,015
  • Helpful? 48
  • N.I.R.
Re: A Stamply like (Object folowing robot wit IR Rangefinder) robot
« Reply #8 on: February 21, 2013, 08:41:23 AM »
Difficult is relative term and can mean different things to different people. Most definitely You'll have to write Your own function for steering, whether it is, or it is not difficult to You - I don't know. Also, I've never seen Stampy's code, so I cannot say what other changes would be appropriate. I guess You'll have to try it Yourself and see if it's something You can do.

Good luck :)
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian W

Offline SUTO the GTopic starter

  • Jr. Member
  • **
  • Posts: 42
  • Helpful? 0
Re: A Stamply like (Object folowing robot wit IR Rangefinder) robot
« Reply #9 on: February 21, 2013, 10:46:24 AM »
Thanks man you guys are great! Can you help me get the uploaded software in a Visual Studio project format?

Offline newInRobotics

  • Supreme Robot
  • *****
  • Posts: 1,015
  • Helpful? 48
  • N.I.R.
Re: A Stamply like (Object folowing robot wit IR Rangefinder) robot
« Reply #10 on: February 22, 2013, 01:05:28 AM »
Can you help me get the uploaded software in a Visual Studio project format?
Duplicate question? Visual Studio is for Windows only and not for micrcontroller programming.
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian W

Offline SUTO the GTopic starter

  • Jr. Member
  • **
  • Posts: 42
  • Helpful? 0
Re: A Stamply like (Object folowing robot wit IR Rangefinder) robot
« Reply #11 on: February 22, 2013, 05:47:46 AM »
The 50_robot_sharpIR software that the admin uploaded! I thought that somehow it can be converted to Visual Studio Project file! So I can understand it better, because in Visual Studio you can go to the declaration and definition of every variable, function, macro etc.

Offline newInRobotics

  • Supreme Robot
  • *****
  • Posts: 1,015
  • Helpful? 48
  • N.I.R.
Re: A Stamply like (Object folowing robot wit IR Rangefinder) robot
« Reply #12 on: February 22, 2013, 06:31:44 AM »
I thought that somehow it can be converted to Visual Studio Project file!
It can be, simply open new C project and copy&paste source-code, link all of the required libraries and You're done. I've never tried it, but I'd expect to get some sort of errors, as VS is Windows IDE and is not intended for microcontroller code.

In my opinion much better thing to do is to get AVR Studio (which is based on Visual Studio, so it looks familiar to VS users), as it comes with all standard libraries to all AVR microcontrollers (obviously all 3rd party libraries still have to be linked manually), also it contains a simulator which is very useful to understand what is happening inside Your chip.
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian W

 


Get Your Ad Here

data_list