Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
13 years ago

how to fit sensor output to altera de2 board

hello, i'm a beginner to altera. I'm doing a VHDL Simulation and Modelling water level detector using altera de2 board. how can I convert the output of the water level sensor to binary code so I can define different water level to different binary code. Can I connect the sensor directly to altera board? thank you..

4 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    The water level detector ¿is an analog one or an ON/OFF detector? if you have an analog sensor you can't connect it directly to the FPGA. You'll need an ADC converter.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    One more thing. The DE-2 board doesn't have an ADC converter. You need an external chip.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I'm using pressure tranducer where the output is analog which is in voltage. So basically I need to connect the sensor to ADC converter and connect the ADC to DE-2 board?

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Yes. For example, the MCP3204, that has an SPI interface ( clk, miso, mosi, cs ). It's a 12 bit ADC 4 channels. I don't remember but I think you can power it with 3,3V ( compatible with the DE2-Board ).