Search found 21 matches

by raspi3ua
Fri May 12, 2017 8:39 am
Forum: ESP8266 boards
Topic: [SOLVED] DS3231 uRTC set / read problems
Replies: 37
Views: 31391

Re: [SOLVED] DS3231 uRTC set / read problems

Can you try with the master? Also, please use the I2C object from machine, not from pyb. Use Library master. MicroPython v1.8.7-7-gb5a1a20a3 on 2017-01-09; ESP module with ESP8266 >>> import urtc >>> from machine import I2C, Pin >>> i2c = I2C(scl=Pin(5), sda=Pin(4)) >>> i2c.scan() [104] >>> rtc = u...
by raspi3ua
Fri May 12, 2017 6:21 am
Forum: ESP8266 boards
Topic: [SOLVED] DS3231 uRTC set / read problems
Replies: 37
Views: 31391

Re: [SOLVED] DS3231 uRTC set / read problems

Make sure you have the latest version of the library. There were some more bugs fixed. Hello, Download 1.2 version of library from https://github.com/adafruit/Adafruit-uRTC/releases . Current situation: >>> i2c.scan() [64, 104, 112] >>> rtc = urtc.DS3231(i2c) >>> rtc.datetime() DateTimeTuple(year=2...
by raspi3ua
Thu May 11, 2017 1:59 pm
Forum: ESP8266 boards
Topic: [SOLVED] DS3231 uRTC set / read problems
Replies: 37
Views: 31391

Re: [SOLVED] DS3231 uRTC set / read problems

Hello, I have the same problem with Alarm. DS3231 RTC connected to NodeMCU v3. >>> import urtc >>> from machine import I2C, Pin >>> i2c = I2C(scl=Pin(5), sda=Pin(4)) >>> rtc = urtc.DS3231(i2c) >>> rtc.datetime() DateTimeTuple(year=2017, month=5, day=11, weekday=4, hour=16, minute=42, second=37, mill...
by raspi3ua
Sat Apr 29, 2017 12:33 pm
Forum: Drivers for External Components
Topic: I2C LCD Library... Help!
Replies: 57
Views: 162036

Re: I2C LCD Library... Help!

Receive TXS0108E "I2C Logic Level Converter Bi-Directional Module 5V to 3.3V".
Connect LCD (5V) to NodeMCU (3.3V) through TXS0108E.
Now all is Ok.
I2C_Converter_5V_to_3.3V_TXS0108E .jpg
I2C_Converter_5V_to_3.3V_TXS0108E .jpg (167.76 KiB) Viewed 27108 times
by raspi3ua
Fri Apr 14, 2017 7:44 am
Forum: Drivers for External Components
Topic: I2C LCD Library... Help!
Replies: 57
Views: 162036

Re: I2C LCD Library... Help!

Test. Power LCD Backpack (5V) from NodeMCU 3V3 pin (3.3V). >>> i2c = I2C(scl=Pin(5), sda=Pin(4), freq=100000) >>> lcd = I2cLcd(i2c, 63, 2, 16) >>> lcd.putstr(' Thanks from Ukraine :-) ') "Brightness" and "Contrast" too low. low_Brightness.jpg Than I disconnect 3V3 pin and connect it again to 3V3 pin...
by raspi3ua
Fri Apr 14, 2017 7:27 am
Forum: Drivers for External Components
Topic: I2C LCD Library... Help!
Replies: 57
Views: 162036

Re: I2C LCD Library... Help!

Question: Can we tune "Brightness" and "Contrast" using I2C LCD Library? I ask this question because of next problem... When I use wrong connection and power LCD Backpack (5V) from NodeMCU VU pin (5V) - all is ok with "Brightness" and "Contrast". See my picture above. But such connection may faulted...
by raspi3ua
Sat Apr 08, 2017 7:52 am
Forum: Drivers for External Components
Topic: I2C LCD Library... Help!
Replies: 57
Views: 162036

Re: I2C LCD Library... Help!

Help: <ImportError: no module named 'esp8266_i2c_lcd'> trying to load the same code: from esp8266_i2c_lcd import I2cLcd There is no 'esp8266_i2c_lcd' library installed by default. You need to load 'esp8266_i2c_lcd' and 'lcd_api.py' on your NodeMCU. I use "ampy" util to load files to Node MPU. C:\>s...
by raspi3ua
Fri Apr 07, 2017 1:11 pm
Forum: ESP8266 boards
Topic: ADS1115 16 bit ADC on ESP8266?
Replies: 26
Views: 27588

Re: ADS1115 16 bit ADC on ESP8266?

Hello @raspi3ua, I tested the signal with an oscilloscope too, and the time difference between two alert puses was stable 4 ms, with a 8 µs pulse duration. Yes. It's my fault. Repeated test with oscilloscope. Result is correct. Thanks. ========================================================= #rate...
by raspi3ua
Fri Apr 07, 2017 12:11 pm
Forum: ESP8266 boards
Topic: ADS1115 16 bit ADC on ESP8266?
Replies: 26
Views: 27588

Re: ADS1115 16 bit ADC on ESP8266?

Here: https://github.com/robert-hh/ads1x15 Thanks. Testing now. Run your sample code (+add two timer): from machine import I2C, Pin, Timer import ads1x15 from array import array addr = 72 gain = 1 BUFFERSIZE = const(512) # # Interrupt service routine for data acquisition # activated by a pin level ...
by raspi3ua
Thu Apr 06, 2017 1:43 pm
Forum: ESP8266 boards
Topic: ADS1115 16 bit ADC on ESP8266?
Replies: 26
Views: 27588

Re: ADS1115 16 bit ADC on ESP8266?

For continous measurement use conversion_start()/alert_read(). Otherwise you can set the threshold to 0x7fff, since that is the high threshold. I'll try to send sample code tonight. >>> from machine import Pin, I2C >>> i2c = I2C(scl=Pin(5), sda=Pin(4), freq=100000) >>> i2c.scan() [72] >>> import ad...