Pages: [1]   Go Down
Author Topic: Problem with shift register  (Read 338 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 34
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi all. I have a problem with my shift registers (74hc 595)
The "Hello World" sketch is working fine. But if I want to upload the "one by one" sketch nothing hapens.
Sometimes the LEDs freeze.
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 597
Posts: 33301
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

So how have you wired it up?
Link to the code you have used?
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 34
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have wired it up like in this tutorial:
http://www.arduino.cc/en/Tutorial/ShiftOut

This one works:
http://arduino.cc/en/Tutorial/ShftOut11

This one not:
http://arduino.cc/en/Tutorial/ShftOut12
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 34
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Got irritated of this line:

 * 74HC595 shift register attached to pins 2, 3, and 4 of the Arduino,

Sorry!
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 601
Posts: 48543
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Got irritated of this line:
Why did that line irritate you? If you mean that the compiler didn't like it, you need to post the EXACT error message.
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 518
Posts: 26322
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

This is one big comment section
Code:
/*
  Shift Register Example
 for 74HC595 shift register

 This sketch turns reads serial input and uses it to set the pins
 of a 74HC595 shift register.

 Hardware:
 * 74HC595 shift register attached to pins 2, 3, and 4 of the Arduino,
 as detailed below.
 * LEDs attached to each of the outputs of the shift register

 Created 22 May 2009
 Created 23 Mar 2010
 by Tom Igoe

 */
If you are missing the start of the comment, the / * , then you may get odd errors.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

UK
Offline Offline
God Member
*****
Karma: 17
Posts: 568
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Maybe it's that the comments say connected to pins 2, 3 & 4 but the sketch actually uses 8, 11 & 12.
Logged

NE PA
Offline Offline
Full Member
***
Karma: 5
Posts: 156
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


The third sketch takes serial input and uses it to light the LEDs. Are you inputting anything into the serial console? If not it won't do much.
Logged


Pages: [1]   Go Up
Jump to: