khangzing
Full Member level 2
- Joined
- Feb 22, 2013
- Messages
- 123
- Helped
- 3
- Reputation
- 6
- Reaction score
- 3
- Trophy points
- 1,298
- Activity points
- 2,148
any problems with these circuits?for sensor part,i couldn't get the desire waveform(square wave),i need to modulate the signal to 38khz and then emit(IR),then tssp4p38 will receive it,do i still need any amplifier?i had connected this sensor part to breadboard and i get some useless wave(is like some kind of big noise wave).The mcu i used is pic16f877a.
this is the program i used to generate the 38khz:
i'm using hi-tech universal toolsuite(MPLAB).
for apr9600 voice chip,i had soldered to the copper strip board and when connect to power supply,it no response at all...is that circuit correct?
the photo is the 1 i had soldered.
this is the datasheet of emitter >>> https://elcodis.com/parts/766705/TSAL6200.html
this is the datasheet of receiver>>> https://www.vishay.com/docs/82474/tssp4p38.pdf
the attached pdf is the datasheet of apr9600,i had used random access mode.
this is the program i used to generate the 38khz:
Code:
#include <pic.h>
#define _XTAL_FREQ 20000000
#define _FOSC_RC & _WDTE_OFF & _PWRTE_OFF & _BOREN_ON & _LVP_OFF & _CPD_OFF & _WRT_OFF & _CP_OFF
//Prescaler 1:1; PR2 Preload = 131; Actual Interrupt Time : 26.3 us
void init(void)
{
TRISB = 0X00;
TRISD= 0X00;
TRISC= 0X00; //configure Rc2 as output for Emitter(pwm)
CCP1CON = 0X0C; //select PWM mode.
PR2 = 131; //Set period register for approx. 38khz.
T2CON= 0X04; //Set timer2 pre/post scalers to 0 & start Timer2.
}
void main()
{
init( );
while(1){
CCPR1L = 0;
__delay_ms(500);
CCPR1L = 65; //Set duty cycle for approx 50%
__delay_ms(100);
}
}
for apr9600 voice chip,i had soldered to the copper strip board and when connect to power supply,it no response at all...is that circuit correct?
the photo is the 1 i had soldered.
this is the datasheet of emitter >>> https://elcodis.com/parts/766705/TSAL6200.html
this is the datasheet of receiver>>> https://www.vishay.com/docs/82474/tssp4p38.pdf
the attached pdf is the datasheet of apr9600,i had used random access mode.
Attachments
Last edited by a moderator: