Scanalogic

Discuss Ikalogic's featured articles, tutorials and projects

Moderator: ikalogic

Re: Scanalogic

Postby ikalogic on Sat Jun 13, 2009 8:57 am

fudyne wrote:how code or al goritma this project.....
in this project only found .hex fireware....



search the pages of this forum, the code is provided many times, by me and others that modified it!
We are born naked, wet and hungry. Then things get worse.
User avatar
ikalogic
Site Admin
 
Posts: 1360
Joined: Wed Jan 02, 2008 2:00 pm
Location: Limoges, France

Re: Scanalogic

Postby Pantomas on Sat Jun 13, 2009 2:00 pm

I have built scanlogic according to the specified pattern with a ATMEGA16 16PU quartz and 16MHz. I use an external power supply (pin 4 - off). Unfortunately I can not run it and every time I have a message like the attached picture :cry: :oops: . I tried to swap pins 2 and 3 in the plug dsub9 and it is always the same. The processor is working (I think) because the LED is lit. I tried it on another computer. I'm using Windows XP Pro SP3. This may fuse bits? I set ('0') CKOPT, BOOTSZ1, BOOTSZ0, SUT1, SUT0 :?:

scanlogic.JPG
You have to register (FREE) to be able to download files from Ikalogic.
Pantomas
 
Posts: 4
Joined: Mon May 25, 2009 9:21 pm

Re: Scanalogic

Postby megaboy on Sat Jun 13, 2009 2:42 pm

if the microcontroller is working the problem may be in the 7400 connection
please double check it and never give up , it'll work :|
megaboy
 
Posts: 19
Joined: Fri Dec 05, 2008 5:58 pm

Re: Scanalogic

Postby Pantomas on Sat Jun 13, 2009 8:00 pm

After the problem :D . I had micro short circuit on the pcb beetwin wires :roll: pin 1 and pin 7 of 7400. Just all is OK! Thnx to Megaboy :wink:
Pantomas
 
Posts: 4
Joined: Mon May 25, 2009 9:21 pm

Re: Scanalogic

Postby Ragnol on Sun Jun 14, 2009 3:38 pm

Hi all. First i am sorry for my english. I built one with mega8 and have problem with software. Runs ok. Comunications OK. But when i read all samples and use cursors the some error with it. The measure freq. is not right. The delta is 14.78ms. Thi right freq. for 14.78 is 67.57Hz. But the Scanalogic print 101.4Hz. I use 50 kHz sampilg rate. On another sampling rate the freq. is right.



Thanks for answer. Ragnol
You have to register (FREE) to be able to download files from Ikalogic.
Ragnol
 
Posts: 3
Joined: Sun Jun 14, 2009 2:06 pm

Re: Scanalogic

Postby megaboy on Sun Jun 14, 2009 9:21 pm

which frequency you are working at ?
in the Hardware configuration did you put the right value of the frequency that you are using ?
in the sampling rate tab , what the sampling rate did you enter?
megaboy
 
Posts: 19
Joined: Fri Dec 05, 2008 5:58 pm

Re: Scanalogic

Postby Ragnol on Sun Jun 14, 2009 9:38 pm

megaboy wrote:which frequency you are working at ?
in the Hardware configuration did you put the right value of the frequency that you are using ?
in the sampling rate tab , what the sampling rate did you enter?



Crystal freq. is 8Mhzm Yes I have right value in software. Because in another sample rate as 50kHz the frequency is true. See the picture. Measure delta is 14.78ms. This is 67,57Hz but software shown more then 100Hz. Not problem with measuring, setings , but only in math. Delta is true. Freq. of measure signal isn´t .
Ragnol
 
Posts: 3
Joined: Sun Jun 14, 2009 2:06 pm

Re: Scanalogic

Postby megaboy on Sun Jun 14, 2009 9:46 pm

The software is modifying by ikalogic now , so if if you have any notes or suggestion please post it here to add/modify it in the future. :|
megaboy
 
Posts: 19
Joined: Fri Dec 05, 2008 5:58 pm

