Pages: [1]   Go Down
Author Topic: Schematic Check, please  (Read 1242 times)
0 Members and 1 Guest are viewing this topic.
Indiana
Offline Offline
Newbie
*
Karma: 0
Posts: 32
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello,

I am working on a schematic and humbly ask that anyone knowledgeable with schematics and/or Eagle to have a look and make suggestions before I work on the pcb layout.

The project is two arduinos with connectors on each (one also has a analog mux), one arduino sends serial to the other, the main arduino works with this data and sends to the computer.

So what I am really looking to have checked is my USB, FT232, and Arduino connections (not the connectors or mux).  I made some assumptions on parts that I could leave out from the duemilanove schematic (wall power, on board programming, ICSP).

Thanks a ton for anyone willing to take a look!

http://i44.tinypic.com/2pyzw3t.png

Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 1
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

How were you going to make it work with both a Mega TXD output and the FTDI TXD output connected together? I could see it working if you used a pair of diodes and a resistor (basically a diode-logic negative-logic OR gate) but unless you have some way to alternately enable either the FTDI chip or the other micro, I think you may have some problems.
Logged

Indiana
Offline Offline
Newbie
*
Karma: 0
Posts: 32
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
How were you going to make it work with both a Mega TXD output and the FTDI TXD output connected together?

Thanks; I have it working on a breadboard right now, but only because I never send any serial to Mega1 from the FTDI (only send serial from the other Mega2).  I mainly wanted this capability on the pcb for any problem solving - it (FTDI serial transmit) won't be connected if everything works a-o-k.
« Last Edit: May 18, 2009, 10:02:10 pm by markgtr813 » Logged

Indiana
Offline Offline
Newbie
*
Karma: 0
Posts: 32
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Any other suggestions, anyone???  Just trying to get smarter the easy way (not paying for faulty pcb protos!)

Thanks again.
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 362
Posts: 17305
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Just a cost savings idea. I belive it's possible to use just one crystal and wire the osc out of one AVR to the osc in to the other AVR. The AVR data sheet should have examples somewhere in document.

Good luck

Lefty
Logged

Indiana
Offline Offline
Newbie
*
Karma: 0
Posts: 32
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I belive it's possible to use just one crystal

Thanks for the idea... I've seen the 'Dual Core Arduino' share a crystal in parallel, but that seemed like a pretty bad idea to me.

(http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1205243372/0)

So I would hook the crystal up to xtal1 and xtal2 (like normal) on the master, and connect xtal2 master output to xtal1 slave input?
Logged

Indiana
Offline Offline
Newbie
*
Karma: 0
Posts: 32
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

...Or do I need to use the CLKO pin (Arduino digital pin 8 - PB0) and set a fuse bit?

Thanks
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 362
Posts: 17305
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
So I would hook the crystal up to xtal1 and xtal2 (like normal) on the master, and connect xtal2 master output to xtal1 slave input?

I think that is correct method, however I've never had the need to actually try it. Section 6 covers the clock options:

http://www.atmel.com/dyn/resources/prod_documents/doc2545.pdf

And the Atmel site may have simpler examples in their application documents. Not sure if the fuses have to be different for the second AVR or not. I know it can be done and have seen drawing showing such in the past somewhere, but might be better to test it on a breadboard first before committing to design. A crystal is not that expensive a component to worry about but the space savings might be worth it to you.

Lefty
Logged

Pages: [1]   Go Up
Jump to: