How well breadboard work ?

Last post
17 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi.
I need to do prototyping for my project. I need to connect CKOUT pin from uC to an external shift register (74LS166). The uC itself is in a dev board and well running. The shift register is in breadboard.
So will it work well, because breadboard have stray capacitance and the uC will be clocked at 20Mhz.

Thanks

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Keep the lead(s) short.

Ross McKenzie ValuSoft Melbourne Australia

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

And be sure to connect the grounds from the development board and the breadboard together.

Welcome to the Forum.

JC

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

So, it means it can work.
Thanks
I will sure connect the ground, i have experience in forgetting the ground on my very first avr project.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

And
-run it at the same Vcc as the development board.
-bypass the IC's supply (Vcc & Gnd) with a 0.1uF monolithic capacitor, with the shortest possible leads(place diagonally over the top of the IC).

Charles Darwin, Lord Kelvin & Murphy are always lurking about!
Lee -.-
Riddle me this...How did the serpent move around before the fall?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

All good tips so far.
But you also need to prevent ringing. Do you have an oscilloscope, 100MHz bandwidth, and probes 10x ?
Beacause AVR's switch very fast, the problem is with the rise- and fall-times. Slewrate.
You need to add a resistor in the clock-line, as close as possible to dev board. 330 Ohm is a good starter value. Some pictures:
Without 330 Ohm: http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&p=946176#946176
With 330 Ohm: http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&p=946236#946236

The correct value for your setup: you need to hookup a scope.

It's unlikely that stray capacitance of the breadboard will cause a problem.

Why do you bring the 20MHz to the breadboard, rather than Sck ?
Btw, on Sck you need that resistor as well.

Dragon broken ? Or problems with the Parallel Port Programmer ? Scroll down on my projects-page http://www.aplomb.nl/TechStuff/TechStuff.html for tips

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

It depends on the kind of "breadboard" you use. If it is one of those with spring contacts in parallel rows and columns, you will have to contend with a LOT of extra pin-pin capacitance. 20MHz could be a challenge. With such boards, it is also very difficult, if not impossible, to keep leads short and, especially to have good grounds. As a result, even using a scope is hard because everything rings like a bell.

Jim

Jim Wagner Oregon Research Electronics, Consulting Div. Tangent, OR, USA There are some answers that have no questions.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

ka7ehk wrote:
It depends on the kind of "breadboard" you use. If it is one of those with spring contacts in parallel rows and columns, ...
Bob Pease referred to those breadboards as "slabs of trouble". I have to agree.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Shift registers on a breadboard with no problems:

16Mhz Crystal with AVR on a breadboard with no problems:

YMMV

Smiley

FREE TUTORIAL: 'Quick Start Guide for Using the WinAVR C Compiler with ATMEL's AVR Butterfly' AVAILABLE AT: http://www.smileymicros.com

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I do lots of projects and tests on breadboards.

That said, I've never routed the 16 MHz (?) clock signal across boards. SPI, I2C, USART, etc., but these are all at a significantly lower freq than the micro's clock.

This was a GPS project, (ZBasic, (AVR), micro), GPS, Bluetooth, 3-Axis Accel. This version has a string of external memory chips, but the real project units ended up with an MMC card.

JC

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Well, it seem problematic. I can use lab's oscilospoce, but it is limited to a few Mhz. It seem i have to make it on PCB.
Thanks everyone.

edit:thanks smilemicros and DoJc for the pic. Probably it won't hurt trying on breadboard

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yikes. Remind me to not uploaad any of my ugly breadboard monstrosities.

Imagecraft compiler user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

nuhamind2 wrote:
It seem i have to make it on PCB.
Not necessarily. Consider:
BusBoard - double sided = PadBoard, SMTBoard, SMT Pads.
Vectorbord - used a 2-sided version of this with wire wrap for one prototype (MPU, external clock oscillator, external static RAM, external UART).
Vero Technologies - Square Pad Board with Colander Ground Plane
Progressive Wiring Techniques by ChaN.
i.o.w., likely will need a ground plane.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Breadboards often get the blame. But actual measuring the capacitance between two adjacent contact-strips shows it's not that bad: 1.6pF. The powerstrips are much longer: 5x and give 10.5pF
Measurements done with an aluminium plate under the breadboard.
Without the plate, values are 2.5pF and 10pF respectively.

Attachment(s): 

Dragon broken ? Or problems with the Parallel Port Programmer ? Scroll down on my projects-page http://www.aplomb.nl/TechStuff/TechStuff.html for tips

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I do almost all early prototyping with breadboards.
Very rare that the breadboard is to blame for anything not working.
Far more often due to my sloppiness with wires.
Sometimes a wire that seem to be properly connected is not.
You can detect this by measuring the voltage drop.
When I want real stable connections I solder wires to gold plated male header pins.

The highest speed I've had running across the breadboard is SPI clock at 8MHz for an LCD display.
Appx 5cm wire voltage divided to 3V3 crossing and parallel to other signal wires.
Never seen any issues.
But 20MHz is more than twice that speed.
My guess is that you will have no problem (if the wires are properly connected and short of course).

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The proof of the pudding:
ATtiny2313 with 20 MHz crystal, CKOUT enabled.

2x 200mm breadboardwire.
No resistor in series: overshoot to 6.8V, undershoot -1.6V. Not liked by the 74LS166 shiftregister.
Adding 150 Ohm: a nice 20MHz signal, no overshoots.

With the 330 Ohm I mentioned before: a bit too much damping, but the 74LS166 would accept it as a clock.

Attachment(s): 

Dragon broken ? Or problems with the Parallel Port Programmer ? Scroll down on my projects-page http://www.aplomb.nl/TechStuff/TechStuff.html for tips

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

One difference is that Plons has taken appropriately extreme care in both what is on the board and the measurement. He has shown what is possible. BUT, you have to do stuff RIGHT in order to achieve that (as he shows in the second picture, above).

Jim

Jim Wagner Oregon Research Electronics, Consulting Div. Tangent, OR, USA There are some answers that have no questions.