Difference between revisions of "Four In One Demo (X02)"
(→Program) |
(→Tweaking) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | [[File:Four In One Demo Project|right|thumb| | + | [[File:Four_In_One_Demo_X02_1.png|right|thumb|Four In One Demo Project Build]] |
+ | [[File:Four_In_One_Demo_X02_2.png|right|thumb|Spinning the Demo in '''Mode 2''' creates a rainbow effect.]] | ||
=About= | =About= | ||
This project uses the [[mCookie-Core|Core module]], [[mCookie-LED_Matrix|LED Matrix module]], [[mCookie-Motion|Motion module]] and [[mCookie-OLED|OLED module]] to demonstration several project demos using these modules. | This project uses the [[mCookie-Core|Core module]], [[mCookie-LED_Matrix|LED Matrix module]], [[mCookie-Motion|Motion module]] and [[mCookie-OLED|OLED module]] to demonstration several project demos using these modules. | ||
− | This project was designed for the second generation mCookie Maker kits ( | + | This project was designed for the second generation mCookie Maker kits (302 Expert kits). |
=Required Materials= | =Required Materials= | ||
Line 37: | Line 38: | ||
=Tweaking= | =Tweaking= | ||
'''DEBUG''' will enable debugging mode. Which outputs information to the Serial Port. | '''DEBUG''' will enable debugging mode. Which outputs information to the Serial Port. | ||
+ | |||
+ | '''PIN''' is the LED Matrix CONTROL PIN | ||
+ | |||
+ | '''LED_NUM''' is the NUMBER OF LEDS CONNECTED | ||
+ | |||
+ | '''LED_MAX''' set maximum brightness value for the LED. Be careful with large values as the LED is extremely bright! | ||
+ | *Default: 20 | ||
+ | *Range: 0 (always off) ~ 255 (blinding) | ||
+ | |||
+ | =Troubleshooting= | ||
+ | Disconnecting and reconnecting the modules can fix the issue with detecting the different modes. | ||
=Usage= | =Usage= | ||
Line 42: | Line 54: | ||
*'''Mode 1''' - Stack a Core module and LED Matrix onto mBattery. | *'''Mode 1''' - Stack a Core module and LED Matrix onto mBattery. | ||
**The LED Matrix will light up. | **The LED Matrix will light up. | ||
− | *'''Mode 2''' - Stack a Core module, Motion module and LED Matrix onto mBattery. | + | *'''Mode 2''' - Stack a Core module and OLED onto mBattery. |
+ | **The OLED will display a message. | ||
+ | *'''Mode 3''' - Stack a Core module, Motion module and LED Matrix onto mBattery. | ||
**The LED Matrix will change colors based on the angle. Spin the mBattery with the module connected and the colors on the LED Matrix will change. | **The LED Matrix will change colors based on the angle. Spin the mBattery with the module connected and the colors on the LED Matrix will change. | ||
− | *'''Mode | + | *'''Mode 4''' - Stack a Core module, Motion module, LED Matrix module and OLED module onto mBattery. Ensure that the LED Matrix module is on top of one stack and the OLED module is on top of the other stack. |
**A smiley face will appear on the the center of the OLED module. Tilting the modules will cause the smiley face to move around accordingly. The color of the LED Matrix will change accordingly to the tilt of the modules. | **A smiley face will appear on the the center of the OLED module. Tilting the modules will cause the smiley face to move around accordingly. The color of the LED Matrix will change accordingly to the tilt of the modules. |
Latest revision as of 01:17, 4 May 2017
Contents
About
This project uses the Core module, LED Matrix module, Motion module and OLED module to demonstration several project demos using these modules.
This project was designed for the second generation mCookie Maker kits (302 Expert kits).
Required Materials
- 1 x mCookie Core
- 1 x mBattery (202/302 Kit)
- 1 x mCookie LED Matrix
- 1 x mCookie Motion
- 1 x mCookie OLED
- 1 x MicroUSB Cable
Build
Assembly
- Stack the mCookie Core onto mBattery.
- Plug in the MicroUSB cable to the mBattery to a computer.
- NOTE: See #Usage for further instructions on assembly.
Program
1. Connect mCookie Core to the PC with the USB Cable. Open the Microduino IDE.
2. Download the project file and unzip: File:Four In One Demo X02.zip.
- Using the Microduino IDE and go to File > Open... and navigate to the unzipped folder. Open the Four_In_One_Demo_X02.ino file.
3. Select the board, processor and port:
- Go to Tools > Board and select Microduino/mCookie-Core (328p)
- Go to Tools > Processor and select Atmega328P16M,5V
- Go to Tools > Port and select the available port
4. Upload the program by clicking on the right arrow icon on the top left of the window. Or under Sketch > Upload.
NOTE: If not using the default Core module included in the kits, please follow the selecting the board and processor guide.
Debugging
- Open the Serial monitor. Information will be displayed.
Tweaking
DEBUG will enable debugging mode. Which outputs information to the Serial Port.
PIN is the LED Matrix CONTROL PIN
LED_NUM is the NUMBER OF LEDS CONNECTED
LED_MAX set maximum brightness value for the LED. Be careful with large values as the LED is extremely bright!
- Default: 20
- Range: 0 (always off) ~ 255 (blinding)
Troubleshooting
Disconnecting and reconnecting the modules can fix the issue with detecting the different modes.
Usage
This project has various modes and can be activated on the fly.
- Mode 1 - Stack a Core module and LED Matrix onto mBattery.
- The LED Matrix will light up.
- Mode 2 - Stack a Core module and OLED onto mBattery.
- The OLED will display a message.
- Mode 3 - Stack a Core module, Motion module and LED Matrix onto mBattery.
- The LED Matrix will change colors based on the angle. Spin the mBattery with the module connected and the colors on the LED Matrix will change.
- Mode 4 - Stack a Core module, Motion module, LED Matrix module and OLED module onto mBattery. Ensure that the LED Matrix module is on top of one stack and the OLED module is on top of the other stack.
- A smiley face will appear on the the center of the OLED module. Tilting the modules will cause the smiley face to move around accordingly. The color of the LED Matrix will change accordingly to the tilt of the modules.