I have never done anything with digital sensors but i thought it shouldn't be very hard. Also i have at my disposal a brand new Digilent Analog Discovery 2.
Now i cant for the life of me understand how i can read pressure values using the waveforms software, i have read tutorials and guides, and i think i understand the basic principals of SPI interface, but i dont know how to actually read and create files with pressure over time.
I have it connected as such (table is the pins of the sensor, it is the SPI variant):
Sensor -- AD2
pin1 -- GND
pin2 -- V+ (set at 5v on the supplies tab of waveforms)
pin3 -- digital i/o 0
pin4 -- digital i/o 1
pin5 -- digital i/o 2
And in the waveforms protocol section, i think i have it correctly set up as seen below, with DQ1 reading from DIO0, and DQ0 is irrelevant as this sensor doenst have any MOSI connection.
As can be seen in the figure, when i click 'execute' it reads information from the sensor, which i think is a good sign, but i dont know where to go from here. Can anyone indicate where i can learn to code a script to implement in the 'sensor' tab? the examples there dont really help much and ChatGPT hasnt been much of a help either.
Question
fr.bernardo
Hello all,
I come from a mechanical engineering background, and I'm currently doing a PhD on fluid structure interaction. For this reason i have an experimental sloshing tank in which i want to read the pressure on the tank walls. Therefore i have bought a pressure sensor (Honeywell HSCDLNN100MDSA5). Relevant links below:
https://pt.mouser.com/ProductDetail/Honeywell/HSCDLNN100MDSA5?qs=Yk42LiOZU8S6l8LKiyP%2FCw%3D%3D
https://pt.mouser.com/datasheet/2/187/HWSC_S_A0012826924_1-3073319.pdf
https://prod-edam.honeywell.com/content/dam/honeywell-edam/sps/siot/ja/products/sensors/pressure-sensors/common/documents/sps-siot-spi-comms-digital-ouptu-pressure-sensors-tn-008202-3-en-ciid-45843.pdf
I have never done anything with digital sensors but i thought it shouldn't be very hard. Also i have at my disposal a brand new Digilent Analog Discovery 2.
Now i cant for the life of me understand how i can read pressure values using the waveforms software, i have read tutorials and guides, and i think i understand the basic principals of SPI interface, but i dont know how to actually read and create files with pressure over time.
I have it connected as such (table is the pins of the sensor, it is the SPI variant):
Sensor -- AD2
pin1 -- GND
pin2 -- V+ (set at 5v on the supplies tab of waveforms)
pin3 -- digital i/o 0
pin4 -- digital i/o 1
pin5 -- digital i/o 2
And in the waveforms protocol section, i think i have it correctly set up as seen below, with DQ1 reading from DIO0, and DQ0 is irrelevant as this sensor doenst have any MOSI connection.
As can be seen in the figure, when i click 'execute' it reads information from the sensor, which i think is a good sign, but i dont know where to go from here. Can anyone indicate where i can learn to code a script to implement in the 'sensor' tab? the examples there dont really help much and ChatGPT hasnt been much of a help either.
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now