Place to put your Basic demos and examples

Moderator: Mmiscool

User avatar
By cicciocb
#47008 Hi Electroguard,
I received yesterday an ESP-202 module.
I made a little demo with it, connecting with a display, an IR receiver/ transmitter and a 16 outputs expander with 2 74HC595.
This is the picture :
IMG_0013.JPG

I found 2 problems on the PCB esp-202 :
1) The power supply for the ESP-01 is missing - I fixed with a wire from +3.3
2) The GPIO4 and GPIO5 are reversed (the texts)

Last, it miss also (but this is not mandatory) the signal from the DTR pin of the CH340G toward the RESET of the ESP-12E; this is very useful when you program the module as you don't need to turn off / on, all is automatic.
So I made also this connection.

I made a demo video here :

This shows many tasks in parallel (counter + clock) + infrared on interrupt and how control an external expander using the remote controller.
There are 16 RC keys associated with the 16 outputs.
You do not have the required permissions to view the files attached to this post.
User avatar
By Electroguard
#47011 Hah, nice one, great minds think alike, eh!

Yeah, it's strange about the errors, cos clever as the designers are, they seem to have repeated all the same cock-ups they made with the first version - even the TX and RX pins are transposed again.

Did you swap both tombstone jumper links as well as change both switches when you tried it with an ESP01? cos it did flash an ESP-01 for me without having to connect up a supply wire.

The only thing I miss is a button in place of the gpio00 jumper - I have got something jury-rigged, but I only use it for flashing cos the need for a pullup is a right pain in the bum.

Hey, now you can use your udp util sliders to control the onboard RGB led!
User avatar
By cicciocb
#47012 Yes, I swapped both jumpers but, the module was off.
So, with a voltmeter I confirmed that the +3.3 was missing. I tried to resolder the connector, in case there were a false contact but no result.
So, at the end, I put a wire and all is OK now.
I was able to flash at 921600 baud, it takes around 10 sec to program :o
Otherwise seems a little bit unstable, compared with other modules.
Maybe it's because there aren't capacitors near the module between the +3.3 and the ground.
These are strongly recommended so I'll try to put some.
User avatar
By cicciocb
#47014 Just tried the RGB led onboard with the UDP utility.
Works very very fast; the UDP works really great.

This is the sample code :
Code: Select allcls
memclear
udpbegin 5001
udpbranch [receive.UDP]
wait

[receive.UDP]
ud = udpread()
ud = val(ud)
serialprintln ud
r = (ud >> 16) and 255
g = (ud >> 8) and 255
b = (ud and 255)
io(pwo,12,r << 2)
io(pwo,15,g << 2)
io(pwo,13,b << 2)
return