farmerkeith / I2CScanner

Simple software to scan an I2C bus and report devices found
3 stars 2 forks source link

Garbled serial output #1

Closed Tech-TX closed 5 years ago

Tech-TX commented 5 years ago

Lines 19, 27 and 123 in the 21 January 2019 code cause a conflict on my Doit ESP-12F Dev Kit board, and the serial output to the USB is all garbled. Commenting out those 3 lines where you define and then bit-bang the BUILTIN_LED, the USB serial output is fine.

See (https://i.imgur.com/dnRoITk.jpg) for an o-scope capture before and after. I can't see why the pin is hitting 5V levels when the ESP-12F module and LED are both powered from 3.3V (verified). The TxD pin on the board is tied directly to the ESP-12 module pin, with a 300 ohm resistor connecting the pin to the serial interface chip input on the board. The serial chip is powered from USB 5V, but that shouldn't be back-feeding to the input pin (ESP-12 TxD output).

Verified with 2 different Doit ESP-12F DevKit V3 boards. It's an easy fix commenting out 3 lines, no need to modify your code. ;-) This is simply an FYI for others with garbled output. edit: I don't have this problem with D1 Mini boards, so it's something unique to the Doit modules.

Handy chunk of code, my thanks!