Connecting to my PC

Hi, I have an Arduino clone UNO SMD R3 ATmega328P, which I'm trying to use to switch a control in MSFS flight simulator. Arduino IDE recognises the board: Tools - Board - Arduino AVR Boards - Arduino Uno, and Tools - Port - COM4. I have uploaded and verified with no error messages. On the board when connected to PC by USB cable I have 2 red LEDs showing.

But the Arduino doesn't show up in Device Manager, except in Ports - USB Serial Port (COM4). Nor does it show up in the Games Controllers (unlike, for example, a flight sim control stick). So the result is that the simple switch I've installed on the arduino doesn't communicate with the PC program as it's supposed to. Any ideas, please?

Sounds like you have a clone which does not use the 16U2 serial-to-usb converter but a generic serial-to-usb converter (FTDI, Prolific, WCH).

Because they are generic, an operating system will never be able to differentiate their purpose.

If you expect your board to be able to be used as a game controller you can forget it.

1 Like

How do you think it should communicate with the PC program? The situation that you describe is exactly what would be expected. An Uno R3 connected to a PC will just look like a COM port.

Hi, just to clarify, no, I'm not wanting to using the board as a games controller, just to send a switch command (ON or OFF) to one of the controls in a flight sim program. I'm using a program called Mobiflight (installed on the PC) to communicate with the flt sim program.

The Games Controller I mentioned is a small program on MS Windows 10 that identifies what input devices eg a flight control stick, are connected. I expected to see the Arduino USB cable to show on on the Games Controller when I plug it in - but it doesn't show, which makes me believe either there's a problem in how I setup the board, OR, it's the wrong sort of board and I can't use it.

Probably.
What sort of board does the Mobiflight need?

Well, Mobiflight includes the Uno in the list of compatible boards. But one of the other replies I had suggested there are different types? Sorry, I'm a complete beginner in this matter!

OK, based on Supported Hardware your board should work.

Please note


Just in case. When you connect the board to Mobiflight, you need to close the Serial Monitor (and/or Serial Plotter) in the IDE. If it isn't, it might be the reason why the board is not detected.

Ah, OK I'll have a look. Thanks.

Just to explain what I’m getting – and bear with me, this is all new to me!

I open Arduino IDE, connect board to PC using supplied USB cable. Board shows 2 red LED lights, therefore must be receiving power via the USB cable.
Following the “getting started” Arduino Guide it says open Device Manager and look under Ports, and I should see Arduino UNO. But I don’t, all I see is 2 listings, Comms Port (COM1) and USB Serial Port (COM4). The board isn’t shown in Other Devices or HIDs and there is no “Unknown Device”. The Guide talks about updating drivers by right clicking on the Uno but it’s not there.

I open the Arduino IDE (2.3.3) and follow Guide for First Sketch (file – examples – 01 basics – Blink). It then says select board, but there are 2 options unknown COM1 and unknown COM4, which I select. Then select board from drop down long list, I select Uno and OK. The IDE window now shows Arduino Uno at the top and that it's COM4.
But clicking Upload then gives a red error message “avrdude: ser-open(): can’t open device \.\Com: Access is denied.

Sorry, I don't understand what are VID or PID. Also I can't do anything or close Serial Monitor/Plotter in Tools

Only if you have a genuine Uno, not some cheap clone that does not use the 16U2.

Does one of them disappear when you disconnect the board? Probably COM4 as COM1 is most of the time a serial port that is built in the PC.

Only one application can use the serial port at a time. So if e.g. mobiflight is claiming COM4 you can not upload.

Vendor ID and Product ID.

Double click the entry in device manager, select the Details tab and select Hardware Ids from the Property drop-down.

1A86 is the vendor ID and 7523 is the product ID.

Please explain. Which version of the IDE?

Hi! Welcome to the Forum.

In your very first post you say:

What did you upload that time?

Almost all Arduino chinese clones sold here have a CH340 chip as the USB to Serial converter. This requires a specific driver.

Does your board has this chip? If you cannot identify, please send a picture of your board.

Sterretje
To take your points one by one:

  1. The board was undoubtably cheap but as a beginner I thought it would do the job I wanted. I knew nothing about “the 16U2”
  2. Yes, USB Serial Port (COM4) disappears when I disconnect the board.
  3. Following your instructions (Details – Hardware IDs – Property) it is shown as FTDIBUS\COMPORT&VID_0403&PID_6001 Does that help with the VID and PID?
  4. As I said I’m using Arduino IDE 2.3.3
  5. Going back to your earlier post ref Serial Monitor if I select Tools – Serial Monitor I get a message in the lower box “Connecting to ‘ArduinoUno’ on ‘COM4’”, but after a few seconds “Port monitor error command ‘open’ failed: Serial port busy. Could not connect to COM4 serial port.” So when you said I needed to “close the Serial Monitor in the IDE”, it seems it was never open?

And to answer Brazilino’s question about uploading, I think I meant I’d just selected the IDE upload arrow.
Regarding the question about a specific chip on my board, yes, it does have the component your arrow points to; it appears to be labelled C14. My board is similar but not quite the same as your picture - I'm not sure how to post my own picture yet. Immediately to the right of the main connecting port I have the oval component as in your picture, and I also have the same or similar component to the right of the square CPU and just to the left of your C6 (which I also have). Does that help? You mentioned a specific driver?

Don't worry about it; I'm quite sure that it should be supported in mobiflight unless the serial-to-usb converter is a fake.

There is a bug in IDE 2.3.3 where uploads can fail (specifically with FTDI based boards) if you have the serial monitor or serial plotter open.

It's strange to find a cheap clone with a FT232 chip; there is nothing wrong with that (I have an expensive clone with the FT232). I don't have an official Nano so can't check the VID/PID but I'm reasonably sure that it will be the same as in your output. The chip should look like below (count the number of pins). It's also what @Brazilino pointed at, not at the small capacitor (:wink:)

An official Nano has the FT232 chip and is mentioned in the mobiflight documentation so it should work.

Not sure about it. "Serial port busy" indicates that something else is using the port; it can be part of the IDE or it can be mobiflight or it can be something else. There is a Microsoft tool called "process explorer" but I have serious problems driving it and finding the correct information for the FTDI chip.

I think I figured it out based on an older post (Exit error status 1 on Arduino uno - #18 by sterretje) that I made.

You should search for \device\vcp to find what is using the FTDI (Uno) device.


This is my arduino. Does that take us any further?

I'm trying, so far unsucessfully, to install the CH340 driver - is that the right thing to do?

Yes. It really looks like your board has a CH34x chip, which means you have to install the driver. Why it is showing as an FTDI device in COM4 remains a mistery though.

What's wrong?

From my point of view, yes. Send it back to the seller and ask your money back.

The chip in the red block below is not a FT232 as indicated by the VID/PID in Windows device manager. It looks like a CH340.

That chip is as fake as it can be. There has been one topic with the same symptoms for a Nano; Arduino nano unable to establish connection with laptop. Poor user bought it locally, went back to the shop and was told that there was no warranty on it because it was Chinese import.

2 Likes

It's an fake non functional Usb to serial converter.It happened to too

A google search does show this.

Also found a driver don t know if it will work.

https://www.driveridentifier.com/scan/usb-serial-port-com3/download/109364265/B811C45350484182B32B3E1AC4548DB9/FTDIBUS%5CCOMPORT%26VID_0403%26PID_6001