Infrared Module TSOP38238 connection to 18M2 ?

joe paul

Senior Member
Hi Folks,

I might have damaged my first Picaxe chip today with the TSOP38238 IR sensor.

http://www.vishay.com/docs/82491/tsop382.pdf

I connected it (all three leads) directly to the CHI030B board, the 'out' lead to pin C.0, and the power and ground as usual, and now that 18M2 chip won't program. I don't want to mess up other chips. Perhaps something shorted as I was trying to test it. I seemed to be able to download the code, then when I realized I used the wrong pin in the code, I went to reprogram it. I repeatedly got the error message "hardware not found" with subsequent attempts. Tested another board with another good chip, everything is fine otherwise. Don't know if the new CHI030B board, which did work with a short LED blink test program, caused the issue, or the IR sensor, or my error in connecting it without any additional circuitry.

Any ideas while I wait for some new chips?

(I don't want to cannibalize my other projects and ruin good chips.)

Thanks,

Take care, Joe.
 
Last edited:

westaust55

Moderator
If you look at the CHI030 board data sheet:
http://www.picaxe.com/docs/chi030a.pdf
You will see at page 7 that there are 10k_Ohm pull down resistors on the PortC pins.
The 10k resistor for pin C.0 will need to be removed before the IR detector data will be seen correctly by the PICAXE.


Do you have a tight/faster loop in the program code you downloaded to the PICAXE? You may need to undertake a "Hard Reset" before the PICAXE chip will detect the need for a new download.
http://www.picaxe.com/FAQs/Fault-Finding/
 

joe paul

Senior Member
If you look at the CHI030 board data sheet:
http://www.picaxe.com/docs/chi030a.pdf
You will see at page 7 that there are 10k_Ohm pull down resistors on the PortC pins.
The 10k resistor for pin C.0 will need to be removed before the IR detector data will be seen correctly by the PICAXE.


Do you have a tight/faster loop in the program code you downloaded to the PICAXE? You may need to undertake a "Hard Reset" before the PICAXE chip will detect the need for a new download.
http://www.picaxe.com/FAQs/Fault-Finding/
Hi WestAust55,

You hit the nail on the head! It is a very short loop:
Code:
 #terminal 4800   'Directive to start terminal at 4800 baud after programming
 #no_data         'Directive to not download data - speeds up programming
 Symbol IRSense = C.0 
 Symbol InfraRED = b12

 IRTEST:

 Irin [50, IRTEST],IrSense, InfraRED

 SERTXD("InfraRED Code = ",#InfraRED,13,10)
 GOTO IRTEST
Just a few minutes ago, I put the chip back in, but wrong way around, so I may have killed it after all.

Thanks!!!!!!!

Take care, Joe.

(edit) P.S. Did the reset and the chip works!!!!!!
 
Last edited:

joe paul

Senior Member
Hi WestAust55,

I disconnected one side of that resistor on C.0 and everything works! Thanks!!! Good lesson learned here for me, today. I was about to give up on that chip and the sensor, thought that the board might be bad, or the circuit in the cable failed, but nothing was lost, after, with your help! Had to do another reset to load the program changes.

That 18M2 is one tough chip!

Take care, Joe.
 
Last edited:

joe paul

Senior Member
Hi WestAust55 and Folks,

Here is the project in its early stage:

[video]https://www.youtube.com/embed/0cYgMD5UfDI[/video]

Thanks for the help! (The video wouldn't embed.)

Take care, Joe.
 
Top