What is USB AB cable?
Any scanner, printer, or other peripheral can use the same USB A/B cable. The type 'A' connector is a flattened rectangle that connects to downstream port sockets on a USB hub or USB host. The USB-B connector, which is roughly square with two beveled corners, plugs into upstream sockets on devices and hubs.
Can I use any cable for Arduino?
The correct cable must be used when working with an Arduino Uno R3 board in order for it to function properly. You will need a USB 2.0 cable with a male Type-B connector on the Uno end and male Type-A connectors on one end, or whichever fits your PC. This is especially crucial if you plan to program the Uno because the D+ and D-data pins on the wire need to be connected. To prevent any problems when programming or communicating with your Arduino Uno, always make sure the cable you're using can handle both power and data transfer.
Which Arduino boards use a USB A to B cable?
Arduino UNO R3, Arduino Mega 2560 and most UNO compatible boards use a USB Type B port, so this A to B cable connects them to a laptop for programming and power.
Is this cable long enough for desk use?
At about 20cm it is short and tidy for laptops beside the board. For desktop towers, pick a longer cable.