Jump to content


PatriotAce

Member Since 30 Dec 2013
Offline Last Active Sep 25 2015 09:46 PM
-----

Posts I've Made

In Topic: Trouble with Robotics kit

07 July 2014 - 03:05 AM

Will do! Just as a random question, have you ever watched Element14's The Ben Heck Show? It's a pretty cool Making/Hacking show where he (Ben Heck) creates projects and generally does awesome/geeky stuff.


In Topic: Trouble with Robotics kit

05 July 2014 - 05:06 PM

Yeah! I've been really busy and totally forgot about this thread until a couple of days ago. I won first place (really surprised I have to say) even though I fried the servo the day of the fair. :P

 

I had to change the design (again) because it was too big (changed it to your new design) and managed to short-circuit wire the servo :blink:. My judge was actually a lawyer, so that was intense, but I think the reason I won was because I understood almost everything about my project/the technology behind it.

 

I'm going to be entering the project in the County Fair as one of my 4H projects and I've got to order a new servo. Thanks for all your help!


In Topic: Ultrasonic sensor not working

24 April 2014 - 05:55 PM

You might want to check that the sensor's pings aren't hitting the wheels and returning early. I had an issue similar to this and I removed the wheels and tested and it gave me good readings. Try taking off the wheels and testing the code. If you get good readings, you know that the servo wheels are your issue!


In Topic: Trouble with Robotics kit

11 April 2014 - 01:58 PM

Your welcome. I tend to get nutty when upset.

 

As for the println() statement, no, but I can try that. I think it is, because the robot does sort of try to drift toward the left, but then it corrects back.

 

Sigh :P

 

one-does-not-simply-meme-generator-one-d


In Topic: Trouble with Robotics kit

11 April 2014 - 01:23 AM

Will do, except the le bugs have struck again. Servo issue this time. Don't worry, sensors are working just fine :P but when I tell the servos to turn left, nuhuh.

 

Here's the code for it, that isn't working. It's an exact duplicate (aside from the servo values) of the turn right if statement, which works just dandy. But does turning left, no sir.

 else if(state == TURN_RIGHT) // obstacle detected -- turn right
    {
        Serial.println("Turning Right");
        
        unsigned long turnStartTime = millis(); // save the time that we started turning

        while((millis()-turnStartTime) < timeToTurn90) // stay in this loop until timeToTurnRight (1.1 seconds) has elapsed
        {
            // turn left
            rightMotor.write(0);
            leftMotor.write(0);
        }
        
        state = DRIVE_FORWARD;
    }

Data is coming through from the sensors right, timing's as good as it has been, comparison is going just fine. But ask the robot to turn left, and it decides to just go very slowly for the set time, and then keep going forward. I know it's not a power issue, as it turns right and drives forward just fine. Funny thing is, this just started, but like a minute before, it was fine.

 

I'm like ... 48402294.jpg

 

Ugh, and it was all going so well.

 

:ph34r: <-- We need one of them to come in and ninja-scare the bot so it works right