Getting Started with FLORA

Similar documents
Getting Started with FLORA

Getting Started with FLORA

FLORA TV-B-Gone. Created by Becky Stern. Last updated on :32:57 PM UTC

Adafruit PowerBoost 500 Shield

Sewable NeoPixels. Created by Becky Stern. Last updated on :50:14 PM EDT

Introducing Circuit Playground

Adafruit LED Sequins. Created by Becky Stern. Last updated on :00:06 PM EST

FLORA Pixel Brooch. Created by Becky Stern. Last updated on :19:07 PM EST

Introducing Circuit Playground

Light-Up Angler Fish Embroidery

Adafruit LED Sequins. Created by Becky Stern. Last updated on :02:00 AM UTC

Interior Purse Light. Created by Becky Stern. Last updated on :41:08 PM UTC

NeoPixie Dust Bag with Circuit Playground Express

Adafruit Feather 32u4 Basic Proto

MiniPOV4 - DIY Full-Color Persistence of Vision & Light-Painting Kit

Adafruit APDS9960 breakout

NeoPixel Basketball Hoop

Clockwork Goggles. Created by John Park. Last updated on :03:10 PM UTC

Adafruit MCP9808 Precision I2C Temperature Sensor Guide

GPS Logging Dog Harness

Celebration Spectacles

Bunny Ears with MakeCode

NeoPixel Fairy Crown. Created by Erin St Blaine. Last updated on :22:47 AM UTC

Infinity Mirror Valentine's Candy Box

1.8" TFT Display Breakout and Shield

Flora Wearable GPS. Created by Becky Stern. Last updated on :32:36 PM UTC

Monochrome OLED Breakouts

Adafruit Mini TFT " 160x80

Adafruit VL53L0X Time of Flight Micro-LIDAR Distance Sensor Breakout

Neon LED Signs. Created by John Park. Last updated on :11:09 PM UTC

Adafruit Color Sensors

Android GBoard Morse Code Control with Circuit Playground Express

i2c/spi LCD Backpack Created by lady ada Last updated on :11:04 PM UTC

Adabot Operation Game

Adafruit 8x16 LED Matrix FeatherWing

Adafruit TPL5110 Power Timer Breakout

NeoPixel Bike Light. Created by Ruiz Brothers. Last updated on :43:46 PM UTC

PyPortal NeoPixel Color Picker Created by Kattni Rembor. Last updated on :42:41 PM UTC

Adafruit Capacitive Touch Sensor Breakouts

Guardian Shield+ Zelda Breath of the Wild

0.96" mini Color OLED

Circuit Playground Express Laser Tag

Adafruit Si5351 Clock Generator Breakout

Chirping Plush Owl Toy

BeagleBone. Created by lady ada. Last updated on :46:10 PM UTC

Feather Weather Lamp. Created by Ruiz Brothers. Last updated on :54:26 PM UTC

Adafruit Si7021 Temperature + Humidity Sensor

NeoPixel Ring Bangle Bracelet

Adafruit CCS811 Air Quality Sensor

Adafruit ATWINC1500 WiFi Breakout

Lie Ren's Stormflower Gun Blade

Interactive Gift Box. Created by codingpro. Last updated on :47:40 AM UTC

Trinket NeoPixel LED Longboard

Sino:bit with Arduino

Adafruit AM2320 Sensor

Adafruit MMA8451 Accelerometer Breakout

Adafruit HUZZAH32 - ESP32 Feather

Adafruit 1.27" and 1.5" Color OLED Breakout Board

Trinket-Powered Conference Room Occupancy Display

Jewel Hair Stick. Created by Leslie Birch. Last updated on :47:17 PM UTC

Wind Blowing Emoji Prop

NeoMatrix 8x8 Word Clock

TSL2561 Luminosity Sensor

Adafruit PCF8523 Real Time Clock

Sword & Wand Prop Effects with Circuit Playground

3D Printed Camera LED Ring

Alohamora Bottle. Created by Erin St Blaine. Last updated on :58:53 PM UTC

Solar Boost Bag. Created by Becky Stern. Last updated on :44:55 PM UTC

Adafruit DRV2605 Haptic Controller Breakout

