RISC-V Mini PC

by Arnov Sharma in Circuits > Computers

1870 Views, 20 Favorites, 0 Comments

RISC-V Mini PC

StarFive VisionFive 2 Mini PC
40.gif
42.gif
44.gif
aassd.jpg

Greetings everyone and welcome back; Here's something new, but RISC-KY.

A Mini PC powered by the Vision Five 2 Single Board Computer from Starfive, which is equipped with the latest RISC-V-based SOC and runs Debian 11.

The whole build was constructed from scratch, starting with the model's design in Fusion 360, followed by the 3D printing of each component and assembly to produce a compact, square PC that resembles an Intel NUC.

This Mini PC has an inbuilt power source that is composed of up to four Li-ion Cells connected in parallel to a power module board.

The intention was to create a small, NUC-like PC with integrated power and cooling, enabling us to conveniently power the SBC for testing and possibly even some retro emulation.

Supplies

These are the materials used in this build.

  1. Power Module (Provided by PCBWAY)
  2. SBC: Starfive Visionfive 2
  3. 3D-printed Parts
  4. Mini DC Fan 5V
  5. M2 Screws
  6. M3 Nuts and Bolts

StarFive's VisionFive 2

01.gif
06.gif
IMG_20240802_194819.jpg
WhatsApp Image 2024-08-04 at 2.39.11 PM.jpeg

This is StarFive's VisionFive 2, an exciting new development in the SBC world's RISC-V category. The RISC-V architecture, which is entirely unique and distinct from ARM and X86, powers the VisionFive 2 SBC.

Here, this board packs the JH7110, a quad-core 64-bit SoC with RV64GC ISA, running up to 1.5 GHz, and integrated with IMG BXE-4-32 MC1, supporting OpenCL 3.0, OpenGL ES 3.2, and Vulkan 1.2.

VisionFive 2 is available with 2/4/8 GB LPDDR4 RAM options.

We are using the 8GB variant here.

Every peripheral I/O port, including an audio jack, Gigabit Ethernet, HDMI, and USB 3.0 connectors, is located on the front side.

The Type C power connector and Raspberry Pi-style GPIO header pins are located on the board's back, so we can even combine them with Thonny or Terminal to create Python-driven electronics.

This board has an M.2 connector for Gen3x4 NVME SSDs, an eMMC socket that allows users to add an eMMC module to the board to enhance the amount of available storage, and a standard TF card slot.

They have also included a DIP switch that can be configured to run the operating system from three different sources: the TF Card, NVME, and eMMC.

Similar to the Raspberry Pi, this SBC also has standard MIPI-CSI and MIPI-DSI connectors for connecting displays and cameras.

As mentioned earlier, this board runs on a RISC-V chip, and what exactly is a RISC-V?

RISC-V is an open-source instruction set architecture (ISA) designed for creating custom processors for a wide range of applications. Initially developed at the University of California, Berkeley, RISC-V represents the fifth generation of processors based on the reduced instruction set computer (RISC) concept.

Put simply, RISC-V leverages simplified and condensed instruction sets, which contributes to the system's overall energy efficiency and increased speed above conventional processors. (While in theory quicker, RISC-V based boards are now extremely slow, barely beating the Raspberry Pi 3 and lacking in power compared to the Pi 4).

Fun fact: both ARM and RISC-V follow the reduced instruction set design philosophy. The key distinction between the two is RISC-V's openness and ARM's closedness; ARM uses a closed instruction set architecture (ISA) based on RISC that is licensed to businesses like Apple, for example, with their M Series processors. RISC-V is a relatively new architecture that is currently open source, suggesting that it may have potential in the future as more businesses should be able to build and modify it.

In terms of raw power, ARM currently leads, but we will have to wait and see.

It is evident that we will need some time to get things right, as our Starfive was having trouble with standard online browsing. Perhaps in the future, it will perform even better.

You can get more information about this SBC here:

https://www.starfivetech.com/en/site/boards

https://doc-en.rvspace.org/VisionFive2/Landing_Page/VisionFive_2/introduction.html

Benchmark Comparison

12.PNG
13.PNG
14.PNG
15.PNG

We have provided a benchmark score obtained from Geekbench 5, where we receive a multi-core score of 276 and a single-core score of only 78.

The Raspberry Pi 3B Plus, in contrast, has a multi-core score of 258, which is somewhat lower than Vision Five 2, but a single-core score of 98, which is higher.

The Raspberry Pi 4's single-core score is 256, while its multi-core score is 617. These numbers are significantly lower than what we achieved on the new Raspberry Pi 5 with the NVME hat, which scored 824 in the single-core test and 1836 in the multi-core test.

Design Process

01.PNG
02.PNG
03.PNG
04.PNG
05.PNG
06.PNG
07.PNG
08.PNG
09.PNG
10.PNG
11.PNG

The Starfive Vision Five 2 board and the power module board were the first boards the model modeled. We measured both boards and created an exact 3D model that would be used to design the body.

This mini PC's enclosure is made up of three separate parts: the bottom lid part, which holds the power module in place; the middle section, which holds the start-five board in place and has two slots for placing the rocker switch; and the top section, which contains the fan and grill assembly.

In addition, we have incorporated four foot parts that screw into the bottom lid section and raise the PC somewhat off the ground.

We have attached a nametag that says "RISC-V Mini PC" to the front face of the middle section. Two-color filaments will be utilized for making this part through the 3D printing process.

Once the model was finished, we exported each component and used grey PLA and transparent PLA to 3D print them using a 0.6mm nozzle and 0.2mm layer height.

Power Module

IMG_20240804_140202.jpg
IMG_20240804_140154.jpg
10.gif
1526049335705.jpg

For powering the single-board computer, we are using this awesome power management board that we got from the PCBWAY gift shop.

https://www.pcbway.com/project/gifts_detail/Four_Way_18650_Battery_Holder_V3_Development_Board_Compatible_with_Raspberry_Pi_STM32_.html

This circuit is a Power Management Board that contains four lithium-ion cell holders, each connected in parallel with a Power management IC.

This board basically boosts 3.7 volts of Li-ion Cells to 5 volts for powering XYZ stuff through the USB Port or multiple CON2 Ports provided onboard.

We can get a wide range of outputs from this device, from 3.3V to 5V.

What makes it special?

  • Battery protection (overcharge or over-discharge)
  • Miniature USB port input
  • Type a USB output.
  • 0.5 A current charging.
  • 1 switch controls USB output /5 ~ 8 V input voltage.
  • Output of 3 V and 1 A and output of 5 V and 2 A.
  • LED indication (green, red for charging)
  • 3 V output port.
  • The 5 V output port should be careful with "+" and "-", and the direction you should follow is "+" and "-" on the PCB.

PCBWAY Giftshop

2Capture.PNG
1526049335705.jpg

As for sourcing this component, I got this circuit from PCBWAY's Giftshop

https://www.pcbway.com/project/gifts_detail/Four_Way_18650_Battery_Holder_V3_Development_Board_Compatible_with_Raspberry_Pi_STM32_.html

PCBWAY gift shop is an online marketplace where you can get a variety of electronics modules and boards for their genuine price, or you could use the PCBWAY currency, which is called beans.

You get beans after ordering something from PCBWAY as reward points, or you can also get them by posting any project in the PCBWAY community.

They are presently celebrating their tenth anniversary in business by hosting a tour that includes a few activities in which you can take part and win some goodies, such as special coupons and the chance to open blind boxes filled with merchandise from their gift shop.

Over the past ten years, PCBWay has distinguished itself by providing outstanding PCB manufacturing and assembly services, becoming a trusted partner for countless engineers and designers worldwide.

Their commitment to quality and customer satisfaction has been unwavering, leading to significant growth and expansion.

You guys can check out PCBWAY if you want great PCB service at an affordable rate.

Power Module Assembly

11.gif
12.gif
13.gif
14.gif
15.gif
16.gif
  • We connected red and black wires to the Type C Breakout board's VCC and GND ports using a soldering iron. We then connected the red and black wires to the power module's 5V and GND.
  • We additionally upgraded the push button's terminals on the board with a bell-style rocker switch. We linked the rocker switch to the terminals of the existing PSU button so that it could be used to turn the power module on or off.
  • Subsequently, we inserted four 3.7V, 2900mAh Li-ion batteries into the cell holder located on the rear side of the power module, taking care to align the cells with the designated polarity on the board. Incorrect cell placement will undoubtedly result in a short circuit.
  • Following the placement of the cell, we use a multimeter to measure the output voltage by switching the rocker switch. 5V is seen on the output side, confirming that the setup is operating.

Cooling Fan

IMG_20240804_142403.jpg
17.gif
18.gif
IMG_20240804_142556.jpg
  • We connected a 5V mini PC fan to the module's 5V output by placing a rocker switch between the fan's 5V and the power module's 5V.
  • The user can turn the DC fan on or off by using the rocker switch.

Top Lid Fan Assembly

19.gif
20.gif
21.gif
  • We installed the DC fan and fan grill on the top lid part, which holds the fan in place.
  • Next, we used four M3 Allen key type bolts and nuts to fasten the fan to the top lid part.

Middle Section Assembly

07.gif
08.gif
09.gif

The assembly of the mid section was quite easy: we just needed to insert the SBC into the upside-down orientation and use four M2 screws to fasten it to the mid section using the provided screw bosses.

Switch Assembly

22.gif
23.gif
24.gif
25.gif
26.gif
  • After removing the switch that is attached to the DC fan, we install it in the switch slot located on the left side of the midsection.
  • Next, we reattach the DC fan switch to the switch.
  • In the same manner, we installed a bell-shaped rocker switch on the center section's right face, which will serve as the primary power-on switch.

Top Lid-Middle Section Assembly

27.gif
28.gif
29.gif

We mount the top section fan assembly and the mid section together with four M2 screws.

Bottom Lid-Power Module Assembly

30.gif
31.gif

We install the power module on the bottom lid section and fasten it with four M2 screws.

Final Assembly

32.gif
33.gif
34.gif
35.gif
36.gif
37.gif
38.gif
39.gif
  • The assembly process begins with the wires of the Power ON/OFF rocker switch being soldered in parallel with the ON/OFF switch terminals that are positioned onboard.
  • Likewise, we linked the DC fan's terminals to the power module's 5V and GND.
  • After adding the power module, the Type C port on the Starfive board is connected to it. Power for the SBC will be supplied by this port.
  • The midsection and the bottom lid were then linked together, and four M2 screws were used to permanently fasten them together.
  • We attach the SBC nametag to the front face of the mid section using superglue.
  • Finally, we install the model's four feet and fasten them with four M2 screws to the bottom lid.

The assembly process is now complete.

RESULT

StarFive VisionFive 2 Mini PC
42.gif
44.gif
45.gif
46.gif

This straightforward build resulted in a functioning RISC-V PC with onboard power, driven by the new Starfive VisionFive 2 board.

In order to get started operating the Mini PC, we connected a monitor via the HDMI port and added a mouse and keyboard via the USB ports.

Once the Power ON OFF rocker button is pressed, the mini PC powers on. We then turn on the cooling fan to ensure that the CPU temperature stays low.

The SBC has Debian installed, and we will test the VisionFive 2 SBC using this PC setup and compare it to the current arm-based board.

For now, the objective has been completed, which was to make a small PC setup.

Overall, this project was a success and needs no further revisions.

In addition, we appreciate PCBWAY's support of this project. Visit them for a variety of PCB-related services,, such as stencil and PCB assembly services, as well as 3D printing services.

Thanks for reaching this far and I will be back with a new project pretty soon.

Peace.