1

I am currently working on a wireless home automation system. The system is connected to a wireless network in the home via the ethernet cable connected the ethernet shield and router. Hence, I need more pins on the Arduino to connect the appliances to be controlled in the home.

Greenonline
3,1527 gold badges36 silver badges48 bronze badges
asked Aug 11, 2015 at 1:30

1 Answer 1

3

You can control a shift register with shiftOut or bit-banged SPI.

My page about SPI has a small library that does bit-banged SPI.

It is also possible to control a shift register using the same pins (MOSI/MISO/SCK) that the Ethernet interface uses, as long as you use a different SS (slave select) pin for your shift register. This may not be practical if the Ethernet card is active all the time. It is probably easier to do the bit-banged SPI or use shiftOut.

answered Aug 11, 2015 at 2:03
2
  • Yeah, if the Arduino has available pins to run a bit-banged SPI, it would likely be a bit safer overall. Commented Aug 11, 2015 at 3:11
  • Not all shift registers have an SS pin. But that doesn't matter as long as you don't latch the data sent to the Ethernet shield. Commented Aug 11, 2015 at 9:51

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.