Hot answers tagged

40

Probably, you have Chinese Uno analog which works on CH340 USB-to-serial chip, so you need to install driver for it. Steps to fix: Install the CH340 driver Run the command in Terminal: sudo nvram boot-args="kext-dev-mode=1" (disable kext signing introduced in Mac OS X 10.9 Yosemite) Reboot Also you're right according to Uno and FDTI: Differences with ...


24

From the documentation: Open Terminal and type: ls -l /dev/ttyACM* you will get something like: crw-rw---- 1 root dialout 188, 0 5 apr 23.01 ttyACM0 The "0" at the end of ACM might be a different number, or multiple entries might be returned. The data we need is "dialout" (is the group owner of the file). Now we just need to add our ...


13

This solved it for me. Download this driver Install it Run sudo nvram boot-args="kext-dev-mode=1" Reboot Serial ports now showed up in the Arduino IDE and also when I used ls -1 /dev/tty* Hopes this helps someone. Reference: This thread


12

The cable that shipped with my Arduino Uno worked for power but not data transmission so the /dev/tty.usbmodem was not showing up in the Tools --> Port menu. After I switched to a different cable, the /dev/tty.usbmodem port showed up and it worked beautifully.


11

First things first you need to learn the basics of how USB works. In USB there are two main "things": Hosts and Devices. You have one Host (usually your computer) and many Devices (such as Arduinos, Printers, Scanners, Webcams, WiFi dongles, etc). Being a host involves knowing about what devices you are going to have attached to you and how to communicate ...


11

Actually, Arduino is powered at 5V (the 5V pin and the ATmega328p are connected to the +5V rail in the board). The point here is where do those 5V come from. Basically, from 2 possible sources: USB. The 5V line from USB is (or should be) already regulated, so it's feed directly (in fact it goes through a polyfuse) into the +5V rail of the board. The maximum ...


8

Is it an original Nano or a clone? The original Nano uses FTDI's FT232 ship, whereas clones use the CG340 USB-to-TTL chip. The former works fine straight away Mac OS Sierra, whereas the latter needs a driver. The CG340 driver doesn't work under Mac OS Sierra. Fortunately, someone patched the driver and made it available at GitHub. There you'll also find ...


6

/dev/ttyACM0 is a USB communication device (CDC) of sub-type "abstract control model" (ACM). That is what the Arduino is. /dev/ttyS0 is a hardware serial port - the (typically) 9-pin D connector on the back of your computer. If you want to use /dev/ttyS0 (why would you?!) you will require a special cable that converts the RS-232 voltage signals from the 9-...


6

CHG340 supports common baud rates: 50, 75, 100, 110, 134.5, 150, 300, 600, 900, 1200, 1800, 2400, 3600, 4800, 9600, 14400, 19200, 28800, 33600, 38400, 56000, 57600, 76800, 115200, 128000, 153600, 230400, 460800, 921600, 1500000, 2000000 baud. 250 000 baud isn't supported by that IC. The Baud steps is either 200% or 150% of the previous value (There is ...


6

If indeed the descriptor is the problem then yes you can change it. In the core file USBCore.h is the line: #define D_CONFIG(_totalLength,_interfaces) \ { 9, 2, _totalLength,_interfaces, 1, 0, USB_CONFIG_BUS_POWERED | USB_CONFIG_REMOTE_WAKEUP, USB_CONFIG_POWER_MA(500) } Just change the 500 to something smaller (it has to be an even number). However ...


6

From looking at the source it appears that on 32u4 based boards Serial includes extra methods to access the settings from the USB host: see: https://github.com/arduino/ArduinoCore-avr/blob/b7c607663fecc232e598f2c0acf419ceb0b7078c/cores/arduino/USBAPI.h#L129 From USBAPI.h: // These return the settings specified by the USB host for the // serial port. ...


5

If you provide power to the Arduino through Vin this will disconnect USB power through the MOSFET switch.


5

I have a "USB power bank" with two USB ports, which I use to power some projects. I have discovered that my bank (i.e. your mileage may vary!) shuts off unless my project draws at least 50mA. If your project does draw at least that at ALL times, you should just be able to plug a USB cable directly from the powerbank to the project. For some other projects, ...


5

This site fixed the problem for me: http://kiguino.moos.io/2014/12/31/how-to-use-arduino-nano-mini-pro-with-CH340G-on-mac-osx-yosemite.html ...somebody else has made an alternative to the ftdi drivers, and this website show you how to install them correctly.


5

This fixed the problem for me: http://blog.sengotta.net/signed-mac-os-driver-for-winchiphead-ch340-serial-bridge/ ... and the direct link to download. EDIT: I have one of the cheap clones with a CH340 USB chip. So this might not solve your problem, but could be beneficial to others.


