We’re rewarding the question askers & reputations are being recalculated! Read more.

Hot answers tagged

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


9

From the OSX System Report we learn that your board is based on an SiLabs CP2102 converter (or workalike), but according to your question you installed the drivers for an entirely different product from FTDI (Arduino.cc has used FTDI in the past and CDC/ACM today, I don't believe they have ever used SiLabs so their instructions probably don't cover that, ...


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 ...


5

just to add to the list - some cheaper boards use CH340 chipset here is a blogpost on how to install the drivers on OSX http://javacolors.blogspot.ie/2014/08/dccduino-usb-drivers-ch340-ch341-chipset.html From that post: You can find drivers for this chip on the web site of the chinese manufacturer, here : http://www.wch.cn/downloads.php?name=pro&proid=...


5

It is almost certainly a device-driver issue. Since Arduinos are probably a little way down the pecking order for things that Apple is interested in, they probably don't test as extensively as (say) printers. How can Arduino make such a sophisticated machine reset? Device drivers would operate with elevated privileges, because they need to control, well, ...


4

RobotConfig.h needs to include Arduino.h in order to have those constants.


4

Ok, this is the solution for me: remove all old drivers: sudo rm -rf /Library/Extensions/usbserial.kext sudo rm -rf /System/Library/Extensions/usb.kext Now reboot the computer. And then (very important, because it took me 10 cables to find the right one) use a fully connected cable ;-) Now I have these ports: /dev/cu.wchusbserial1410 /dev/cu....


4

In MacOS 10.14 and Arduino IDE 1.6.12, cmd` cycles through 5+ IDE windows properly, for me. Update: When you upgrade to Arduino 1.8.7, I won't be. I've tried a couple of its point releases and have given up on it because its launch performance is so p...-poor. Maybe 1.9 will finally fix it. Sloeber/Eclipse is my serious code-crunching IDE. I keep the A-...


3

You can use my Chip detector sketch to confirm (using another Arduino to run the sketch) if the target chip is a Atmega16u2 or not, and if so, what fuses etc. are set. Wiring would be like this: Close-up: ICSP header (from above): You should see something like this: Atmega chip detector. Written by Nick Gammon. Version 1.17 Compiled on Jan 3 2016 at 07:...


3

First, install and get familiar with version 1.6.x of the Arduino IDE. Then, under the sketchbook directory, within hardware/nex/avr/ (create the directories if they don't exist) create the following files: boards.txt: # NEX Robotics Fire Bird V # Only ATmega2560@14.7456MHz supported for now nexfirebirdv2560m14.name=Fire Bird V ATMEGA2560 @ 14.7456 MHz ...


3

If you don't want to use the Terminal and the command line, the Arduino IDE is your best option. Get yourself an AVR programmer (or an Arduino Uno to serve as programmer, with the ArduinoISP sketch uploaded), and code on it. Then connect your Arduino to your module via SPI. Select the correct processor and port. You can now upload the sketch:


3

Press the reset button next to the USB port. (either one, the master reset is between the DC jack and USB ). This will cause the Arduino 101 to reboot and enter DFU mode for 5 seconds if it is connected on USB. The download will proceed when the Curie enters DFU. The IDE uses a baud-rate signal over USB. It is a virtual serial port, so baud rate doesn't ...


3

You can add source code to the sketch in the Arduino IDE. When adding a new source code file make sure the extension is uppercase .S Files with .S extension will be compiled as Assembly. There is an Arduino IDE for the mac but if you want to use an external editor you have many options. The simplest is to switch on File>Preferences>External Editor ...


3

Just by trying, I found that Cmd ⌘ Shift ` cycles through all windows (maybe in reverse).


2

