This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
digispark:tutorials:connecting [2015/06/23 10:53] digistump |
digispark:tutorials:connecting [2016/11/16 16:35] (current) pfeerick |
||
|---|---|---|---|
| Line 12: | Line 12: | ||
| =====Software:===== | =====Software:===== | ||
| - | The Digispark uses the Arduino IDE 1.6.5+ | + | The Digispark uses the Arduino IDE 1.6.5+ (Arduino 1.6.5r2 - NOT 1.6.6 or 1.6.7 strongly recommended) |
| ====== Installation Instructions: ====== | ====== Installation Instructions: ====== | ||
| - | ** * First download the appropriate Arduino package at the Arduino.cc website: https://www.arduino.cc/en/Main/Software | + | * **First download the appropriate Arduino package at the Arduino.cc website: https://www.arduino.cc/en/Main/Software** |
| - | * Install or Unzip the Arduino application. | + | * If using Arduino 1.6.6 or higher and windows - you will need to download and install the drivers manually. Download, unzip and run "Install Drivers" (on 32bit systems) or "DPInst64" (on 64bit systems). If you get stuck, try following the steps [[https://www.youtube.com/watch?v=MmDBvgrYGZs|shown in this YouTube video]]. The driver files are located here: https://github.com/digistump/DigistumpArduino/releases/download/1.6.7/Digistump.Drivers.zip |
| - | * Run the Arduino application. | + | * **Install or Unzip the Arduino application.** |
| - | * In the Arduino application go to the "File" menu and select "Preferences"** | + | * **Run the Arduino application.** |
| + | * **In the Arduino application go to the "File" menu and select "Preferences"** | ||
| {{ :digispark:tutorials:preferences.gif?nolink |}} | {{ :digispark:tutorials:preferences.gif?nolink |}} | ||
| + | * **In the box labeled "Additional Boards Manager URLs" enter:** <code>http://digistump.com/package_digistump_index.json</code> | ||
| + | **and click OK** | ||
| - | **Digistump Package Sources: ** https://github.com/digistump/DigistumpArduino | + | Note: If you already have additional URLs entered in that box, then click the button on the right of the box and enter this URL on a new line. |
| - | ==== Windows Install ==== | + | {{ :digispark:tutorials:entry.jpg?nolink |}} |
| - | * Complete these steps before plugging in the Digispark (Pro) | + | * **Go to the "Tools" menu and then the "Board" submenu - select "Boards Manager" and then from the type drop down select "Contributed":** |
| - | * Installer: Run the installer, when it pops up the driver install, install the drivers as well. When complete run the "Arduino IDE - Digistump Release" from your start menu. | + | * **Select the "Digistump AVR Boards" package and click the "Install" button.** |
| - | * Zip: Unzip and run the driver install - which is the "Install Drivers.bat" file inside the drivers folder. Then run Arduino.exe to run the IDE. | + | {{ :digispark:tutorials:digispark_install.gif?nolink |}} |
| + | * **You'll see the download progress on the bottom bar of the "Boards Manager" window, when complete it will show "Installed" next to that item on the list.** | ||
| + | * **WINDOWS USERS: When complete the install with pop up a Driver Install Wizard window, please click "Next" on this Window to install the drivers for Digistump Boards** (If you already have them installed, this installer will update them and install any that are missing) | ||
| + | * **With the install complete, close the "Boards Manager" window and select the Digispark from the Tools->Boards menu. "Digispark (Default - 16.5mhz)" is the board that should be selected by all new users. ** | ||
| + | {{ :digispark:tutorials:pickdigispark.gif?nolink |}} | ||
| + | * **The install is now complete!** (Linux users see note below) | ||
| ==== Linux Install ==== | ==== Linux Install ==== | ||
| - | * Untar | ||
| * If you haven't before - Install the udev rules found here: [[http://digistump.com/wiki/digispark/tutorials/linuxtroubleshooting|Troubleshooting section]] | * If you haven't before - Install the udev rules found here: [[http://digistump.com/wiki/digispark/tutorials/linuxtroubleshooting|Troubleshooting section]] | ||
| - | * Run the arduino executable | ||
| * **ATTENTION LINUX USERS:** [[digispark:tutorials:linuxtroubleshooting|PLEASE CHECKOUT THE LINUX TROUBLESHOOTING PAGE**]] | * **ATTENTION LINUX USERS:** [[digispark:tutorials:linuxtroubleshooting|PLEASE CHECKOUT THE LINUX TROUBLESHOOTING PAGE**]] | ||
| - | + | ==== Sources ==== | |
| + | |||
| + | **Digistump Package Sources: ** https://github.com/digistump/DigistumpArduino | ||
| =====Using the Digispark with the Arduino IDE:===== | =====Using the Digispark with the Arduino IDE:===== | ||
| - | The Digispark works a bit differently than some Arduino compatible products. Not only is there a special add-on to the IDE to support it, but it also programs with a different procedure. | + | The Digispark works a bit differently than some Arduino compatible products. The Digispark programs with a different procedure. |
| From the Tools menu select Board->Digispark (Default - 16.5Mhz) | From the Tools menu select Board->Digispark (Default - 16.5Mhz) | ||
| Line 105: | Line 114: | ||
| * Pin 0 -> I2C SDA, PWM (LED on Model B) | * Pin 0 -> I2C SDA, PWM (LED on Model B) | ||
| * Pin 1 -> PWM (LED on Model A) | * Pin 1 -> PWM (LED on Model A) | ||
| - | * Pin 2 -> I2C SCK, Analog | + | * Pin 2 -> I2C SCK, Analog In |
| * Pin 3 -> Analog In (also used for USB+ when USB is in use) | * Pin 3 -> Analog In (also used for USB+ when USB is in use) | ||
| * Pin 4 -> PWM, Analog (also used for USB- when USB is in use) | * Pin 4 -> PWM, Analog (also used for USB- when USB is in use) | ||
| Line 150: | Line 159: | ||
| **WINDOWS:** | **WINDOWS:** | ||
| - | + | * **Did you install the right driver?** | |
| - | * **Did you install the driver?** | + | * Try following the [[https://www.youtube.com/watch?v=MmDBvgrYGZs|steps shown in this video]], as it addresses most of the problems encountered during the driver installation on Windows, including needing to run a different installer on 64 bit versions of windows, and how to finish installing the drivers without having to plug and unplug your digispark multiple times. |
| * For the example programs if you are getting "Device not found" even after installing the DigiUSB driver in the examples folder then try this: http://digistump.com/board/index.php/topic,257.0.html | * For the example programs if you are getting "Device not found" even after installing the DigiUSB driver in the examples folder then try this: http://digistump.com/board/index.php/topic,257.0.html | ||
| * If Windows does not recognize a "DigiUSB" but a generic "HID-compliant device"/"USB Input Device" pair, go to the Device Manager, find in the "Human Interface Devices" category the USB Input Device with a vendor ID of 0x16C0 and select "update driver" / "browse my computer" / "let me pick from a list" and the DigiUSB should show up there. | * If Windows does not recognize a "DigiUSB" but a generic "HID-compliant device"/"USB Input Device" pair, go to the Device Manager, find in the "Human Interface Devices" category the USB Input Device with a vendor ID of 0x16C0 and select "update driver" / "browse my computer" / "let me pick from a list" and the DigiUSB should show up there. | ||