For my project, I was asked to use the xadc portion of the zybo board to read the data from the DFRobot Gravity Analog Electrical Conductivity (EC) Sensor.
Just to give a summary on this product, it has the supply voltage of 3V to 5V and output voltage of 0V to 3.4V.
I have asked this question before, maybe due to the unclarity of the question, nobody has answered me.
The link is here:
I have been trying to learn the basics of xadc and attempted some project. I created one project which allows me to read the data from ZYBO's internal temperature, voltage and the external analog input source (if that is correct)
The block design, the code, the zipped vitis file and the outcome are below.
Additionally, I have tried the sensor in my Arduino. The detail will be shown below as well.
Here are some areas of concern.
1) I knew that for zybo xadc, it only supports the supple voltage up to 1V ONLY but my sensor output voltage can go up to 3.4V. I am worried if I straightly connect my analog input of the sensor into the zybo xadc output at port A. The Zybo Board may be damaged. So is there a way to minimise the output voltage so that the analog input can successfully insert into the zybo without damaging the board. I am thinking of using 2.2K ohm and 4.7K ohm resistor in series to solve the issue but I am not certain about that.
2) If the zybo can configure the DF Robot Gravity EC sensor smoothly through using resistors or other means, how can I ensure the result is accurate? Also, how should I transfer my code in Arduino into the Vitis Code. Do I need to change my Arduino code by a lot in order to allow the Vitis to understand.
Question
helloworld1029
For my project, I was asked to use the xadc portion of the zybo board to read the data from the DFRobot Gravity Analog Electrical Conductivity (EC) Sensor.
The link of the sensor is here:
https://www.dfrobot.com/product-1123.html
Just to give a summary on this product, it has the supply voltage of 3V to 5V and output voltage of 0V to 3.4V.
I have asked this question before, maybe due to the unclarity of the question, nobody has answered me.
The link is here:
I have been trying to learn the basics of xadc and attempted some project. I created one project which allows me to read the data from ZYBO's internal temperature, voltage and the external analog input source (if that is correct)
The block design, the code, the zipped vitis file and the outcome are below.
Additionally, I have tried the sensor in my Arduino. The detail will be shown below as well.
Here are some areas of concern.
1) I knew that for zybo xadc, it only supports the supple voltage up to 1V ONLY but my sensor output voltage can go up to 3.4V. I am worried if I straightly connect my analog input of the sensor into the zybo xadc output at port A. The Zybo Board may be damaged. So is there a way to minimise the output voltage so that the analog input can successfully insert into the zybo without damaging the board. I am thinking of using 2.2K ohm and 4.7K ohm resistor in series to solve the issue but I am not certain about that.
2) If the zybo can configure the DF Robot Gravity EC sensor smoothly through using resistors or other means, how can I ensure the result is accurate? Also, how should I transfer my code in Arduino into the Vitis Code. Do I need to change my Arduino code by a lot in order to allow the Vitis to understand.
Thanks in advance
helloworld1029
xadc_code (1).txt Electrical Conductivity Code For Arduino.txt
workspace_sensor.zip
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.