There are multiple ways to do that. You could use an Arduino Leonardo as a keyboard, then send a shortcut command to shut down or sleep the computer. You can edit these from System Preferences>Keyboard>Shorcuts>Services. The keycode 0x66 does not work for mac, but may for other operating systems source You could write a small program (I'd do it in Python) ...


2

Sorry about providing this as an answer, rather than comments; however, I do have some suggestions to troubleshoot the connection. First, check the usb connections with lsusb lsusb |grep -i arduino Similarly, you can try following the output of dmesg; though, I'm not sure about the version of dmesg your system's installation is running. Newer version ...


2

There is a decent program called Simulator for Arduino made by Virtronics. Although it is made to run only in windows, you could run it in a WINE environment. WINE allows windows programs to be ran in Mac and Linux OS.


2

I figured why my board wasn't responding! Apparently, the power pin was connected to the 5V supply instead of usb. Silly me!


2

Download and install the Apple version of Java (6): http://support.apple.com/kb/DL1572 If you need Java 8 SDK for some reason, the two can coexist because the Arduino IDE will explicitly ask for the (Apple Version) of Java 1.6 using 'JavaApplicationStub': $ ./JavaApplicationStub [JavaAppLauncher] Requested [1.5*], launching in [1.6] instead. Experimental: ...


2

It could possibly be that there is a fault that is causing a short circuit. This short circuit could be in the board itself or the USB cable that connects the Arduino. The USB port on the Mac should have protection to protect against a short circuit. Your comments have indicated that you have tested for a short and found none - but this is helpful for others ...


2

Could you just untick the "Use all F1, F2, …" in System Preferences -> Keyboard? Just wondering if that would be an option and if doing so would create the desired outcome.


2

On a Mac the Arduino.h file is within the Arduino application itself. It's not that easy to get to without resorting to the command line. You also need far more than just Arduino.h - you need the entirety of the Arduino AVR core, which is a collection of .h, .c and .cpp files. They are all together in the application. You would probably be best off getting ...


2

I installed the CH340 Driver and the board now shows the USB serial as port option: https://github.com/adrianmihalko/ch340g-ch34g-ch34x-mac-os-x-driver


2

There are several different tools for uploading binaries to a Cortex M3. Depending on the board (not chip) configuration, they include (ht: Majenko): dfu-util through an FT232 adapter stm32flash through serial micronucleus through the Micronucleus bootloader stlink through an STLink programmer Many Arduino flavors use a board with some kind of USB or ...


1

"ATmega16u2 DFU" indicates a USB interface micro that is in a state to have new firmware downloaded to it (DFU), not one which is ready for operational use as a USB interface to program the Uno's ATmega328p target MCU. If this persists after power-cycling/re-plugging the board, it is probably faulty and at minimum needs firmware repair - though it might be ...


1

I managed to verify code from terminal by invoking /Applications/Arduino.app/Contents/MacOS/Arduino --verify lab.ino BUT this command automatically starts the IDE and exits it afterwards. Even with an IDE instance open it will start a new one. This is annoying since it will switch the active workspace away, but it kinda works. See arduino manpage.


1

I would expect this to be pretty straight forward. Off hand, I can't think of anything that would be a major roadblock to creating your iOS apps. It seems like there are two problems you'll need to solve: Finding a BLE chip that is relatively easy to integrate with an Arduino, and Selecting the tools that you'll use on the iOS side to develop your app. ...


1

Unfortunately, Fn is hardware and it is handled internally by the keyboard to do something hardware-based without sending any code. So the short answer is: you can't simulate Fn key with arduino. What I think of as a solution is: Create a program on your Mac that can listen for keyboard scan codes to do vol +/- or any other function. Send a custom scan ...


1

I had this problem with a Chinese knock-off of an Arduino Nano -- looks like it was actually because I had previously installed some CH341 drivers that no longer work with Sierra. Removing those drivers (sudo rm -r /Library/Extensions/usbserial.kext) stopped the crash (full computer shutdown when I plugged in the Arduino, even through an externally powered ...


1

If the path to your source file contains a space, it might be causing this error. For more information, and a workaround, see this topic in the Arduino forum.


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