MCP Bit DAC Tutorial

Mystical LED Halloween Hood

NeoPixel LED Cortana Costume

Adafruit MPRLS Ported Pressure Sensor Breakout

Unicorn Hat with Moving Ears

Adafruit 8x16 LED Matrix FeatherWing

Adafruit GPS Hat in Windows IoT Core

Adafruit I2C FRAM Breakout

'Sup Brows. Created by Kate Hartman. Last updated on :52:04 PM UTC

Flora Brake Light Backpack

Bluetooth Controlled NeoPixel Headphones

Con Badge with Circuit Playground Express

Adafruit AS channel Visible Light Sensor

Camera LED Ring Light

Crickit Carnival Bumper Bot

3D Printed Case for Adafruit Feather

Milk Jug Glow Skull. Created by John Park. Last updated on :28:36 PM UTC

MLX90393 Wide-Range 3-Axis Magnetometer

Joy Featherwing. Created by Dean Miller. Last updated on :03:07 PM UTC

Datalogging Hat with FLORA BLE

Adafruit eink Display Breakouts

Cup o' Sound. Created by Becky Stern. Last updated on :30:06 PM EST

IS31FL x9 Charlieplexed PWM LED Driver

Ping Pong Ball Launcher

NeoPixel Punk Collar. Created by Becky Stern. Last updated on :41:18 PM UTC

Adafruit AMG8833 8x8 Thermal Camera Sensor

Sparkle Skirt. Created by Becky Stern. Last updated on :48:58 PM UTC

Adafruit TPL5111 Reset Enable Timer Breakout

Coffee Detonator: The TNT Plunger Grinder

MCP Bit DAC Tutorial

Adafruit GPIO Expander Bonnet for Raspberry Pi Created by Kattni Rembor. Last updated on :12:47 PM UTC

Transcription:

Getting Started with FLORA Created by Becky Stern Last updated on 2014-12-12 02:30:15 PM EST

Guide Contents Guide Contents Overview Download software Mac OSX Install Drivers! (Windows Only) Windows 8 Windows 7 Locating the Driver File (Win 7 & XP) Blink onboard LED Power your FLORA The VBATT Pad FLORA pinout diagram Some Technical Specs: FLORA projects FLORA techniques FLORA modules IDE Florafication 2 3 6 6 7 7 8 9 14 17 18 19 20 21 22 23 25 Adafruit Industries https://learn.adafruit.com/getting-started-with-flora Page 2 of 27

Overview FLORA is Adafruit's wearable electronics platform. We designed it from the ground up to provide the best experience for Adafruit's community of makers, hackers, crafters, artists, designers and engineers. It's built around the Atmega32u4 chip, which has built-in USB support. No pesky special cables or extra parts for programming, just plug it in and get started making the wearables project of your dreams! Works on Windows and Mac. The FLORA is extremely beginner-friendly-- it is difficult to destroy the FLORA by connecting a battery backwards due to polarized connector and protection diodes. The onboard regulator means that even connecting a 9V battery will not result in damage or tears. This guide is the first step in using FLORA, plugging it in and programming it to blink its onboard LED! After that you can move on to our Flora RGB Smart Pixels tutorial (http://adafru.it/art) and/or Flora GPS tutorial (http://adafru.it/arp). Adafruit Industries https://learn.adafruit.com/getting-started-with-flora Page 3 of 27

