Jump to content
Electronics-Lab.com Community

Steven5103

Members
  • Posts

    10
  • Joined

  • Last visited

    Never

Steven5103's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. thx for the help..>^^ but i got the datasheets d... i can get everything from there, except the supply current and short circuit current only... for LM301 and HA17741... DataSheet_HA17741.pdf LM301.pdf
  2. hi, can anyone please help me with these... can i know the current supply for HA17741 op-amp??? and the short circuit current for HA17741 and LM301... help me please... thanks in advance...^^
  3. hi, i have a question to ask... wat camera is suitable for my iris recognition... the camera should be able to capture the iris clearly... i had tested with a 2 and 8 MP camera but the iris image was not clear... my lecturer mentioned something about infrared... so wat webcam should i get??? help please... thx...^^
  4. i need help... the ultrasonic sensor could not work using the software i'm having... there are current going to PIC but the PIC has no output for the ultrasonic. i think the problem should be on the software... but i cant figure out which part of the software has mistakes... i need help please... thank you.. The software : #include <stdio.h> #include <htc.h> #include "delay.h" #include "lcd.h" #define ULTRASONIC_SENSOR RC2 #define MOTOR1_SIGNAL RB7 #define MOTOR1_DIRECTION RB6 #define MOTOR2_SIGNAL RB5 #define MOTOR2_DIRECTION RB4 __CONFIG(0x3f71); void main ( void ) { unsigned int sensorPulseRisingEdge, sensorPulseFallingEdge; unsigned int sensorPulseWidth; char LCDString [ 17 ]; // Initializations TRISB = 0x00; TRISC = 0x00; lcd_init(); lcd_goto ( 0x00 ); lcd_puts ( "Pulse width:" ); MOTOR1_DIRECTION = MOTOR2_DIRECTION = 0; T1CON = 0x01; while ( 1 ) { // Body TRISC2 = 0; RC2 = 1; DelayUs ( 5 ); RC2 = 0; TRISC2 = 1; // Measure pulse width of ultrasonic sensor while ( RC2 == 0 ) // wait for RC2 to go high continue; sensorPulseRisingEdge = ( TMR1H << 8 ) + TMR1L; while ( RC2 == 1 ) // wait for RC2 to go low continue; sensorPulseFallingEdge = ( TMR1H << 8 ) + TMR1L; sensorPulseWidth = sensorPulseFallingEdge - sensorPulseRisingEdge; lcd_goto ( 0x40 ); sprintf ( LCDString, "%d us ", sensorPulseWidth ); lcd_puts ( LCDString ); DelayMs ( 250 ); DelayMs ( 250 ); } }
×
  • Create New...