cnlohr / espusb

Software-only ESP8266 USB Device
Other
1.45k stars 226 forks source link

Hardware design has outdated and missing libraries #4

Open con-f-use opened 7 years ago

con-f-use commented 7 years ago

I don't know if you noticed, but the hardware design doesn't work with recent versions of KiCad. This has two reasons:

kicad library fail

cnlohr commented 7 years ago

I will fix this tonight. But, keep in mind that it is an untested design. I should include schematics of what I am actually working with, I guess.

cnlohr commented 7 years ago

...My -cache file does include even things like resistors. I'm not sure why your kicad is preferring your personal libraries. Also, that's really annoying since I used the libraries in kicad!

con-f-use commented 7 years ago

Yes, it is annoying, but not a problem. The latest dev version of KiCad seems to have a dialog that asks about it. After that, your schematic works fine. Nonetheless, I find the library management in KiCad a bit odd. If you break compatibility with your old standard library, your program should gracefully port old projects to the new library without much ado, and do it from the start. Bad release policy from KiCad's side.

cnlohr commented 7 years ago

I thought it did! That was the whole point of the -cache files.

con-f-use commented 7 years ago

Didn't mean to imply anything was wrong on your side. It's one of many known problems with KiCad, but ever since version 4 and CERN contributing, problems keep disappearing.

Btw. by chance, do you know your settings for gnu indent? I made a few changes to commonservices.c to make it more readable and documented it a little, all while I was doing my own project. In the process I converted things to my coding style. I'd like to convert it back before making a pull request.

cnlohr commented 7 years ago

Hmm, I appreciate the updating and cleanups - but - one of the biggest problems is going to be keeping these things in sync. I'm not really sure how to do that. ESPUSB, ColorChord and esp8266ws2812i2s somehow need to be kept in sync. Also, still haven't gotten a chance to upgrade kicad, will be trying tonight or tomorrow. I spent so much time this weekend getting the ColorChord triple-header done. But, back to work now.

con-f-use commented 7 years ago

My thoughts on project-syncing

Btw. great videos, especially the "YEEELLLOOOOOOOOOW and a little bit of BLUUUUUUUE" one.

cnlohr commented 7 years ago

I will pick up in that thread.

cnlohr commented 7 years ago

I updated the design in github to reflect reality. Also, you can use the design in esp82xx for USB as well. Hmm... We are going to need to make that bootloader sooner or later.

con-f-use commented 7 years ago

Bootloader? What? Why?

cnlohr commented 7 years ago

Oh! Bootloader = we need something that can reside in the first 4k? of memory, that will boot. If plugged into USB gives you a brief period of time before booting the main program, or, if not plugged into usb immediately boots the program. This makes it possible to completely remove the serial programming headers, or re-appropriate the serial port for other use.

con-f-use commented 7 years ago

Ah, you want an USB bootloader. Didn't make the connection, because board layout here... fail Anyway, we basically have a bootloader over network already, don't we? I mean you can update the firmware via net-flashing. Is an USB bootloader even worth the effort, seeing users will always need the serial port for flashing the bootloader itself? I mean it's a nice option to have, but I'm pretty content with net-flashing.

cnlohr commented 7 years ago

The big distinction is with the fact the usb bootloader would need to be "unbrickable" whereas netflashing and current usb flashing.

Plus... what in the world is that board for? Looks like WS2812B's... Is that an ESP-01?... but I am confused.

con-f-use commented 7 years ago

Why not be ambitious and make the netflash unbrickable instead? ^^

Looks like WS2812B's... Is that an ESP-01?

Correct. It's for a prop I'm making with a friend. Basically something like this, with the stone lit and larger. I got fifty ESP-01 for only $10 shipping. You know, the ones with the faulty flash. Decided to used them over the more expensive modules, because I only needed to drive a few WS2812s and have it web-controlled. That's how I came here in the first place and decided to contribute. Thought the picture was weirdly fitting in a board layout thread.

KaDw commented 7 years ago

fifty ESP-01 for only $10 shipping

How is it possible :P? You work for espressif? Aliexpress? Ebay? Can you share your secret?

con-f-use commented 7 years ago

No secret, someone wanted to be rid of them. I was first to reply. Bham, just had to pay shipping. One time deal, I'm afraid. :-( That how I got into ESPs. The rest is, as they say, history.