1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

Digital Fat Calliper Sensor

Discussion in 'Electronic Projects Design/Ideas/Reviews' started by vivian_lys90, Jan 19, 2013.

  1. dougy83

    dougy83 Well-Known Member

    Joined:
    May 18, 2008
    Messages:
    2,676
    Likes:
    215
    Location:
    Brisbane, Australia
    I didn't see anything strikingly wrong with the code. I did change the one of the return value calculations in the getCalliper() function.

    You should at least get a unique value from each button press.
     

    Attached Files:

  2. vivian_lys90

    vivian_lys90 New Member

    Joined:
    Nov 14, 2012
    Messages:
    75
    Likes:
    0
    Hi Doug,

    That means I need to make my diode direction same as last time circuit design, which are 4 diode in forward direction, 4 diode in backward direction?
    Thanks for your help, you really help me a lot.


    Vivian
     
  3. dougy83

    dougy83 Well-Known Member

    Joined:
    May 18, 2008
    Messages:
    2,676
    Likes:
    215
    Location:
    Brisbane, Australia
    Both projects you sent to me had the resistors connected to ground. They need to be connected to VCC or 5V, or whatever voltage the microcontroller is running from.

    As far as displaying 3 values goes, you really should concentrate on displaying a single value first. This will mean that both your code and your hardware is functional.
     
    • Like Like x 1
  4. dave

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    -
    Likes:
    0


     
  5. vivian_lys90

    vivian_lys90 New Member

    Joined:
    Nov 14, 2012
    Messages:
    75
    Likes:
    0



    Is these code means that the power was transfer from the microcontroller into PBO-1 (PORTB) , and then PBO-1 will detect which button has been pressed, then send the signal back to microcontroller through PEO-1(PORTA)?

    Is these code means the power from microcontroller transfer to the PEO-1(PORTA), and then PEO-1 detect which button was pressed, and then transfer back to the microcontroller through PBO-1(PORTB)?
     
  6. vivian_lys90

    vivian_lys90 New Member

    Joined:
    Nov 14, 2012
    Messages:
    75
    Likes:
    0
    Hi,

    I want to know, for my project, if i want to put the scanned value into equation. Do i need to convert the scanned value using ADC before I apply it into the equation?
     

Share This Page