PINK - Variable Access / Startup Help
Luke TY
Posts: 11
Hello Everyone,
I am trying to write a simple program that controls a RF transmitter that I disassembled from a garage opener in order to open a ranch gate that is 1.4 miles away. I setup up the link using inexpensive consumer routers and now I am trying to get the more "technical" side of this project done.
I currently own: 2x Homework Boards, 1x NetBurner Kit.
I setup the Netburner and am able to access it over the LAN but I can't seem to get it to interface with the stamp correctly..
A question I have regards the physical installation of the NetBurner board. In the .pdf manual it shows the power inputs hooked upt to P13 and P14, but in the actual picture the inputs are wired to P8 and P7, which pin corresponds to which?
Here is a sample program that I tweaked (original found in manual) to enable a RF pulse out from my transmitter for approximately 1 second.
' {$STAMP BS2}
' {$PBASIC 2.5}
'PINK_07.bs2
NBSTATUS VAR Byte 'Will hold the status of the PINK module
TEMP VAR Byte ' Holds current status of gate command
NewPost VAR NBSTATUS.BIT1
PAUSE 200
MAIN: 'The main program loop
PAUSE 300 'pause for serial reads/writes (PINK)
SEROUT 8,396,[noparse][[/noparse]"!NB0ST"] 'Poll for webpage update by sending a request
SERIN 7,396,100,MAIN,[noparse][[/noparse]NBSTATUS] 'for the state of the status register (PINK)3
IF NewPost = 1 THEN gate 'Check for update from web interface
DEBUG DEC NewPost
GOTO MAIN 'Check everything again!
END
gate:
DO
HIGH 8
PAUSE 1000
LOW 8
PAUSE 1000
GOTO MAIN
RETURN
END
I appreciate any response.
Luke TY
I am trying to write a simple program that controls a RF transmitter that I disassembled from a garage opener in order to open a ranch gate that is 1.4 miles away. I setup up the link using inexpensive consumer routers and now I am trying to get the more "technical" side of this project done.
I currently own: 2x Homework Boards, 1x NetBurner Kit.
I setup the Netburner and am able to access it over the LAN but I can't seem to get it to interface with the stamp correctly..
A question I have regards the physical installation of the NetBurner board. In the .pdf manual it shows the power inputs hooked upt to P13 and P14, but in the actual picture the inputs are wired to P8 and P7, which pin corresponds to which?
Here is a sample program that I tweaked (original found in manual) to enable a RF pulse out from my transmitter for approximately 1 second.
' {$STAMP BS2}
' {$PBASIC 2.5}
'PINK_07.bs2
NBSTATUS VAR Byte 'Will hold the status of the PINK module
TEMP VAR Byte ' Holds current status of gate command
NewPost VAR NBSTATUS.BIT1
PAUSE 200
MAIN: 'The main program loop
PAUSE 300 'pause for serial reads/writes (PINK)
SEROUT 8,396,[noparse][[/noparse]"!NB0ST"] 'Poll for webpage update by sending a request
SERIN 7,396,100,MAIN,[noparse][[/noparse]NBSTATUS] 'for the state of the status register (PINK)3
IF NewPost = 1 THEN gate 'Check for update from web interface
DEBUG DEC NewPost
GOTO MAIN 'Check everything again!
END
gate:
DO
HIGH 8
PAUSE 1000
LOW 8
PAUSE 1000
GOTO MAIN
RETURN
END
I appreciate any response.
Luke TY
Comments
can you not use a different pin as an output dependant on the result of a variable held within the pink such as NBVAR00?
i.e.
if <NBVAR00>=1 then gate
·
I appreciate your assistance.
Luke TY
·· I would love to help you but I'm having the same issue. I also noticed the discrepancies in the documentation but because they are using p P7 and P8 in the examples, I connected SERIn and SEROUT to these two, but it does not work either.
Did you try running TELNET to see if they are talking? or during DEBUG do you see anything happening? My test program goes to "never land" after the SERIn , SEROUT commands...
I wonder if anybody have this unit working porperly, or as advertise....
The main reason I bought this unit it was because of the email feature, now I'm told that without authentication it does not work.· HOW do you expect to make·work anything without authentication these days?
From the product page on our website:
o Send email (via SMTP, this module does not support password authentication).
You asked how can anything work without authentication these days? The answer is there are many ways servers authenticate. Since there is no standard there is no way to address all the ways it can be done. There simply is no standard. Many servers employ authentication by verifying the IP address of the originator. Some don’t require it because you have to be on their network to access the SMTP server anyway. Others that do still have no standard as some require SSL and encryption, while others do not and use plain text.
I’m not sure which discrepancies you’re referring to in the documentation but we strive to keep our documentation error free and up to date, so if you could post these they will be addressed in the revised documentation which will be released very soon. In a PM you sent me you questioned why you should verify the baud rate in the two places I indicated. If you don’t the system most likely will not work.
As for anyone who has gotten these to work, there are several posts in the Completed Projects section which list customer/forum member applications using the PINK Module. The monthly sales of this device and lack of issues speaks for itself. Your satisfaction is also important to us so if this module won’t work for your application then you may contact us for a refund if the module has not been damaged. Take care.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
· First, on page 2 of 30013-PINK-v1.02.pdf, the first diagram shows serial out going to P12, and serial IN to P13.· But on the second picture the same page apparently they are using P7 and P8.
Luke just mentioned it on this thread.· Then later on the example they use SERIN 7 and SEROUT 8.
We know this is not a big deal, we just have to make sure we are consistent with the code and the pins used.
We are just trying to find out why is not working for us.
I'll make sure I have IPSetup and the Configuration page with the same rate, but you did not answer my question, why does this matter if the Configuration web page should be overwriting this variable anyway? right?·· If not why it can be changed from the web site with no additional comments or instructions to also go to IPSetup and change the baud rate again if necessary.
ALSO, tell me what server to use for emailing.· You are not answering my questions Chris.
What I need to do to send an email from PINK as advertised since it does not support authentication?
Please have another look at the documentation page and I think you will find that it is correct. There is no error. Physical pin 12 of the BASIC Stamp Module is P7 and physical pin 13 is P8. The code exactly matches the connections shown. I don’t know where you got P12 and P13. If you refer to the physical pins that would give 24 I/O which the BASIC Stamp doesn’t have. Nonetheless this has been made more clear in revised documentation which I am working on right now.
As the NetBurner Modules are not designed or manufactured by Parallax Inc. I cannot answer for why the baud rate must be set in two places, but it does and that is covered by the documentation. I cannot offer any suggestions for mail servers. Perhaps some other forum members can offer suggestions of mail servers which do not require authentication to send e-mail. I know some ISP’s do not, but you must be on their network. Comcast is one such ISP and is common in our area.· By the way, your duplicate post was removed.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
Chris is right. The diagram does show the wires hooking up to pins 12 and 13, but in the BS2 schematic pins 12 and 13 are p7 and p8 on the homework board (and internal to the stamp). I was just looking through the documentation and got confused too!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Shawn Lowe
Maybe I should have waited to do that......
Don’t worry; I have a new document which will take care of this potential confusion.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
A complex design is the sign of an inferior designer. - Jamie Hyneman, Myth Buster