The Wearable Wayfinder is a totally programmable, beautiful little computer for your wrist packed with sensors.
/* LucidTronix Wearable Wayfinder * For instructions, details and schematic, See: * http://www.lucidtronix.com/tutorials/56 */#include#include // Core graphics library#include // Hardware-specific library#include #include #include #include #include #include #include // for leo:Adafruit_ST7735 tft = Adafruit_ST7735(SS, 9, 8);WearableWayfinder ww = WearableWayfinder(&tft);int cur_note = 0;int old_pot = 0;char notes[] = {'c', 'd', 'e', 'f', 'g', 'a', 'b', 'C' };void setup(){ Wire.begin(); // Start the I2C interface. ww.initialize(); //ww.set_date_time(__DATE__, __TIME__);}void loop(){ ww.draw_string(5, 4, "Time", ww.stroke.color_16(), 1); ww.show_time(10, 15); ww.draw_string(5, 36, "Date", ww.stroke.color_16(), 1); ww.show_date(10, 45); ww.draw_string(5, 66, "Compass", ww.stroke.color_16(), 1); ww.show_heading(10, 75); ww.draw_string(5, 91, "Accelerometer", ww.stroke.color_16(), 1); ww.show_accelerometer(10, 100); ww.draw_string(5, 136, "Potentiometer", ww.stroke.color_16(), 1); int pot = analogRead(0); if(pot != old_pot) tft.fillRect(10, 145, 50, 10, ww.background.color_16()); ww.print_integer(10, 145, pot, 1); old_pot = pot; if(digitalRead(ww.btn1_pin) == HIGH){ ww.playNote(notes[cur_note++], 300); if (cur_note == 8) cur_note = 0; } if(digitalRead(ww.btn2_pin) == HIGH){ ww.stroke = Color(random(255), random(255), random(255)); } }
| Title | Description | # | Cost | Link | Picture |
| TFT LCD Screen | 1.8 inch 160 x 128 pixels LCD screen. ST7735R driver. JDT-1800. | 1 | $9.95 | Link |
|
| ATMEGA32U4-MU | Integrated Circuits MCU AVR 32K FLASH 16MHZ 44-QFNValue:2.7 V ~ 5.5 V 16MHz | 1 | $6.04 | Link |
|
| Accelerometers MMA8453QR1 | Tripla axis: X, Y, Z ±2g, 4g, 8g 16-VFDFN I²C 16-QFN (3x3)Value:I²C | 1 | $1.43 | Link |
|
| Clock MCP79410 Real-Time Clock Chip | I²C, 2-Wire Serial 1.8 V ~ 5.5 V Alarm, Leap Year, Square Wave Output, SRAM, Unique IDValue: I²C | 1 | $1.08 | Link |
|
| Crystal 32.768KHZ 12.5PF SMD | 32.768KHz crystal oscillator for use with DS1307 RTC chip.Value:32.768kHz | 1 | $0.94 | Link |
|
| Battery Lithium Coin Cell 3V 12.5MM | Batteries Non-Rechargeable (Primary) Lithium Coin, 12.5mm 3V 36mAhValue:3V | 1 | $0.71 | Link |
|
| HOLDER COIN CELL 12MM SMD | Coin Cell, Retainer PCB, Surface Mount SMD (SMT) TabValue: Coin, 12.0mm | 1 | $0.49 | Link |
|
| Voltage Regulator 3v3 SMD | IC REG LDO 3.3V .15A SOT23 Up to 6V input output 3.3V 150mA (Max)Value:3.3V | 1 | $0.46 | Link |
|
| CD4050 | IC BUFF/CONVERTER HEX 16SOICN 8mA, 48mAValue: 3 V ~ 18 V | 1 | $0.45 | Link |
|
| BSS138 | MOSFET N-CH 50V 220MA SOT-23Value:MOSFET N-Channel, Metal Oxide | 1 | $0.25 | Link |
|
| Button | Tactile switch SMD SPST 0.05A 12VValue:SPST | 1 | $0.2 | Link |
|
| Capacitor | CAP CER 10UF 10V Y5V 0805. Ceramic Capacitor.Value:10µF | 1 | $0.16 | Link |
|
| Resistor | Chip Resistor - Surface Mount RES 10K OHM 1/8W 5% 0805 SMDValue: 10k | 4 | $0.1 | Link |
|
| Capacitor | CAP CER 0.1UF 50V Y5V 0805Value:0.1µF | 1 | $0.1 | Link |
|
| Resistors | RES 300 OHM 1/8W 5% 0805 SMDValue:300 | 1 | $0.1 | Link |
|
| Resistor SMD 2.2K 0805 | Surface Mount resistor 2.2k ohm, 0805 package.Value:2.2k | 1 | $0.1 | Link |
|
Comments: