Forum / Guestbook




Luberth Thu 20 Jun 2019 at 7:43:51
Arduino nano knight rider led pcf8574 I2c I/o expander 8 relais

-
Arduino nano knight rider led pcf8574 I2c I/o expander 8 relais pcb

relay test for arduino w1209 thermostat copy/clone
http://84.106.2.21:8888/forum/index.php?action=view&id=296

i2c only i/0 2 wires used on arduino
can control loads off relays or inputs
pcf8574 pcb less then a dollar



could have made the program different
but for demonstration
i think it is nice to do bitwise binair
thinking out loud   http://xor.pw/#   xor_calculator
decimal 255 xor 10 = 111110101 
decimal 10 = 11110101  normaal 10=00001010 pcf8574 pulls to ground 0 = on (confusing logic)
                 ^ ^
                 8 2
                 
Luberth Dijkman
Published on Jun 19, 2019
Childhood memories
howto molest a relais print
relay test for arduino w1209 thermostat copy/clone
http://84.106.2.21:8888/forum/index.php?action=view&id=296

i2c two wire easy only A4 A5 serial interface

4 euro voltage converter LM2596
2 euro arduino nano clone
4 euro 5vdc 8 optic to relay pcb
1 euro pcf8574 i/o expander (could connect more on same i2c bus)
you can chain put the pcb's very handy in series with the connectors Module-Daisy-Chained

hmmm i think below image is NOT correct table
am i the first who does this?
i have jumpers tested at A0=1 A1=0 A2=0 adres=21 below table says adres= 24
21 is the adres that i tested works with jumpers A0=1 A1=0 A2=0


hmmm i think above image is NOT correct table
am i the first who does this?
i have jumpers tested at A0=1 A1=0 A2=0 adres=21 above table says adres= 24
21 is the adres that i tested works with jumpers A0=1 A1=0 A2=0



you can chain put the pcb's very handy in series with the connectors Module-Daisy-Chained
// arduino ide c code used in the video // WARNING DO NOT POWER THE RELAIS FROM NANO 5VDC VOLTAGE REGULATOR // USE EXTERNAL 5VDC FOR RELAISPRINT // http://84.106.2.21:8888/forum/index.php?action=view&id=297 // example shows the byte binair written // 0 is ON pcf8574 pulls to // ground, mass, 0vdc, -vdc, 0, zero, min, -, or whatever people call it // NO / without pcf8574.h library used #include "Wire.h"; // address of PCF8574 IC #define PCF8574_ADDR (0x20) void setup() { Wire.begin(); } void loop() { while (1==1){ Wire.beginTransmission(PCF8574_ADDR); Wire.write(B01111111); Wire.endTransmission(); delay(75); Wire.beginTransmission(PCF8574_ADDR); Wire.write(B10111111); Wire.endTransmission(); delay(75); Wire.beginTransmission(PCF8574_ADDR); Wire.write(B11011111); Wire.endTransmission(); delay(75); Wire.beginTransmission(PCF8574_ADDR); Wire.write(B11101111); Wire.endTransmission(); delay(75); Wire.beginTransmission(PCF8574_ADDR); Wire.write(B11110111); Wire.endTransmission(); delay(75); Wire.beginTransmission(PCF8574_ADDR); Wire.write(B11111011); Wire.endTransmission(); delay(75); Wire.beginTransmission(PCF8574_ADDR); Wire.write(B11111101); Wire.endTransmission(); delay(75); Wire.beginTransmission(PCF8574_ADDR); Wire.write(B11111110); Wire.endTransmission(); delay(75); Wire.beginTransmission(PCF8574_ADDR); Wire.write(B11111101); Wire.endTransmission(); delay(75); Wire.beginTransmission(PCF8574_ADDR); Wire.write(B11111011); Wire.endTransmission(); delay(75); Wire.beginTransmission(PCF8574_ADDR); Wire.write(B11110111); Wire.endTransmission(); delay(75); Wire.beginTransmission(PCF8574_ADDR); Wire.write(B11101111); Wire.endTransmission(); delay(75); Wire.beginTransmission(PCF8574_ADDR); Wire.write(B11011111); Wire.endTransmission(); delay(75); Wire.beginTransmission(PCF8574_ADDR); Wire.write(B10111111); Wire.endTransmission(); delay(75); } } // http://84.106.2.21:8888/forum/index.php?action=view&id=297 // WARNING DO NOT POWER THE RELAIS FROM NANO 5VDC VOLTAGE REGULATOR // USE EXTERNAL 5VDC FOR RELAISPRINT
















Please Let me Sleep


End of Message, Thanks For Viewing! ☺
Tip: if your watching on your phone or tablet ⁝ add / save to homescreen and you get a nice icon its Free!
Tip: on your computer or laptop do not forget to bookmark this page its Free!
BookMark ShortCut Keys press ctrl+d on your keyboard




-

-

Reply to this Message


Name
Subject
Message

, <code> <b> <i> <u> .






POLL / VOTE
Did you like this Page id=297 ?

NO:         YES:




   


Design a Bit like ForumOne 4.0 WayBack 1999 ©
Always Read the Small print?!



http://forum.luberth.com - - http://www.luberth.com/forum/

NO COOKIES !?

thanks for your support
Thank You!




Co2 FootPrint WebServer



                         My Cheap Chinese Friend Ali     
Copyright Luberth Dijkman 2018 ... 2019




GoodBye Galaxy!