Recent Posts

Pages: 1 2 3 ... 10
1
Electronics / Re: $50 dollar robot not working.
« Last post by Plague on Today at 04:29:42 PM »
I stumbled on this site because of the servo mod for continuous rotation. Best I have seen.

When you troubleshoot a program you need to see what is happening with your variables. At the moment you don't know where the problem is, but if you knew what values were coming from the photocells after  the A to D, you could see if they were behaving. Similarly you could see what the values were going to the servo.

Typically you would sprinkle test points (and probably slow down the loop) and track what is going on. That is fairly simple to do with an Arduino when it is tethered to a computer. You open a serial connection through the USB and watch the data being printed out.

That is exactly what I do when I am debugging a program. Debugging by guessing, is a lot like fixing a car by guessing and is why all cars now have diagnostics where you can read the various engine settings and codes.

I would be willing to contribute to code for an Arduino version of the $50 robot, I won't be building one though.

I'll try to see if I can Debug based on what you said. I used to arduino to check the light and dark values of the photocells, and i got a good response. Ill see if i can find anything else Also if possible, you can contribute your code just incase.. Much appreciated.
2
Electronics / Re: $50 dollar robot not working.
« Last post by cyberjeff on Today at 01:55:38 PM »
I stumbled on this site because of the servo mod for continuous rotation. Best I have seen.

When you troubleshoot a program you need to see what is happening with your variables. At the moment you don't know where the problem is, but if you knew what values were coming from the photocells after  the A to D, you could see if they were behaving. Similarly you could see what the values were going to the servo.

Typically you would sprinkle test points (and probably slow down the loop) and track what is going on. That is fairly simple to do with an Arduino when it is tethered to a computer. You open a serial connection through the USB and watch the data being printed out.

That is exactly what I do when I am debugging a program. Debugging by guessing, is a lot like fixing a car by guessing and is why all cars now have diagnostics where you can read the various engine settings and codes.

I would be willing to contribute to code for an Arduino version of the $50 robot, I won't be building one though.
3
I have a TowerPro SG 90 Micro Servo Motor.
Can you please tell how to rotate it using PWM method,I am using Atmega 16.

Assuming you mean software:

I can't tell you that.

I'll tell you what I would do. I'd get an Arduino Uno and load up the Arduino IDE:

https://www.arduino.cc/en/main/software

They have sample code in there for servos

Arduinos and their clones are widely available. There is a vast assortment of electronics that bolts right on, the IDE already has the libraries for most devices you need, otherwise they are easy to come by. You won't need any special hardware to program it, just a USB cable and that will come with the Arduino.

I find it pretty easy to set up. And then you can get to the hard parts of making it do what you want.

YMMV
4
Electronics / 50$ robot with rangefinder not working/ hex file needed
« Last post by madshah on Today at 10:21:39 AM »
I have a problem with the hex file of 50$ robot with sharp IR. I  have successfully made the 50 dollar robot but I am having issues with the rangefinder upgrade. I just need the hex file. Can somebody please send the hex file of the 50$ robot with sharp IR. The source code is on the site. I tried creating it using atmel studio 6.2 and i havent uploaded the makefile. I initially did it using avr studio 4 as instructed but many errors were shown even though i followed each and every step correctly. Please help by sending the hex file or guide me through creating the proper one on atmel studio 6.2. I am a beginner of a beginner in programming. Go easy on me please  ;) :D
5
Electronics / Re: $50 dollar robot not working.
« Last post by Plague on Today at 09:42:09 AM »
I honestly strolled to this website to build the 50 dollar robot. My reason none at all when I first started (I just wanted to see what goes into build a simple photovore). However, through the process of encountering errors and problems, I've manage to learn something more than I initially expected. I do not know how to write a program or code or whatsoever, but upon building this robot again, I have a clear understand of what some of these code mean, by looking at them I.e the servo code above (And I've cultivated an Interest in learning how to program). Yes, I understand the software may be outdated, but, I'm gonna assume some people arrive at this website through searches for "How to build a robot" (Just like I did). It would be nice to get an update for someone who wishes to build this photovore in 2015 and is stuck like I am. :-\ ..... I'm.only trying to learn.  :D
And for micronctrollers, I have an arduino. Which I'll get used to eventually.


I Still Need help on my issue though.  8)
6
Electronics / Re: $50 dollar robot not working.
« Last post by cyberjeff on Today at 09:04:06 AM »
:) Hello!
CyberJeffs' statement;
I haven't built a $50 robot, nor will I.
This is so true, and reflects the choice of the person in relation to the products provided.
A lot of people would rather buy a Raspberry Pi for $35, a Parallax basic stamp for approx. $50 or less,
or any number of ardinu processor products compared to the price of the Axon; not to mention the
ease of use for those products, plus the power and support.
I have not programmed the Axon yet, because of my learning curve. :o
So, why should you buy an Axon, when you have more power, cheaper, and support with the other products?
The Axon board is a good design, and the processor line is a stable one. The Axon can do (I believe)
a lot more functions when clever programming is applied. The software has a simulator and uses
C++ language. The Axon is a gateway to the whole Atmel line of processors, and your software
can program them all, provided you have an STK600 to program them. I have found these processors
virtually everywhere, which gives a lot of uses. The smaller MCU are dirt cheap, $.5 - $1, and are
pretty powerfull for that size.
Ultimately, it is up to the user to create the masterpiece of Ex-machina, and is up to the people in this forum to try to participate in the Axon robotic construction. Other products illustrate a lot of programming capabilities on their products; HOWEVER, it seems that they have half of the whole world
programming their products, and giving that software away FREE. That is a lot of competition, but does
not diminish the potential power of the Axon,  8)  given the perspective I have indicated. What do you think?

