Actually i need a chip with high power to command 32 solenoid valves of 12 VDC each 16 is in a block of 16 relay module LOW LEVEL TRIGGER by Arduino UNO , so i need more pins . And i read about TPIC6B595 SIPO, is it a better and good choice for this project or not , and what can i do about the code i'm not that skilful can someone help me guys plzz ??.
note: when testing with Arduino Uno, 74HC595 and 8 LEDs it was working fine as the code, but when i change the test from LEDs to 16 relay Module LOW LEVEL TRIGGER , the 16 relay module was working in a different way than the code It self maybe because the 74HC595 is for LOW Voltage and i think its because of that , what do you think guys ?
you will find a picture of the schematic, i used the same code and schematic with the 16 relay module without the resistors of course
Thanks
TOPIC SPLIT
PLEASE DO NOT HIJACK / NECRO POST !
Could you take a few moments to Learn How To Use The Forum.
Other general help and troubleshooting advice can be found here.
It will help you get the best out of the forum in the future.
I have noticed other moderators have also had to deal with you so please take the next 24 hours to read the links provided.
Bob.
TPIC6B595 is good if you need up to 150mA of sink current (low output).
If you need more than that, I offer a 32 N-channnel MOSFET board that will sink an amp or more per output.
You turn on outputs by shifting data in 4 74H595. A 1 shifted on turns on a Low output.
Coding is easy:
digitalWrite (ssPin, LOW);
SPI.transfer (bank1);
SPI.transfer (bank2);
SPI.transfer (bank3);
SPI.transfer (bank4);
digitalWrite (ssPin, HIGH); // outputs update on this rising edge
http://www.crossroadsfencing.com/BobuinoRev17/
I also offer board with up to 12 TPIC6B595 shift registers if 150mA is sufficient
slouma123:
And i read about TPIC6B595 SIPO, is it a better and good choice for this project or not , and what can i do about the code
It depends on your solenoid valves. Please post a link to the spec. If the current is low enough, these chips can drive your solenoids directly, no relays needed. For the code, these chips can use the same code as 74hc595.
slouma123:
note: when testing with Arduino Uno, 74HC595 and 8 LEDs it was working fine as the code, but when i change the test from LEDs to 16 relay Module LOW LEVEL TRIGGER , the 16 relay module was working in a different way than the code It self maybe because the 74HC595 is for LOW Voltage and i think its because of that , what do you think guys ?
Your leds are wired so that a HIGH (=1) output from the chip turns the led on and a LOW (=0) turns the led off. But your relays are LOW LEVEL TRIGGER, so they are turned on by a LOW output output and off by HIGH. To fix this, you can "invert" the data your code sends to the chip. If you post your code according to the forum guide, we can advise how to make that change.
I think the output logic inverted when you changed to relays. Check and see, I think the relay board is active low and your frizzy thing shows LEDs needing active high. You can change this in your software. Schematics are much easier to follow. You should show your schematic with the power connections and all the grounds connected together.
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.