Harsch-Systems/node-red-contrib-pi-plates

ppDAC Node

Closed this issue · 11 comments

I was looking to use the DAQCPlate to provide an analog output (0-4V DC) to a Power controller.
Am I missing something or has the ppDAQ Node not developed yet?

A day later and I now have a Pi plate relay plate working using a Python 3 Function Node. Yet to receive the DAQC plate. Can I submit the code I develop for the Digital to Analog conversion for you to use in your set of nodes? Or is it so simple that the node is not required?

@Murray274 this should be easy to add in. node-pi-plates will need support first, then this repo. Feel free to take a crack at it. Otherwise I should be able to get around to it in a few days.

I bought the DAQC from Mindkits in NZ but Element 14 (Farnell) has then listed. I have them working simply in Node-Red using the Python 3 node. Now I need to input a value to set the voltage rather than setting the voltage in the Python 3 node . More YouTube watching required to understand Python some more.

@Murray274 I've added a ppDAC node along with support in the underlying pi-plates package. Could you try it out and let me know if it's working for you? You'll need to update node-red-contrib-pi-plates to the latest published version (0.0.5). This should update the underlying pi-plates package as well (to it's latest version which is 0.0.3).

@pi-plates no, I haven't got around to implementing DAQC2 yet. See issue #1

Hi Mike. the new node is installed and running well. You do not note what should be on the Output. It looks to be the same as the input.
Many thanks for your help

Hi Mike,
I just inputted a negative value and received an error message on the output through a debug. Perfect
Have you thought about providing a selection to give the user a choice of the output going to max or zero if an error occurs. I can stop the negative value with another node.
The analog output has not changed in my case. Again I can provide a value of zero from the switch I use to inhibit the negative input so I have options.
Just an idea.

@Murray274 I think you're on the right track by using an upstream node (custom function) to filter the incoming values and apply whatever policy makes sense for your case. You could also use the range node if you need to scale an incoming value up or down to fit the DAC range.

implemented in 3701d2b