Hi,
I finally got my new toy from china. I successfully flashed it with openwrt and despite my bad soldering skills I managed to remove resistors and attach wires to gpio pin 7 and 29. And it even seems to work.
Hovever I would like to connect i2c lcd which operates at 5v. I'm not sure if I get this right. Since i2c is open collector does this mean I can use 3.3v for the bus and separate 5v wire to power lcd (as far as i2c expander used in lcd understands 3.3v logic on the bus)?
And the second thing is I've read at this forum that gpios in this router are only 2.5v tolerant. Does it mean I need some level translation at router side? Or can I just connect bus to 3.3v using pullups and I will be fine?
I have just basic background in electronics so any help is appreciated.
EDIT:
After I did some research on i2c it seems to me I really need a level shifter.
Vc1 2.5V? ---------------- ------------ Vc2 5V
| | |
X | X
R | R
X | X
| | |
gpio-7 --------------[FET]------------------ expander
same for gpio-29
I would use something like this. Just not sure if this is good for the gpio pin. I watched the datasheet of ar9331 and there is not much information about gpios. Like what pull-up voltage should I use? How much curent can gpio handle when it's in low state. This limits mimal value of pull-ups I guess?
(Last edited by loblik on 1 Nov 2013, 01:16)