Search found 6 matches

by crowhill67
Fri Oct 09, 2020 6:14 pm
Forum: ESP32 boards
Topic: newbie issue with i2c
Replies: 10
Views: 4730

Re: newbie issue with i2c

Well wadda you know, it was either the cables or the breadboard. I attached some dupont cables directly to the pins on the ESP82 and the MPU6050, and hey presto!

I still want that logic analyzer from santa though.... :D

Thank you everyone for chipping in.
dave.
by crowhill67
Fri Oct 09, 2020 3:50 pm
Forum: ESP32 boards
Topic: newbie issue with i2c
Replies: 10
Views: 4730

Re: newbie issue with i2c

For problems like this a simple logic analyzer works well, which are sold for about 12€ e.g. at Amazon, https://www.amazon.com/-/de/dp/B07K6HXDH1/ref=sr_1_5?__mk_de_DE=%C3%85M%C3%85%C5%BD%C3%95%C3%91&crid=5AP6LWFI6EFJ&dchild=1&keywords=logic+analyzer&qid=1602185238&sprefix=logic+%2Caps%2C237&sr=8-5...
by crowhill67
Fri Oct 09, 2020 9:20 am
Forum: ESP32 boards
Topic: newbie issue with i2c
Replies: 10
Views: 4730

Re: newbie issue with i2c

the wires are bout 5cm (2 inches), I will try a lower frequequency.

Thanks
by crowhill67
Thu Oct 08, 2020 7:15 pm
Forum: ESP32 boards
Topic: newbie issue with i2c
Replies: 10
Views: 4730

Re: newbie issue with i2c

Hi Robert, the sda line seems to be high (3.27v) according to my not so accurate mulitmeter. The thing is I have swapped out the MPU6050 for a HMC5883L, and the problem persists, so I don't think it is the MPU. I will try a different board. thanks for the help sofar, if you think of anything else i ...
by crowhill67
Thu Oct 08, 2020 4:47 pm
Forum: ESP32 boards
Topic: newbie issue with i2c
Replies: 10
Views: 4730

Re: newbie issue with i2c

Thanks for your reply,

I was wondering if that was the case, and I added two resistors (10K) from both the scl and sda to 3v3, but I am having the same issue.

Dave.
by crowhill67
Thu Oct 08, 2020 4:37 pm
Forum: ESP32 boards
Topic: newbie issue with i2c
Replies: 10
Views: 4730

newbie issue with i2c

Hi, I want to connect an MPU6050 to a doit ESP32 devkit v1. I have hooket up theMPU as follows: ESP32 MPU GPIO22 ---> scl GPIO21 ---> sda 3v3 ---> vcc gnd ---> gnd my code in the repl is very simple: from machine import I2C, Pin i2c = I2C(scl=Pin(22), sda=Pin(21) i2c.scan() This results in all i2c a...