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.

Recent content by bhengsoh

  1. B

    Need help in serial infrared modulation

    I have bought TSOP39438 IR Receiver. I have use your test method with LED and resistor and it works. Now I need to decode it with PIC microcontroller and here's next problem. When I measure the Vout with multimeter, When no IR light detected, Vout around 4.0 ~ 4.12 V When IR light detected...
  2. B

    Problem with switch case in interrupt

    Thanks. Now I can understand fully what the problem in my code. Without infinite loop, the program will end. I will remember this mistake. Thanks again.
  3. B

    Problem with switch case in interrupt

    I use the timer overflow flag as interrupt, and that's how it get interrupt every few usec without main loop. Anyway, I believe it is the read-modify-write problem. I make shadow copy of GPIO to continuously update the output pin. Now it was working in simulation. However, the switch case is...
  4. B

    Problem with switch case in interrupt

    Below is part of my program: #include <pic.h> __CONFIG(0x00C2); #define max_bit 16 unsigned int encode_val; volatile unsigned char state,encode_count; void start_tx(unsigned int val); static void interrupt isr() { if(T0IF) { T0IF = 0; TMR0 = -4; switch(state) { case 1: GPIO0 =...
  5. B

    Problem with switch case in interrupt

    I am having problem with switch case. The program look like this: unsigned char state; void main() { state = 1; } static void interrupt isr() { if(T0IF) { T0IF = 0; TMR0 = -40; switch(state) { case 1: GPIO2 = ~GPIO2; state = 2; break; case 2: GPIO1 = ~GPIO1...
  6. B

    Need help in serial infrared modulation

    I cannot get the result from simulation.:sad: At TX side, I make an signal w/o carrier frequency for simulation. TX program to generate pulse: At RX side, I use USART with baud rate specified as around 3221 bps. I dunno what is going wrong, could be the logic or program is wrong...
  7. B

    Need help in serial infrared modulation

    For RX part, is it suitable to use USART?
  8. B

    Need help for interfacing circuit between PIC10F202 with PICKit2

    Hi. I have PICKit2 programmer, but do not know what is the circuit to be connected to PIC10F202, pls help.
  9. B

    Need help in serial infrared modulation

    I found a really cheap microcontroller to replace the 555 timer part of circuit, which is PIC10F202, I have PICKit2 programmer, but I couldn't find the programmer circuit to interface with the PIC. Pls help.
  10. B

    Need help in serial infrared modulation

    Sry I made a mistake in circuit...The output of 555 timer now look fine. However, after pass through resistor and BJT, it gives a very weird voltage wave output. I use Multisim. Normal output from 55 timer. Abnormal output from IR LED. Let say selected modulating frequency is 400Hz...
  11. B

    Need help in serial infrared modulation

    I expect the result should be square wave. But when I simulate the TX circuit here, I get distorted sine wave. Is it normal? Infrared alarm barrier
  12. B

    Need help in serial infrared modulation

    Thanks for your quick reply. I found this schematic in following website, which I feel is suitable Infrared alarm barrier However, TSOP18 series of infrared receiver in their schematic is discontinued. So, is there other common type I can use? Can you show me the formula to calculate the...
  13. B

    Need help in serial infrared modulation

    By reduce the detection range, reflection from wall should also be reduced. So, I believe the main problem now is that the IR is transmitted concurrently, which mean they should have different bit pattern, like 11000001 for the first IR transmitter.
  14. B

    Need help in serial infrared modulation

    Hi. I'm not sure if this is the right section but here's the problem I faced. I am building a robot that will be guided to 3 different locations using infrared. What I'm planning to do is to have IR transmitter in each location to transmit modulated signal to the robot. My problem is how to...

Part and Inventory Search

Back
Top