Society of Robots - Robot Forum
Electronics => Electronics => Topic started by: ed1380 on February 20, 2008, 03:42:46 PM
-
as the title says gues what happened to me last night.
wrong.
my $50 robot pc board finaly decided to allow itself to be programmed. i was making a parallel port programmer and for fun wanted to try the dongle programmer again. whalla it programmed though ponyprog in 20seconds. I'm so excited, cause it's been almost a year since last time i tried
do have a prob though. i installed winavr and then avr studio and then avr studio sp2. everything works, but it says i need winavr to compie the code.
help plz
but i still burned up 2 atmega8's. the led doesnt blink anymore but still works if i give it power. and the rest of the atmega's work too
-
ed,
Did you go into the "configuration options" and put the path to the WinAVR in the last tab/section?
-
o wow. i went there and winavr was already selected so i tried and it started bulding. weird eh ???
then it gave me alot of errors. i restarted it and everything is ok. double weird ??? ???
-
it might get weirder....
After I upgraded my JTAG usb driver, i have to frequently cycle the power on my Atmega in order to get the connection back.
-
o man. :o
another question. i installed avrlib and it shows "uninstall" or their site. but their site is blank now.
how do i access the library of codes?
a year ago i did it somehow but now IDK how :'(
-
ed,
no worries :-) I use it by adding it to my path (library, include files, etc...) in the configuration manager in AVR Studio. I have had problems with the "order" of header files from time to time and placing referring headers in my main.h helped with this.
please let me know if this helps, at least i can help with something (or try) around here!
-
thanks.
i finally found avr lib. my lack of a programming language keeps me from doing anything productive with it.
i know that pin d5 is the led. but i dont know what to write to make it low. this is so diferent than C for computers. (http://i43.photobucket.com/albums/e398/RussianCommy/smilies/shadedshun.gif)
-
I'm planning on using this to drive a small bipolar stepper. http://www.datasheetarchive.com/preview/3521723.html
it says it will sink 700mah.
does that mean if the mcu outputs a HIGH that the output on the driver will be LOW?
thanks
-
it says it will sink 700mah.
does that mean if the mcu outputs a HIGH that the output on the driver will be LOW?
I don't quite understand your question . . .
The datasheet says "700 mA Output Current per Channel", meaning it can't supply any more than that to your motor.
If I understand it after a quick look, a HIGH input results in a HIGH output.
-
it says it will sink 700mah.
does that mean if the mcu outputs a HIGH that the output on the driver will be LOW?
I don't quite understand your question . . .
The datasheet says "700 mA Output Current per Channel", meaning it can't supply any more than that to your motor.
If I understand it after a quick look, a HIGH input results in a HIGH output.
that's what i was asking about. i remember hearing the that sinking means outputing 0v and sourcing outputs +v
-
well guess what i found now ;D
http://rs4.rapidshare.com/files/30123390/C_Programming_for_Microcontrollers__AVR_.rar
its a tutorial of C and the avr butterfly and i just happen to have a butterfly 8) . the only way this could get better is if all the info could get bootloaded into my head. matrix style (http://gprime.net/board/images/smilies/matrix_2_h4h.gif)