Search found 51 matches

by RajaRamesh
Sat Jun 15, 2019 12:30 pm
Forum: ESP8266 boards
Topic: LCD 1602 - Library
Replies: 53
Views: 27182

Re: LCD 1602 - Library

I recorded a video here: https://www.youtube.com/watch?v=KiR-r8mXBCo Thank you dhylands...i will try and get back to you if have any questions. Hi dhylands, i am trying below code to display text with GpioLcd. but text was not displaying on lcd screen so i stopped going further. do i need to change...
by RajaRamesh
Sat Jun 15, 2019 12:26 pm
Forum: ESP8266 boards
Topic: How to switch on a electric bulb with ESP8266 board?
Replies: 50
Views: 4675

Re: How to switch on a electric bulb with ESP8266 board?

jimmo wrote:
Sat Jun 15, 2019 7:39 am
This is quite common, the LED is connected between Vcc and the pin. (Some microcontrollers are capable of doing this at a higher current than the other way around).
ok....jimmo
by RajaRamesh
Sat Jun 15, 2019 12:25 pm
Forum: ESP8266 boards
Topic: How to switch on a electric bulb with ESP8266 board?
Replies: 50
Views: 4675

Re: How to switch on a electric bulb with ESP8266 board?

Assuming you have the LED working as per the advice of @jimmo, you need something like The RTC on the ESP8266 is notoriously inaccurate. You might want to use similar logic to call settime() once at (say) 4:00. Thank you for sharing the details pythoncoder. i will try and get back to you if i face ...
by RajaRamesh
Sat Jun 15, 2019 7:00 am
Forum: ESP8266 boards
Topic: How to switch on a electric bulb with ESP8266 board?
Replies: 50
Views: 4675

Re: How to switch on a electric bulb with ESP8266 board?

Does it work if you try it from the REPL? Try and just get the LED working on its own. >>> pin=machine.Pin(14,machine.Pin.OUT) >>> pin.on() >>> pin.off() Hi Jimmo, led working with below code and when pin.off() it is glowing and pin.on() it stop blinking. not sure why functionality is reverse. >>> ...
by RajaRamesh
Sat Jun 15, 2019 6:38 am
Forum: ESP8266 boards
Topic: LCD 1602 - Library
Replies: 53
Views: 27182

Re: LCD 1602 - Library

Here's an example which scrolls text (using the GPIO version). def test_main(): """Test function for verifying basic functionality.""" print("Running test_main") lcd = GpioLcd(rs_pin=Pin.cpu.C6, enable_pin=Pin.cpu.C8, d4_pin=Pin.cpu.C2, d5_pin=Pin.cpu.C3, d6_pin=Pin.cpu.C4, d7_pin=Pin.cpu.C5, num_l...
by RajaRamesh
Wed Jun 12, 2019 4:28 am
Forum: ESP8266 boards
Topic: LCD 1602 - Library
Replies: 53
Views: 27182

Re: LCD 1602 - Library

dhylands wrote:
Tue Jun 11, 2019 5:23 pm
I recorded a video here: https://www.youtube.com/watch?v=KiR-r8mXBCo
Thank you dhylands...i will try and get back to you if have any questions.
by RajaRamesh
Tue Jun 11, 2019 3:40 pm
Forum: ESP8266 boards
Topic: LCD 1602 - Library
Replies: 53
Views: 27182

Re: LCD 1602 - Library

The LCD displays are quite primitive. Here's a couple of references to the commands that can be sent to the LCD: http://web.alfredstate.edu/faculty/weimandn/index.html https://dawes.wordpress.com/2010/01/05/hd44780-instruction-set/ The typical way to achieve scrolling is to write new text which is ...
by RajaRamesh
Mon Jun 10, 2019 5:43 pm
Forum: ESP8266 boards
Topic: LCD 1602 - Library
Replies: 53
Views: 27182

Re: LCD 1602 - Library

RajaRamesh wrote:
Mon Jun 10, 2019 11:46 am
Roberthh wrote:
Mon Jun 10, 2019 5:53 am
The instantiation of lcd should be:

lcd=I2cLcd(i2c, 39, 2, 16)
Thank you Robert. i will check and get back to you.
hi robert... now i can see text on lcd after updating with 39. is it possible to scroll the text on lcd from right to left or left to right?
by RajaRamesh
Mon Jun 10, 2019 11:46 am
Forum: ESP8266 boards
Topic: LCD 1602 - Library
Replies: 53
Views: 27182

Re: LCD 1602 - Library

Roberthh wrote:
Mon Jun 10, 2019 5:53 am
The instantiation of lcd should be:

lcd=I2cLcd(i2c, 0x27, 2, 16)

or

lcd=I2cLcd(i2c, 39, 2, 16)

You screen dump shows 0*27, which is 0
Thank you Robert. i will check and get back to you.
by RajaRamesh
Mon Jun 10, 2019 5:44 am
Forum: ESP8266 boards
Topic: LCD 1602 - Library
Replies: 53
Views: 27182

Re: LCD 1602 - Library

Roberthh wrote:
Sun Jun 09, 2019 6:03 pm
What do you get with

Code: Select all

from machine import I2C
i2c = I2C(scl=Pin(5), sda=Pin(4), freq=400000)
print(i2c.scan())
Hi Robert, i got [39] as per below screenshot
Capture.PNG
Capture.PNG (243.67 KiB) Viewed 905 times