PCB for Annex32 with D1 Mini module

644 views
Skip to first unread message

Lizby

unread,
Jan 13, 2020, 12:51:04 PM1/13/20
to annex_w...@googlegroups.com
This youtube video is just a lark.

Version 2 of the PCB (as in the video):

PCB v2 bare.jpg

The schematic is an embarrassment--I couldn't find an Eaglecad footprint for the ESP32 D1 Mini, and I've never successfully created a part in Eagle, so I just used 2 dual-row 20-pin footprints. The schematic is Version 3--I removed the possible DS18B20 pullup on pin 12 (which would prevent booting), and gathered input pins 34, 35, 36, & 39 in one place for easier connection of an ebay 4-pushbutton module.

PCB v3 sch and pcb.jpg

Tested: SD card, ILI9341 tft, touch, serial, serial 2 @ 9600, I2C with an MCP23017, various led outputs, 7 DS18B20s, 4 inputs with 100K pullups, and mono audio output using pin 25.


I was unable to get the PCM5102A I2S DAC to work, either from the PCB or with flying wires directly from the D1 Mini, with 2 different DAC modules. Checked and rechecked the wiring. I had gotten this to work in the past, so I don't know what the problem is.


This is my funky code for the youtube video:


CODE: xxxx.bas

I2C.SETUP 21, 22  ' set I2C port on pins 21-sda and 22-scl--esp32
TFT.INIT 1
TFT.FILL 0

    PIN.MODE 12, OUTPUT
    PIN.MODE 17, OUTPUT
    PIN.MODE 33, OUTPUT
    PIN.MODE 2, OUTPUT
    PIN.MODE 16, OUTPUT
    PIN.MODE 5, OUTPUT
    pin(12)=0: pin(17)=0: pin(33)=0
    pin(2)=0: pin(16)=0: pin(5)=0

MCP23017 = &h20  ' assumes A2, A1, A0 to GND
'MCP23017 internal registers
IODIRA = 0: IODIRB = 1: IOCONA = 10: OLATA = 20: OLATB = 21
    i2c.WriteRegByte MCP23017,IODIRA,0 ' set direction to output
    i2c.WriteRegByte MCP23017,IODIRB,0 ' set direction to output
  I2C.WriteRegByte MCP23017,OLATA,0 ' turn all off
  I2C.WriteRegByte MCP23017,OLATB,0 ' turn all off

play.setup 0 ' speaker, pin25, mono
pause 3000
a$="/cherokeeshuffle.mp3"
'a$="/FireballMail.mp3"
  play.volume 80
  PLAY.MP3 a$
    pause 500
    pin(12)=1
    pause 500
    pin(17)=1
    pause 500
    pin(33)=1
    pause 500

'  do
    ntimes=6
    gosub mcp17
    pause 1000
    ntimes=1
'  loop

tft.text.pos 2,5
TFT.FILL TFT.RGB(255,0,0) ' red
tft.text.col TFT.RGB(255,255,255),TFT.RGB(255,0,0)
tft.print " Hello, Annex World"
pause 2000
tft.text.col TFT.RGB(255,255,255),TFT.RGB(0,255,0)
TFT.FILL TFT.RGB(0,255,0) ' green
tft.print " Hello, Annex World"
pause 2000
tft.text.col TFT.RGB(255,255,255),TFT.RGB(0,0,255)
TFT.FILL TFT.RGB(0,0,255) ' blue
tft.print " Hello, Annex World"
pause 2000
TFT.FILL 0
do
  x=rnd(319)
  y=rnd(239)
  c=rnd(65535)
  r=rnd(50)+10
  tft.circle x,y,r,c,c
'  pause 100
  gosub mcp17
  pin(2)=1-pin(2): pin(16)=1-pin(16): pin(5)=1-pin(5)

  if PLAY.ISPLAYING = 0 then
    if a$="/cherokeeshuffle.mp3" then
      a$="/Fire on the Mountain.mp3"
    else
      a$="/cherokeeshuffle.mp3"
    endif
    PLAY.MP3 a$
  endif
loop

mcp17:
  for i = 1 to ntimes 
    i2c.WriteRegByte MCP23017,OLATA,&HAA ' &b10101010
    i2c.WriteRegByte MCP23017,OLATB,&HAA ' &b10101010
    PAUSE     250 
    I2C.WriteRegByte MCP23017,OLATA,&H55 '&b01010101 '  
    I2C.WriteRegByte MCP23017,OLATB,&H55 '&b10101010 '  
    PAUSE     250 
  Next i 
'  I2C.WriteRegByte MCP23017,OLATA,0 ' turn all off
'  I2C.WriteRegByte MCP23017,OLATB,0 ' turn all off
  return



You can send the attached gerber zip file (Version 3) directly to (for instance), JLCPCB.com, and get 5 PCBs for about $8US (slow boat shipping to the U.S.).

The Version 3 Eaglecad sch and pcb files are also attached, and can be modified freely.

I have an extra 8 of the bare Version 2 PCBs (as used in the video). I'll mail one to the people who first request one at microgeek32 (you know the symbol) gmail.