5

The USB does not go to pins 0 and 1. The UART goes to pins 0 and 1 - that is a totally different interface. The USB is connected to dedicated USB pins on the chip. If you look at the Leonardo schematic you can see it is pins 3 and 4 on the chip. Note that that is not pins D3 and D4 on the board, but the third and fourth pins anti-clockwise from the "pin 1"...


5

It's because the Arduino has started running the sketch and placed data into the USB chip's buffer. You then open the serial monitor which then opens the serial port thus resetting the Arduino. So the sketch runs again. It only resets the Arduino, not the USB interface chip, so you get what was in there from the first execution plus the new text from the ...


5

There seems to be quite a few Arduinos without a 32U4, like: Uno (you mentioned it already) Mega (same) Lilypad Snap MKR1000 Pro Pro Mini Zero Due Ethernet Mini Nano MKR Zero See the list at Comparison table.


4

You cannot do this with the micro USB ports. You will need to use I/O pins. Either serial or I2C would be good options. It might be advisable to use I2C if you want to control multiple 'slave' microcontrollers as they can all sit on the same bus. Using the serial port would require multiple transmit and receive pins on the master controller, likely ...


4

The older Arduino boards used an FTDI FT232R chip to handle the USB port. This chip is a special purpose, USB to serial UART interface. In the current Arduino boards, the USB to serial conversion is handled by dedicated Atmel Atmega8u2 processor. This is a processor that is similar to the main ATmega328p processor, but the added benefit of having built-in ...


4

Yosemite 10.9 (and OS X 10.10 and newer) requires a signed USB driver kext (kernel extension). You can find one on the FTDI web site here: http://www.ftdichip.com/Drivers/VCP.htm Use version 2.3 for 64-bit OS X 10.9 or later. Install and reboot. Plug in your Arduino, and the Terminal command: /usr/sbin/kextstat | grep FTDI will tell you if the FTDI ...


4

The Arduino assumes a US keyboard layout. The thing with keyboards is they don't actually send the letters or symbols that are printed on the keys. Instead the send a scan code that defines where on the keyboard the key is. It is then up to the computer to convert those scan codes into actual letters and symbols, and that is performed by the keyboard ...


4

Both the arduino and a USB port do have some protection against wrong connections and such. The arduino has a diode to prevent wrong polarity to reach your power supply, it also have a resetable fuse (the kinda big, often green SMD part close by your USB connection on your Arduino) that should protect your USB port pretty good from its side of the cable. ...


4

The Arduino Mega's "serial" connection comes from an external chip implementing USB-serial conversion. While this chip knows if a session is open with a host, the standard design has no way to share that information with the main ATmega. In contrast, on a Leonardo type board the main processor implements the USB interface, so it does know. Your options ...


4

It's perfectly doable. As Chris Stratton puts it, it's all about implementing non-blocking serial communication: whenever you receive a character, you store it in a buffer whenever you have a complete command in the buffer, you process it and reset the buffer For a line-oriented protocol, it may look something like: /* Process incoming characters if any. *...


4

Having used counterless Arduinos and clones, I can tell you that you can connect both without worrying about any danger. Unless you have a very faulty board, your pc won't be damaged, almost surely neither will the board, as is should select the most powerfull source, between your usb or a battery/external PS, while leaving untouched the serial line.


4

A polyfuse will limit current not voltage. There are transient protection diodes which switch on if voltage exceeds a given level, which are often used in conjunction with a polyfuse. The diodes cause excessive current to flow, effectively turning on the polyfuse for extended overload, or just absorbing shorter transients. The Raspberry Pi uses a SMBJ5.0A ...


4

All prices in USD w/ free shipping. FT232RL breakout board: Aliexpress: $1.55 eBay: $1.81 They are probably counterfeit. A Windows driver update (AKA "FTDIgate") at one point "bricked" them but I'm not sure that's an issue anymore. Even if it is it's Windows only and easy enough to work around. I've used these for years on Windows and they work fine for ...


4

32u4 is multi-serial uC. USB connection works on default serial communication which can be used via Serial.print("somevalue"). On the other hand if you want to use RX/TX on pins 0, 1 which are actually RXD1 and TXD1. So, if you use Serial1.print("somevalue"). So the answer is a yes. You can use USB and RX/TX (hardware serial) at the same time.


4

60 samples per minute, 60 minutes per hour, 24 hours per day, 30 days - that's 2592000 samples. At 10 bytes per sample (a very generous allocation) that's less than 30MB of data. You could fit that many many times over on even the smallest of today's SD cards, so why mess with the complexity of USB? Any Arduino can work with an SD card. A bigger concern of ...


Only top voted, non community-wiki answers of a minimum length are eligible