PWMPal Problem
D Faust
Posts: 608
Hello, I finally got around to testing my PWMPal after breaking a pin off one this summer.· It doesn't do anything, when I send commands to it!· It isn't mounted under the stamp because last time I couldn't get a connection to the stamp when it was mounted that way.· I bought a socket for it and have it sitting on my breadboard.
Here's my wiring:
1) to pin 4, Ground
2) to pin 5, connection to stamp pin 0
3)·to pin 23, ground
4) to pin 21, +5V
5) to pin 5, a 1 milliamp meter through a 10K resistor (to measure voltage)
{everything else isn't connected}
Here's the code:
My stamp is on my BOE + my PWMPal on a separate breadboard and the grounds are connected
Can anyone see what I did wrong.
Here is the datasheet: http://www.parallax.com/dl/docs/prod/acc/PWMPAL.pdf
Here is another thread about making the connections: http://forums.parallax.com/showthread.php?p=661140
Thanks
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
--DFaust
Here's my wiring:
1) to pin 4, Ground
2) to pin 5, connection to stamp pin 0
3)·to pin 23, ground
4) to pin 21, +5V
5) to pin 5, a 1 milliamp meter through a 10K resistor (to measure voltage)
{everything else isn't connected}
Here's the code:
' {$STAMP BS2} ' {$PBASIC 2.5} version VAR Byte(3) tOn VAR Word tOff VAR Word status CON %11100001 SEROUT 0, 6, [noparse][[/noparse]"!ID"] SERIN 0, 6, [noparse][[/noparse]STR version\3] PAUSE 1000 tOn = 100 tOff = 100 SEROUT 0, 6, [noparse][[/noparse]"!PWMM4", tOn.BYTE0, tOn.BYTE1, tOff.BYTE0, tOff.BYTE1] PAUSE 1000 SEROUT 0, 6, [noparse][[/noparse]"!PWMSS", status]
My stamp is on my BOE + my PWMPal on a separate breadboard and the grounds are connected
Can anyone see what I did wrong.
Here is the datasheet: http://www.parallax.com/dl/docs/prod/acc/PWMPAL.pdf
Here is another thread about making the connections: http://forums.parallax.com/showthread.php?p=661140
Thanks
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
--DFaust
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
--DFaust
The first three bytes were 0, 0, 0 I kept pressing reset and got the same result.
Then I cleared the debug window and started again. This time I got 255, 1, 0
Then I hit reset, let it debug, and got 0, 0, 0 many more times.
I'm guessing that the 255, 1, 0 is an anomoly not a real value.
Pictures coming here.· I think·it is a stretch to say that these are worth·25 words nevermind 1000.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
--DFaust
Post Edited (D Faust) : 10/30/2007 12:30:50 AM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
--DFaust
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
--DFaust
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
What?· How are they connected?· The PWMPal is over a gap between rails and nothing is in the row with the reset line.
I don't know it runs all the way across but is shouldn't matter because they have to connect for the batteries anyway.· (6 AAs, so there are voltages of 1.5, 3, etc to 9 on the top row.)
Will the pwmpal reset when the line is pulled low or high?· (there is a trace to it)·What should it usually be?· I'm not sure how to tie the pins together since the stamp is on my boe.· Could I have the stamp pull the line low to reset it in the beginning of code.
Attached is a drawing of the connections as of my setup now.· I'll try to get more pics.
EDIT: this looks like the datasheet http://cache.national.com/ds/LM/LM341.pdf
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
--DFaust
Post Edited (D Faust) : 10/31/2007 7:39:35 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
I put a 1uF electrolitic cap across the input line and ground (+ on the + voltage·input)·and got the same response...nothing
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
--DFaust
Post Edited (D Faust) : 11/1/2007 8:30:59 PM GMT