How To Install Gfk 160a Fan Kit
Contributors: bboyho, Santa Claus Impersonator
Introduction
In this tutorial, we'll show you how to install CH340 drivers on multiple operating systems if yous need. The driver should automatically install on about operating systems. Withal, at that place is a wide range of operating systems out there. You lot may need to install drivers the showtime time you connect the flake to your computer's USB port or when there are operating arrangement updates.
Required Materials
Depending on your application, the CH340 may be populated on a breakout or development board. Hither are a few boards that utilise this particular USB-to-series converter.
SparkFun RedBoard Qwiic
DEV-15123
The SparkFun RedBoard Qwiic is an Arduino-compatible development board with a built in Qwiic connector, eliminating the need …
Accessories
You'll likewise need the correct USB cablevision to connect the board to your computer. You lot may demand a jumper wires and a breadboard for prototyping.
Suggested Reading
Before you brainstorm this tutorial, y'all should have the Arduino IDE installed on your calculator. Check out our Installing Arduino tutorial for a step by footstep guide.
Serial Communication
Asynchronous series communication concepts: packets, signal levels, baud rates, UARTs and more!
Connector Basics
Connectors are a major source of confusion for people but beginning electronics. The number of different options, terms, and names of connectors can make selecting one, or finding the ane you demand, daunting. This article will assist you become a jump on the world of connectors.
What is an Arduino?
What is this 'Arduino' thing anyway? This tutorials dives into what an Arduino is and along with Arduino projects and widgets.
Logic Levels
Learn the divergence between 3.3V and 5V devices and logic levels.
Serial Final Basics
This tutorial volition bear witness you lot how to communicate with your serial devices using a variety of final emulator applications.
Alright, let's go to work! You lot can visit the next section to learn more about the CH340 and why you need the drivers, or you tin skip straight to the operating organisation of your option!
Meet the CH340
There are a few variants of the CH340. The CH340G requires an external crystal oscillator to office while the CH340C includes a built-in crystal oscillator. However, both function in the same fashion - they convert USB information for a serial UART and vice versa!
The CH340 is also populated on evolution boards such as the RedBoard Qwiic to upload lawmaking using the Arduino IDE.
Drivers (If You Need Them)
The CH340 has been tested on:
- Windows 7/10
- Mac OSX
- v10.10.5 (Yosemite)
- v10.eleven.6 (El Capitan)
- v10.13.0 (High Sierra)
- v10.fourteen.5 (Mojave)
- Linux
- Raspbian Stretch (11-13-2018 release) for the Raspberry Pi
- Raspbian Buster (2019-07-10 release) for the Raspberry Pi
- Ubuntu v18.04.2, 64-flake
These operating systems accept the CDC drivers pre-installed, which ways y'all shouldn't demand to install whatsoever extra software. All the same, there are a wide range of operating systems out at that place, so if you see driver issues, you can get the archived drivers linked below:
- Windows (EXE) -- Driver executable
- Windows (ZIP) : Driver v3.iv (2016-09-27)
- Mac (ZIP) : Driver v1.5 (2018-07-04)
- Linux (ZIP) : Commuter v1.5 (2018-03-xviii)
The CH340 is made by WCH. Yous can discover the latest version of their drivers in their English translated website.
Note: At the time of writing, y'all were only able to find the latest version of their drivers from their website in Mandarin. If you use a Chrome web browser, you had the option to accept the web page translated. However, yous at present take the option of browsing the WCH website in either language. For those interested in heading to the Mandirin side, you lot can click on the button below.
Updating Drivers
If yous have the older CH340 drivers installed, y'all may need to update them. Below are the instructions for doing and then on each of the tested operating systems.
Windows 7/10
Note for Educators: Y'all will need to obtain authoritative privileges from your network or It administrator in lodge to install these drivers. Make certain to exam the drivers before form and gear up bated some fourth dimension with students in the classroom when installing the drivers.
Download and run the executable.
Click the "Uninstall" push button get-go. Then click on the "Install" button.
Windows CH340 Driver Installation
Commuter Verification for Windows
To verify that your commuter is working, you lot should come across a difference in the following pictures after plugging the CH340 to a USB port.
Device Manager
To cheque that the CH340 enumerates to a COM port, you can open the device manager. You tin click the Showtime or ⊞ (Windows) push button and type "device manager to apace search for the application.
Using the search on Windows ten to look for the device managing director.
Subsequently opening the device director, you volition need to open the Ports (COM & LPT) tree. The CH340 should show upwards as USB-SERIAL CH340 (COM##). Depending on your reckoner, the COM port may show up equally a different number.
Screenshot of Window 10 Device Managing director with a CH340 displayed on COM123. Click to enlarge.
Arduino IDE
Alternatively, if yous take the Arduino IDE installed, you should besides see a alter in the number of available COM Ports (you may need to restart the Arduino IDE for the board to populate). Without the CH340 connected to your computer, click on Tools > Port. Accept note of the Series Ports bachelor.
Connect the CH340 to your computer'southward USB port. Click on somewhere else on the screen for the menu to refresh itself. Then caput dorsum to the carte du jour by clicking on Tools > Port. A new COM port should pop up. Past procedure of elimination, the CH340 should accept enumerated to the new COM port! Feel free to click on the COM port to select if you are uploading code to a microcontroller. Depending on your computer, the COM port may show a different number.
Series Loop Back Exam
You lot tin can also verify if the USB-to-serial converter is working by doing a serial loop back examination or repeat test. If you are using the breakout board, you lot tin can add a jumper betwixt the Tx and Rx to attempt and repeat a grapheme in a terminal program. For more information, attempt checking out the Hardware Test for the series basic hookup guide.
Mac OSX
Note for Educators: Y'all will need to obtain authoritative privileges from your network or IT administrator in society to install these drivers. Make sure to test the drivers before class and set aside some time with students in the classroom when installing the drivers.
Open the Terminal program by selecting Get > Applications.
Select and open the Terminal program under Applications > Utilities > Terminal.
Note: You tin likewise search with Spotlight past pressing ⌘ (Command) + infinite bar (Infinite Bar). So type "Concluding" and double-click the search result.
If you are still unsure of how to access the Terminal, watch this video or read this Apple tree support article.
Yous'll need to move to the directory where the *.kext files are stored.
-
For Mac OSX v10.9+, y'all volition demand to use this command:
language:bash cd /Library/Extensions -
For Mac OSX v10.8 and below, you will demand to use this control:
linguistic communication:fustigate cd /System/Library/Extensions
In this instance, we will be using Mac OSX v10.13, so we will need to use the kickoff command.
To cheque to see if the CH340 driver is in the correct path, use the following command to list the contents of the binder.
linguistic communication:bash ls To look for CH340 driver files (i.e. usb.kext or usbserial.kext) in the path, you could use the following command.
language:bash ls | grep usb Yous should see something similar to the output below after using the commands.
If y'all have plant the file in the path, you will need to run each of the following commands in the CLI/Terminal to remove old CH340 drivers. In this example, at that place was only the usbserial.kext file but it does non hurt to run both commands. Make sure to have administrative privileges to ensure that the drivers are removed.
language:fustigate sudo rm -rf /Library/Extensions/usb.kext sudo rm -rf /Library/Extensions/usbserial.kext Check if the old drivers were removed in the paths past using the ls command with your respective OS version. Yous will find that the *.kext file is removed from the respective paths. In this example, the usbserial.kext was removed from Mac OSX Loftier Sierra.
language:bash ls
Download and extract the folder.
And so, open up the "*.pkg" file from the unzipped folder and follow the instructions. You'll demand to restart your computer for the changes to take effect.
Mac OSX CH340 Commuter Installation File
Driver Verification for Macs
To verify that your driver is working, y'all should see a difference in the following pictures after plugging the CH340 to a USB port.
Command Line
Open the Final past heading to Applications > Utilities > Final if the program is non open yet.
Then run the following control:
language:fustigate ls /dev/cu* A listing of devices connected to your Mac'southward COM ports will be displayed every bit a result. Assuming that the CH340 is not connected to your computer, you should come across something similar to the prototype below.
Connect the CH340 to one of your Mac'south COM ports. Check for the following changes (your board may show up nether a different device name). The CH340 should prove upward every bit /dev/cu.wchusbserial*****. Depending on your estimator, the COM port may show up as a different number.
Screenshot of Mac OSX concluding with CH340 on cu.wchusbserialfd1410. Click to enlarge.
Arduino IDE
Alternatively, if you have the Arduino IDE installed, you should also see a change in the number of available COM Ports (y'all may need to restart the Arduino IDE for the board to populate). Without the CH340 continued to your calculator, click on Tools > Port. Take notation of the Serial Ports bachelor.
Connect the CH340 to your estimator's USB port. Click on somewhere else on the screen for the card to refresh itself. And then head back to the menu by clicking on Tools > Port. A new COM port should pop up. By procedure of elimination, the CH340 should accept enumerated to the new COM port! Feel gratis to click on the COM port to select if you are uploading code to a microcontroller. Depending on your computer, the COM port may evidence a different number.
Serial Loop Back Test
Yous tin can likewise verify if the USB-to-serial converter is working by doing a series loop back test or repeat test. If you are using the breakout board, y'all can add together a jumper between the Tx and Rx to endeavor and repeat a grapheme in a final program. For more than information, endeavor checking out the Hardware Exam for the serial bones hookup guide.
Linux
Note for Educators: You lot will demand to obtain administrative privileges from your network or Information technology administrator in order to install these drivers. Make certain to test the drivers before course and set bated some fourth dimension with students in the classroom when installing the drivers.
Raspbian for Raspberry Pi
Run the post-obit commands in the CLI/Concluding when using Raspbian on a Raspberry Pi. After updating, the latest CH340 should be installed!
language:fustigate sudo apt-become update sudo apt-become upgrade Other Linux Distributions
Hither is a downloadable *.Null of standard CH340 drivers for Linux.
There are some reported cases of serial advice failure when using the factory drivers in Linux. If you encounter this problem, you can try installing patched drivers as explained in this forum post. Hither are the steps (to run in the control line):
- Plug and unplug your CH340 device from the USB port
- Type
dmesgto see what has happened- The expected output (shows "ch341") should have the following in the recent log:
[ thirty] ch341-uart ttyUSB0: ch341-uart converter at present disconnected from ttyUSB0 [ xxx] ch341 3-2:1.0: device disconnected - Download the patched drivers repository and unzip the files
-
cdinto the directory where the files are saved -
make clean -
make -
sudo make load -
sudo rmmod ch341to uninstall the broken driver -
lsmod | grep ch34to list what modules are currently installed - Plug and unplug your CH340 device again on the USB port
-
dmesg- Expected output (should bear witness "ch34x" now):
[ 30] ch34x ttyUSB0: ch34x converter now asunder from ttyUSB0 [ 30] ch34x iii-2:1.0: device disconnected Depending on your root permissions, y'all may need to configure the serial port with the following 2 commands. Brand sure to adjust the $username with respect to the user ID that is currently logged in.
language:fustigate sudo usermod -a -G dialout $username sudo chmod a+rw /dev/ttyUSB0 Commuter Verification for Linux
Command Line
Plug the CH340 back to your computer's USB port. And then run the following command in the CLI/Terminal on any Linux distribution. Check for the following changes (your board may testify upward nether a different device proper name).
language:bash ls /dev/ttyUSB* The serial port that CH340 is continued to should pop up as a consequence.
Screenshot of Raspberry Pi CLI with the CH340 on ttyUSB0. Click to enlarge
Arduino IDE
Alternatively, if you have the Arduino IDE installed, you should also see a change in the number of available COM Ports (you may need to restart the Arduino IDE for the board to populate). Without the CH340 continued to your computer, click on Tools > Port. Depending on the Linux flavour that yous have, the Ports may not open to display any serial ports. Take annotation of the Serial Ports available if it opens up.
Connect the CH340 to your computer's USB port. Click on somewhere else on the screen for the menu to refresh itself. And then head back to the carte by clicking on Tools > Port. A new COM port should pop upwards. By process of elimination, the CH340 should have enumerated to the new COM port! Feel free to click on the COM port to select if you are uploading code to a microcontroller. Depending on your computer, the COM port may prove a dissimilar number.
Series Loop Back Test
You can besides verify if the USB-to-serial converter is working by doing a serial loop back examination or echo test. If y'all are using the breakout lath, you tin can add a jumper between the Tx and Rx to endeavour and echo a character in a last plan. For more information, effort checking out the Hardware Test for the serial bones hookup guide.
Troubleshooting
COM Port is Not Showing Up equally CH340 Windows
We have had a few reports on Windows ten where the driver will automatically install and the board will evidence up under a new COM port as USB-Serial CH340, but with a unlike device name. However, the lath cannot be accessed on the Arduino IDE. Others have had issues where the installation process hangs.
Based on the customer experiences, this might exist specific to the manufacturer and are usually isolated cases. Users seem to be able to eventually get the board recognized by a combination of giving the computer time to terminate the install (close to xx min), plugging the lath back in multiple times, reinstalling the drivers, and/or resetting the computer multiple times (repeat both steps).
COM Port Not Available Windows, Mac, and Linux
If you installed the drivers for the CH340 on your computer but take issues connecting via serial final or uploading code using the Arduino IDE, there may be an outcome with your user settings preventing you from using the CH340. You lot may receive an avrdude: ser_open(): can't open device fault similar to the output shown below.
language:bash avrdude: ser_open(): can't open device "/dev/ttyUSB0": No such file or directory In this example, the error appeared on a Linux when trying to upload code due to the drivers not being installed and the root permissions.
Brand sure to check your configuration settings and ensure that the series port for the CH340 is enabled for your OS. Y'all may also demand to reinstall the drivers for your operating system.
USB Cable Windows, Mac, and Linux
Certain USB cables are for ability only and may not accept the data lines available. Endeavor checking your USB cablevision and ensure that the data lines are intact.
Problems Uploading at Fast Baud Rates
If y'all are uploading to certain boards similar the Apollo3 on the Artemis evolution boards with fast baud rates, in that location are some platforms (Linux flavors) where the standard CH340 USB to serial drivers don't operate well at speeds higher than 115200. So if you run into upload issues, consider reducing the upload speed. For more information about upload issues, see this forum post and consider upgrading with these drivers for Mac OSX or these for Linux.
Resource and Going Further
Now that you lot've successfully got your CH340 up and running, it's time to incorporate it into your own project!
- WCH: CH340 Drivers - Latest drivers tin can exist downloaded from the manufacturer.
- Windows (EXE) -- Commuter executable
- Windows (Naught) -- Driver v3.4 (2016-09-27)
- Mac (ZIP) -- Commuter v1.5 (2018-07-04)
- Linux (Nil) -- Commuter v1.five (2018-03-eighteen)
USB-to-serial converters similar the CH340 are great for uploading code to a microcontroller or viewing data from a GPS on a serial terminal. Check out these tutorials to dive even deeper into the earth of microcontrollers or send serial data to your calculator with a GPS!
Serial Terminal Nuts
This tutorial will show yous how to communicate with your serial devices using a diversity of terminal emulator applications.
GPS-RTK Hookup Guide
Detect out where you are! Apply this easy claw-up guide to get upwardly and running with the SparkFun high precision GPS-RTK NEO-M8P-ii breakout board.
RedBoard Qwiic Hookup Guide
This tutorial covers the bones functionality of the RedBoard Qwiic. This tutorial besides covers how to get started blinking an LED and using the Qwiic system.
Or cheque out these blog posts.
Source: https://learn.sparkfun.com/tutorials/how-to-install-ch340-drivers/all
Posted by: mcfaddenfunce1977.blogspot.com

0 Response to "How To Install Gfk 160a Fan Kit"
Post a Comment