Arduino Forum

Using Arduino => Interfacing w/ Software on the Computer => Topic started by: vhoang on Jul 12, 2018, 05:59 am

Title: Cannot control China Mega 2560 CH340 via USB port
Post by: vhoang on Jul 12, 2018, 05:59 am
Hi all,

Could you please help me out? I got this board and I have already controlled the GPIO of this board by uploading code to it.

But now I would need to control it by Python. I used pyfirmata library but I cannot control it. Please note I can control the other Uno board that I purchased from UK. So the problem I think not come from my Python codes.

I searched on Google and saw that I have to upload codes to make it work, but I could not find any instruction in Internet.

Thanks in advance,
Hoang
Title: Re: Cannot control China Mega 2560 CH340 via USB port
Post by: sterretje on Jul 12, 2018, 06:38 am
No idea about python

But if you can upload and the code does what you expect, your computer is able to communicate with the Mega. There should not be any need to install anything extra.

Does your python application use the correct port?

Quote
I searched on Google and saw that I have to upload codes to make it work, but I could not find any instruction in Internet.
Give some links of what you found so it can be verified if it's applicable. It probably isn't (see above).
Title: Re: Cannot control China Mega 2560 CH340 via USB port
Post by: vhoang on Jul 12, 2018, 07:38 am
Thank Sterretje so much, it has worked :)

-Hoang
Title: Re: Cannot control China Mega 2560 CH340 via USB port
Post by: sterretje on Jul 12, 2018, 09:02 am
What was the solution?