This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
digispark:tutorials:littlewire [2013/11/13 21:53] digistump created |
digispark:tutorials:littlewire [2016/06/09 12:03] (current) |
||
|---|---|---|---|
| Line 3: | Line 3: | ||
| =====Product Description:===== | =====Product Description:===== | ||
| [[https://s3.amazonaws.com/digispark/images/m/lw1.jpg|{{https://s3.amazonaws.com/digispark/images/t/lw1.jpg}}]] | [[https://s3.amazonaws.com/digispark/images/m/lw1.jpg|{{https://s3.amazonaws.com/digispark/images/t/lw1.jpg}}]] | ||
| - | [[https://s3.amazonaws.com/digispark/images/m/lw2.jpg|{{https://s3.amazonaws.com/digispark/images/t/lw2.jpg}}]][[https://s3.amazonaws.com/digispark/images/m/lw3.jpg|{{https://s3.amazonaws.com/digispark/images/t/lw3.jpg}}]] | + | [[https://s3.amazonaws.com/digispark/images/m/lw6.jpg|{{https://s3.amazonaws.com/digispark/images/t/lw6.jpg}}]][[https://s3.amazonaws.com/digispark/images/m/lw7.jpg|{{https://s3.amazonaws.com/digispark/images/t/lw7.jpg}}]] |
| - | The Little Wire on Digispark Shield Kit connects provides a Little Wire compatible pinout on the Digispark. This allows the Digispark to be easily used as a Little Wire device, with the Little Wire firmware and libraries. The shield also provide pull-ups for the I2C lines, which can be enabled by an included jumper, and an external power jumper. | + | The Little Wire on Digispark Shield Kit provides a Little Wire compatible pinout on the Digispark. This allows the Digispark to be easily used as a Little Wire device, with the Little Wire firmware and libraries. The shield also provide pull-ups for the I2C lines, which can be enabled by an included jumper, and an external power jumper. The kit also includes a 6 pin IDC cable for connecting to other circuits or to standard 6-pin AVR ISP headers for programming AVR chips. |
| - | Little Wire is multi-featured USB controlled Open Source Hardware tool packed in a minimal form factor designed by Ihsan Kehribar. | + | Little Wire is multi-featured USB controlled Open Source Hardware tool packed in a minimal form factor designed by Ihsan Kehribar. The Little Wire for Digispark shield was designed by Ihsan in collaboration with Digistump. The Little Wire firmware can be easily loaded on to a Digispark for use with the Little Wire for Digispark shield. |
| - | This is an unassembled kit and requires basic soldering. This is designed for use with the Digispark development board, which is not included. | + | Little Wire has the following features: |
| + | * usbtinyisp compatible AVR programmer. | ||
| + | * 4 channel GPIO. | ||
| + | * ADC with 10 bit resolution. | ||
| + | * 2 parallel hardware PWM outputs. | ||
| + | * SPI interface. | ||
| + | * I2C interface. | ||
| + | * 1-Wire interface | ||
| + | * WS2812 RGB LED interface. | ||
| + | * Multiple device support. | ||
| + | This is an unassembled kit and requires basic soldering. This is designed for use with the Digispark development board, which is not included. | ||
| =====Parts:===== | =====Parts:===== | ||
| ^ Part ^ Quantity ^Identification^ | ^ Part ^ Quantity ^Identification^ | ||
| - | | Temperature Sensor Shield PCB|1| | | + | | Little Wire Shield PCB|1| | |
| - | | DS18B20 1-wire Temperature Sensor|1| | | + | | 6-pin IDC Cable|1| | |
| - | | 3.5 mm pitch 3-pin screw terminal|1| | | + | | 4.7k ohm 1/4W 5% resistor|2| Yellow - Violet - Red| |
| - | | 4.7k ohm 1/4W 5% resistor|1| Brown - Black - Yellow| | + | | 0.1" pitch Jumper/Shunt |2| | |
| - | | 0.1" pitch Jumper/Shunt |1| | | + | | 1x40pin male 0.1" pitch header| 22 pins worth| | |
| - | | 1x40pin male 0.1" pitch header| 12 pins worth| | | + | |
| **Soldering:** If you are new to soldering we recommend the following tutorials: | **Soldering:** If you are new to soldering we recommend the following tutorials: | ||
| Line 34: | Line 43: | ||
| **Note for Kickstarter Backers and Pre-orders:** Headers are not included in each kit bag, but the entire order came with more than enough headers for all kits. | **Note for Kickstarter Backers and Pre-orders:** Headers are not included in each kit bag, but the entire order came with more than enough headers for all kits. | ||
| - | [[https://s3.amazonaws.com/digispark/images/m/temp1.jpg|{{https://s3.amazonaws.com/digispark/images/t/temp1.jpg}}]] | + | [[https://s3.amazonaws.com/digispark/images/m/lw1.jpg|{{https://s3.amazonaws.com/digispark/images/t/lw1.jpg}}]] |
| - | Insert the the DS18B20 Temperature Sensor, matching the shape of it with the printing on the board and solder all pins. | ||
| - | [[https://s3.amazonaws.com/digispark/images/m/temp2.jpg|{{https://s3.amazonaws.com/digispark/images/t/temp2.jpg}}]] | + | Insert resistors. Solder the leads and clip off the excess. |
| - | Insert resistor. Solder the leads and clip off the excess. | + | [[https://s3.amazonaws.com/digispark/images/m/lw2.jpg|{{https://s3.amazonaws.com/digispark/images/t/lw2.jpg}}]] |
| - | [[https://s3.amazonaws.com/digispark/images/m/temp3.jpg|{{https://s3.amazonaws.com/digispark/images/t/temp3.jpg}}]] | ||
| - | Cut a length of male headers 3 pins long and insert into the jumper location (labeled P1 DAT P5). Solder the pins on the back. | + | Cut two lengths of male headers 3 pins long and insert (from the top) into the 6 pin (2x3 pins) header. Solder the pins on the back. |
| + | [[https://s3.amazonaws.com/digispark/images/m/lw3.jpg|{{https://s3.amazonaws.com/digispark/images/t/lw3.jpg}}]] | ||
| - | [[https://s3.amazonaws.com/digispark/images/m/temp4.jpg|{{https://s3.amazonaws.com/digispark/images/t/temp4.jpg}}]] | ||
| - | Place the jumper/shunt on top of the pins just soldered. Position it over DAT and P5 or DAT and P1 based on whether you'd like to use P1 or P5 to communicate with the sensor. | + | Cut a two lengths of male headers 2 pins long and insert (from the top) into the two jumper locations. Solder the pins on the back. |
| - | [[https://s3.amazonaws.com/digispark/images/m/temp5.jpg|{{https://s3.amazonaws.com/digispark/images/t/temp5.jpg}}]] | + | [[https://s3.amazonaws.com/digispark/images/m/lw4.jpg|{{https://s3.amazonaws.com/digispark/images/t/lw4.jpg}}]] |
| - | Insert the 3-pin screw terminal with the hookup openings facing outward. Solder the two pins. | ||
| - | [[https://s3.amazonaws.com/digispark/images/m/temp6.jpg|{{https://s3.amazonaws.com/digispark/images/t/temp6.jpg}}]] | + | Place the jumper/shunt on top of each set of pins just soldered. Optional: Placing the jumper on the I2C pins connects the I2C pull-ups (remove if not using I2C). Placing one on the Ext. Power pins connects the 5V lien to the 6 pin header (remove if using external power). |
| + | |||
| + | [[https://s3.amazonaws.com/digispark/images/m/lw5.jpg|{{https://s3.amazonaws.com/digispark/images/t/lw5.jpg}}]] | ||
| Cut a length of male headers 6 pins long and one 3 pins long. Insert into corresponding positions (on the bottom of the board) and solder each pin. | Cut a length of male headers 6 pins long and one 3 pins long. Insert into corresponding positions (on the bottom of the board) and solder each pin. | ||
| - | |||
| - | [[https://s3.amazonaws.com/digispark/images/m/temp7.jpg|{{https://s3.amazonaws.com/digispark/images/t/temp7.jpg}}]] | ||
| **Tip:** Inseting the headers into a breadboard and then placing the board on top can make this process easier. | **Tip:** Inseting the headers into a breadboard and then placing the board on top can make this process easier. | ||
| Line 65: | Line 71: | ||
| **Note:** If you are using stackable headers, use them here instead of the standard male headers. | **Note:** If you are using stackable headers, use them here instead of the standard male headers. | ||
| + | [[https://s3.amazonaws.com/digispark/images/m/lw6.jpg|{{https://s3.amazonaws.com/digispark/images/t/lw6.jpg}}]] | ||
| + | |||
| + | |||
| + | If using the cable - plug into 6 pin header. | ||
| + | |||
| + | [[https://s3.amazonaws.com/digispark/images/m/lw7.jpg|{{https://s3.amazonaws.com/digispark/images/t/lw7.jpg}}]] | ||
| - | =====Using external 1-wire deivces:===== | ||
| - | External 1-wire devices can be added to the same 1-wire bus by connecting them to the 3 pin screw terminal - following the labeled pin outs on the board. | ||
| - | Sensors other than the DS18B20 will not be covered in the included examples, but many examples are readily available online. | + | =====Loading the firmware:===== |
| + | Download the Little Wire firmware installer for your platform here - Under "Single click installers for v1.3 firmware" - http://littlewire.cc/downloads.html | ||
| - | =====Programming:===== | + | Run the executable and when prompted plug in the Digispark that you will be using with the shield. When complete the Digispark will now appear as a Little Wire device 5 seconds after it is plugged into the computer. |
| - | With the newest version of the Digispark Arduino IDE goto Examples->OneWire->Digispark Example | ||
| - | This example uses P5 by default - to use P1 change this line: OneWire ds(5); to OneWire ds(1); | + | =====Use:===== |
| + | See http://littlewire.cc for documentation, libraries, and more! | ||