Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[MOVED] circuit related questions

Status
Not open for further replies.
Ok..is that multimeter or enough speed to measure the voltage as u said it is very fast?i will try measure again on Monday and if cant,will try your circuit..
 

i can't get the wave again....what is the problem....i didnt make any changes,today go and test it show the noisy wave again...zzz...
 

vcc connected,crystal circuit ok(since i didnt make any changes), setting in cro ok...same as that i posted previously...

1 more question, my 38khz should be 9bit resolution?so which number should i load into CCP1CON<5:4> ?? the value i had loaded is 00..
 

https://www.micro-examples.com/public/microex-navig/doc/097-pwm-calculator.html

- - - Updated - - -

/*
* PWM registers configuration
* Fosc = 20000000 Hz
* Fpwm = 37878.79 Hz (Requested : 38000 Hz)
* Duty Cycle = 50 %
* Resolution is 9 bits
* Prescaler is 4
* Ensure that your PWM pin is configured as digital output
* see more details on http://www.micro-examples.com/
* this source code is provided 'as is',
* use it at your own risks
*/
PR2 = 0b00100000 ;
T2CON = 0b00000101 ;
CCPR1L = 0b00010000 ;
CCP1CON = 0b00011100 ;
 

if pr2=131, duty cycle=65, it is 381xx, haha~ it is correct...i got no idea why i cant get the same wave............
 

this is the pdf i get from vishay, in page 4,my sensor is that type. and, it need AND gate to operate with the 38 KHz? and the resistor 470 ohm is come after LED?then the voltage will damage the emitter or not?
 

Attachments

  • Long Range Proximity Sensor5.pdf
    349.6 KB · Views: 114

No...just asking is that I didn't connect as the PDF mentioned that's why my emitter not working?
 

Closely look at the need of that AND gate Its given for modulation purpose that means if you give a logic one it will give a 38khz to emittter, if you give logic zero means 0 in the output you can directly getnerate the modulated signal from microcontroller....
 

I mean the emitter should I connect the anode to the power supply and cathode to the 470 ohm and the 470 to the collector of npn transistor?
 

its nothing using transistor that is just used to drive the led you can just directly connect the led in pic microcontroller pins its able to drive...
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top