Re: Scanalogic

Postby Ragnol on Tue Jun 16, 2009 8:10 pm

Today, I built one with ATmega8 on PCB with FT232RL.

Photos :

http://vancs.sweb.cz/log2/P1010216.JPG
http://vancs.sweb.cz/log2/P1010217.JPG
http://vancs.sweb.cz/log2/P1010220.JPG
http://vancs.sweb.cz/log2/P1010222.JPG
http://vancs.sweb.cz/log2/P1010223.JPG

PCB in Eagle 5.4.0

Thanks a lot for ikalogic ! Nice work ! And thanks for cyn too !
You have to register (FREE) to be able to download files from Ikalogic.
Ragnol
 
Posts: 3
Joined: Sun Jun 14, 2009 2:06 pm

Re: Scanalogic

Postby megaboy on Wed Jun 17, 2009 3:39 pm

Nice job Ragnol !
megaboy
 
Posts: 19
Joined: Fri Dec 05, 2008 5:58 pm

Scanalogic

Postby jamesjam on Tue Jun 23, 2009 11:34 pm

1. i cannot download a file for scanalogic
jamesjam
 
Posts: 1
Joined: Tue Jun 23, 2009 10:34 pm

Re: Scanalogic

Postby Pantomas on Wed Jun 24, 2009 11:22 pm

I thought that I already have end of problems with the interface , unfortunately not ... :evil:
I decided to check whether scanlogic is working properly. I wanted to see what comparator has on output so I connected probe to an external CAN bus and Scanlogic nothing sniffed, although the signal LED flash (on end off comparator). I thought that something is wrong with Scanlogic. So I wrote a simple code for ATmega8:
#define F_CPU 1000000
#include <avr/io.h>
#include <avr/delay.h>

int main ()
{
DDRC=0x01;
while (1)
{
PORTC=0x01;
_delay_us(30);
PORTC=0x00;
_delay_us(10);
}
}


Unfortunately Scanlogic not show what it should :cry: . You can see:
fig1.jpg
In addition, I noticed strange signals on all lines at the end of samples (fig2)
fig2.jpg
These signals always occur even when lines are not connected (fig3)
fig3.jpg

I don't know where is the mistake :roll:
I checked 10 times the combination of elements, replaced quartz, 7400. I tried to hex 8, 12,16MHz with other relevant oscilators and nothing has changed. I changed uC to second one Atmega16 16PU and... that same. I think that the oscillator & 7400 are working properly because it is communication between the uC and the RS232 and the program works. I do not know what to do. Maybe the wrong setting of FUSE BITS :?: I set CKOPT, BOOTSZ0, BOOTSZ1, SPIEN, SUT1, SUT0, CKSEL0. I tryed other fuse bits config too but without possitive results :(
I have a question about the probe-line. Why are they all "pull-up"?
PAntomas
You have to register (FREE) to be able to download files from Ikalogic.
Pantomas
 
Posts: 4
Joined: Mon May 25, 2009 9:21 pm

Re: Scanalogic

Postby megaboy on Thu Jun 25, 2009 1:45 pm

which micricontroller you are using ?
are you using the same firmware with the same frequency?
megaboy
 
Posts: 19
Joined: Fri Dec 05, 2008 5:58 pm

Re: Scanalogic

Postby Pantomas on Thu Jun 25, 2009 1:50 pm

I used Atmega16 16PU with 16MHz crystall & hex for it, 12MHz crystall & hex for it and 8 MHz & hex for it ... so I'm using the same firmware with the same frequency.
Pantomas
 
Posts: 4
Joined: Mon May 25, 2009 9:21 pm

D2 diode?

Postby erdeszbacsi on Thu Jun 25, 2009 8:38 pm

Hi!
Can anyone tell me please, where is D2 on the schematic? I cant see:S
Thanks!
erdeszbacsi
 
Posts: 1
Joined: Sat Jun 13, 2009 11:26 pm

PreviousNext

Return to Ikalogic content related

Who is online

Users browsing this forum: No registered users and 1 guest