Author Topic: Transistortester not working  (Read 828 times)

0 Members and 1 Guest are viewing this topic.

Offline panossTopic starter

  • Frequent Contributor
  • **
  • Posts: 325
  • Country: gr
Transistortester not working
« on: April 26, 2020, 02:58:52 pm »
I 've built the well known transistor tester but it 's not working.
With this firmware (I 'm using an ATMega8).



This is what it displays when I have nothing connected on the test points and press the button:
978350-0

And this with a resistor connected (at the test points):
978354-1

As you can see it does not really measure anything.

I have checked for cracks on tracks, shorts, cold solderings, anything. But haven't found any fault.
Any help is welcome.

(I 'm using a 4MHz crystal instead of 8MHz as per the original design. I 've added the frequency in the code)
« Last Edit: April 26, 2020, 03:08:00 pm by panoss »
 

Offline CDaniel

  • Frequent Contributor
  • **
  • Posts: 411
  • Country: ro
Re: Transistortester not working
« Reply #1 on: April 26, 2020, 05:02:13 pm »
You should try to find an 8MHz quartz and use the original code ...
And I don't see how option bits should be set , Atmega8 has CKDIV8 , clock divided by 8 or not
« Last Edit: April 26, 2020, 05:15:56 pm by CDaniel »
 

Offline panossTopic starter

  • Frequent Contributor
  • **
  • Posts: 325
  • Country: gr
Re: Transistortester not working
« Reply #2 on: April 26, 2020, 07:16:00 pm »
But this is the original code, I just added the frequency:
Code: [Select]
#define F_CPU 4000000UL
 

Offline CDaniel

  • Frequent Contributor
  • **
  • Posts: 411
  • Country: ro
Re: Transistortester not working
« Reply #3 on: April 27, 2020, 12:23:21 am »
I mean the original hex provided . I don't use that system but after a change the program is recompiled and a different hex should result ... The compiler has to know what timings to change for the new frequency , pretty much everything
« Last Edit: April 27, 2020, 12:28:44 am by CDaniel »
 

Offline panossTopic starter

  • Frequent Contributor
  • **
  • Posts: 325
  • Country: gr
Re: Transistortester not working
« Reply #4 on: April 27, 2020, 06:34:12 am »
The result was the same with the original hex file (and other hex files I tried, e.g. this one).
« Last Edit: April 27, 2020, 07:09:08 am by panoss »
 

Offline panossTopic starter

  • Frequent Contributor
  • **
  • Posts: 325
  • Country: gr
Re: Transistortester not working
« Reply #5 on: April 27, 2020, 03:27:18 pm »
Finally...it was a bad soldering... :palm:
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf