Where to start for new Khadas VIM? (for Ubunutu)

So I just got my new Khadas VIM in the post and am now reviewing docs.khadas.com and sadly do not have a clue where to start to get my Khadas VIM booting into Ubunutu for my plans to use it as a headless web server.

I have previously gotten a Raspberry Pi booting and work with Linux in VMs regularly for the past year so am not an SBC newbie, but I honestly can’t figure out where to start to get the VIM working? Is there a step-by-step tutorial anywhere to show how to get a new VIM booting into Ubunutu, that includes all the steps?

Thank in advance.

P.S. I use a 3 year old MacBook Pro so I do not have native USB C on my machine. Does USB 2.0 have enough juice to power my Mac? If not, where can I find a power supply for the weird 4 pin power connector?

Hi, please follow this topic to upgrade Ubuntu.

Yes, the USB-C cable is spec as USB-2.0 OTG. Take a look Extra Power supply for info.

Good luck.

Hi, please follow this topic to upgrade Ubuntu.

Thanks. I will see if I can make that work.

Take a look Extra Power supply for info.

Yes, I saw that link before. All it says is “VIN Port spec as a 4-Pin 1.25mm port.” When I google “VIN Port 4-Pin 1.25mm port” I get nothing useful. If I just google “VIN port” I get this: https://www.vinport.com

I would like a link to a power supply that I can purchase that would be compatible with the Khadas VIM.

It´s a JST connector 4pin 1.25mm (female)

you can find it on ebay

It´s a JST connector 4pin 1.25mm (female)
you can find it on ebay

Thanks.

I can find the connectors on eBay, but cannot seem to find any power supplies for sale that use those connectors.

I am evaluating Khada VIM as the basis for a product we could use as a base for a product where we would just need to add software so I need to be able to find power supplies we can purchase to be able to include with the Khadas VIM.

There is another optional power supply for VIM: Using USB Host as Extra Power Input.

I have many 5vdc 2 amp and 3 amp AC adapters with barrel connectors, so I made a crude Female USB-to-Female barrel adapter. This type of adapters are on ebay and elsewhere(?). An example, though I would check for correct polarity before using these.

Thanks.

I am hoping not to have to resort to deliver a jangle of adapters with our product.

If Khadas VIM has a connector for power, it seems absolutely crazy that there would be no power supplies to use with it. Or is my thinking somehow wrong here?

So the USB A accepts 5v 2A of power? Can you point me to where I can find a power supply that provides a USB-A connector?

(Is it me, or does it seem the power solutions for Khadas VIM were not fully thought through? Everything else about it is what we need…)

Hi, Mikeschinkel:
It seems that you confuse with with power supply for Khadas VIM:

  • USB-C is main power supply for VIM, what you needed is just a USB adapter for the USB-C cable
  • VIN is extra power supply
  • USB host is also a optional extra power input
USB-C is main power supply for VIM, what you needed is just a USB adapter for the USB-C cable
VIN is extra power supply
USB host is also a optional extra power input

My concern is my use case would need the OTG USB port connected to my customer’s computer, and most of those are going to be USB 2.0 (0.5A) for the near future. So I assume that will mean I must provide my users with a wall wart power adapter using your VIN extra power supply or your USB host optional extral power input. Yet I cannot find a wall wart with support for a VIN or for USB A cable.

Does my use-case and my needs not make sense?

A wall wart(DC adpater) with USB port would be works fine, just like this:

This DC adapter can work both for:

  • USB-C cable
  • VIN to USB cable
  • male-to-male USB cable

Ok, thanks, but how to find VIN to USB cable or male-to-male USB cable. I have looked for both and cannot find any.

Examples…

http://www.ebay.com/sch/i.html?_from=R40&_trksid=p2050601.m570.l1313.TR0.TRC0.H0.TRS0&_nkw=usb+2.0+a+male+to+a+male+cable&_sacat=0

1 Like

THANK YOU! (I did look. Honestly!)

I continued looking and found these. Would you agree these would work as a power supply can cable I could package with a Khadas VIM to allow the USB OTG port to be available for the computer’s use?

1-Port 2.1A USB Wall Charger
https://www.monoprice.com/product?p_id=16072

1.5ft USB 2.0 A Male to A Male 28/24AWG Cable (Gold Plated)
https://www.monoprice.com/product?p_id=5441

I don’t doubt you, I had to use a few search terms before they popped up. :slight_smile:

It is important to note that the two USB ports have different mA ratings.
The USB port next to the USB-C port(the same end as the switches) has a 900mA max.
The USB port next to the LAN port is rated at 500mA max.

In either case, these are substantially less than the 2+ Amps available through the USB-C or Vin header.
This could be a factor if you plan on using the remaining USB port for accessories.


1 Like

Yes, High-Amp USB chargers are almost ubiquitous these days.

The cable you linked is only 18 inches long. Is that long enough for you use?

I am aware that accessories connected to a USB A port can only draw 500mA, and that USB C can only draw 900mA max. However I am not skilled enough to read and understand the schematics which is partly why I have been pushing for off-the-shelf solutions.

Are you saying that if I connect a USB-C to a 5V2A power supply that it will not be able to provide 2A to the Khadas VIM? And that the same would be true if I were to connect power via VIN?

What about via the USB-A port? Can it draw 2A from a 5V2A power supply like the one I linked from Monoprice?

My use-case is as a headless server. I need one USB-OTG port to connect to my user’s laptop or desktop – and I expect to use the USB-C port for that – but I do not need the other two (2) USB-A ports so it one of them can support the full 2A of power then I believe the above links give me what I need (no?)

Thanks for asking that. The link provided has cables from 1.5ft all the way up to 15ft. We are considering offering our customers a choice of length (1.5ft vs. 3.0ft vs. 6.0ft) when we are in our “working prototype” phase and that will help us understand what most people would prefer, and if it makes sense to provide an option once we are in full production sales mode.

That said, we’d have to test the 6.0ft to see if it could provide enough power.

P.S. I usually want shorter cables and am always annoyed when I am supplied a 3ft cable for a 1.5ft need! FWIW. :slight_smile:

The USB ports are protected by fuses. You will note from the schematic, the fuses are 500mA and 900mA. Current traveling in or out of the USB ports must travel through these fuses. Current in excess of 500mA or 900mA will blow the fuses, respectively.
That being said, running headless and not using USB devices will reduce current demand of the Vim. What the Vim needs for operation, is yet unknown to me. I have to assume, as Gouwa suggested the 900mA USB port as an alternate power input, it can be adequate to run the Vim. But if it is adequate, you could only utilize about 1Amp(1000mA) of the 2A adapter in your link(when powering via USB). The 2+ Amps supplied to the Vim through the USB-C or the Vin header is in excess of the current needed to run the Vim, the excess is provided to supply connected USB accessories power and/or the GPIO. So we know 2A is not required to run the Vim.

The USB-C port is good for 2A.[quote=“RDFTKV, post:17, topic:146”]
… 2+ Amps available through the USB-C or Vin header.
[/quote]

Yes, I don’t care for “too long for their purpose” cables either. However, better too long than too short. :slight_smile: