DS2405 1-Wire Communications
Matt White
Posts: 60
Anyone know where I can find some example BS2 code for the DS2405 Digital Switch?· Maybe an old Nuts and Volts article or something.· I've done some searching but haven't come up anything yet.·
Thanks!
Matt
Thanks!
Matt
Comments
I'm running 3 standard servo's and 2 continous rotation servo's from on my Boebot. 2 standard servo's are for a pan/tilt assembly which I have a ping sensor mounted on... I also have a standard servo is mounted on the front for another sensor. Then 2 continous rotation servo's to drive the wheels.
I ran into a problem when trying to move several of the standard servo's at the same time. Randomly the BS2p would reset itself, I assumed due to current draw?? Anyway... I figured the best solution (given that I haven't bought a servo controller board yet) would be to supply power to the servo's from another 6v battery pack. I've built a small 5v power supply which I'd like to be able to turn on and off with a digital switch... I was planning on putting this switch between the 6v battery pack and power supply circuit which provides a regulated 5v. The idea being that when the Boebot powers up it would then turn on the battery power for the servo's as well. I think the max voltage for the DS2405 on any pin is around 7v.
I think ultimately I'll just get that nifty USB servo controller. But I'd like to know how to do something like this... any suggestions would be appreachated!
Thanks!
Matt
·· I didn't look up the part or data, but you listed it as a 1-wire device, something the BS2 cannot talk to.· You would need a BS2p-series Module to talk to a 1-Wire device.· Optionally there is an adapter chip, but no sample code for using it, since it's really a serial-to-1-wire interface.· I hope this helps.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
Thanks!
Matt
Thanks!
Matt
·· That part works better in an environment where you need a whole network of switches...In that case using NPN transistors would require an I/O line for each one, but the 1-Wire parts can be networked.· So it really depends on your application.· Take care.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com