wokwi / wokwi-boards

Custom board definitions for wokwi.com
23 stars 21 forks source link

Added ESP32-DevKitC V4 #4

Closed LouisDeGuinness closed 1 year ago

LouisDeGuinness commented 1 year ago

Board showing up and pins connectable.

Simulation not starting, error in JS-Console

Uncaught (in promise) DOMException: Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded. at i (https://wokwi.com/_next/static/chunks/pages/_app-5698d5f94e90e323.js:74:379956) at new e (https://wokwi.com/_next/static/chunks/3244-87f5ecaf795069e3.js:1:148788) at https://wokwi.com/_next/static/chunks/5176-19eedf99d05bc5cb.js:1:229542 at s (https://wokwi.com/_next/static/chunks/main-3132ad1442e41b64.js:1:95873) at Generator._invoke (https://wokwi.com/_next/static/chunks/main-3132ad1442e41b64.js:1:95661) at forEach.e.<computed> [as next] (https://wokwi.com/_next/static/chunks/main-3132ad1442e41b64.js:1:96296) at r (https://wokwi.com/_next/static/chunks/pages/_app-5698d5f94e90e323.js:74:411722) at s (https://wokwi.com/_next/static/chunks/pages/_app-5698d5f94e90e323.js:74:411925)

urish commented 1 year ago

Thanks! The error could possibly be related to the FQBN not currently supported by our build server, I'll take a look.

Did you draw the SVG yourself, or did you take it from somewhere? We have to make sure that the license allows us to use it.

LouisDeGuinness commented 1 year ago

Took it from there:

https://freesvg.org/esp32-devkitc

Under "License" it says: You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.

I changed the FQBN to "wokwi-custom-board" then the error appeared. Using the "real" FQBN it says it can't find the board.

urish commented 1 year ago

Thanks!

Can you try "esp32:esp32:esp32" for the FQBN?

LouisDeGuinness commented 1 year ago

Works like a charm!

urish commented 1 year ago

Excellent!

A few more requests:

  1. Can you please make sure the pins are spaced exactly 2.54mm apart? it may seem like a small different, but it is important for the grid (especially now that we have the breadboard):

image

  1. Can you try to make the SVG smaller than 100kb? A tool like svgomg can be helpful
LouisDeGuinness commented 1 year ago

I'll try my best but i'm afraid my SVG skills are not sufficient ( or existing 😅)

LouisDeGuinness commented 1 year ago

That's as good as it gets, at least by me

urish commented 1 year ago

SVG seems small enough now. So I think we just need to fix the fqbn in board.json and we're good to go!

urish commented 1 year ago

There we go!

https://wokwi.com/projects/349779172038541906

LouisDeGuinness commented 1 year ago

Is there a way to start a new project with this board directly?

urish commented 1 year ago

Not at the moment. The list of "new project" options is becoming too big, we need to think of a better way to manage it.

LouisDeGuinness commented 1 year ago

What about a multi-level-dropdown? Like

urish commented 1 year ago

That could work - but it'll take some time as we have to develop it :)