Go Down

Topic: Waveshare e-paper displays with SPI (Read 101281 times) previous topic - next topic

jzvolanek

@ZinggJM
Thank you for the information!!

Ps: My work with ePaper 4.3! :-)

URL=http://img.janforman.com/EPDver7u00k.JPG][/URL]

oleedee


BUSY -> 7, RST -> 9, DC -> 8, C S-> 10, CLK -> 13, DIN -> 11


The serial monitor reads:

⸮vxM@⸮⸮1⸮⸮⸮⸮⸮⸮M4x͉⸮M4⸮MR⸮<

ZinggJM

Quote
BUSY -> 7, RST -> 9, DC -> 8, C S-> 10, CLK -> 13, DIN -> 11


The serial monitor reads:

⸮vxM@⸮⸮1⸮⸮⸮⸮⸮⸮M4x͉⸮M4⸮MR⸮<
Hi,

Your post seems not be "quotable" by normal means.

One of my fellow Arduino developers told me the Gods have decided that Serial Communication should be 9600 baud. But even simple AVR Arduinos seem to be able to handle 115200 baud.

The bit rate used by my examples can be seen in the source: Serial.begin(115200).
(this was missing in an earlier version of PagedDisplayExampleSmallRam).
The Serial Monitor has  a drop down list to select the bit rate. With 115200 you should get a readable result.

Have you re-read my post and seen that you should not connect IO pins of 5V Arduinos directly?
See also post #240.
No personal message please; any question may be useful for other users. Use code tags for code. Make links clickable with URL tags. Provide links to the product in question.

oleedee

Thankyou,

from serial monitor;

setup
setup done
_PowerOn : 8
_Update_Full : 4
_PowerOff : 8
_PowerOn : 8
_Update_Full : 8
_PowerOff : 8
_PowerOn : 8
_Update_Full : 8
_PowerOff : 8
_PowerOn : 8
_Update_Full : 8
_PowerOff : 8
_PowerOn : 8
_Update_Full : 8
_PowerOff : 8

ZinggJM

#259
Dec 06, 2017, 09:37 pm Last Edit: Dec 06, 2017, 09:43 pm by ZinggJM
The near zero wait values mean that either the BUSY line does not work, or the the SPI communication (sending commands) does not work.

The e-paper HAT may be a bit tricky to use. The connecting cable to the uno needs be pushed in firmly to make good contact to the HAT, and the flexible cable connections need make good contact in the connectors. The black part needs be pushed in after the cable has been pushed in to get good contact.

The SPI pins should be the same number on any UNO (Atmega328P).

Make sure the switch is set to 4-line SPI, Interface Config on the HAT.
No personal message please; any question may be useful for other users. Use code tags for code. Make links clickable with URL tags. Provide links to the product in question.

oleedee

Thankyou! I think I had not pushed in the black parts on the connectors properly.

Now they are connected and I get different readings from the serial monitor,

Now it reads;

setup
setup done
Busy Timeout!
Power On : 10001016
Busy Timeout!
drawPicture : 10000968
Busy Timeout!
Power On : 10001072
Busy Timeout!
drawPaged : 10000228
Busy Timeout!
Power On : 10000196
Busy Timeout!
drawPicture : 10000140
Busy Timeout!
Power On : 10000336
Busy Timeout!
drawPaged : 10001040
Busy Timeout!
Power On : 10001028
Busy Timeout!
drawPicture : 10000140
Busy Timeout!
Power On : 10000144

ZinggJM

#261
Dec 07, 2017, 06:50 am Last Edit: Dec 07, 2017, 08:51 am by ZinggJM
... and you still get no update or reaction on the display?

This would mean your SPI communication still does not work.

You could also measure the BUSY signal at your UNO pin, to see if it is constantly zero or only as a reaction to command reception.

I do have the e-paper HAT, but did not use it so far. I will try with a b/w e-paper, my 1.54" b/w/r is mounted on its own board.

It works:

No personal message please; any question may be useful for other users. Use code tags for code. Make links clickable with URL tags. Provide links to the product in question.

Redinvader

Does the 1.54" E-Paper Display work with the Arduino Due ?

ZinggJM

Does the 1.54" E-Paper Display work with the Arduino Due ?
Yes, it does. But you need to connect CLK and DIN to the SPI pins on the 6 pin SPI connector.

See Waveshare E-ink and Arduino Due
No personal message please; any question may be useful for other users. Use code tags for code. Make links clickable with URL tags. Provide links to the product in question.

