Global Moderator
UK
Offline
Brattain Member
Karma: 143
Posts: 19366
I don't think you connected the grounds, Dave.
|
 |
« Reply #30 on: July 18, 2011, 08:59:06 am » |
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.
|
|
|
|
Philippines
Offline
Newbie
Karma: 0
Posts: 25
|
 |
« Reply #31 on: July 18, 2011, 11:18:05 am » |
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
Brattain Member
Karma: 143
Posts: 19366
I don't think you connected the grounds, Dave.
|
 |
« Reply #32 on: July 18, 2011, 11:21:25 am » |
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.
|
|
|
|
Philippines
Offline
Newbie
Karma: 0
Posts: 25
|
 |
« Reply #33 on: July 18, 2011, 11:43:32 am » |
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
Newbie
Karma: 0
Posts: 25
|
 |
« Reply #34 on: July 19, 2011, 01:51:33 am » |
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
Brattain Member
Karma: 143
Posts: 19366
I don't think you connected the grounds, Dave.
|
 |
« Reply #35 on: July 19, 2011, 02:17:07 am » |
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.
|
|
|
|
Philippines
Offline
Newbie
Karma: 0
Posts: 25
|
 |
« Reply #36 on: July 20, 2011, 07:41:28 am » |
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
Brattain Member
Karma: 143
Posts: 19366
I don't think you connected the grounds, Dave.
|
 |
« Reply #37 on: July 20, 2011, 07:42:43 am » |
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.
|
|
|
|
Philippines
Offline
Newbie
Karma: 0
Posts: 25
|
 |
« Reply #38 on: July 20, 2011, 10:37:05 am » |
like a serial to LED sketch? i dont get it...
|
|
|
|
|
Logged
|
|
|
|
|
Philippines
Offline
Newbie
Karma: 0
Posts: 25
|
 |
« Reply #39 on: July 22, 2011, 12:19:59 pm » |
thanks for the help AWOL!
|
|
|
|
|
Logged
|
|
|
|
|
Philippines
Offline
Newbie
Karma: 0
Posts: 25
|
 |
« Reply #40 on: August 14, 2011, 01:22:55 pm » |
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
Brattain Member
Karma: 143
Posts: 19366
I don't think you connected the grounds, Dave.
|
 |
« Reply #41 on: August 14, 2011, 01:44:51 pm » |
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.
|
|
|
|
Philippines
Offline
Newbie
Karma: 0
Posts: 25
|
 |
« Reply #42 on: August 17, 2011, 12:18:31 am » |
i found the problem...i placed the break points wrong..hehehehe  thanks again AWOL!
|
|
|
|
|
Logged
|
|
|
|
|
|