sparkfun COM-18354 Скачать руководство пользователя страница 6

Hardware Overview

The Qwiic LED Stick is a fairly straightforward ATTiny85-based Qwiic board that you may be familiar with already.
In this section we'll cover the hardware present on the board in detail.

ATTiny85

The brains of the Qwiic LED Stick is one of our favorite microcontrollers, the ATTiny85. This IC comes pre-
programmed with custom firmware designed to interact with the Arduino library and Python package we've written
to use with this board. The ATTiny85 accepts I C reads and writes, interprets them and outputs the appropriate
strings to control any APA102 LEDs attached to it.

The default I C address of the ATTiny85 is 

0x23

. Adjust the address either through the ADR jumper or via

software. Read on for more information regarding changing the address in both manners.

Just like our other Qwiic breakouts using the ATTiny85, users can update or change the firmware using the 2x3 pin
header on the back of the board. The firmware can be found in the Hardware GitHub Repository. For tips and
tricks on how to re-program an ATTiny IC, check out this tutorial.

APA102C LEDs

The LED Stick includes 10 APA102C LEDs controlled by the aforementioned ATTiny85. APA102C LEDs operate
just like most addressable LEDs over a two-wire interface. The board ties that interface to the ATTiny85 and
operates both the IC and LEDs at 

3.3V

 logic. For specific information regarding the LEDs, take a look at the

APA102C Datasheet.

A tutorial to help figure out the power requirements of
your project.

Learn the difference between 3.3V and 5V devices and
logic levels.

I2C

An introduction to I2C, one of the main embedded
communications protocols in use today.

Serial Terminal Basics

This tutorial will show you how to communicate with
your serial devices using a variety of terminal emulator
applications.

2

2

Содержание COM-18354

Страница 1: ...ject using the SparkFun Qwiic System The board includes 10 APA102 addressable LEDs controlled by an ATTiny85 on the board to work in tandem with either the SparkFun Qwiic LED Stick Arduino library or...

Страница 2: ...and to top it off we ll take a close look at the SparkFun Qwiic LED Stick Arduino library and Python package as well as a few of the examples included in them Required Materials In order to follow alo...

Страница 3: ...BC you ll need at least one Qwiic cable SparkFun carries a variety of lengths and types of Qwiic cables as seen here SparkFun Qwiic Adapter DEV 14495 SparkFun Qwiic Shield for Arduino DEV 14352 SparkF...

Страница 4: ...of current that your microcontroller may not be able to provide We recommend using a dedicated power supply for the APA102 LEDs on the LED Stick Select your power supply based on the estimated total...

Страница 5: ...familiar with the Qwiic System we recommend reading here for an overview We also recommend taking a look at the following tutorials if you aren t familiar with the concepts covered in them Soldering I...

Страница 6: ...other Qwiic breakouts using the ATTiny85 users can update or change the firmware using the 2x3 pin header on the back of the board The firmware can be found in the Hardware GitHub Repository For tips...

Страница 7: ...spaced PTH header 3 3V and GND are also provided via the Qwiic interface to power both the ATTiny85 as well as the APA102C LEDs in the default configuration Solder Jumpers The Qwiic LED Stick has four...

Страница 8: ...23 Closing this jumper adjusts the address to 0x22 The LED jumper controls the board s power LED by tying the anode to 3 3V via a 1k resistor The jumper is CLOSED by default Sever the trace between th...

Страница 9: ...N and GND pins capable of supplying enough current to power the LED chain After making your power supply connections plug the Qwiic LED Stick to the controller using a Qwiic cable or the I C PTH pins...

Страница 10: ...value is 10 Max value is 100 Arduino Examples The Qwiic LED Stick Arduino Library includes eleven examples to get you started with the basics of the board along with some nifty lighting demos In this...

Страница 11: ...ow color plus white so you can get a quick idea of how each color looks at each brightness level Just like Example 3 the code creates three arrays for Red Blue and Green and assigns values for each LE...

Страница 12: ...e hardware I C connection is enabled on your Raspberry Pi or other single board computer The Raspberry Pi tutorials linked in the note above cover how to enable the Pi s I C bus PyPi Installation Host...

Страница 13: ...like in the Arduino library each example creates the my_stick object and includes a begin statement that initializes the Qwiic LED Stick on the I C bus and freezes the code if that fails my_stick qwii...

Страница 14: ...lighting displays along with demonstrations of how to change the I C address adjust the total number of LEDs controlled to add other LED Sticks or LED strips Troubleshooting In this section we ll outl...

Страница 15: ...or help If this is your first visit you ll need to create a Forum Account to search product forums and post questions CREATE NEW FORUM ACCOUNT LOG INTO SPARKFUN FORUMS Resources and Going Further That...

Страница 16: ...gs APA102 2020 are the highest resolution LED rings available LuMini 8x8 Matrix Hookup Guide The LuMini 8x8 Matrix APA102 2020 are the highest resolution LED matrix available LumiDrive Hookup Guide Th...

Страница 17: ...nd Funky Colors MAY 23 2018 Fan Out Capability of the APA102C JUNE 18 2018 ATP Circuit Design with LEDs JULY 2 2018 Save Your Buffer SEPTEMBER 6 2018 Underlit Crystal Display DECEMBER 19 2018 Python a...

Страница 18: ...DIY Camera Lens Light Ring FEBRUARY 5 2019 Enginursday DIY Capacitive Touch Night Light JUNE 6 2019 Enginursday Ten Years of Testbeds OCTOBER 10 2019...

Отзывы: