Autonomous Rover
Hardware- 4 Devlogs
- 18 Total hours
Autonomous Rover tasked with driving over obstacles, intaking and shooting tennis balls into a bucket, and hanging on a raised bar.
Autonomous Rover tasked with driving over obstacles, intaking and shooting tennis balls into a bucket, and hanging on a raised bar.
Soldered broken 3 phase motor wire back together. Rearranged electronics and wires to lessen the stress on the wires. Calculated necessary motor strength to pivot the intake mechanism.
Again the test date got pushed back a day but this gave more time to fix some issues like the ripped motor wire. I was able to solder it back together by taking the motor apart and finding where the wire broke. I applied some shrinkwrap onto the wire and then a bigger shrinkwrap to join all three wires so that they share the stress if bent.
The reason the wired broke was likely due to it rubbing against the back section of the chassis when the front section pivots. I did some wire management so that this wouldn’t happen, which also made the rover look a bit nicer.
After a bit of driving the rover making sure that the new wire arrangement worked, I learnt how to calculate torque and how to compare that to servos. Initially I thought that servos would work as the intake would only have to pivot around 30॰, but after the calculations it would be necessary to use a linkage since servos within our price range would be too weak. So I looked into worm gear motors with ultra low rpm, around 15 rpm, which would hopefully provide enough torque to rotate the intake.
The test date also got pushed to tomorrow so the IMU, which arrives tomorrow, would give us a better way to dead reckon.
June 22
Added more support braces to metal chassis. Rearranged electronics to make room for an intake and worked on autonomous cone slalom. One wire of a wheel motor tore off and needs to be replaced or repaired.
From yesterday’s few tests driving the rover at speeds above 25% the chassis seemed to bend inwards, especially with the new 8” inch wheels. So I designed braces that would go on the back section of the chassis and made a piece to link both L- support braces.
While the supports printed I rearranged the electronics onto most one side of the chassis in order to fit the intake in the middle.
Since the next test date got moved to Thursday I had more time to try and get the rover to do the cone slalom autonomously. A majority of the time spent was adjusting values like what percentage of the cone should be on the screen before it stopped turning.
I later decided after a couple hours of not much luck to switch over to dead reckoning. I had CodeX make me a program to record and replay inputs which worked semi consistently but varied a lot since I couldn’t start the rover in the exact same position.
After running the dead reckoning multiple times I saw that one wheel wasn’t really spinning. I looked into this and realized that one of the 3 phase motor wires has come off the motor. I’ll try and repair it tomorrow but it may not be possible. So for Thursday the rover might just need to run off three motors
June 21
The slight shift of the hubs from the motor shaft was troubleshooted for the first half of the day. The second half was spent working on the autonomous slalom through cones, with it being able to go around one for now.
I started off the day by assessing what had gone wrong previously and found that I should focus on the wheels slipping off the motor shaft if I wanted the rover to clear the obstacle course and hill by Wednesday. I spent a lot of my time designing new hubs but I found that the main issue for why the hubs slipped off was that the Loctite on the screw holes had not dried yet. So I wasted too much time on this but I did learn how to make drawings to send to manufacturers.
The second half of the day was spent using CodeX to make a program to go around the cone with a camera attached to the Raspberry Pi. A majority of this process was testing values like what percentage or where on the screen the cone should be in order to start turning. I was eventually able to get it to go around one cone but it would target the third cone in the slalom before the second one. I definitely want to work more on this tomorrow.
Another task for tomorrow is designing and printing support braces for the aluminum chassis which saw some bending especially when turning. (I made the turning back to standard tank drive as the set screws were as big of an issue)