Using PINK to control the propeller chip
sciguy
Posts: 48
Hello all!
So I have this neat little robotic claw that I've wired into the propeller chip. Using some solid-state relays, and some programming, I'm able to make it move around, etc.
I ordered the PINK device to interface with the configuration. My end goal is to be able to Control the Claw over the internet, and I'll probably put a webcam on top of it.
So, I've started to configure the PINK, but I'm having some issues... Firstly, I'd like to connect to it through my home's network (through a router). This will eventually be via port-forwarding from the web, but for now I just want it working locally. However, the instruction manual it says it uses a UDP broadcast that won't work through a router? Isn't that a bit odd? Anyways, I've tried hooking it up with a crossover cable, or over the network and I still can't see it. What's the best way to see this thing from teh configuration software??
I have it pulling power directly from my propeller's 3.3V rail...is it possible that 3.3V isn't enough to power the PINK? The green LED is on on both the propeller board and the PINK board.
Any help or suggestions would be great! Thanks in advance [noparse];)[/noparse]
So I have this neat little robotic claw that I've wired into the propeller chip. Using some solid-state relays, and some programming, I'm able to make it move around, etc.
I ordered the PINK device to interface with the configuration. My end goal is to be able to Control the Claw over the internet, and I'll probably put a webcam on top of it.
So, I've started to configure the PINK, but I'm having some issues... Firstly, I'd like to connect to it through my home's network (through a router). This will eventually be via port-forwarding from the web, but for now I just want it working locally. However, the instruction manual it says it uses a UDP broadcast that won't work through a router? Isn't that a bit odd? Anyways, I've tried hooking it up with a crossover cable, or over the network and I still can't see it. What's the best way to see this thing from teh configuration software??
I have it pulling power directly from my propeller's 3.3V rail...is it possible that 3.3V isn't enough to power the PINK? The green LED is on on both the propeller board and the PINK board.
Any help or suggestions would be great! Thanks in advance [noparse];)[/noparse]
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
DGSwaner
"When in doubt, use C4" - Jamie Hyneman, Myth Buster
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I can haz propeller chip?
Here is a link to Steve Norris' Lab website where he has a PINK attached to a Propeller: http://www.norrislabs.com/Projects/RoboCam/index.html
Check out the circuit diagrams and Spin code for examples of how Steve interfaced the PINK and Propeller.
Regards,
TCIII
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
If you are going to send·a Robot·to save the world, you·better make sure it likes it the way it is!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I can haz propeller chip?
The connectFail and ConnectPass outputs are just Red and green LEDs that should illuminate based on whether contact is established. Neither do. I've been able to determine that the myPink commands are not working for some reason...I'm not sure why though, those commands are right out the PINK propeller object source code.
-Jeremy
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I can haz propeller chip?
Baud Rate - 9600
Data Bits - 8
Data Parity - None
Stop Bits - 1
Here is another thing I thought of... The pink operates on 5V, so I hooked it into 5V power, and I was able to communicate with it over Ethernet. But does this mean that the serial communications must also occur at 5V? Because at the moment, the TX and RX are just hooked right up to the propeller's 3.3V I/O pins.
If so, how should I go about cranking up the voltage between the prop and the PINK?
thanks!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I can haz propeller chip?
Post Edited (sciguy) : 1/12/2009 6:52:34 AM GMT
Hooking a +5 V level signal directly into a Propeller input is a real no no!
I suggest that you use at least a 1K current limiting resistor anytime that you need to interface a +5V level signal to a Propeller input.
Regards,
TCIII
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
If you are going to send·a Robot·to save the world, you·better make sure it likes it the way it is!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I can haz propeller chip?
shouldn't
_clkmode = xtal1+pll8x '18x multiplier
_xinfreq = 10_000_000 '10 mhz Crystal Speed
be:
_clkmode = xtal1+pll16x
_xinfreq = 10_000_000
depending on the board/chip your using, also on the Pink V2 test be sure to set this correctly as it defaults to 5mhz
good luck
Added: check out this thread for connecting 3.3v to 5v
http://forums.parallax.com/forums/default.aspx?f=25&m=124837
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
DGSwaner
"When in doubt, use C4" - Jamie Hyneman, Myth Buster
Post Edited (Dgswaner) : 1/12/2009 4:19:20 PM GMT
Thanks for the link though, it was very informative. I'm thinking that it is something with the output to the pink. If I were to monitor the output pin with a multimeter, I presume I should see it alternating between 0 and 3.3V as it sends the serial signal, correct? I'll have to try that. Perhaps the pin is bad?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I can haz propeller chip?
edit: no worries - thanks
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I can haz propeller chip?
Post Edited (sciguy) : 1/12/2009 11:36:39 PM GMT
Correct me if I'm wrong...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I can haz propeller chip?
For spin stamp
{FREQUENCY·SETTINGS}
··_clkmode········=·xtal1+pll8x···························· '8x·multiplier
··_xinfreq········ ·=·10_000_000···························'10·mhz·Crystal·Speed
For propeller demoboard
{FREQUENCY·SETTINGS}
··_clkmode········=·xtal1+pll16x··························· '16x·multiplier
··_xinfreq········· =·5_000_000·····························'5·mhz·Crystal·Speed
Also, are you sure the TX and RX pins are not swapped?
Your netTXinput must connect to the pink rx input
Your netRXoutput must conect to the pink tx output
according·to your statement
··myPink.PinkV2("0",netTXinput,netRXoutput)················'initializes·the·PINK·device
You just need 1k resistors between prop pins and pink pins.
(and a common GND of course)
regards peter
·
Hope this might help
I've also already tried using the test pink code with the same result.
I've attached a schematic of the setup. Maybe I'm just doing something very dumb...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I can haz propeller chip?
Looking at your schematic I guess you have the TX/RX swapped (I assume you have a ground between the 2)
{NETBURNER·SERIAL·INPUT·PIN}
··netTXinput······=16······································'Input·PIN·from·NetBurner·(TX)
{NETBURNER·SERIAL·OUTPUT·PIN}
··netRXoutput·····=17······································'Output·PIN·to·NetBurner·(RX)
In your code:myPink.PinkV2("0",netTXinput,netRXoutput)················'initializes·the·PINK·device
············································ Pin 16······· Pin 17
Looking at the PinkV2 start: PUB PinkV2(id,tx· ,·· rx)
···················································· Pin 16, Pin 17
************************************************************************
In my example which works OK:
· Pin_PinkTX··· = 2············ 'tx pink··· 2,2K in series with port 2 on Prop demoboard
· Pin_PinkRX··· = 4············ 'rx pink··· 2,2K in series with port 2 on Prop demoboard
· Pink.PinkV2("0", Pin_PinkRX, Pin_PinkTX)············· 'Pink Baud 9600
··························Pin 4········ Pin 2
Looking at the PinkV2 start: PUB PinkV2(id,tx· ,·· rx)
···················································· Pin 4, Pin 2
Hope I not messed up now
ideas?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I can haz propeller chip?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I can haz propeller chip?
Try to use the "Pinktest" I attached, with all do not change anything.
Replace the PINs on your board to match the one in the file I attached.
Then it might work!!!
Regards/Goran
One, in the VAR area I didn't have "byte buf[noparse][[/noparse]64]". I don't know if that made a difference...but whatever.
But, I didn't have the PINK plugged into a live ethernet cable. I assumed the test was just testing serial connectivity, but I guess it also requires that ethernet be plugged in! Hmm.. OK well now I need to get it to control my robot claw. I'm sure I'll be back with more questions. Thanks for the great help everybody!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I can haz propeller chip?