Pages: 1 2 [3]   Go Down
Author Topic: Motor Not running  (Read 1680 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Full Member
***
Karma: 0
Posts: 196
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 310
Posts: 26632
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You could add some debug prints.
Logged

"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.

Offline Offline
Full Member
***
Karma: 0
Posts: 196
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

like
Serial Print thing

but i dont want it to be printed on serial monitor
Logged

Gosport, UK
Offline Offline
Faraday Member
**
Karma: 21
Posts: 3113
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

@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.
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 310
Posts: 26632
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
AWOL must have the patience of a saint
It says St Michael on my underpants, but I'm no saint.
Logged

"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.

Gosport, UK
Offline Offline
Faraday Member
**
Karma: 21
Posts: 3113
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Offline Offline
Full Member
***
Karma: 0
Posts: 196
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

where are you both?
 please help me with the code
Logged

Gosport, UK
Offline Offline
Faraday Member
**
Karma: 21
Posts: 3113
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 310
Posts: 26632
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
#define DEBUG

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

« Last Edit: February 21, 2012, 04:20:14 pm by AWOL » Logged

"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.

Offline Offline
Full Member
***
Karma: 0
Posts: 196
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 310
Posts: 26632
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
« Last Edit: February 21, 2012, 04:45:21 pm by AWOL » Logged

"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.

New Jersey
Offline Offline
Faraday Member
**
Karma: 72
Posts: 3763
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Offline Offline
Full Member
***
Karma: 0
Posts: 196
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 310
Posts: 26632
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Oh <insert deity of your choice here>, finally



Logged

"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.

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