jzvolanek

@ZinggJM


ePaper 2.9 b/w/r

#include <GxGDEW029Z10/GxGDEW029Z10.cpp>    // 2.9" b/w/r

// mapping suggestion from Waveshare 2.9inch e-Paper to Wemos D1 mini
// BUSY -> D2, RST -> D4, DC -> D3, CS -> D8, CLK -> D5, DIN -> D7, GND -> GND, 3.3V -> 3.3V


Serial line:

setup
setup done
_wakeUp Power On : 5
drawPicture : 1
_sleep Power Off : 1
_wakeUp Power On : 1
drawPicture : 5
_sleep Power Off : 1
_wakeUp Power On : 2
drawPicture : 1
_sleep Power Off : 1
_wakeUp Power On : 5
drawBitmap : 1

Nothing shows where I'm making a mistake?
Thank you very much....

Josef

ZinggJM

#265
Dec 18, 2017, 10:33 pm Last Edit: Dec 19, 2017, 08:06 am by ZinggJM
The way too short values for BUSY active times  and missing update of the display make it most likely your SPI communication does not work. Check all connections and solder joints.

Tell us the processor board you use, and provide a photo if you need more help.

There is a reason for my base line that tells to provide links to the product in question.

It makes answering "Newbie"- questions easier by providing the needed background information.

You mentioned Adafruit Feather HUZZAH with ESP8266 WiFi in a previous post:

Adafruit Feather HUZZAH with ESP8266 WiFi

This board uses pin numbers, GPIOx numbers, not the Dx names of Wemos D1 or D1 mini.
For this board you need to use the mapping I posted in my reply:

// mapping suggestion from Waveshare 2.9inch e-Paper to generic ESP8266
// BUSY -> 4, RST -> 2, DC -> 0, CS -> 15, CLK -> 14, DIN -> 13, GND -> GND, 3.3V -> 3.3V

After a closer look at the picture of the processor board it might also be:

CLK -> SCK
DIN -> MO aka  MOSI

but this might be the "other" SPI of the ESP8266, the one used internally, like the LoLin versions.

Maybe this helps.
No personal message please; any question may be useful for other users. Use code tags for code. Make links clickable with URL tags. Provide links to the product in question.

ZinggJM

No personal message please; any question may be useful for other users. Use code tags for code. Make links clickable with URL tags. Provide links to the product in question.

Domisol

Hello,

I would like to use the Wavashare ePaper 2.9" Module B with an Arduino UNO. This configuration is the same as the one described on the Wiki page : https://www.waveshare.com/wiki/2.9inch_e-Paper_Module_(B)#Initialization_.28Init.29

After download and run the program from the Waveshare wiki page in the Arduino, nothing happens on the screen, the demo picture remains the same, no flickering, etc. and nothing is written on the Arduino IDE monitor.

I would like to use the library described in this topic. This wiring is correct for the Arduino UNO:


ePaper      Arduino UNO

3.3V           3V3
GND           GND
DIN           D11
CLK           D13
CS           D10
DC           D9
RST           D8
BUSY        D7

or need I use use an other one ?
What levels should be set on the RST, BUSY, CS, DC pins ?

Thanks for you help


jzvolanek

@ ZinggJM
Hello,
so I'm testing EPD 2.9 with ESP D1
I checked the connections and contacts again ...
Everything OK
But the display does not show anything or flashes ..
Serial line:

_wakeUp Power On : 2
update : 1
_sleep Power Off : 1
_wakeUp Power On : 1
update : 1
_sleep Power Off : 2
_wakeUp Power On : 1
update : 2
_sleep Power Off : 2
_wakeUp Power On : 2
update : 1
_sleep Power Off : 1

Thank you in advance!!

Pepa

ZinggJM

Hi Pepa,

your program looks ok, your wiring also (I did not check each connection), but your solder joints look not so good maybe.

I have seen DuPont connectors that did not make contact, and I have seen reports of bad breadboards.

So I would suggest to do continuity tests with ohm meter on every line from the display board on the board side of the connector to the ESP8266 itself, the 1mm spaced connections.

I don't expect a bad connection of the e-paper panel flat cable to the e-paper base plate, but you can also visually check that connection; the black fastener needs be pushed in.

Make sure the solder joints are good; the pins take some energy until the solder really flows and is sucked into the hole.

Jean-Marc

No personal message please; any question may be useful for other users. Use code tags for code. Make links clickable with URL tags. Provide links to the product in question.

Go Up