Go Down

Topic: simple shift registor problem drivng me bongers! (Read 1 time) previous topic - next topic

The_Doctor

everything wired up right.
code seems to work. I put in some serial monitor stuff and its cycling through correctly(reading through array and what is suppose to be in each cell is there)

Now just blinks all on then all off....

Does anybody have problems with these "solderless" breadboards using 22gauge hookup wire??

The_Doctor

okay  I've rewritten the code using shiftout() and guess what it works!
Now I'll being going back to SPI and try it again. If it acts screwy again then it must be something to do with the internal arduino chip hardware implemention...

CrossRoads

Quote

If it acts screwy again then it must be something to do with the internal arduino chip hardware implemention...

Doubtful - it's usually operator error.

Ran into that just today - I inherited some code (a revision of an example I had supplied) for SPI.transfers to four uniqiue shift registers.
Tweaked a part to move slave_select from one pin to another.
Took me quite a while to realize that original writer had used  #s in void setup for pinMode assignments, and also had used #s again elsewhere in void setup to turn on the internal pullups.
Once I changed all the #s to be the signal name I had assigned to the pin, things started playing nice,
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.

The_Doctor

moved the wiring back on the uno for SPI reloaded the scketch and now its working... :)   Its now time to play with the code while I'm waiting for a shipment of parts to build the  more permenent boards.....

CrossRoads

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.

Go Up