Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > General Electronics Chat


General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion?

Reply
 
Tools
Old 22nd April 2004, 12:59 AM   #1
Default ccd scanner programming

Hello people,

I'm programming a ccd scanner via ATMega16. I'm using the following code to transmit the signal from the chip to the scanner but i'm getting absolutely no response:

while (1){

putchar(0x1b);
putchar(0x54);
putchar(0x0d);
// this code should buzz the scanner but it's not buzzing
}


the scanner's datasheet is at http://www.allelectronics.com/spec/BCS-84.pdf

and the chip's datasheet is at http://www.atmel.com/dyn/resources/p...ts/doc2466.pdf

would anyone please have a look at the datasheets and tell me what it is i might be doing wrong...

I really appreciate the help!

Hani A.
__________________
i\'m actually a novice in the robotics field and would love to get help to lunch my projects..
hani_a is offline  
Old 22nd April 2004, 03:01 AM   #2
Default

Not enough information!

Did you properly initialize the USART of the Mega8? (Baud rate, data length, parity, number of stop bits). Does it match the selected scanner's settings? Is the USART even enabled?
jem is offline  
Old 22nd April 2004, 03:06 AM   #3
Default ccd scanner

yes, everything you mentioned is checked. i use an oscilloscope to check the signal entering the input of the scanner and it's exactly what it requires. that's why i'm clueless!

thanks for the reply
__________________
i\'m actually a novice in the robotics field and would love to get help to lunch my projects..
hani_a is offline  
Old 22nd April 2004, 04:22 AM   #4
Default Re: ccd scanner

Quote:
Originally Posted by hani_a
yes, everything you mentioned is checked. i use an oscilloscope to check the signal entering the input of the scanner and it's exactly what it requires. that's why i'm clueless!

thanks for the reply
When debugging this type of HW, I find a terminal program to be an invaluable aid. Here is one good one: http://bray.velenje.cx/avr/terminal.

You will need to use an RS232 interface chip (Maxim, or LT or a lot of others) to convert the PC's RS232 level to TTL level as required by the scanner. If you plan only to transmit from the PC to the scanner, you can get away with a simple NPN level shifter/inverter. That way you can definitely determine where the problem lies.

Jem
jem is offline  
Old 22nd April 2004, 08:58 PM   #5
Default good idea, but!

hi jem, i really appreciate the help... but the site you showed doesn't work, do u know of another one??

thanks again!
__________________
i\'m actually a novice in the robotics field and would love to get help to lunch my projects..
hani_a is offline  
Old 23rd April 2004, 02:45 AM   #6
Default Re: good idea, but!

Quote:
Originally Posted by hani_a
hi jem, i really appreciate the help... but the site you showed doesn't work, do u know of another one??

thanks again!
Yes it does. I believe in the original URL contained the extra period at the end! So try this one http://bray.velenje.cx/avr/terminal/


Jem
jem is offline  
Reply

Thread Tools
Display Modes




All times are GMT. The time now is 04:51 AM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker