NO Relay not switching

Support for the The Peripherals I2C Control – PiCO – Interface

NO Relay not switching

Postby rbuelund » Thu Aug 21, 2014 8:52 pm

I now found out how to control i2c interface by issuing the commands i2cget and i2cset.
I would like to be able to control the NO relay - and tried this from command line
i2cset 0x6b 0x0b 0x00 - to turn off
i2cset 0x6b 0x0b 0x01 - to turn on

I can read that the value changes - but nothing happens to the relay - it stays on ????
rbuelund
 
Posts: 65
Joined: Thu Aug 14, 2014 8:32 pm

Re: NO Relay not switching

Postby Pimaster » Thu Aug 21, 2014 10:13 pm

Hi,

The proper usage is
sudo i2cset -y 1 0x6b 0x09 0x01 for ON
sudo i2cset -y 1 0x6b 0x09 0x00 for OFF

I'm checking and answer soon,

Warmest Regards
Pi Master
Warmest Regards
PiM
---
Designing with Mentor Graphics PADS - www.pads.com
Please read and follow the PiForum rules
http://www.forum.pimodules.com/viewtopic.php?f=13&t=196
---
Pimaster
Site Admin
 
Posts: 1523
Joined: Fri Sep 14, 2012 7:50 am

Re: NO Relay not switching

Postby Pimaster » Thu Aug 21, 2014 10:50 pm

Hi,

I have done a mistake in the address, the proper usage is (for model B)

sudo i2cset -y 1 0x6b 0x0b 0x01 for ON
sudo i2cset -y 1 0x6b 0x0b 0x00 for OFF

It is working well. Tested again on our lab.

Please check your jumper, if it is set in the proper position, should be on the Relay control by UPiS


Warmest regards
Pi Master
Warmest Regards
PiM
---
Designing with Mentor Graphics PADS - www.pads.com
Please read and follow the PiForum rules
http://www.forum.pimodules.com/viewtopic.php?f=13&t=196
---
Pimaster
Site Admin
 
Posts: 1523
Joined: Fri Sep 14, 2012 7:50 am

Re: NO Relay not switching

Postby rbuelund » Fri Aug 22, 2014 5:25 am

My dault - got confused about which is which and ofcourse it is the Upis controlling - changed the jumper and now it is working. Now I just need to get the execution of the command to work from php :-)
rbuelund
 
Posts: 65
Joined: Thu Aug 14, 2014 8:32 pm

NO Relay not switching

Postby Jamestrere » Mon Apr 17, 2017 3:12 pm

It looks like the motors are directly powered. They have inbuilt limit/control switches but nothing shown external that I can see.
So I would assume direct wiring with no relay.
Jamestrere
 
Posts: 2
Joined: Wed Mar 29, 2017 10:17 am
Location: Oman


Return to The Peripherals I2C Control Interface – PiCO

Who is online

Users browsing this forum: No registered users and 1 guest

cron