Pages: 1 2 [3]   Go Down
Author Topic: Vending machine / robot project advice  (Read 3431 times)
0 Members and 1 Guest are viewing this topic.
U.K.
Offline Offline
Newbie
*
Karma: 0
Posts: 39
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Latest news:
I have just had it take my cup from the coffee table, all the way to the vending machine and get a drink dispensed !!
It is a bit hit and miss and I doubt it would manage to do it 2 times in a row without any problem, but it has managed at least once to work :-)

here is a video of it collecting a drink - http://youtu.be/IEv-7nvYL1M

I think my biggest problem now is the caster I am using at the back, when the robot has been turning and tries to go in a straight line again it tends to throw it off course.  I have ordered an omnidirectional caster which I am hoping will resolve this problem but it is coming from the USA so may take a while to arrive.  
Until I get this I don't think there is much more I can do.
« Last Edit: May 26, 2012, 02:41:00 am by alanesq » Logged


U.K.
Offline Offline
Newbie
*
Karma: 0
Posts: 39
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

UPDATE:  IT IS OK, I HAVE SORTED THIS PROBLEM :-)
just had to comment out a line in the servo.h file to stop it using timer1


Can someone give me some advice regarding timed interrupts please:

I have fitted a servo to the front ultrasound sensor so I can rotate it round, this is going to help a lot as I will be able to check if the wall in front or to the side is square on or not using this.

Problem is, when I came to use the servo I found my sketch wont compile :-(
Comes up with an error saying Vector17 has already been defined ????
I have tracked the problem down to my using a timed interrupt in my robot sketch, if I disable this then all works ok

I presume this is because the servo library is trying to use the same timer that I am?   as I am using a mega I understand I have timers 4,5 and 6 I can use instead but when I try to change the script it still gives the error

the interrupt code I have is below, if anyone can help out it would be much appreciated (I must admit I don't really understand all this interrupt stuff, just copied the code from elsewhere)

« Last Edit: May 27, 2012, 06:35:04 am by alanesq » Logged


Brisbane, Australia
Offline Offline
Edison Member
*
Karma: 33
Posts: 1122
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

here is a video of it collecting a drink - http://youtu.be/IEv-7nvYL1M
Just magnificent.  If we could teach it to do stairs I'd be adding this to my project list too smiley-wink
Logged

"There is no problem so bad you can't make it worse"
- retired astronaut Chris Hadfield

U.K.
Offline Offline
Newbie
*
Karma: 0
Posts: 39
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

lol - maybe next year ;-)

I am getting close now to having it ready to start using
One of the main problems I am having is the PS2 mouse seems to occasionally just stop responding and this results in the robot going off in a random direction until it crashes :-(
« Last Edit: June 10, 2012, 05:04:47 am by alanesq » Logged


U.K.
Offline Offline
Newbie
*
Karma: 0
Posts: 39
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Just a final update:

The robot is now pretty much finished and is working well :-)

I still have a problem with the PS2 mouse occasionally just stopping responding - I am still looking into this
but apart from that it is collecting a drink ok pretty much most attempts

full video here: http://youtu.be/1dh4FiS4YO4
Logged


Pages: 1 2 [3]   Go Up
Jump to: