go away spammer

Author Topic: More Problems - Admin if you can help  (Read 3449 times)

0 Members and 1 Guest are viewing this topic.

Offline soninja8Topic starter

  • Robot Overlord
  • ****
  • Posts: 136
  • Helpful? 1
More Problems - Admin if you can help
« on: June 07, 2011, 01:35:17 PM »
Ok, so I got my $50 robot programmed and I plugged in all my servos and photoresistors, and it sorta follows light....I have to point a flashlight directly at the center of the Photoresistor to get it to move that way. Also, one wheel is going a lot faster than the other, even though both are getting the same voltage, I checked with a multimeter. All connections on my board are good....I dont get it. The wheel that goes super slow, goes normal speed backwards, but when it goes forward, it is a snail...Please Help!
Thanks,
Soninja8

Offline vinniewryan

  • Full Member
  • ***
  • Posts: 56
  • Helpful? 2
Re: More Problems - Admin if you can help
« Reply #1 on: June 07, 2011, 03:17:14 PM »
output to each motor seperately and monitor the current consumption. If there is a significantly lower amount of current running to that motor, it could be a blown driver. If there's a higher amount of current drawn by the motor then it may be something jamming up the motor (dirt, hair).

Honestly it sounds like a power issue on your board. I would check the impedance of the power lines to the motors and motor drivers, along with common ground and power lines with an ohm meter. If you test the board, you will find a problem somewhere. As for the light sensors, again this could be a power issue or bad connection/ground. Make sure there aren't any shorts or loose solder joints on the board, you might even go through and re-melt some of the connections that look iffy. If everything checks out then I would assume a blown output on the motor driver or a wrong connection.

Check everything, post your results.

Offline soninja8Topic starter

  • Robot Overlord
  • ****
  • Posts: 136
  • Helpful? 1
Re: More Problems - Admin if you can help
« Reply #2 on: June 07, 2011, 07:09:38 PM »
Ok, its the photovore__v1.hex file then....I uploaded hold_servo.hex to my board, and the motors spin at full speed continously (I have the continuos rotation mod) So it appears that I have good welds and power on my board....can someone upload there Photovore_v1.hex file, so I can put it on my board to see if it works properly?

Thanks,
Soninja8

Offline Conscripted

  • Robot Overlord
  • ****
  • Posts: 291
  • Helpful? 10
Re: More Problems - Admin if you can help
« Reply #3 on: June 08, 2011, 07:53:41 AM »
Are you using servo's that you modified your self? If so what process did you use to modify them? I think maybe your servo's aren't set at the center position.

Conscripted

Offline adanvasco

  • Full Member
  • ***
  • Posts: 107
  • Helpful? 6
  • Necessity is the mother of invention.
Re: More Problems - Admin if you can help
« Reply #4 on: June 08, 2011, 07:55:57 AM »
Hi.

Can you post or upload your Photovore_v1.c file? There might be a problem on the code.
You're not going to find out much information by measuring the voltage on the servos since they are controlled by changing the length of the pulse from 1ms to 2ms.
Knowledge does not weigh.

Offline soninja8Topic starter

  • Robot Overlord
  • ****
  • Posts: 136
  • Helpful? 1
Re: More Problems - Admin if you can help
« Reply #5 on: June 09, 2011, 07:24:18 PM »
Ok, well my problem is the program...the Photovore.c file is not the problem....there is just something wrong with my avrstudio....can comeone please email or upload me their photovore.hex file so i can put it on my robot and see if it works?

Thanks,
Soninja8

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,703
  • Helpful? 173
    • Society of Robots
Re: More Problems - Admin if you can help
« Reply #6 on: June 09, 2011, 07:53:55 PM »
Here is my file.

Offline soninja8Topic starter

  • Robot Overlord
  • ****
  • Posts: 136
  • Helpful? 1
Re: More Problems - Admin if you can help
« Reply #7 on: June 09, 2011, 10:10:28 PM »
Hey Admin!! Thanks for the file....but when I try to upload from Avrdude to my atmega8 it says that it autodetected it as an "Intel Hex" and that "ERROR: address 0x2010 out of range at line 513 of me.hex" Every other .hex of mine uploads fine....

Please Reply Quickly!

Thanks!
Soninja8

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,703
  • Helpful? 173
    • Society of Robots
Re: More Problems - Admin if you can help
« Reply #8 on: June 09, 2011, 10:19:40 PM »
oops . . . the previous file was for the ATmega168 at 16MHz.

This attached file is an older file I found . . . not sure if it'll work, but give it a try.

Offline soninja8Topic starter

  • Robot Overlord
  • ****
  • Posts: 136
  • Helpful? 1
Re: More Problems - Admin if you can help
« Reply #9 on: June 09, 2011, 10:31:24 PM »
Ok....its the same results....my second servo input moves so slow, I tried both of my servos on it....I have checked all my welding millions of times.....the powers correct. Whats wrong with it?

