söndag 10 juli 2016

OS X communicating with an Adafruit Trinket

Background/Problem

Some time ago I bought an Adafruit Trinket (5V). But try as I might, I never got it to communicate with my OS X.

An Adafruit Trinket 5V

I tried with multiple Mini-USB cables I had lying about.. USB-hubs.. old macs, new macs.. You name it.. I never got to see it show up with a valid port in Arduino IDE.

Solution

I bought yet another USB hub together with a new mini-USB coord, and behold! The red-LED started to flash instead of just shining! Holding my breath I pulled up the PORT menu to check if I could finally see it there, but no, no such luck..
A PlexGear USB 2.0 hub.


Then I remembered that once when I had done some less clever programming that led my Adafruit Feather to refuse to show up when connected, the solution was to double click the reset button (starting the boot-loader) while uploading (less disruptive) code to it, and then the Feather once again showed up under available PORTs.

So this is how I finally got it to work:
  1. Made sure I had the programmer set to USBTinyISP
  2. Loaded up the Blink example sketch
  3. Ensured that my Trinket was connected to the USB 2.0 hub
  4. Clicked the Trinkets reset button
  5. Clicked the 'Upload' button from Arduino IDE.
And while I never got the Trinket to show up under PORTs, the sketch was successfully loaded to my Trinket and it happily blinked at me!




Inga kommentarer:

Skicka en kommentar