Go Down

Topic: Motor Not running (Read 1 time) previous topic - next topic

cutebuddy6

i have told the code that if the gps starts availablity it moves the car forward if the direction of the destination is on the left the car should move left and so on.... but the GPS is getting available but not moving the car find any thing that i have done wrong in the code thats not working

AWOL

You could add some debug prints.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

cutebuddy6

like
Serial Print thing

but i dont want it to be printed on serial monitor

dxw00d

@cutebuddy6 - Why do make it so hard for people that are trying to help you? AWOL must have the patience of a saint.

We can't replicate your jeep thing. You are the only person to have it.
We can't tell what your Arduino is doing. You are the only person that can.

Until you find a way of working out what the code is doing, there is absolutely nothing we can do to help.

The normal way is to Serial.print() debugging messages. Detach the power from the motors, so the jeep can't move, and put some debugging messages into your code to find out what it is doing.

AWOL

Quote
AWOL must have the patience of a saint

It says St Michael on my underpants, but I'm no saint.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

dxw00d

Ah. M&S shopper. Must have had them a while, they dropped that brand in 2000.

cutebuddy6

where are you both?
please help me with the code

dxw00d

Did you not read what I said?

Let me repeat it. Until you find a way of working out what the code is doing, there is absolutely nothing we can do to help.

AWOL

#38
Feb 21, 2012, 10:14 pm Last Edit: Feb 21, 2012, 10:20 pm by AWOL Reason: 1
What have you done to help yourself since your last post?

Here's the seed of a useful technique.
It isn't complete, but the thought's there.
Code: [Select]
#define DEBUG

#ifdef DEBUG
  #define DEBUGPRINT(x) Serial.print(x)
  #define DEBUGPRINTLN(x) Serial.println(x)
#else
  #define DEBUGPRINT(x)
  #define DEBUGPRINTLN(x)
#endif

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

cutebuddy6

i have tried My best knowledge to solve this issue but i am unable to do
i have tried to check gps with LCD and its  working
i have tried the car with timings to go forward left and right and so

but when i combine the code into one controller it does nothing... why?

kindly do review the code of GPS navigation i think it has the problem

AWOL

#40
Feb 21, 2012, 10:25 pm Last Edit: Feb 21, 2012, 10:45 pm by AWOL Reason: 1
Quote
i think it has the problem

I work on embedded processors many, many times more powerful than the Arduino, with thousands of times more memory, and dozens of separate peripherals and subsystems.
They're about the size of a credit card or smaller.
The code runs to hundreds of thousands, if not millions of lines of C, C++ and assembler (don't worry, I didn't write all of them).

Do I have an exotic JTAG debugger?
No.
I have debug prints.

I don't "think" my code has problems - I find out.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

wildbill

Quote
The normal way is to Serial.print() debugging messages. Detach the power from the motors, so the jeep can't move, and put some debugging messages into your code to find out what it is doing.


Or put it up on blocks so that you can see the wheels spinning on command and put in some strategic prints to help you narrow down the issues. But whichever way, as you're being repeatedly told, you have to learn to debug.

cutebuddy6

yeah thats it buddy i am going to try this.... Now

AWOL

Oh <insert deity of your choice here>, finally



"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Go Up
 

Quick Reply

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Note: this post will not display until it's been approved by a moderator.
Name:
Email:

shortcuts: alt+s submit/post or alt+p preview