Smart Toybox is a hardware device that solves problem most parents have - toys all over the house by making cleaning-up the toys FUN!
This repository contains Smart Toybox embedded software for Smart Toybox prototype based on TI cc3200 platform.
This software require previously built hardware. Detailed instructions can be found here on Instructables. Please VOTE for us!
We recommend using TI CCS edition that is freely available for cc3200 platform. Installation manual is available with cc3200 evaluation board used as platform for hardware and it is assumed that you already installed and configured CCS for cc3200. You will also need TI's Uniflash tool.
- Create new CCS empty project named smarttoybox. Select target cc3200.
- Clone repo into created project folder.
Searching for better solution because this way whenever important change is made in project it needs to be propagated to project files in ccs directory. Also when change comes via source control, ccs dir content needs to be copied back to project root dir.
- Compile the project.
- (optional) customize theme using Theme Packer. You can find theme.stb file in deploy/uniflash_config_session/fileSystem directory.
- Use TI's Uniflash tool to setup device using uniflash_config.usf file in deploy directory. Do not forget to put SOP2 jumper before flashing and to remove it after flashing is done!
- On the first run, you will have to calibrate your weight sensor. Prepare 1.5l bottle of water or similar weight. Run the project and follow console output. When instructed put bottle (weight) on the plate atteched to the sensor. After calibration is complete copy calibration settings from the console, remove the weight and system will write the settings to the flash and reboot in normal mode.
- Edit settings.ini file in deploy/uniflash_config_session/fileSystem directory with data gathered in calibration so you can flash the board with calibrated data and ommit calibration. If you want to rerun calibration just delete settings.ini or set all the valuse to 0.
- After testing your device you can remove SOP jumper from cc3200 board, connect power bank and have FUN!
We are using (slightly modified to compile and work on two channels) WavPack integer-based decompression code called Tiny Decoder, hardware-friendly decoder by David Bryant.
You can find original code here: http://wavpack.com/