Digital Fat Calliper Sensor

Status
Not open for further replies.
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.
 

Attachments

  • readCalliper and LCD.c
    2.8 KB · Views: 211
Hi Doug,

the direction of the diodes should also be corrected.

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
 
vivian_lys90 said:
Hi Doug,

I change the gnd to Vcc already,but the diode 5-8 still cannot display the number of button been pressed. Between, if i want my calliper can measure 3 input and then store and display in the lcd, what should i do?
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.
 


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)?
 
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?
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…