element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Arduino Forum Is it possible to perform a query for the hardware
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 9 replies
  • Subscribers 388 subscribers
  • Views 1089 views
  • Users 0 members are here
  • Arduino hardware
  • arduino
Related

Is it possible to perform a query for the hardware

colporteur
colporteur 7 months ago

I have a box of Nano knock-offs. I've accumulated them over a number of years from different suppliers. I'm currently experiencing a problem with a most recent batch of knock-off Nano's and thought how are they different than others I have bought.

I aware the CH340 USB to serial driver chip varies across the knock-offs. That issues has caused me grief getting the Arduino IDE's working with MS Windows drivers. Is there a sketch that scans the underlying hardware, like lshw from the command line of my Linux computer.

I've queried the internet for a solution before posting here. The results are how to read sensors. I'm looking looking for low level. If but nothing else it might tell me what microcontroller the boards have. Even with a magnifying glass the knock-off boards are hard to read. 

  • Sign in to reply
  • Cancel

Top Replies

  • vmate
    vmate 7 months ago in reply to colporteur +1
    I mostly use Raspberry Pi Picos, with the arduino-pico core. If not using any ATMEGA specific hardware(like manually working with timers and such), there's a good chance that old code will just work without…
Parents
  • shabaz
    shabaz 7 months ago

    Hi Sean,

    I don't have a good answer, but, it should be possible to distinguish the CH340 from other serial port chips, by doing the following in Windows (using the Device Manager).

    image

    The screenshot above shows the output for a different serial port chip, I don't have a CH340 device here to compare. You can see a VID and PID value (vendor and product IDs).

    According to the Internet, if the device is CH340, then the output should have a VID value of 1A86 and PID value 7523

    The above doesn't indicate what microcontroller is used however. I can imagine there may well be some special test Arduino code that might identify a subtle difference in functionality and report it, but I'm not familiar with any.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • colporteur
    colporteur 7 months ago in reply to shabaz

    I'm currently doing a Arduino workshop for model railroaders. Having the correct CH340 drivers are a must if the Arduino IDE is to work. Your screen shots have been appearing in my nightmares that wake me up each night. I just received a report that a change to the driver I provided solved the issue for one participant.

    Your post has given me more information. 

    "According to the Internet, if the device is CH340, then the output should have a VID value of 1A86 and PID value 7523"

    That is what I have on a computer with a working Arduino IDE. Great find shabaz!!!!!! I will add it to my toolbox for troubleshooting.

    Break...Break....

    I'm more curious about the hardware on the Nano itself. Is there someway to report what it has, say the controller, USB-serial chip, memory......

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • vmate
    vmate 7 months ago in reply to colporteur

    The CH340 is the USB controller and USB-serial converter in one. Keep in mind though, that checking the USB VID and PID isn't a guaranteed way to identify something, as the manufacturer can program any VID and PID they want. A knockoff with dubious quality will still have the "official" VID and PID programmed.

    For the microcontroller itself, there's no real way to test it. Your best bet would be finding or writing some sort of test program for the specific MCU (ATMEGA328 in this case) and flashing that. One method I've seen is testing how noisy the ADC is, and comparing them against other MCUs to find outliers.

    Unfortunately, there are many low quality knockoffs that don't work well, and it's difficult to tell without testing them in-depth. I've completely ditched using any ATMEGA328 based boards, this being one of the reasons.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • colporteur
    colporteur 7 months ago in reply to vmate

    I use Nano's for animation in model railroad layouts. The one I work on currently has 72 Nano's. At today's price for an Arduino OEM Nano the build would be price prohibitive. I have designed a few animation boards around the Nano. If I decide to make a change it become a challenge.

    If ATMega328 has fallen out of favour, what was you next go to?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • vmate
    vmate 7 months ago in reply to colporteur

    I mostly use Raspberry Pi Picos, with the arduino-pico core. If not using any ATMEGA specific hardware(like manually working with timers and such), there's a good chance that old code will just work without any changes. They are also cheaper than most Nano clones, while being a *lot* better at pretty much everything.

    One of the biggest potential issues when migrating away from the Nano will be 5V IO, almost all modern replacements use 3.3V instead.

    Also, there are a lot of development boards available based on the RP2040(the microcontroller on the Raspberry Pi Pico) from various manufacturers, so it's a lot easier to find something that fits a project well.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • vmate
    vmate 7 months ago in reply to colporteur

    I mostly use Raspberry Pi Picos, with the arduino-pico core. If not using any ATMEGA specific hardware(like manually working with timers and such), there's a good chance that old code will just work without any changes. They are also cheaper than most Nano clones, while being a *lot* better at pretty much everything.

    One of the biggest potential issues when migrating away from the Nano will be 5V IO, almost all modern replacements use 3.3V instead.

    Also, there are a lot of development boards available based on the RP2040(the microcontroller on the Raspberry Pi Pico) from various manufacturers, so it's a lot easier to find something that fits a project well.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube