Shop OBEX P1 Docs P2 Docs Learn Events
Ready to run Serial RenVoltmeter — Parallax Forums

Ready to run Serial RenVoltmeter

jediakojediako Posts: 4
edited 2005-07-22 16:16 in BASIC Stamp
I bought this Serial VoltmeterSoftware from Reynolds Electronics, www.rentron.com/index.html.
After two fruitless phone calls to Reynolds Electronics, Dave, from Parallax Tech. Support suggested
to change the baud rate from 16468 to 16624 and later asked me to post.
The code below was written for the Basic Stamp II Interface with AD0831. It tokenizes/downloads
successfully on my BS2p P40 Demo Board but does not communicate with the RenVoltmeter. Please help. Thanks. John.

' ( $ STAMP BS2p )
' ( $ PBASIC 2.5 )
' ( $ PORT COM 1 )

ADres VAR Byte ' A-to-D result: one byte

CS CON 0 ' chip select P0
AData CON 1 ' ADC data output P1
CLK CON 2 ' clock P2
baud CON 16624 ' N9600

HIGH CS ' Deselect ADC to start

again:
LOW CS ' Activate the ADC0831
SHIFTIN AData,CLK,MSBPOST, [noparse][[/noparse] ADres\9 ] ' shift in the data
HIGH CS ' Deactivate AD0831
PAUSE 500
SEROUT 3, baud, [noparse][[/noparse] ADres ]
PAUSE 1000
GOTO again ' Do it again.

Comments

  • Bruce BatesBruce Bates Posts: 3,045
    edited 2005-07-16 20:49
    jediako -

    You don't indicate whether you spoke to Bruce Reynols or not in your phone call attempts, If you did not, I'd suggest sending an email. He may not be in the office over the weekend to answer the phone, but he ALWAYS responds to his email within 24 hoursor less, so long as he is able to do so.

    Normally technical support from Reynolds Electronics is just as good as that from Parallax.
    If you contact him by email and don't get a response within 24 hours from them, contact me at the email addres below, and I'll see if I can assist you. Unfortunately I presently know nothing about the software you're speaking about.

    Just for the record, the beginning of your program will have to look like that below before it will pass through the Stamp Editor without errors:

    ' { $STAMP BS2p }
    ' { $PBASIC 2.5 }
    ' { $PORT COM1 }

    I suspect the differences may just be typos, when you transcribed the program onto this forum, rather than copying-and-pasting it.

    Regards,

    Bruce Bates
    bvbates @ usamailbox.com
  • jediakojediako Posts: 4
    edited 2005-07-17 16:40
    Many thanks Bruce. I've just e-mailed you with reference to the Serial RenVoltmeter.
    I will inform you about the outcome of my talk with Bruce Renolds tomorrow.
    John.
  • Philip GamblinPhilip Gamblin Posts: 202
    edited 2005-07-19 17:13
    Have you tried getting it to talk to hyperterm? Does the meter just dump values out or does input as well?
  • jediakojediako Posts: 4
    edited 2005-07-22 16:16
    Many thanks Philip. I now know what to do. I was ignoring the connection of the serial output through the 1K resistor
    to the DB-9 connector.
    John.
Sign In or Register to comment.