Comments (14)
Will retry this evening with the 2 10K resistors.
from i2c-tiny-usb.
Will have to wait one more day, today is birthday party, so that will be for tomorrow...
from i2c-tiny-usb.
Should the Digispark adapter appear in the chain when I do an i2cdetect?
from i2c-tiny-usb.
I just flashed a Digispark...
$ lsusb | fgrep i2c
Bus 002 Device 010: ID 0403:c631 Future Technology Devices International, Ltd i2c-tiny-usb interface
$ i2cdetect -l
No output. Probably the i2c-dev
module is missing...
$ sudo modprobe i2c-dev
$ i2cdetect -l | fgrep tiny
i2c-10 unknown i2c-tiny-usb at bus 002 device 010 N/A
That's how it looks on my Debian9 notebook. I cannot test more because finding some i2c chips in my electronic sediments would take longer than I got time atm...
from i2c-tiny-usb.
Will try loading that module this evening...
from i2c-tiny-usb.
Indeed, you need to approach this step-by-step.
First as outlined by @zoobab make sure the digispark is detected by the linux box. E.g. the lsusb will tell you that.
Second make sure the i2c subsystem of the linux kernel has access to it. This may indeed require modprobing i2c-dev
Now your i2c-tiny-usb is working and everything that happens from here on is not i2c-tiny-usb specific but e.g. is the same with other i2c ports like e.g. the one on the raspberry pi.
Third make sure the pcf8574 is working on i2c. If the i2cdetect -l | fgrep tiny
e.g gave i2c-10 as the bus id then do a
i2cdetect -y 10
This will give you a list of all connected i2c devices and your pcf8574 should show up.
Finally you need to load (modprobe) the pcf8574 driver.
Instructions like http://www.gtkdb.de/index_36_2914.html will help you once the i2c-tiny-usb is properly detected and the i2c bus can be scanned for devices.
from i2c-tiny-usb.
This one may also be helpful https://ubuntuforums.org/showthread.php?t=1181192&p=8343003#post8343003
On a recent linux the kernel module for the pcf8574 is named gpio-pcf857x and you'll load it with modprobe gpio-pcf857x
from i2c-tiny-usb.
When I do an i2cdetect -y 8
, the dongle disseppears from the USB bus:
# i2cdetect -l
i2c-3 i2c i915 gmbus dpc I2C adapter
i2c-1 i2c i915 gmbus vga I2C adapter
i2c-8 i2c i2c-tiny-usb at bus 001 device 038 I2C adapter
i2c-6 i2c DPDDC-B I2C adapter
i2c-4 i2c i915 gmbus dpb I2C adapter
i2c-2 i2c i915 gmbus panel I2C adapter
i2c-0 i2c i915 gmbus ssc I2C adapter
i2c-7 smbus SMBus I801 adapter at efa0 SMBus adapter
i2c-5 i2c i915 gmbus dpd I2C adapter
sabayon /dev # i2cdetect -y 8
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
sabayon /dev # lsusb
Bus 001 Device 004: ID 2232:1024 Silicon Motion
Bus 001 Device 003: ID 8087:07da Intel Corp.
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Maybe the firmware is crashing?
from i2c-tiny-usb.
You are missing the pullups as stated in the readme.
from i2c-tiny-usb.
Any progress?
from i2c-tiny-usb.
I found this nice howto for the MCP23017:
http://elektranox.org/2017/05/0018-collabora/
from i2c-tiny-usb.
Is that patch applied from Sebastian Reichel?
Is the current driver stable?
Is the "end of the story" a Happy Ending ? :D
from i2c-tiny-usb.
The current driver is in the main kernel. You just need to check their if the patches you are interested in have been submitted and accepted there. Imho they are included.
from i2c-tiny-usb.
I could not check, that's why I've asked...
Imho they are included.
Than it's OK :-)
from i2c-tiny-usb.
Related Issues (16)
- README.md / Henning Pauls i2c-tiny-usb HOT 1
- /dev/i2c-* disappears after one access HOT 1
- Writing a device tree overlay for a i2c device attached to i2c-tiny-usb HOT 1
- "Failed to read functionality" after program HOT 1
- Tiny-USB hangs on host reboot HOT 23
- Multiple digispark USB HOT 12
- Installing with Ardruino IDE?
- Atmega8 firmware variant doesn't work
- Will I2C-Tiny-USB work with LilyPads based on the ATTiny85 HOT 1
- Driver hangs on i2cdetect if nothing connected (digispark) HOT 2
- Adafruit Trinket M0 supported? HOT 3
- submodule update
- No precompiled binaries present HOT 4
- USB_CFG_LONG_TRANSFERS?
- Read errors with large size data HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from i2c-tiny-usb.