Download Print this page
adafruit learning system Joy Featherwing Manual

adafruit learning system Joy Featherwing Manual

Advertisement

Quick Links

Joy Featherwing
Created by Dean Miller
Last updated on 2020-04-15 10:31:48 AM EDT

Advertisement

loading
Need help?

Need help?

Do you have a question about the Joy Featherwing and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for adafruit learning system Joy Featherwing

  • Page 1 Joy Featherwing Created by Dean Miller Last updated on 2020-04-15 10:31:48 AM EDT...
  • Page 2 Overview Make a game or robotic controller with this Joy-ful FeatherWing.This FeatherWing has a 2-axis joystick and 5 momentary buttons (4 large and 1 small) so you can turn your feather board into a tiny game controller. This wing communicates with your host microcontroller over I2C so it's easy to use and doesn't take up any of your precious analog or digital pins.
  • Page 3 This FeatherWing features Adafruit Seesaw technology - a custom programmed little helper microcontroller that takes the two analog inputs from the joystick, and 5 button inputs, and converts it into a pretty I2C interface. This I2C interface means you don't 'lose' any GPIO or analog inputs when using this 'Wing, and it works with any and all Feathers! You can easily stack this with any other FeatherWing because I2C is a shared bus.
  • Page 4 We have an Adafruit Seesaw library for Arduino, Python and CircuitPython so you can get started with the Joy FeatherWing in a jiffy. © Adafruit Industries https://learn.adafruit.com/joy-featherwing Page 5 of 23...
  • Page 5 Pinouts Power and Reset Pins The power to the Joy Featherwing comes from the host Feather's 3.3V regulator, 3.3V and ground are both required and are highlighted above The Feather's Reset pin ends up coming from the left-most circled pin and connects to the on-board reset button. This...
  • Page 6 Soldering one of the jumpers for the optional interrupt will connect that pin of your Feather to the interrupt line on the Joy Featherwing. This will allow your Feather to know whether a button has been pressed or released without having to read each button over and over in a loop.
  • Page 7 Each Feather has different pin names/numbers so check your mainboard for which pin you want to use then solder that jumper closed © Adafruit Industries https://learn.adafruit.com/joy-featherwing Page 8 of 23...
  • Page 8: Prepare The Header Strip

    Assembly Prepare the header strip: Cut the strip to length if necessary. It will be easier to solder if you insert it into a breadboard - long pins down © Adafruit Industries https://learn.adafruit.com/joy-featherwing Page 9 of 23...
  • Page 9 Add the FeatherWing: Place the featherwing over the pins so that the short pins poke through the two rows of breakout pads And Solder! Be sure to solder all pins for reliable electrical contact. (For tips on soldering, be sure to check out our Guide to Excellent Soldering (https://adafru.it/aTk)
  • Page 10 © Adafruit Industries https://learn.adafruit.com/joy-featherwing Page 11 of 23...
  • Page 11 © Adafruit Industries https://learn.adafruit.com/joy-featherwing Page 12 of 23...
  • Page 12 Now flip around and solder the other row completely © Adafruit Industries https://learn.adafruit.com/joy-featherwing Page 13 of 23...
  • Page 13 You're done with the two header strips. Check your solder joints visually and continue onto the next steps OK You're done! You can now plug your FeatherWing into your Feather and get your JOY on! © Adafruit Industries https://learn.adafruit.com/joy-featherwing Page 14 of 23...
  • Page 14 (https://adafru.it/aYM) Running the Example Code The library comes with a Joy Featherwing example to get you started fast. Plug the Wing into the Feather and connect the Feather to your computer with the USB cable. Open the Arudino IDE and load File->Examples->Adafruit_seesaw->joy_featherwing_example The example assumes the interrupt pin is connected to pin 5 on the Feather via the first solder jumper on the far left.
  • Page 15 When you press a button, a notification should appear in the monitor. FeatherJoyWing library! If you'd like an all-in-one library that abstracts some of the FeatherWing for you, check out Leonid (https://adafru.it/ven)'s FeatherJoyWing library https://github.com/leonidlezner/FeatherJoyWing (https://adafru.it/Bsi) © Adafruit Industries https://learn.adafruit.com/joy-featherwing Page 16 of 23...
  • Page 16 Circuit Python Wiring & Test Download Adafruit_CircuitPython_seesaw Library To begin reading data from your Joy Featherwing, you will need to download from our Adafruit_CircuitPython_seesaw github repository. You can do that by visiting the github repo and manually downloading or, easier, just click this button to download the zip https://adafru.it/A0u...
  • Page 17 open the code.py file in the root of the CIRCUITPY drive and copy and paste the following code: © Adafruit Industries https://learn.adafruit.com/joy-featherwing Page 18 of 23...
  • Page 18 import time from board import SCL, SDA import busio from micropython import const from adafruit_seesaw.seesaw import Seesaw # pylint: disable=bad-whitespace BUTTON_RIGHT = const(6) BUTTON_DOWN = const(7) BUTTON_LEFT = const(9) BUTTON_UP = const(10) BUTTON_SEL = const(14) # pylint: enable=bad-whitespace button_mask = const( (1 <<...
  • Page 19 Plug your Joy Featherwing onto the top of your CircuitPython Feather board. When you open the REPL you should see output when you press buttons or move the joystick. © Adafruit Industries https://learn.adafruit.com/joy-featherwing Page 20 of 23...
  • Page 20 Downloads Files Fritzing object in Adafruit Fritzing Library (https://adafru.it/aP3) PCB files (EAGLE format) (https://adafru.it/Bsm) Schematic click to enlarge Dimensions in Inches © Adafruit Industries https://learn.adafruit.com/joy-featherwing Page 21 of 23...
  • Page 21 © Adafruit Industries https://learn.adafruit.com/joy-featherwing Page 22 of 23...
  • Page 22 © Adafruit Industries Last Updated: 2020-04-15 10:31:48 AM EDT Page 23 of 23...
  • Page 23 Mouser Electronics Authorized Distributor Click to View Pricing, Inventory, Delivery & Lifecycle Information: Adafruit 3632...