mjmeli / arduino-ad5933

A simple library for controlling the AD5933 impedance converter system with an Arduino compatible device.
MIT License
48 stars 32 forks source link

TODO: excitation voltage range, settling time cycles #1

Open mjmeli opened 7 years ago

mjmeli commented 7 years ago

These need to be implemented. Anyone is welcome to contribute.

http://www.analog.com/media/en/technical-documentation/data-sheets/AD5933.pdf

Excitation voltage range: Table 10 (pg. 23)

Settling time cycles: Table 13 (pg. 25)

andrewbourhis commented 7 years ago

Shouldn't it be a simple matter of the following:

`

define CTRL_VOLT_RANGE1 (0b00000000)

define CTRL_VOLT_RANGE2 (0b00000110)

define CTRL_VOLT_RANGE3 (0b00000100)

define CTRL_VOLT_RANGE4 (0b00000010)

/**

mjmeli commented 7 years ago

Probably, this wasn't used in our implementation that used this library and so it was simply never written. If you have written this and it works then feel free to do a PR.

andrewbourhis commented 7 years ago

Great, I'll be sure to do so when I am able to test it with hardware.

Thanks for posting this by the way, saved me some time!

qaisarabbasr commented 7 years ago

has anyone built all the code involving CN-0217 and all the ranges. kindly attach code as it would be very helpful.I have made the hardware but finding difficulties in code. Thanks qaisar