Moddable-OpenSource / moddable

Tools for developers to create truly open IoT products using standard JavaScript on low cost microcontrollers.
http://www.moddable.com
1.32k stars 236 forks source link

External Interface spec for Moddable demo hardware #423

Closed mikew67 closed 4 years ago

mikew67 commented 4 years ago

I note that in issue #221, a request for schematics for your hardware products was denied. OK, but I do need External Interface Specs for your products, especially the Moddable Two. I intend to build some daughter cards for the MTwo (R6, in the current case), and run it off battery power. Hence, I need these specs, including:

Thanks,

Mike

mikew67 commented 4 years ago

Doing a bit of reverse engineering, the Moddable Two uses a CJT1117B-33 LDO, which is rated at 1A output, fixed 3.3vdc, with a drop out of 1.15v at 1A. With the Balls demo running as a sample load, the board consumes about 140ma. USB 2 is spec'd to provide 0.5A at 5vdc. So with a comparable supply, it looks like there should be plenty of power available at the 3.3v output pin to run my peripherals (something between 500-140 = 360ma, or more if the power input can handle >500ma. Ultimate limit would be the 1A rating of the LDO (or less, based on heat dissipation).

That's all good, but the 1.15v drop out of the LDO means a single LiPo cell wouldn't suffice because the voltage out of the LDO would be too low (4.15..3.75 - 1.15 = 3.15..2.60) and unregulated. Two LiPo cells in series should work just fine (i.e., ~7vdc input) as long as all the components upstream from the LDO can handle it.

Will try some experiments, at least at the low voltage end...

chris-moddable commented 4 years ago

More information on the power and pins of the Moddable Two below. Let us know if this helps in your development.

Moddable Two Pin Information

6-pin Programming header

Name I/O Description
RTS I/O Connects to auto programming and reset circuit
DTR I/O Connects to auto programming and reset circuit
TX I/O Connects to ESP32 GPIO-01
RX I/O Connects to ESP32 GPIO-03
5v I 5v input connects to LM1117-3.3 voltage regulator and 5v pin on 16-pin external connector
GND GND Connects to GND

16-pin External header

Name I/O Description
SDA-GP21 I/O Connects to ESP32 GPIO21 (standard SDA, no external pull up resistor)
SCL-GP22 I/O Connects to ESP32 GPIO22 (standard SCL, no external pull up resistor)
GND GND Connects to GND
3.3v I/O 3.3v input and output. Connects to ESP32 3.3v input and other 3.3v IC's. Regulated output power if board is 5v powered via micro USB, VIN external connector or programming connector.
GP13 I/O Connects to ESP32 GPIO13 (Also MOSI for display)
GP12 I/O Connects to ESP32 GPIO12
GP14 I/O Connects to ESP32 GPIO14
GP32 I/O Connects to ESP32 GPIO32
GP33 I/O Connects to ESP32 GPIO33
GP35 I/O Connects to ESP32 GPIO35
GP27 I/O Connects to ESP32 GPIO27
GP26 I/O Connects to ESP32 GPIO26
VIN I/O VIN is a 5v pin that can be used to power the Moddable Two. If the board is powered by one of the other 5v inputs this pin can be used for external 5v power. This is an un-regulated pin. Connects to other 5v inputs and LM1117-3.3 voltage regulator.
GP17 I/O Connects to ESP32 GPIO17
GP16 I/O Connects to ESP32 GPIO16
GP0 I/O Connects to ESP32 GPIO0

Power

The Moddable Two is a 3.3v device. 5v power is regulated to 3.3v by a LM1117-3.3 voltage regulator (see data sheet for specs). Testing of Moddable Two has been with typical 5v 0.5amp USB source power.

Power can be supplied to the Moddable Two via the following:

External header output power pins

mikew67 commented 4 years ago

Thanks!

Mike

On Sun, Aug 23, 2020 at 4:44 PM Chris Krueger notifications@github.com wrote:

More information on the power and pins of the Moddable Two below. Let us know if this helps in your development. Moddable Two Pin Information 6-pin Programming header Name I/O Description RTS I/O Connects to auto programming and reset circuit DTR I/O Connects to auto programming and reset circuit TX I/O Connects to ESP32 GPIO-01 RX I/O Connects to ESP32 GPIO-03 5v I 5v input connects to LM1117-3.3 voltage regulator and 5v pin on 16-pin external connector GND GND Connects to GND 16-pin External header Name I/O Description SDA-GP21 I/O Connects to ESP32 GPIO21 (standard SDA, no external pull up resistor) SCL-GP22 I/O Connects to ESP32 GPIO22 (standard SCL, no external pull up resistor) GND GND Connects to GND 3.3v I/O 3.3v input and output. Connects to ESP32 3.3v input and other 3.3v IC's. Regulated output power if board is 5v powered via micro USB, VIN external connector or programming connector. GP13 I/O Connects to ESP32 GPIO13 (Also MOSI for display) GP12 I/O Connects to ESP32 GPIO12 GP14 I/O Connects to ESP32 GPIO14 GP32 I/O Connects to ESP32 GPIO32 GP33 I/O Connects to ESP32 GPIO33 GP35 I/O Connects to ESP32 GPIO35 GP27 I/O Connects to ESP32 GPIO27 GP26 I/O Connects to ESP32 GPIO26 VIN I/O VIN is a 5v pin that can be used to power the Moddable Two. If the board is powered by one of the other 5v inputs this pin can be used for external 5v power. This is an un-regulated pin. Connects to other 5v inputs and LM1117-3.3 voltage regulator. GP17 I/O Connects to ESP32 GPIO17 GP16 I/O Connects to ESP32 GPIO16 GP0 I/O Connects to ESP32 GPIO0 Power

The Moddable Two is a 3.3v device. 5v power is regulated to 3.3v by a LM1117-3.3 voltage regulator (see data sheet for specs). Testing of Moddable Two has been with typical 5v 0.5amp USB source power. Power can be supplied to the Moddable Two via the following:

  • 5v - Micro USB connector (note the Micro USB cannot be used for programming)
  • 5v - Moddable Programmer connector
  • 5v - VIN on 16 pin external header
  • 3.3v - 3.3v pin external header

External header output power pins

  • VIN is a direct connection to the 5v input sources
  • 3.3v is the output of the LM1117-3.3. Output of the LM1117 is conditioned with a 100uf Tantalum capacitor.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Moddable-OpenSource/moddable/issues/423#issuecomment-678840861, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJV5VONICICISOXG4ZWPDDSCGSXBANCNFSM4QFPQEBQ .

phoddie commented 4 years ago

We'll migrate this information to the Moddable Two documentation, so it is easy to find.