Heres my pics of my board...

Thanks,
Soninja8

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,703
  • Helpful? 173
    • Society of Robots
Re: More Problems - Admin if you can help
« Reply #10 on: June 09, 2011, 10:39:29 PM »
my second servo input moves so slow, I tried both of my servos on it
You mean one servo appears to be working fine, but the other isn't?

What happens when you swap the two servos, does the same servo cause the problem, or the other one?

Any issues when modifying the servo?

Offline soninja8Topic starter

  • Robot Overlord
  • ****
  • Posts: 136
  • Helpful? 1
Re: More Problems - Admin if you can help
« Reply #11 on: June 09, 2011, 10:43:34 PM »
yeah, i have tried both servos on it...both servos work fine...but not on servo input 2

and admin, i think the photovore v1.hex that you uploaded is not the right one...its the same as the photovore v1.hex as thats in your file that you released with a bunch of tools to make the real photovore v1.hex

do you have the photovore v1.hex that was produced by avrstudio?

Thanks,
Soninja8

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,703
  • Helpful? 173
    • Society of Robots
Re: More Problems - Admin if you can help
« Reply #12 on: June 09, 2011, 10:50:56 PM »
What I have is what I have, and that's what I posted :P

And when you say 'input', do you mean 'output'?

Try changing your code to use a different output port for your servo and see what happens. Perhaps that port is whack.

You will see it in SoR_Utils.h:

Quote
PORT_ON(PORTD, 1);//change that number to something else
PORT_OFF(PORTD, 1);

Offline soninja8Topic starter

  • Robot Overlord
  • ****
  • Posts: 136
  • Helpful? 1
Re: More Problems - Admin if you can help
« Reply #13 on: June 09, 2011, 11:04:12 PM »
When I build Photovore_v1.hex in avrstudio, is the build message supposed to look like this?
Build started 9.6.2011 at 22:02:10

-------- begin --------
avr-gcc (WinAVR 20100110) 4.3.3
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Compiling: Photovore_v1.c
re_v1.o


Compiling: a2d.c

Linking: Photovore_v1.elf
put Photovore_v1.elf -Wl,-Map=Photovore_v1.map,--cref    -lm


Creating load file for Flash: Photovore_v1.hex
avr-objcopy -O ihex -R .eeprom Photovore_v1.elf Photovore_v1.hex

Creating load file for EEPROM: Photovore_v1.eep
avr-objcopy -j .eeprom --set-section-flags=.eeprom="alloc,load" \
    --change-section-lma .eeprom=0 -O ihex Photovore_v1.elf Photovore_v1.eep
c:\WinAVR-20100110\bin\avr-objcopy.exe: --change-section-lma .eeprom=0x00000000 never used

Creating Extended Listing: Photovore_v1.lss
avr-objdump -h -S Photovore_v1.elf > Photovore_v1.lss

Creating Symbol Table: Photovore_v1.sym
avr-nm -n Photovore_v1.elf > Photovore_v1.sym

Size after:
Photovore_v1.elf  :
section    size      addr
.text      1164         0
.bss          1   8388704
.stab      2820         0
.stabstr   2523         0
Total      6508



Errors: none
-------- end --------

Build succeeded with 0 Warnings...

Offline soninja8Topic starter

  • Robot Overlord
  • ****
  • Posts: 136
  • Helpful? 1
Re: More Problems - Admin if you can help
« Reply #14 on: June 09, 2011, 11:10:04 PM »
Ok, I changed the port like you suggested, to port 3....but now port 3 is very slow, and port 1 is still fast, and all the others are not programmed to work....its gotta be the code or something...

Thanks,
Soninja8

Offline adanvasco

  • Full Member
  • ***
  • Posts: 107
  • Helpful? 6
  • Necessity is the mother of invention.
Re: More Problems - Admin if you can help
« Reply #15 on: June 10, 2011, 06:48:42 AM »
Can you post your Photovore_v1.c file content? Just to make sure there is nothing wrong with it. Also, when you switched the servo to output port 3, did you change your code to use that port? If you didn't, on your SoR_Utils.h update the line that says
Code: [Select]
PORT_ON(PORTD, 1); to
Code: [Select]
PORT_ON(PORTD, 2);.

You might as well just have a bad MCU.
Knowledge does not weigh.

Offline Soeren

  • Supreme Robot
  • *****
  • Posts: 4,672
  • Helpful? 227
  • Mind Reading: 0.0
Re: More Problems - Admin if you can help
« Reply #16 on: June 10, 2011, 06:18:25 PM »
Hi,

I have checked all my welding millions of times.....the powers correct. Whats wrong with it?