Thanks so much to cicciocb for creating such a powerful BASIC for the ESP32 (and ESP8266).

ESP32tft_2020-01-13.zip
ESP32tft.sch
ESP32tft.brd

cicciocb

unread,
Jan 14, 2020, 6:53:23 AM1/14/20
to Annex WiFi RDS
Hi Lizby,
thanks for your initiative and your generosity.

Don't be discouraged if you dont't get feedback, it will come ....

Electroguard

unread,
Jan 14, 2020, 8:08:06 AM1/14/20
to Annex WiFi RDS
That's a nice solid step forward for Annex32.

Lizby

unread,
Jan 14, 2020, 10:12:36 AM1/14/20
to Annex WiFi RDS
On Tuesday, January 14, 2020 at 6:53:23 AM UTC-5, cicciocb wrote:
Don't be discouraged ...

Yes, I have noted the sad drop-off in posts in the tech forums I follow.  Don't exactly know why, with all the good stuff available now. So much easier than 40+ years ago when I started with CP/M and Z80. Annex deserves a much heartier following, especially annex32.

Annex is so rich it's hard to do more than scratch the surface. Thank +you+ for the amazing work you have done.

cicciocb

unread,
Jan 14, 2020, 11:46:26 AM1/14/20
to Annex WiFi RDS
People use mostly facebook today, so expect to find the same question asked 50 times.

Maybe someone should create a group on facebook but Annex targets mostly people that avoid it ....

Günter

unread,
Jan 19, 2020, 12:26:06 PM1/19/20
to Annex WiFi RDS
Hallo an allen

Habe ein Device vom ESP32 für Eagle erstellt.
Ich habe nur die 32 wichtigen Pins erstellt weil die anderen 8 beim Layouten im Weg sind

Gruss
Günter
D1mini32.brd
D1mini32.sch

cicciocb

unread,
Jan 19, 2020, 1:05:10 PM1/19/20
to Annex WiFi RDS
Thanks Gunter for your PCB.
Could you also post some pictures or the PCB, just to let us understand for who don't have Eagle.

Lizby

unread,
Jan 19, 2020, 1:07:41 PM1/19/20
to Annex WiFi RDS


On Sunday, January 19, 2020 at 12:26:06 PM UTC-5, Günter wrote:
Habe ein Device vom ESP32 für Eagle erstellt.
Ich habe nur die 32 wichtigen Pins erstellt weil die anderen 8 beim Layouten im Weg sind

 Per Google Translate (sorry, my German is 50 years old, and unused since grad school): 
"I created a device from ESP32 for Eagle.
I only created the 32 important pins because the other 8 are in the way of layouting"

This is very useful. Can you share the WemosD1_32 library?

Das ist sehr nützlich. Können Sie die WemosD1_32-Bibliothek freigeben?

Günter

unread,
Jan 19, 2020, 6:45:28 PM1/19/20
to Annex WiFi RDS
Hallo Lizby

Hier ist ein lbr File mit dem ESP32 .
Ich hoffe ich kann die damit helfen und einen besseren Schalplan erstellen
Gruss Günter
1Eigene.lbr

Günter

unread,
Jan 19, 2020, 7:10:14 PM1/19/20
to Annex WiFi RDS
Hallo ciciciob

zuerst muss ich dir mal danken für diese Super Software.Weiter so.
Die Platine ist nicht fertig weil ich nicht weiss wie die das ILI9343 anschliessen soll.
In der Setup Seite ist wohl vorgesehen ein M5 oder ILI9343 anzuschliessen. Was ist der unterschied ???
Würde mir wünschen tft.init 16, 4, 1 wie beim ESP8266.um auch andere Anschlussvarianten zu verwenden.
Wäre es möglich im Webserver die Zeichengrösse und die Fenstergrösse zu speichern. Mir ist die 10pt zu klein.Bin wohl zu alt für die Schrifgrösse.
Übrigens an alle Eagle kann auf der Autodesk Website kostenlos für Platinen bis 100 x 80 mm downgelodet werden.
Nochmals Super ,Super
Gruss Günter aus München



Lizby

unread,
Jan 19, 2020, 7:31:03 PM1/19/20
to Annex WiFi RDS
Thank you for that. The WEMOS-D1-MINI-32 footprint will be helpful for future Eaglecad PCB designs.

Danke für das. Der Platzbedarf des WEMOS-D1-MINI-32 wird für zukünftige Eaglecad-Leiterplattenentwürfe hilfreich sein.

Lizby

unread,
Jan 19, 2020, 7:42:48 PM1/19/20
to Annex WiFi RDS
Günter - Ich denke für Annex32 gibt es bei TFT.INIT keine Auswahl an Pins für den ILI9341 - nur eine Auswahl an Orientierung.

Die Verbindungen werden in der Hilfedatei von Annex32 angezeigt.

Günter--I think for Annex32 you don't have a choice of pins for the ILI9341 with TFT.INIT--only a choice of orientation.

The connections are shown in the Annex32 help file.

