• FORUM
  • LOGIN
  • ADVERTISE

MAG Counter

Discussion group on micro controllers, programming, and related..

MAG Counter

Postby SM3ORA » Sat Jul 07, 2012 1:27 pm

Hello!
Now I have made ​​a PCB, and installed most of the components.
Now lacks only the L1 150uH. I have made PCB from the layout in magcountercute.zip. http://pcb.hamradio.in/
I found now, that the C9 and C6 are not used. Should you not adjust the frequency in any way, as C6 in the schematic?

Sincerely, Lars
SM3ORA
 
Posts: 15
Joined: Mon Jul 02, 2012 12:38 pm

Re: MAG Counter

Postby mvs sarma » Mon Jul 09, 2012 10:05 am

Hi, Lars,
Nice that you have made the cute version of the pcb.
C9 is for filtering the suppy at back lit. noew that the backlit has been taken to unregulated suppywith a changed series resistor, the capacitor at the supply would take care. Hope I am clear.


Capacitor C6(trimmer) is meant for adjusting the Crystal for accuracy in measurement. Perhaps we can replace or parallelly wire a two pin trimmer from Toko make. they are small and reasonably small good.

May be you have to use a reference oscillator to calibrate the counter.
One such we find at home is the TV Hor osc .
this signal can be picked up by a 30 turn 2" dia coil made from any wire and the coil working as pick up from the TV deflection Yoke.. If such attempt is made C6 helps to trimm the 4MHz crstal osc to fineyune the reading as 15.625KHz in case of PAL or the appropriate rading in NTSC.

all the best
Regards
Sarma
mvs sarma
 
Posts: 638
Joined: Wed Oct 11, 2006 4:57 pm
Location: Hyderabad, India

Re: MAG Counter

Postby SM3ORA » Mon Jul 09, 2012 1:55 pm

Thanks for the reply Mr. Sarma.
I'll be back with the result, when everything is built.

Regards, Lars
SM3ORA
 
Posts: 15
Joined: Mon Jul 02, 2012 12:38 pm

Re: MAG Counter

Postby SM3ORA » Thu Jul 12, 2012 12:34 am

Okay ..
Now I have built my MAG.
But something is wrong.
I suspect my programmer, it's a Willem, version PCB5.0C.
After programming pic circuit, it says "Error writing PIC ID area."
However, verification, says "Device verified OK."
I have a PIC16F628A with the HEX file from fc0v51r.zip.
With a 16x2 LCD, I see bright squares in the top row.
With a 16x1 LCD, I see 8st squares at the beginning of the display.
It's the same with or without PIC circuit.
Any suggestions please ..

Sincerely, Lars
SM3ORA
 
Posts: 15
Joined: Mon Jul 02, 2012 12:38 pm

Re: MAG Counter

Postby mvs sarma » Thu Jul 12, 2012 10:23 am

the Hex file by itself is OK

Even with willem programmer, You can verify the contenets of the programed chip with the origial hex file and if the verification passes, it should work.
Black squares indicate that
1. the oscillator may not be functional.
2. the contrast pin should measure around 0.7V or so. If it is too less you might see black squares.
3. i fear that the LCD should be 16*1, otherwise you would get split display.
Regards
Sarma
mvs sarma
 
Posts: 638
Joined: Wed Oct 11, 2006 4:57 pm
Location: Hyderabad, India

Re: MAG Counter

Postby SM3ORA » Thu Jul 12, 2012 2:12 pm

Hello!
Yes, I want to use 16x1 LCD.
I must admit I was a little confused by what files I should use :-)
I try to change the crystal (4.0MHz), and see if that helps.
Otherwise, I have the other original PCB layout, from this forum to try too, but are not sure which file to use to it.
I be linked to the download pagehttp://www.hamradio.in/downloads/index.php?d_op=viewdownload&cid=3&start=10, I pick PIC16F84A file, which of them is what I should use?
Is it "PIC Frequency counter - LCD Display"?

Thank you, regards Lars
SM3ORA
 
Posts: 15
Joined: Mon Jul 02, 2012 12:38 pm

Re: MAG Counter

Postby vu3cns » Thu Jul 12, 2012 3:05 pm

Hi,
If you are using PIC16F628 use hex file in this link, or PIC16F84 use this.
vu3cns
 
Posts: 289
Joined: Sat Jun 14, 2003 12:00 am
Location: Calicut

Re: MAG Counter

Postby mvs sarma » Thu Jul 12, 2012 9:45 pm

pcb is workable and tested that once. As you have F628A, use latest software from vu3cns the same that you tried once.
Regards
Sarma
mvs sarma
 
