[Ovmsdev] OVMS V2.5 production / Renault Zoe support
dexter at expeedo.de
Sat Apr 29 01:07:56 HKT 2017
Currently the Think uses two GPIO pins, the Leaf one, and the Twizy
eight (4 in + 4 out for the SimpleConsole).
This is the only SPI bus left for general purpose extensions?
But as the MAX7317 is 16 bit and supports daisy chaining, it will still
be possible to add a touch screen or other I/O extensions to it?
If it doesn't create problems for "higher level" addons it's got my vote
Am 28.04.2017 um 07:02 schrieb Mark Webb-Johnson:
> Copying OVMS developers in on this, as it is an interesting question.
> Free pins are very tight on the OVMS v3. We’ve added so much as
> standard (extra flash, SD card, 3 CAN buses, etc, etc) that there is
> not much free.
> In the first draft design (shown on the attached pictures), we had two
> general GPIO pins free - EXP_1 and EXP_2. However, working with
> Espressif (the makers of the ESP-32 MCU) it seems that the best and
> simplest way to use external flash is to change the SPI bus chip
> select line and add an external flash on that. If we do that, we need
> one more pin, and that means goodbye EXP_2.
> So, only one free GPIO pin - EXP_1.
> We do have two internal expansion slots where piggy-back boards can be
> plugged (one for the optional modem and one free for general use).
> These use standard 0.1” SIP connectors (two 1x10), so very easy to
> breadboard. For those, we have EXP_1 on the attached diagram.
> These pins are also available on a DA26 female expansion connector on
> the side of the module (so you can use them directly).
> There is also a SW_12V switched 12volt supply on the DA26 female
> expansion connector.
> So, the short answer is if you just need a single GPIO, that is
> available either internally of externally as EXP_1. If you need a
> second, you could probably use the SW_12V as well.
> _*I/O expansion*_
> If you need more than two, then you could use a SPI bus I/O
> expander, probably on one of the internal expansion slots, and use
> EXP_1 to drive that. The MAX7317 is suitable.
> In the first draft design for OVMS v3, we have three relatively
> unused simple I/O pins
> o MDM_EN - UART 2, modem enable (used to reset the modem - very
> o SW_CTL - Switched 12V control signal (used to turn on/off the
> external 12V - very infrequent)
> o EXP_1 - expansion pin
> What I’ve been considering is adding a MAX7317 as standard, using
> EXP_1 to drive that (along with the normal SPI bus used for two of
> the CAN buses), then moving MDM_EN and SW_CTL to that. The MAX7317
> has 10 I/O ports, so if we did that, we’d get 8 free I/O ports
> from the MAX7317 as well as 2 direct off the ESP32 MCU.
> I’m 99% decided to do that, but just trying to work out cost
> impact and if there is enough room on the board to actually fit it in.
> Regards, Mark.
>> On 28 Apr 2017, at 3:04 AM, Wolfgang Jenne <wolfi at spider.li
>> <mailto:wolfi at spider.li>> wrote:
>> One question: The OVMS v3 module: is it going to have some digital
>> inputs somehow?
> OvmsDev mailing list
> OvmsDev at lists.teslaclub.hk
Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
Fon 02333 / 833 5735 * Handy 0176 / 206 989 26
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the OvmsDev