-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Time to ditch the 328P for an RP2040 or something purchasable? #25
Comments
I am confused because the only microcontroller on the OpenEVSE is a esp32. Are you referring to the OpenEVSE Programmer, because I am pretty sure you can use any FTDI programmer, so this is a non issue. |
ATmega328. Every OpenEVSE has one. (The ESP only runs the remote UI) It's where THIS code runs... |
You are correct, my bad. I had to bring up the schematic to find where it is located. Looks like it is under the relay which is why I could not find it in the pictures. |
The 328 is the one that's shipping, and that's what the .bin releases are compiled for. The 168 also has half the program space, and if I recall correctly, the current code barely fits the 328. My OPINION, aside from easing the supply chain concerns, is that a heftier MCU would give a bit more headroom to put back the old LCD based UI, which I think is gone nowm, and missed by me at least, for redundancy's sake, because it's been my experience that when the ESP32 goes down, the charger goes squirrely and I either can or can't charge the car. Unfortunately, to move to a little ARM chip would require a complete hardware rework, as most stuff maxes out at 3.3V nowadays, and of course then supporting two hardware revisions... but if you can't buy chips, you can't ship product. There are other ATMEGA 8 bit chips - The 32U4 seems to have a lot of stock, and it's a popular chip, and there's also something called a atmega4808 and somebody's written a core for it too, although I have no idea how well it works. My thoughts anyway. |
What a difference a year makes. While Microchip does not recommend the ATmega328P for new designs (https://www.microchip.com/en-us/product/atmega328p), it appears to be available for a reasonable price. Mouser has 90k in stock at $2.30 @ 100 qty. The recommended successor, ATmega328PB is cheaper. It is not a drop-in replacement, there are 4 pin reassignments that will require a PCB revision, but 328 code will run on it. (https://www.pololu.com/file/0J1464/Atmel-42559-Differences-between-ATmega328P-and-ATmega328PB_ApplicationNote_AT15007.pdf) |
Why not ESP32, it has 2 cores - WiFi and BT available - so it could be also possible to read cars battery state via BT to let say charge to 80 or 90% as some EVs lack such option. |
Leaving the certification problem for another time.
I feel it's time for a hardware refresh, esp. a new MCU, and maybe spread the board out a bit.
Can't buy the Arduinos anymore. I would not be surprised if the ATmega328 is extinct. Digikey only shows "marketplace" products which are in all likelihood counterfeit or pulls. Plus, the existing code barely fits. And the alternatives end up out of stock before you've ever thoroughly gone through the spec sheet and decided on one.
I'm not kidding when I say we're using RP2040 at work in place of SAM chips we can't buy anymore, and always having a good laugh about it. They require a few more external parts and they run at lower voltages, but they're impressive pieces of hardware with incredible community.
I realize that there are other alternatives out there, but they're all becoming harder and harder to find - by the time you decide what chip you might use, they're basically gone.
Stock has got to be running low on the existing OpenEVSE boards to boot.
The text was updated successfully, but these errors were encountered: