One-wire device control
Discovery
Posts: 606
in Propeller 1
What code can I use to communicate a Propeller 1 with one-wire devices?
Sincerely,
Discovery
Comments
Attached is the object I use, written by Cam Thompson.
-Phil
RIP Cam. You are missed.
I wrote a 1-wire object, too (it uses a Cam's CRC code; the rest is mine). I double-check all is well with a little DS1822 demo program.
Thank you.
I use the one-wire interface on BS2s which is really simple but I need more programming space. I will graduate to the Propeller 1.
The code looks difficult to use compared to BS2 basic.
Sincerely,
Discovery
It's really not. Give yourself a few days to learn Spin, and take things easy. What you'll find is that once you adapt to the new syntax, many things are really easy because the resources of the Propeller are so much greater than on the Stamp. Again, be patient with yourself and take it easy. Anything new is scary and looks difficult -- you'll get past that, and you'll get plenty of assistance in these forums when you need it. If you post a BS2 program, many of us can show you how to port it to the P1.
I agree with Jon about the simplicity. As an example, here's my driver for the MAX31820 1-Wire temperature sensor:
-Phil
Maybe you are right!
Would you suggest a good or excellent tutorial from which I can learn spin?
Discovery
Try this:
http://people.scs.carleton.ca/~lanthier/teaching/COMP4807/Notes/3 - SpinLanguageAndPropBotProgramming.pdf
-Phil
Okay Phil,
This looks good. Now I will go to school.
Discovery
Thank you very much. I am overwhelmed.
Sincerely,
Discovery
That's a really nice resource, Phil! Did you put that together for your students?
Paul
No, I just found it online.
-Phil
I hope someday soon we can see such a great resource such as this for P2.
Jim
Has anyone used a parasitic-powered EEPROM?
I want to read and eventually write to a DS24B33 that's embedded in a device.
The DS24B33 is a newer version of the DS2433, and I am guessing that the DS2431 and DS2432 are similar.