Shop OBEX P1 Docs P2 Docs Learn Events
1-wire Weather Station in Spin — Parallax Forums

1-wire Weather Station in Spin

bdickensbdickens Posts: 110
edited 2010-09-16 08:38 in Propeller 1
Before I tackle the last part of this particular project, I figured it would be prudent to ask if someone has already "ported" the 1-wire weather station to Spin?

I'll probably start with the Jon Williams code on the forum and migrate using the last couple of posts but I figured I should ask.

Thanks

Comments

  • JonnyMacJonnyMac Posts: 9,209
    edited 2010-09-13 18:14
    Just to be clear, you'll need a PASM driver for reliable 1-Wire comms. I've written one, as have a few others. Don't be fooled by anyone suggesting that you can use straight, high-level Spin to do 1-Wire. You can't.

    The weather station shouldn't be difficult to port.
  • bdickensbdickens Posts: 110
    edited 2010-09-14 09:02
    Yeah, I've seen enough of that to be afraid. I'm going to complete my weather station using a combination of 1 wire devices and non. I started this journey because I ran out of pins. I solved that when I got all 3 temperature sensors on 1-wire and got all of my others on the 8 channel ADC.

    My assembler is very rusty (anyone remember the SIM-1) but since I'm getting back in, the 1-wire assembly conversion might be fun (read: Frustrating).

    Thanks
  • JonnyMacJonnyMac Posts: 9,209
    edited 2010-09-16 08:38
    bdickens wrote: »
    ... the 1-wire assembly conversion might be fun (read: Frustrating). Thanks

    Only if you want to go that road yourself. I took the numbers from Dallas Semi (check with there 1-Wire FAEs when I lived in Dallas) and created a straightforward 1-Wire driver in PASM. Cam Thompson (from who I "liberated" PASM CRC code) has a version, too; I believe his allows for buss searches (mine doesn't).

    My object (included in DS1820/22 demo):
    -- http://obex.parallax.com/objects/491

    Cam's object:
    -- http://obex.parallax.com/objects/18
Sign In or Register to comment.