Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I2C io interface
#12
Hi Dan,

After some time struggling with multiple template pages I had only limited success so for now the tooling is on the same page. Well, the word tooling is a bit overdone. It only can scan the i2c bus for devices and it can send a byte to an i2c address for easy testing the hardware.

The basic version of the plugin works. I have tested it with 2 semi homemade modules but more testing has to be done. Although configurable, the pcf8575 (16 bit module), is not implemented yet. In the code I have chosen to first build a list of bytes, one byte for every 8 stations and once completed send the bytes to the modules. So implementing the 16 bit module shouldn't be too difficult from here. I already did some basic test with sending 16 bits to a module using bus.write_byte_data but I've seen a little different behavior on the i2c lines than using bus.write_byte for sending 8 bits. For that I have to hook-up the scope and see what's going on. Also I have to order some more 8 and 16 bit modules to simulate larger setups.

The power consumption is fine when using 5v from the Pi. It should be able to support 64 or even 128 optocouplers. For safety my setup uses a level-shifter to connect the 3.3v data lines from the Pi to the 5v i2c modules. Although it is advisable to do reading the datasheet the pcf857x pulls SDA low when sending data back to the Pi so it should be safe to connect the module(s) directly to the Pi. However the datasheet also tells that a high signal must be at least 0.7xVcc, so 3,5v. Since the Pi is 3.3v it might not drive the maximum number of boards when using a bit long i2c data lines. When I have more boards I will do some more testing on this.

During September I'm out of the country and have limited online time but will try to spend some time on documentation. Hopefully in October I can have a first more or less stable version of the plugin available for a larger public (if someone is interested anyway). By that time may be you can have a look at the code. Since I'm not a programmer by profession I'm most likely to have twice the amount of code you would have made.  Tongue

So, a bit of a long story but since I'm away for some time after next week I would give you this update.

Gerard
Reply


Messages In This Thread
I2C io interface - by astrogerard - 2021 Aug 12, 01:54 PM
RE: I2C io interface - by dan - 2021 Aug 12, 07:56 PM
RE: I2C io interface - by astrogerard - 2021 Aug 13, 09:27 AM
RE: I2C io interface - by dan - 2021 Aug 13, 01:21 PM
RE: I2C io interface - by astrogerard - 2021 Aug 14, 04:26 PM
RE: I2C io interface - by dan - 2021 Aug 14, 05:02 PM
RE: I2C io interface - by astrogerard - 2021 Aug 14, 05:45 PM
RE: I2C io interface - by dan - 2021 Aug 18, 07:34 PM
RE: I2C io interface - by astrogerard - 2021 Aug 19, 09:29 AM
RE: I2C io interface - by astrogerard - 2021 Aug 23, 11:27 AM
RE: I2C io interface - by dan - 2021 Aug 23, 01:26 PM
RE: I2C io interface - by astrogerard - 2021 Aug 24, 08:58 PM
RE: I2C io interface - by astrogerard - 2021 Aug 26, 03:48 PM
RE: I2C io interface - by dan - 2021 Aug 26, 06:33 PM
RE: I2C io interface - by astrogerard - 2021 Aug 26, 07:10 PM
RE: I2C io interface - by astrogerard - 2021 Sep 16, 11:11 PM
RE: I2C io interface - by dan - 2021 Sep 19, 07:52 PM
RE: I2C io interface - by astrogerard - 2021 Sep 26, 10:13 PM
RE: I2C io interface - by astrogerard - 2021 Oct 18, 08:35 PM
RE: I2C io interface - by dan - 2021 Oct 19, 02:21 PM
RE: I2C io interface - by dan - 2021 Oct 19, 04:51 PM
RE: I2C io interface - by astrogerard - 2021 Oct 19, 08:40 PM
RE: I2C io interface - by litronas - 2022 Jan 10, 03:04 PM
RE: I2C io interface - by astrogerard - 2022 Jan 10, 04:45 PM
RE: I2C io interface - by litronas - 2022 Jan 10, 08:35 PM
RE: I2C io interface - by astrogerard - 2022 Jan 11, 03:17 PM
RE: I2C io interface - by litronas - 2022 Jan 15, 08:54 PM
RE: I2C io interface - by astrogerard - 2022 Jan 17, 04:30 PM
RE: I2C io interface - by litronas - 2022 Jan 17, 08:35 PM
RE: I2C io interface - by astrogerard - 2022 Jan 17, 08:51 PM
RE: I2C io interface - by dan - 2022 Jan 17, 09:27 PM
RE: I2C io interface - by astrogerard - 2022 Jan 17, 09:50 PM
RE: I2C io interface - by dan - 2022 Jan 18, 03:11 PM
RE: I2C io interface - by astrogerard - 2022 Jan 18, 03:40 PM
RE: I2C io interface - by litronas - 2022 Jan 18, 07:39 PM
RE: I2C io interface - by litronas - 2022 Jan 19, 08:03 PM
RE: I2C io interface - by astrogerard - 2022 Jan 20, 12:49 PM
RE: I2C io interface - by astrogerard - 2022 Jan 20, 03:11 PM
RE: I2C io interface - by astrogerard - 2022 Jan 20, 05:32 PM
RE: I2C io interface - by litronas - 2022 Jan 21, 03:11 PM
RE: I2C io interface - by litronas - 2022 Jan 20, 09:35 PM
RE: I2C io interface - by astrogerard - 2022 Jan 20, 10:05 PM
RE: I2C io interface - by litronas - 2022 Jan 21, 09:57 AM
RE: I2C io interface - by astrogerard - 2022 Jan 21, 07:50 PM
RE: I2C io interface - by litronas - 2022 Jan 24, 09:40 PM
RE: I2C io interface - by astrogerard - 2022 Jan 25, 03:00 PM
RE: I2C io interface - by dan - 2022 Jan 25, 03:43 PM
RE: I2C io interface - by astrogerard - 2022 Jan 25, 04:38 PM
RE: I2C io interface - by litronas - 2022 Mar 18, 04:21 PM

Forum Jump:


Users browsing this thread: 22 Guest(s)