Adafruit created the FLORA from scratch after many months of research and we really think we came up with something that will empower some amazing wearable projects. The FLORA is small (1.75" diameter). We wanted the smallest possible board for our wearable platform. It's based on our experiences shipping our own, shipping, customertested Atmega32u4 (http://adafru.it/296) Breakout Board (http://adafru.it/296). FLORA has a small but easy to use onboard reset button to reboot the system. The power supply is deigned to be flexible and easy to use. There is an onboard polarized 2 JST battery connector with protection schottky diode for use with external battery packs from 3.5v to 9v DC in (It can run on 3V but 3.5V-5V or higher is ideal). Can be used with LiIon/LiPoly, LiFe, alkaline or rechargeable NiMh/NiCad batteries of any size. The FLORA does no t have a LiPo charger included by design, this allows safe use with multiple battery types and reduces risk of fire as it is not recommended to charge these batteries on fabric. FLORA has built-in USB support. Built in USB means you plug it in to program it, it just shows up. No additional purchases are needed! Works with Mac, Windows, Linux, any USB cable works great. Currently the PCB comes with a mini B connector but future versions may change to microusb. The FLORA has USB HID support, so it can act like a mouse or keyboard, etc. Adafruit Industries https://learn.adafruit.com/getting-started-with-flora Page 4 of 27

Adafruit Industries https://learn.adafruit.com/getting-started-with-flora Page 5 of 27

Download software To start, please download our version of the Arduino IDE that's been updated to include the Flora drivers, libraries & code examples! We have versions for Windows and Mac OS X. For Mac, click the button below - then unzip. Move the application to your Applications folder. Windows Arduino IDE v1.05 w/trinket, Gemma, Flora http://adafru.it/cua Mac Arduino IDE v1.05 w/trinket, Gemma, Flora http://adafru.it/ctn Linux (32-bit) Arduino IDE 1.0.5 w/ Trinket, Gemma, Flora http://adafru.it/dxa Linux (64-bit) Arduino IDE 1.0.5 w/ Trinket, Gemma, Flora http://adafru.it/dxb Mac OSX If you're using Mac OS Mavericks you will need to update the setting to permit running Arduino IDE 1. Go to your Security and Privacy Settings 2. Click the Lock Icon and Login 3. Change "Allow Apps Downloaded From": to "Anywhere" 4. Launch the app, then go back to Security Settings and change the selection back to "Mac App Store and Identified developers" 5. You only need to do this procedure once - the Mac will remember that it's OK to run the Arduino App. Adafruit Industries https://learn.adafruit.com/getting-started-with-flora Page 6 of 27

Install Drivers! (Windows Only) Mac users, you can skip to the next part of the tutorial - you don't need to install any drivers! For Windows users, you'll need to install the drivers for the Flora. Begin by plugging in the Flora board. Look for a green power LED (left of the mini USB jack) and a pulsing red LED (right of the mini USB jack). WinXP users, skip down past these few photos, you should get a popup asking you for a driver location, just browse to it as shown. Windows 8 We now have signed Windows 8 drivers for flora. Download the driver by clicking here. You should be able to right-click the inf file to install it directly, or point Windows to this uncompressed folder when prompted! Download the Windows 8 signed Flora Driver Adafruit Industries https://learn.adafruit.com/getting-started-with-flora Page 7 of 27

http://adafru.it/dpt Windows 7 You'll see this pop up in the bottom right corner: Now go to the Start menu (bottom left corner, the round windows logo) and click on it and start typing in Device Manager Click on the Device Manager (top icon in the menu) to launch it, scroll down until you see Adafruit Flora with a! mark. Right click and select Update Driver Software Adafruit Industries https://learn.adafruit.com/getting-started-with-flora Page 8 of 27

Locating the Driver File (Win 7 & XP) OK if you have XP you'll basically start from here, click Browse my computer for driver so ftware Adafruit Industries https://learn.adafruit.com/getting-started-with-flora Page 9 of 27

Then browse to the uncompressed Flora IDE folder, and select the drivers fo lder (not any other folder!) and click OK. Adafruit Industries https://learn.adafruit.com/getting-started-with-flora Page 10 of 27

Adafruit Industries https://learn.adafruit.com/getting-started-with-flora Page 11 of 27

Make sure the folder next to the Bro wse... button is correct, then click Next. When you get this scary window next, click Install this driver so ftware anyway. Adafruit Industries https://learn.adafruit.com/getting-started-with-flora Page 12 of 27

That's it! Thankfully you only have to do this once. Adafruit Industries https://learn.adafruit.com/getting-started-with-flora Page 13 of 27

Blink onboard LED Next it's time to load up a program on your FLORA. There is an LED on board, so let's blink it! Plug in the USB cable and paste the following code into the Adafruit Flora IDE: // Pin D7 has an LED connected on FLORA. // give it a name: int led = 7; // the setup routine runs once when you press reset: void setup() { // initialize the digital pin as an output. pinmode(led, OUTPUT); } // the loop routine runs over and over again forever: void loop() { digitalwrite(led, HIGH); // turn the LED on (HIGH is the voltage level) Adafruit Industries https://learn.adafruit.com/getting-started-with-flora Page 14 of 27

delay(1000); // wait for a second digitalwrite(led, LOW); // turn the LED off by making the voltage LOW delay(1000); // wait for a second } From the Tools menu, under "Board," choose "Adafruit Flora" Also in the Tools menu, under "Serial Port," choose the one that contains the phrase "usbmodem" if you have a Mac. If you're using a Windows computer, it will be named COMsomething, but not COM1 or Adafruit Industries https://learn.adafruit.com/getting-started-with-flora Page 15 of 27

COM2 (so it will be whatever comes after those two if they exist, such as COM3 or COM4). Press the Upload button to transmit the program to the FLORA. It looks like an arrow pointing to the right. That's it! The on board LED marked "D7" should blink on and off repeatedly, and you've successfully programmed your FLORA! Adafruit Industries https://learn.adafruit.com/getting-started-with-flora Page 16 of 27

Power your FLORA The Flora runs at 3.3V with an onboard regulator to keep the voltage steady. You'll need to power the board with a 3.6V or greater battery. For that reason, we find 3 x AA or AAA or a lithium-polymer battery to be ideal. You can only power FLORA through its onboard JST port. After loading your program onto the FLORA, you'll want to unplug the USB cable and go portable with battery power! USB will always power the board, but battery power (through the JST connector) can be turned on and off with Flora's onboard switch (near the "ON" text on the board). We recommend our 3xAAA holder (http://adafru.it/727) for beginners, which conveniently plugs into FLORAs JST port. Adafruit Industries https://learn.adafruit.com/getting-started-with-flora Page 17 of 27

More advanced users may wish to use a rechargeable lithium polymer battery (http://adafru.it/258) for their smaller size and longer duration. These batteries pose added risk if abused, shorted, bent, crushed, or punctured. FLORA does not have onboard charging, so you would also need a separate LiPoly charger (http://adafru.it/259). The VBATT Pad The most commonly confused part of the Flora is the VBATT pad and how power management is handled in the Flora. We designed the flora to be mainly powered via the JST connector. You can power it with a battery pack or lipo battery. That input is polarity protected and also controlled via the on/off switch. The battery output after the switch is VBATT. You shouldn't use VBATT as an input as you might damage your battery if you also plug in the USB connector to a computer! The ideal use of VBATT is when you want to power something like NeoPixels or a servo, something that requires more than the 150mA available from the onboard regulator. Adafruit Industries https://learn.adafruit.com/getting-started-with-flora Page 18 of 27

FLORA pinout diagram For handy reference, we've created this pinout diagram illustrating all the alternate functions for each of the pins on the Flora. The most commonly confused part of the Flora is the VBATT pad and how power management is handled in the Flora. We designed the flora to be mainly powered via the JST connector. You can power it with a battery pack or lipo battery. That input is polarity protected and also controlled via the on/off switch. The battery output after the switch is VBATT. You shouldn't use VBATT as an input as you might damage your battery if you also plug in the USB connector to a computer! The ideal use of VBATT is when you want to power something like NeoPixels or a servo, something that requires more than the 150mA available from the onboard regulator. Adafruit Industries https://learn.adafruit.com/getting-started-with-flora Page 19 of 27

Some Technical Specs: Battery input (JST): 3.5-16V (the regulator is MIC5225-3.3 (http://adafru.it/dqo)) with reverse polarity protection, 2A max rated connector. We recommend no more than 6VDC so that the 3.3V regulator does not overheat USB input: 4.5V-5.5V with 500mA fuse 3.3V output pad: we recommend no more than 100mA, as the regulator can supply 150mA and the Flora Mainboard uses 20mA. but you can probably draw up to 250mA in spikes Clock speed: 8MHz Chipset: ATmega32u4 VBAT output pad: the higher of the VBAT JST input voltage and USB voltage (two schottkey diode connection) Current Draw: 8mA quiescent, another 2mA when the pin #D7 LED is on. Adafruit Industries https://learn.adafruit.com/getting-started-with-flora Page 20 of 27

FLORA projects Flora Pixel Brooch (http://adafru.it/atj) Flora TV-B-Gone (http://adafru.it/auk) GPS Jacket (http://adafru.it/awf) Capacitive Touch with Conductive Fabric (http://adafru.it/awg) Wearable Piezo Tones (http://adafru.it/awh) LED Ampli-Tie (http://adafru.it/c1u) Plush Game Controller (http://adafru.it/c9f) Adafruit Industries https://learn.adafruit.com/getting-started-with-flora Page 21 of 27

FLORA techniques Flora snaps (http://adafru.it/aul) Conductive thread (http://adafru.it/avx) Capacitive Touch with Conductive Fabric & Flora (http://adafru.it/awg) Adafruit Industries https://learn.adafruit.com/getting-started-with-flora Page 22 of 27

FLORA modules FLORA Accelerometer + Compass (http://adafru.it/ays) FLORA Luminosity Sensor (http://adafru.it/c9h) FLORA GPS (http://adafru.it/arp) Adafruit Industries https://learn.adafruit.com/getting-started-with-flora Page 23 of 27

Flora RGB Smart NeoPixels (http://adafru.it/c9j) Adafruit Industries https://learn.adafruit.com/getting-started-with-flora Page 24 of 27

IDE Florafication If you have a version of the Arduino IDE that you want to 'Floraify' - it isn't that hard! Try the following instructions to add support to your IDE, works with anything after v1.0 (and its known good with v1.0.5) Find your boards.txt file (its in the Arduino/hardware/arduino folder on Windows, and on Mac right click the application and select "Show Package Contents," then navigate to Co ntents/reso urces/java/hardware/arduino) and add to the bottom: flora8.name=adafruit Flora flora8.upload.protocol=avr109 flora8.upload.maximum_size=28672 flora8.upload.speed=57600 flora8.upload.disable_flushing=true flora8.bootloader.low_fuses=0xff flora8.bootloader.high_fuses=0xd8 flora8.bootloader.extended_fuses=0xcb flora8.bootloader.path=caterina flora8.bootloader.file=caterina-flora8.hex flora8.bootloader.unlock_bits=0x3f flora8.bootloader.lock_bits=0x2f flora8.build.mcu=atmega32u4 flora8.build.f_cpu=8000000l flora8.build.vid=0x239a flora8.build.pid=0x8004 flora8.build.core=arduino flora8.build.variant=flora Place in arduino-1.0.5\drivers (Windows only): Adafruit_Flora.inf http://adafru.it/cfh Add to hardware/arduino/variants/flo ra (windows) or hardware/arduino/avr/variants/flo ra (mac) (create folder): pins_arduino.h http://adafru.it/cfi Add to hardware/arduino/bo o tlo aders/caterina (windows) or Adafruit Industries https://learn.adafruit.com/getting-started-with-flora Page 25 of 27

hardware/arduino/avr/bo o tlo aders/caterina (mac) Caterina-Flora8.hex http://adafru.it/cfj Edit hardware/arduino/co res/arduino/usbco re.cpp (windows) or hardware/arduino/avr/co res/arduino/usbco re.cpp (mac) find: #elif USB_PID == 0x9208 'L','i','l','y','P','a','d','U','S','B',' ',' ',' ',' ',' ',' ' Add right below it #elif USB_PID == 0x8004 'A','d','a','f','r','u','i','t',' ','F','l','o','r','a',' ',' ' Then find #elif USB_VID == 0x1b4f 'S','p','a','r','k','F','u','n',' ',' ',' ' or (applies to v1.5): #elif USB_VID == 0x1b4f #define USB_MANUFACTURER "SparkFun" Add right below it #elif USB_VID == 0x239A 'A','d','a','f','r','u','i','t',' ',' ',' ' or (v1.5): #elif USB_VID == 0x239A #define USB_MANUFACTURER "Adafruit" Adafruit Industries https://learn.adafruit.com/getting-started-with-flora Page 26 of 27

Adafruit Industries Last Updated: 2014-12-12 02:30:18 PM EST Page 27 of 27