is there any what to connect Arduino to PI ? not by USB
only with 2 or 3 wires(Tx,RX,GND)?
this is the logic of my question :
I need to read my INA219 sensor , while it connect to a computer that works on 24VDC 300mA(MAX).
no metter what I did - couldn't make it work on PI(try to use 3.3K\4.7 pullups , with 3.3V\5V ,no pullups at all - in all of them stop working after a few hours , couldn't see the the INA219 in
Code: Select all
i2cdetect -y 1
when I connect it to Arduino it works like a charm for days (same wires,same load , same voltage ,same everything)
so I thought maybe I can work with the Arduino read that data , and then send it to the PI read it in my Python code (which then send me the information using the internet) .
I know its very long and complicated way to do this - but this seems like my only option..
in order to save cost I'm using Arduino Pro Mini so I don't have usb connectror.
so is there a way to communicate between Arduino and PI using serial ?(I'm guessing I will need to use RS232-TTL adapter?)
*** if someone can help with a solution to the i2c INA219 on pi - it will be great!