Annex32_ILI9341.jpg


Günter

unread,
Jan 19, 2020, 8:09:05 PM1/19/20
to Annex WiFi RDS
Lizby-wofür ist dann die Auswahl in der Config Seite

Lizby

unread,
Jan 19, 2020, 8:19:29 PM1/19/20
to Annex WiFi RDS
I'm not sure what you mean. If the question is about TFT.INIT, the only values are 0=Portrait, 1=Landscape, 2=Portrait reversed, 3=Landscape reversed.

Ich bin mir nicht sicher was du meinst. Handelt es sich bei der Frage um TFT.INIT, sind die einzigen Werte 0 = Hochformat, 1 = Querformat, 2 = Hochformat umgekehrt, 3 = Querformat umgekehrt.

Günter

unread,
Jan 19, 2020, 8:20:12 PM1/19/20
to Annex WiFi RDS
Lisby-Ich habe da https://www.az-delivery.de/products/arduitouch-wandgehauseset-mit-touchscreen-fur-esp8266-und-esp32 eine fertige Platine gefunden bei der 
die ILI9343 pinbelegung anders als die Standartbelegung ist.Wäre super wenn man die benutzen könnte.

Lizby

unread,
Jan 19, 2020, 8:39:45 PM1/19/20
to Annex WiFi RDS
My guess is, not very likely, but it wouldn't be up to me.

Meine Vermutung ist nicht sehr wahrscheinlich, aber es würde nicht an mir liegen.

PeterN

unread,
Jan 20, 2020, 3:07:28 AM1/20/20
to Annex WiFi RDS
Hi Günter,

im M5Stack ist ein anderes TFT-Display eingebaut, daher kann im ANNEX32-Config-Menü ausgewählt werden.
Wenn ich den richtigen Schaltplan zu deinem Wandgehäuse gefunden habe, sollte es möglich sein, die CS-Leitungen entsprechend umzulöten. Die restlichen SPI-Anschlüsse sollten passen.  

in the M5Stack another TFT display is built in, so it can be selected in the ANNEX32 config menu.
If I found the right schematic for your wall mount enclosure, it should be possible to re-solder the CS lines accordingly. The remaining SPI connectors should fit.  

I found  the attached schematic here: https://www.hwhardsoft.de/deutsch/projekte/arduitouch-esp/ 


ArduiTouch ESP schematic V01-03-00.pdf

cicciocb

unread,
Jan 20, 2020, 4:44:49 AM1/20/20
to Annex WiFi RDS
Gunter,
if I understand you would like to use the ArduiTouch with Annex.
First of all I found it too much expensive as you can do much better with another solution.

I developed few PCB some time ago and, to illustrate them, I did also a 3D representation here :


Note : click on Open Control to choose the different elements :

In particular these PCB can be included into a 3D printed box to make a complete unit.
My intention was to provide these boards, eventually with all the SMD components already soldered.
The cost of the whole project including all the modules should be below the price of ArduiTouch (That is supplied without any ESP modules)

As the ESP32 is still in development, I'm not yet doing any advertising on this subject.

Actually I have some of each and l'm ready to provide to whom are interested.

cicciocb

PeterN

unread,
Jan 20, 2020, 5:45:32 AM1/20/20
to Annex WiFi RDS
Hi CiccioCB

I am afraid I placed my reply to Gunters question  at the wrong position in the thread.

The Wall mount enclosure  Gunter found, shurely is useful if you want to use ESP8266 or  ESP32 boards and mount that in a final livingroom environment.
But for experiments I really like your board and its universal connectivity. I will try the 3D-print of the enclosure soon.

Especially toGünter:

In the M5Stack-device  a different   TFT display is built in, so it can be selected in the ANNEX32 config menu.
If I found the right schematic for your wall mount enclosure, it should be possible to re-solder the CS lines accordingly. The remaining SPI connectors should fit.  

Günter

unread,
Jan 21, 2020, 11:02:37 AM1/21/20
to Annex WiFi RDS
Hallo CiccioCB,

ich wäre an einer ESP32 Board V3 interessiert um damit weiter Versuche zu machen.

Gruss Günter

Lizby

unread,
Jan 21, 2020, 11:21:16 AM1/21/20
to Annex WiFi RDS
Günter - wenn du an Version 3 des Boards interessiert bist, um das es in diesem Thread geht, kannst du es direkt bei JLCPCB.com bestellen. Wenn Sie möchten, dass ich Ihnen eine Leiterplatte der Version 2 sende, senden Sie mir eine E-Mail mit Ihrer Adresse an die im ersten Beitrag angegebene Adresse. Wenn Sie das Board von CiccioCB verwenden möchten, müssen Sie dies möglicherweise klarer ausdrücken.

Günter--if you're interested in Version 3 of the board which this thread is about, you can order it directly from JLCPCB.com using the zip file attached to the first post. If you want me to send you a Version 2 PCB send me an email with your address to the address given in the first post. If you want CiccioCB's board, you may have to make that clearer.
Reply all
Reply to author
Forward
0 new messages