This firmware will turn your FutureStack badge into a simple NFC tag reader and screen target. To get started, register an account with http://electricimp.com, BlinkUp your badge using the Electric Imp Android or iOS mobile app, and create a new model using the IDE containing the code in device.nut and agent.nut. Hit "Build and Run" and your badge should be ready to go. Additionally, you can use robot.rb to push an image to your badge. Just make sure to edit it with your agent URL.
- If you're using an Android phone, you may have better luck using the "legacy mode" during the BlinkUp process.
- The main runloop of the device firmware can be found at the very bottom of the file here.
- The device code is a little lengthy due to the number of driver classes. Use code collapsing to make the file a bit more navigable.
- When blinking the badge up, you'll need to hold your phone over the phototransistor labeled Q1:
- Electric Imp has an excellent guide on the BlinkUp process here.
- The badge's WiFi radio will only work on 2.4GHz networks.
- See this troubleshooting guide if you're having issues getting the badge online.
To explore more about Electric Imp, check out their dev center here. If you want to use your Imp in your own hardware project, check out this page to find a breakout board.
The e-paper screen on your badge is made by Pervasive Displays. You can find more information on the generation 2 2.7" display here.
The NFC chip on the badges is an NXP PN532. You can find the datasheet here. The user manual (a bit higher level) is here and an application note is here. With these datasheets, you'll be able to tailor the NFC chip's behavior to your heart's content.
Details on the flash memory chip on the badges can be found here.
Since the Imp is a little short on pins, the badge includes a handy IO expander (datasheet). The unused pins of the IO expander are broken out on the side of the PCB. The interrupt line on of this chip is connected to pin 1 of the Imp, which can be used for waking interrupts.
Your badge is rechargeable via the micro USB port on the side. It does not need to be on to charge. The 850mAh lithium polymer battery (datasheet) is protected by an over/under charge and short protection circuit (datasheet).
Contributions are more than welcome. Bug reports with specific reproduction steps are great. If you have a code contribution you'd like to make, open a pull request with suggested code.
Pull requests should:
- Clearly state their intent in the title
- Have a description that explains the need for the changes
By contributing to this project you agree that you are granting New Relic a non-exclusive, non-revokable, no-cost license to use the code, algorithms, patents, and ideas in that code in our products if we so choose. You also agree the code is provided as-is and you provide no warranties as to its fitness or correctness for any purpose.
Portions of this code used with permission from Javier Montaner.
Copyright (c) 2014 New Relic, Inc. See the LICENSE file for license rights and limitations (MIT).