These are chat archives for esp8266/Arduino

16th
May 2017
bidyutper
@bidyutper
May 16 2017 05:56
how to set up- uart.setup(0, 9600, 8, uart.PARITY_NONE, uart.STOPBITS_1, 1)https://nodemcu.readthedocs.io/en/master/en/modules/uart/
that's in lua i think..
Ivan Grokhotkov
@igrr
May 16 2017 05:57
Serial.begin(9600);
bidyutper
@bidyutper
May 16 2017 05:58
i tried not properly sending hex byte
trying to communicate via Serial method with this module- http://www.sunrom.com/p/dimmer-module-digital-control-256-steps
bidyutper
@bidyutper
May 16 2017 06:04
where in pc tool real term serial capture i got no problem
also tried Serial.begin(9600, SERIAL_8N1), but no luck
Me No Dev
@me-no-dev
May 16 2017 08:32
it's not a serial module
how do you communicate over serial
oh RX_I
uint8_t level = 0;

void setup(){
  Serial.begin(9600);
}

void loop(){
  Serial.write(level++);
  delay(100);
}
I would advise you to use Serial1 in this case because it's TX only serial port and will not interfere with the regular serial (attach to GPIO 2)
bidyutper
@bidyutper
May 16 2017 08:48
k..let me try Serial1
bidyutper
@bidyutper
May 16 2017 10:18
@me-no-dev thx it worked. Serial.begin(9600); of node-mcu pin GPIO1 (TX). uint8_t level from 0 to 255 as per code means 256 steps. Now next thing is to do control that..check it out https://youtu.be/tbXfZ5G3BxQ
Me No Dev
@me-no-dev
May 16 2017 10:54
@bidyutper great :)