Report Bugs Here

Moderator: Mmiscool

User avatar
By rodrigocirilo
#57505 Hello everyone,

I'm trying to do a serial communication between the ESP8266 and microcontroller pic.

Well send an ESP of character for the pic I already got the pic triggers a pin receives, then immediately sends a character "c" and I do not know how to take this character in ESP and make a decision.

See my sample code, I put a serialbranch to direct when something coming but does not direct, it does not print on the screen the test I did.

Help me please.

Code: Select allcls
var = ""
baudrate (1200)
button "send1", [send1]
button "end", [end]
serialbranch [change]
wait


[change]
print "received"
wait

[send1]
serialprint (a)
io(po,2,0)
delay 100
io(po,2,1)
wait


[end]
end
User avatar
By Mmiscool
#57515 see this thread.
viewtopic.php?f=40&t=11316
User avatar
By rodrigocirilo
#57609
Mmiscool wrote:see this thread.
viewtopic.php?f=40&t=11316


I understood, I followed this example and it worked with termite 3.2.

But when I put the microcontroller (PIC) to send characters like 'a' or 'b' esp does not receive ..

I had to use a voltage divider at the output of the pic to esp, to match the voltages from 5v to 3.3v (could this be causing the problem?
User avatar
By Mmiscool
#57610 The input pins are 5v tollerant. Just use a common ground. The esp can not be powered from the 5 volts thoug.