Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Introduction

The IR Emitter driver is used in conjunction with an IR LED to emit IR signals which can control various devices.


Driver Parameters

The IR Emitter driver has one parameter that needs to be configured:

Pin

This is the pin the IR led is connected to. Amy pin is suitable.


Wiring

Example

The IR led is connected to GP0 through a current limiting resistor. Special care should be given to IR LEDs since they can easily burn through. 100Ω is a good value for a driving voltage of 3.3V, which is being sourced by the GP pins.

Image Added

Breadboard 

Image Added

Schematic 

Used Pins

Used Pins

Description

GP0 (can be any GP pin)

This pin drives the IR LED

GND

This pin provides the GND


How to write an App

Navigate to the App Builder and create a new application. You can find the “LED Smart” code object under the “Hardware” Tab in the object drop down menu on the left, or you can also use the search bar.

Image Added

 

Image Added

 

 

Drag the “LED Smart” object onto the canvas.

Image Added

 

 Next, located under the interface tab find the “Color Picker” object and drag it onto the canvas.

Image Added

 

Image Added

 

 

Finally, connect the Color port from the “Color Picker” object to the RGB Color port on the “LED Smart” object, label your objects, and save your application.

Image Added

How to create a firmware

Navigate to the Firmware Builder and create a new firmware file.

Click the “+ Add Hardware” button which will open a modal window. Scroll down in the list to find the “Display” section and select the “LED Smart” hardware option.

Give your device a name, and click “Add Hardware”

Image Added

Image Added

Next, select the “LED RGB” driver under the driver dropdown menu.

Image Added

 

Image Added

 

For this example we select:

Pin: GP0

Count: 1

Image Added

You may now save your firmware file and upload it to one of your clients.

Image Added

 

Image Added

 

 


Supported Hardware

  • WS2812 Smart LEDs

 


Downloads

Apps

View file
nameWS2812 App.json

Firmware

View file
nameLED Smart Firmware.json

Assets

Image Added