Pages: 1 2 [3]   Go Down
Author Topic: Beginner's Robotic Arm  (Read 6743 times)
0 Members and 1 Guest are viewing this topic.
Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 302
Posts: 26337
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
what im receiving are the extended ascii codes, why is this?
I don't follow you there.
What is "the controller"?
Is it a true RS232 device?
If so, how are you connecting it to the Arduino?
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.

Philippines
Offline Offline
Newbie
*
Karma: 0
Posts: 25
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

im using servo angles to determin its position and not microseconds. as i send data from my pic16F628A connected from txport rb3 to arduino rx digital pin 0, and turning the serial monitor i receive unknown characters/symbols (i browsed through the ascii table and saw the decimal values for the extended ascii).
Logged

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

Are you sure you haven't simply got a line inversion?
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.

Philippines
Offline Offline
Newbie
*
Karma: 0
Posts: 25
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

im not exactly sure. how would i remove line inversion? i tapped(very quick) the tx line to the ground and saw numbers upon it, then the symbols appear again.
Logged

Philippines
Offline Offline
Newbie
*
Karma: 0
Posts: 25
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

this is what im receiving in my rx port.. i connected a npn transistor to the tx port of my pic.
why is it that im receiving this?

Logged

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

I have no idea why you are receiving that, but it looks like either a speed mismatch, or a line inversion.
You could write a simple sketch to find out what the idle state of the line is.
Or look at it with an oscilloscope.
« Last Edit: July 19, 2011, 02:21:29 am 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.

Philippines
Offline Offline
Newbie
*
Karma: 0
Posts: 25
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have no idea why you are receiving that, but it looks like either a speed mismatch, or a line inversion.
You could write a simple sketch to find out what the idle state of the line is.
Or look at it with an oscilloscope.

what kind of sketch would be that??? i tried using just a simple Serial.read(); Serial.println(); sketch, but the same happend...
Logged

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

Quote
what kind of sketch would be that
One that does a simple "digitalRead" on the appropriate input pin, and prints the result repeatedly.
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.

Philippines
Offline Offline
Newbie
*
Karma: 0
Posts: 25
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

like a serial to LED sketch? i dont get it...
Logged

Philippines
Offline Offline
Newbie
*
Karma: 0
Posts: 25
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

thanks for the help AWOL!
Logged

Philippines
Offline Offline
Newbie
*
Karma: 0
Posts: 25
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hello once again!

i managed to run everything up..but i have one problem, my DC Motor keeps on moving even if its assigned case value isnt called. why is this so???

thanks!
Logged

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

Quote
my DC Motor keeps on moving even if its assigned case value isnt called.
I don't know - where is your code?
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.

Philippines
Offline Offline
Newbie
*
Karma: 0
Posts: 25
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i found the problem...i placed the break points wrong..hehehehe  smiley-mr-green smiley-mr-green

thanks again AWOL!
Logged

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