Pages: [1]   Go Down
Author Topic: using the 74HC165 shift-in's  (Read 1634 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hey there,

im using Sparkfun's 74HC165 shift-in breakouts:

https://www.sparkfun.com/products/11512

I've loaded the example they use and set up my circuit the right way (i think) with resistors out of the A-H outs going to GND and switches out of the A-H outs to 5v...but when i press the switches (or switch them on) the code doesn't read a change....any help?

Logged

SE USA
Offline Offline
Faraday Member
**
Karma: 41
Posts: 3783
@ssh0le
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

1) this is a great example of why I HATE sparkfun, they burned you for 4$ on a part you could have bought from a real electronics supplier for 27 cents

http://www.mouser.com/ProductDetail/Texas-Instruments/SN74HC165N/?qs=sGAEpiMZZMtYFXwiBRPs0y41PV%2fSoI%2fL

to your problem, when you wire the outputs to ground are you using resistors? if not your crowbaring your power supply and it probably dips or shuts off ... you want something like

in ----|--switch-- +5
          1k
          ground
« Last Edit: May 04, 2013, 02:20:26 am by Osgeld » Logged


Valencia, Spain
Online Online
Faraday Member
**
Karma: 144
Posts: 5337
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

1) this is a great example of why I HATE sparkfun, they burned you for 4$ on a part you could have bought from a real electronics supplier for 27 cents

Plus they put it on a PCB. I'd like to see you pay the wages of the PCB designer, pay for the office he sits in, get it manufactured in small quantities, stock it, it and sell it at a profit for much less than that.
Logged

No, I don't answer questions sent in private messages (but I do accept thank-you notes...)

Netherlands
Online Online
God Member
*****
Karma: 7
Posts: 642
A naughty mind is a joy forever.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You have read the part "Note: The SER_IN and SER_OUT labels are swapped." on Sparkfuns site and changed your project accordingly ?
Logged

SE USA
Offline Offline
Faraday Member
**
Karma: 41
Posts: 3783
@ssh0le
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

1) this is a great example of why I HATE sparkfun, they burned you for 4$ on a part you could have bought from a real electronics supplier for 27 cents

Plus they put it on a PCB. I'd like to see you pay the wages of the PCB designer, pay for the office he sits in, get it manufactured in small quantities, stock it, it and sell it at a profit for much less than that.


the part does not require a PCB as its commonly available in DIP packaging
Logged


Offline Offline
Sr. Member
****
Karma: 8
Posts: 252
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

1) this is a great example of why I HATE sparkfun, they burned you for 4$ on a part you could have bought from a real electronics supplier for 27 cents

Plus they put it on a PCB. I'd like to see you pay the wages of the PCB designer, pay for the office he sits in, get it manufactured in small quantities, stock it, it and sell it at a profit for much less than that.


the part does not require a PCB as its commonly available in DIP packaging

Well, but you paying extra for a ready to solder some wires and use chip. No need of a breadboard.

Now, when you paying for something, and they sell you something that says "Note: The SER_IN and SER_OUT labels are swapped." then yes, they should took that off the site.
Logged

My 3x3x3 Led Cube

[url=http://arduino.cc/forum/index.php/topic,1642

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

hey guys,

thanks for the help. i am using resistors to ground and its still not working.

when they say "The SER_IN and SER_OUT labels are swapped" what do they mean?

i tried going out the arduino datapin to SER_OUT rather than SER_IN but that didn't work.
Logged

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

ok so i have an update....i was trying to daisy-chain 3 74HC165's and it wasn't working (and i was changing the one bit of the code from int to long where is says i have too)....but why isn't it working with 3 or more?

also the first chip seems to be reading input 8-16, where as the second chip is input 0-7....which is a bit weird....not actually a problem for me because my project doesn't really require them to be in any specific order just for them to work but i would like to know whats going on...
Logged

Offline Offline
Sr. Member
****
Karma: 8
Posts: 252
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If you making 2 work, I think it should work with 3 also.

I'm not sure why the 8 to 16 or the 0 to 7

On the ShiftRegisters (for outputs) you can set something like "Less Significant First" or "More Significant First" can this have a similar configuration?

Or probably, what you think is the first, is really the 2nd  smiley dunno.
Logged

My 3x3x3 Led Cube

[url=http://arduino.cc/forum/index.php/topic,1642

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

still wont work if i want to daisy chain more than 2....

anybody got any more ideas?
Logged

Pages: [1]   Go Up
Jump to: