Closed NV4RE closed 2 years ago
If I understand correctly your setup must do the following:
If this is the case I'm afraid I have no experience setting up I2C for slave mode or any idea of how that would work. What I can tell you is I must do something similar at work and I plan to use UART for this purpose since it is much more flexible than i2c. If your SBC has a USB port you can buy a UART to ttl converter (commonly known as UART to USB converter) and have your linux machine interface on the corresponding /dev/ttyUSBx
file interface. After having this set up a protocol must be developed- It is my understanding something of the sort of UAVCAN/CYPHAL or similar (and MUCH simpler) could be used.
Hello, I'm recently trying tinygo, and quite happy from it, but I face some problem that I need to have i2c slave (server) but I did not find any document about it, so anyone could suggest me where to find the example or ducument about imprementing i2c slave on tinygo, if it dose not support please give me some advice how to workaround with that.
My use-case is I'm using
bluepill
as main interface controller to handle the gpio, and devices such as (DS3231, ili9341, battery volatage monitor, and ext-watchdog timer to reset main computer, dipswitchs and buttons), the reason I did not handle those in main machine because I need flexibility to change the main computing to other platform such as (RPi, OPi, nanopi) with out hardware limitation E.g. (Some Orange pi did not map the gpio to complatible with RPi standard)My hardware design contains 3 part
Writen in standard go
Writen in tinygo
board with RS-422
,board with multiple dry-contracts and relay
,board with Lora module
)Writen in tinygo
That is the reason why I need I2C slave (I need way to comunication to multiple slave)