I have no quibble with the hardware, it is the ancient software in the $50 robot. I read through it and could not figure out servo instructions. The Servo lib abstracts this very well, but wasn't available in '07.

As far as the Axon, it seems like a great product, particularlysince it has RF communications built in. Considering that is an add on for almost  everything else, it is a great deal.

I would think that the Axon line is well suited to most robotic projects, Kudos to them!

With that said, my little project requires a great deal of processing and the much faster processor in the Due was my choice.

The Pi is an entirely different animal (a microprocessor rather than a microcontroller) and I see no reason that a Pi could not work hand in hand with an Axon or an Arduino. At least that is my thinking, with the Pi handling the intelligence a microcontroller handling  the mechanics.

Learning curves always exist. I don't write in C++ so learning how it works has been a chore I am working on. With any new language there is usually a couple weeks where not much gets done and it takes months before some fluency. It  is just the way it is. Multidimensional arrays in C++ have taken me a while to absorb.

I work a little different than most people. I really don't desire to do something that has already been done, so wheeled robots hold no interest. Neither do I have an interest in humanoids as they are widely worked on. Nor do I have much interest in speed or robot battles.

Whatever holds your interest, it is a great time for robotics. There is a wide variety of hardware that can be bought or printed. The processors are cheap and the software is fairly mature. And yet we are still on the doorstep of a world where robotics and artificial intelligence will be prevalent.

I'm running with it. My best to you and your project.
7
Electronics / Re: $50 dollar robot not working.
« Last post by mklrobo on Today at 07:10:30 AM »
 :) Hello!
CyberJeffs' statement;
I haven't built a $50 robot, nor will I.
This is so true, and reflects the choice of the person in relation to the products provided.
A lot of people would rather buy a Raspberry Pi for $35, a Parallax basic stamp for approx. $50 or less,
or any number of ardinu processor products compared to the price of the Axon; not to mention the
ease of use for those products, plus the power and support.
I have not programmed the Axon yet, because of my learning curve. :o
So, why should you buy an Axon, when you have more power, cheaper, and support with the other products?
The Axon board is a good design, and the processor line is a stable one. The Axon can do (I believe)
a lot more functions when clever programming is applied. The software has a simulator and uses
C++ language. The Axon is a gateway to the whole Atmel line of processors, and your software
can program them all, provided you have an STK600 to program them. I have found these processors
virtually everywhere, which gives a lot of uses. The smaller MCU are dirt cheap, $.5 - $1, and are
pretty powerfull for that size.
Ultimately, it is up to the user to create the masterpiece of Ex-machina, and is up to the people in this forum to try to participate in the Axon robotic construction. Other products illustrate a lot of programming capabilities on their products; HOWEVER, it seems that they have half of the whole world
programming their products, and giving that software away FREE. That is a lot of competition, but does
not diminish the potential power of the Axon,  8)  given the perspective I have indicated. What do you think?
8
Electronics / Re: $50 dollar robot not working.
« Last post by cyberjeff on Today at 05:39:00 AM »
What about the Photoresistors, any ideas why it isn't quite working?
Because if the servos aren't the problem, I honestly run out of idea as to why this thing won't chase light.
I soldered the pphoto cells correctly as shown in the tutorial (even went ahead and did it twice for accuracy)
Can this be an Atmega problem or programming/software problem. Or even a photoresistor problwm?
 
The servos stop at 90

I haven't built a $50 robot, nor will I.

I did look at the code and it is quite old, circa 2007. There is a commonly used Servo lib, but it wasn't written until 2009.

So, I have to ask: Why are you building this? Few people need robots that chase light, so I would think  that it is because you want to learn how to program a robot.

Is that correct?

This was very clever code, but  it isn't 2007 anymore. Programming servos is done differently these days, there are established libraries for servos and analog read for the photo sensors. To rewrite this is not difficult.

What do you want to do?
9
Mechanics and Construction / Re: Help needed to construct my First Robot
« Last post by rahavoc on Today at 03:37:02 AM »
I have a TowerPro SG 90 Micro Servo Motor.
Can you please tell how to rotate it using PWM method,I am using Atmega 16.
10
Electronics / Re: $50 dollar robot not working.
« Last post by Plague on Yesterday at 09:43:39 PM »
What about the Photoresistors, any ideas why it isn't quite working?
Because if the servos aren't the problem, I honestly run out of idea as to why this thing won't chase light.
I soldered the pphoto cells correctly as shown in the tutorial (even went ahead and did it twice for accuracy)
Can this be an Atmega problem or programming/software problem. Or even a photoresistor problwm?
 
The servos stop at 90
Pages: 1 2 3 ... 10

Get Your Ad Here

data_list