Posts: 638
Joined: Wed Oct 11, 2006 4:57 pm
Location: Hyderabad, India

Re: MAG Counter

Postby SM3ORA » Sun Jul 15, 2012 3:12 pm

Hello!
Following an investigation on the circuit board, I found that the ground was missing to the pin 5 of the PIC, and pin 7 to 10 on the LCD.
After I corrected the errors, changed the crystal, I tried again, still no difference. Voltage applied to pin 3 of LCD, is 582mV.
The values ​​of my capacitors are: C1, 2 = 22pF C3 = 220nF, C4 =10nF C5 = 220uF/10V, C6, 8.9 = none, C7 = 100nF, C10 = 220uF/10V.
The values ​​of my resistance: R1, 7 = 470ohm, R2 = 82ohm, R3 = 47k, R4 = 100ohm, R5, 6 = none, R 8, 9,10,11 = 4.7K.
R2 gets pretty hot, what wattage should it have?
I have access to a frequency meter and osciloscop, Can i measure if the PIC work with these?
Hoping for a solution, Lars
SM3ORA
 
Posts: 15
Joined: Mon Jul 02, 2012 12:38 pm

Re: MAG Counter

Postby mvs sarma » Sun Jul 15, 2012 10:34 pm

dear LARS,
initially , i feel sorry for the mistakes i committed in the artwork. In fact I had tested an earlier version of the same. i was trying to adjust the isolation to ground plane and this error crept in and i really missed it
i am compelting the artwork again and shall manage to send a copy .
mean time i myslef would be making the same dirty pcb and let us make it work with few wires straps covering missing tracks.
get back in 2 days.
the reisistor needs to be half a watt. the value can be adjusted to pass 8mA or so current
Regards
Sarma
mvs sarma
 
Posts: 638
Joined: Wed Oct 11, 2006 4:57 pm
Location: Hyderabad, India

Re: MAG Counter

Postby SM3ORA » Mon Jul 16, 2012 12:04 am

Hi Sarma!
No problem. I made some links to ground.
I wait and see. Meanwhile, I continue to troubleshoot the circuit.

Sincerely, Lars
SM3ORA
 
Posts: 15
Joined: Mon Jul 02, 2012 12:38 pm

Re: MAG Counter

Postby SM3ORA » Tue Jul 17, 2012 2:17 pm

I'm beginning to think that it goes wrong when I program the PIC circuit.
In last night I built the original circuit board of MAG counter, and it shows the same squares on the display, but it has no backlight.
PIC settings on the programmer(Willem Eprom PCB5.0C), is automatically set after what is written in PIC file being loaded ..?
Some pictures from my programmer......
Sincerely, Lars
Willem.JPG
File loaded...
Willem.JPG (88.1 KiB) Viewed 8221 times

Error PIC id.JPG
Error writing PIC id area....
Error PIC id.JPG (114.91 KiB) Viewed 8221 times
Attachments
Verified OK.JPG
Device verified OK...
Verified OK.JPG (113.75 KiB) Viewed 8221 times
SM3ORA
 
Posts: 15
Joined: Mon Jul 02, 2012 12:38 pm

Re: MAG Counter

Postby mvs sarma » Tue Jul 17, 2012 3:44 pm

the config word 0x3f62
should be MCLE ENABLED, HS CLOCK , CP OFF, PWRTE EANABLED, BOREN ENABLED.

YOUR SET UP SHOWS, CP EEPROM ENABLED, MCLR NOT ENABLED, ETC . MATCH THE PARAMANTERS AND TRY AGAIN
OTHERWISE YOU CAN MAKE ONE HOMEBREW, A SMALL EXTERNALLY POWERED PROGRAMMER ON COM port, design by DL4YHF google for that. you can breadboard it for the one off.

all the best
Regards
Sarma
mvs sarma
 
Posts: 638
Joined: Wed Oct 11, 2006 4:57 pm
Location: Hyderabad, India

Re: MAG Counter

Postby SM3ORA » Tue Jul 17, 2012 9:27 pm

Okay ...
As this then?
Hex file loaded.JPG
Hex file loaded.JPG (85.97 KiB) Viewed 8213 times
SM3ORA
 
Posts: 15
Joined: Mon Jul 02, 2012 12:38 pm

Re: MAG Counter

Postby mvs sarma » Tue Jul 17, 2012 9:40 pm

No please.
you r machine is behaving independently, it appears. it can take the config word and use it.
Regards
Sarma
mvs sarma
 
Posts: 638
Joined: Wed Oct 11, 2006 4:57 pm
Location: Hyderabad, India

Next

Return to Micro controllers

Who is online

Users browsing this forum: No registered users and 1 guest