Heres my pics of my board...
Photos of the solder side shows that you could have an error (or several) in that department and if it's not the case now, it will be when those burned wires start slapping against the solder connections - not trying to put you down, but that is by far the worst assembly I've seen in years, if not decades and I'd recommend a complete clean-up (i.e. touch up the solder and use new wires laid neatly and in a way that you don't get your soldering iron too close to them).

OTOH, I doubt that your "servo 2 output slow forward" is caused directly by this, unless it eg. loads the output, making the servo read the pulse shorter than they're meant to be, but you really need to examine the output with an oscilloscope, to see what timing and voltage the servo gets under running conditions (put the probe directly on the signal pin of the servo connector and note down the pulse width seen on forward, back and halt.
This is the only way to find out what's really going on inside the circuit.


You might be able to get access to an oscilloscope at your school, especially if you tell a science teacher about your project and the character of the problem - shouldn't take you more than 15 minutes, if you know how to set up the 'scope.

If that's not possible, a free Sound Card Oscilloscope program (and a 3.5mm stereo jack, 2 resistors and a cap) could be used to verify the approximate pulse widths.
Regards,
Søren

A rather fast and fairly heavy robot with quite large wheels needs what? A lot of power?
Please remember...
Engineering is based on numbers - not adjectives

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,703
  • Helpful? 173
    • Society of Robots
Re: More Problems - Admin if you can help
« Reply #17 on: June 10, 2011, 06:31:14 PM »
Well, it's probably his first time soldering so cut him some slack :P
(soninja8, a lot of people had trouble with this $50 robot circuit soldering their first time, so don't feel bad)


soninja8, try this and let us know what happens . . . in the code, you have (PORTD, 1) for one servo and (PORTD, 2) for the other. Swap them around in software so that 1 is 2 and 2 is 1.

Offline soninja8Topic starter

  • Robot Overlord
  • ****
  • Posts: 136
  • Helpful? 1
Re: More Problems - Admin if you can help
« Reply #18 on: June 10, 2011, 06:56:18 PM »
Ok, I know my soldering looks back, but its pretty good. There is no solder touching whatsoever, and Ive sucked up all the excess with braid....

And admin, I have swapped the port code to 0 and 1 and 2 and 3, and it always seems that the port that is supposed to be the right servo, has all the power...I have tried changing the pulse to 25 for the left, and it runs as the same speed as the right, but it goes in reverse...

I am not in school so I have no access to an oscilloscope at the moment.

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,703
  • Helpful? 173
    • Society of Robots
Re: More Problems - Admin if you can help
« Reply #19 on: June 10, 2011, 07:27:12 PM »
Quote
I have tried changing the pulse to 25 for the left, and it runs as the same speed as the right, but it goes in reverse...
So, you are saying both servos worked perfectly fine at the same time, except one was going in reverse?

Offline soninja8Topic starter

  • Robot Overlord
  • ****
  • Posts: 136
  • Helpful? 1
Re: More Problems - Admin if you can help
« Reply #20 on: June 10, 2011, 08:48:22 PM »
yes...it seems that all pulses 40 and up make it go forward, but very slow, and pulses from 30 and down make it go fast backwards....I havent done much other pulse shifting....

The pulses are located in the Photovore.c file

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,703
  • Helpful? 173
    • Society of Robots
Re: More Problems - Admin if you can help
« Reply #21 on: June 10, 2011, 09:08:33 PM »
This means you didn't modify that servo properly. Change the pot position so that the funky servo isn't moving when the pulse is in the middle.

Offline adanvasco

  • Full Member
  • ***
  • Posts: 107
  • Helpful? 6
  • Necessity is the mother of invention.
Re: More Problems - Admin if you can help
« Reply #22 on: June 10, 2011, 09:45:12 PM »
Make sure to put some crazy glue on the pot to stop it from moving once you put everything back together.
Knowledge does not weigh.

Offline soninja8Topic starter

  • Robot Overlord
  • ****
  • Posts: 136
  • Helpful? 1
Re: More Problems - Admin if you can help
« Reply #23 on: June 10, 2011, 10:06:26 PM »
This means you didn't modify that servo properly. Change the pot position so that the funky servo isn't moving when the pulse is in the middle.
your saying that both servos arent modified correctly, because they both act funky on that output...? and what is considered the middle of the pulse?
« Last Edit: June 10, 2011, 10:08:30 PM by soninja8 »

Offline soninja8Topic starter

  • Robot Overlord
  • ****
  • Posts: 136
  • Helpful? 1
Re: More Problems - Admin if you can help
« Reply #24 on: June 11, 2011, 12:45:06 AM »
omg, i'm so stupid  :P....I have to upload the hold_servo.hex and move the potentiometer untill the motor stops, then glue the potentiometer down so it doesnt move....

Ok, I glued it down after uploading the hold servo, and now i'm going to sleep and wake up to a lot of work ;)....

Thanks,
Soninja8  :)
« Last Edit: June 11, 2011, 12:46:46 AM by soninja8 »

 


Get Your Ad Here

data_list