├── .gitignore ├── BOM.md ├── Firmware ├── LICENSE └── Retro_Watch.ino ├── Hardware ├── Assembled.JPG ├── OSHPark Renders │ ├── back.png │ └── front.png ├── Retro|Watch.brd ├── Retro|Watch.pdf └── Retro|Watch.sch └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | *.html 2 | Easy Bubble Watch Oozes Retro Charm | Hackaday.html 3 | -------------------------------------------------------------------------------- /BOM.md: -------------------------------------------------------------------------------- 1 | ###Bill of Materials: 2 |

3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 |
PartValueDevicePackageDescription
C10.1 uFC-USC0805C0805CAPACITOR, American symbol
C20.1 uFC-USC0805C0805CAPACITOR, American symbol
C31 uFC-USC0805C0805CAPACITOR, American symbol
CN1JST-PHJST_2PIN-SMT-RAJST-PH-2-SMT-RAJST 2-Pin Connectors of various flavors
DISP1HP QDSP 60647-SEGMENT-4DIGIT-COUNTER-HP-BUBBLEDIL12
R110kR-US_R0805R0805RESISTOR, American symbol
R210kR-US_R0805R0805RESISTOR, American symbol
R3220RR-US_R0805R0805RESISTOR, American symbol
R4220RR-US_R0805R0805RESISTOR, American symbol
R5220RR-US_R0805R0805RESISTOR, American symbol
R6220RR-US_R0805R0805RESISTOR, American symbol
RTC1DS3231MDS3231MSOIC8DS3231M Real Time Clock. Accuracy +/-5ppm. Battery Backup. 2.3V to 5.5V.
S1SKQGAFE010SWITCH-MOMENTARY-2SMDTACTILE-SWITCH-SMDVarious NO switches- pushbuttons, reed, etc
S2SKQGAFE010SWITCH-MOMENTARY-2SMDTACTILE-SWITCH-SMDVarious NO switches- pushbuttons, reed, etc
S3SKQGAFE010SWITCH-MOMENTARY-2SMDTACTILE-SWITCH-SMDVarious NO switches- pushbuttons, reed, etc
S4SS SMD402SWITCH-SPDTSMD2SWITCH-SPDT-SMDSPDT Switch
U1ATMEGA328P-AUATMEGA328P-AUTQFP328-bit Microcontroller with In-System Programmable Flash
23 | -------------------------------------------------------------------------------- /Firmware/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 Rafael Riber 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Firmware/Retro_Watch.ino: -------------------------------------------------------------------------------- 1 | //The MIT License (MIT) 2 | // 3 | //Copyright (c) 2016 Rafael Riber 4 | // 5 | //Permission is hereby granted, free of charge, to any person obtaining a copy 6 | //of this software and associated documentation files (the "Software"), to deal 7 | //in the Software without restriction, including without limitation the rights 8 | //to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | //copies of the Software, and to permit persons to whom the Software is 10 | //furnished to do so, subject to the following conditions: 11 | // 12 | //The above copyright notice and this permission notice shall be included in all 13 | //copies or substantial portions of the Software. 14 | // 15 | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | //IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | //FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | //AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | //LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | //OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | //SOFTWARE. 22 | 23 | //Include required libraries 24 | #include 25 | #include 26 | #include 27 | #include 28 | #include 29 | #include 30 | #include 31 | #include 32 | 33 | //Define constants 34 | #define BUTTON1 14 35 | #define BUTTON2 15 36 | #define BUTTON3 16 37 | #define DS3231_I2C_ADDR 0x68 38 | #define DS3231_TEMPERATURE_MSB 0x11 39 | #define DS3231_TEMPERATURE_LSB 0x12 40 | 41 | //Init objects 42 | Pushbutton button1(BUTTON1); 43 | Pushbutton button2(BUTTON2); 44 | Pushbutton button3(BUTTON3); 45 | SevSeg sevSeg; 46 | RTC_DS3231 rtc; 47 | 48 | Chrono myChrono(Chrono::SECONDS); 49 | 50 | //Declare vars 51 | byte temp_msb; 52 | byte temp_lsb; 53 | unsigned long timer; 54 | unsigned int seconds; 55 | unsigned int minutes; 56 | unsigned int hours; 57 | unsigned int months; 58 | unsigned int days; 59 | unsigned int year; 60 | unsigned int doy; 61 | unsigned int dow; 62 | unsigned int woy; 63 | unsigned int time_show; 64 | unsigned long display_time; 65 | unsigned long display_date; 66 | unsigned long temp; 67 | unsigned long deciSecond; 68 | int count = 1; 69 | int addr = 0; 70 | int menu; 71 | int mode; 72 | int watch; 73 | int brightness; 74 | int date; 75 | 76 | //Software reset function 77 | void softwareReset(uint8_t prescaller) { 78 | wdt_enable(prescaller); 79 | while(1) {} 80 | } 81 | 82 | //Get seconds from RTC 83 | unsigned int get_seconds() 84 | { 85 | DateTime now = rtc.now(); 86 | seconds = now.second(); 87 | return seconds; 88 | } 89 | 90 | //Get minutes from RTC 91 | unsigned int get_minutes() 92 | { 93 | DateTime now = rtc.now(); 94 | minutes = now.minute(); 95 | return minutes; 96 | } 97 | 98 | //Get hours from RTC 99 | unsigned int get_hours() 100 | { 101 | DateTime now = rtc.now(); 102 | hours = now.hour(); 103 | return hours; 104 | } 105 | 106 | //Get days from RTC 107 | unsigned int get_days() 108 | { 109 | DateTime now = rtc.now(); 110 | days = now.day(); 111 | 112 | return days; 113 | } 114 | 115 | //Get months from RTC 116 | unsigned int get_months() 117 | { 118 | DateTime now = rtc.now(); 119 | months = now.month(); 120 | return months; 121 | } 122 | 123 | unsigned int get_year() 124 | { 125 | DateTime now = rtc.now(); 126 | year = now.year(); 127 | return year; 128 | } 129 | 130 | unsigned int get_doy() 131 | { 132 | DateTime now = rtc.now(); 133 | doy = now.dayOfYear(); 134 | return doy; 135 | } 136 | 137 | unsigned int get_dow() 138 | { 139 | DateTime now = rtc.now(); 140 | dow = now.dayOfTheWeek(); 141 | return dow; 142 | } 143 | 144 | //Show hours and minutes on display 145 | void show_hm() 146 | { 147 | get_seconds(); 148 | get_minutes(); 149 | get_hours(); 150 | 151 | display_time = (hours * 100) + minutes; 152 | 153 | char tempString[10]; 154 | sprintf(tempString, "%04d", display_time); 155 | sevSeg.DisplayString(tempString, 2); 156 | } 157 | 158 | //Show minutes and seconds on display 159 | void show_ms() 160 | { 161 | get_seconds(); 162 | get_minutes(); 163 | get_hours(); 164 | 165 | display_time = (minutes * 100) + seconds; 166 | 167 | char tempString[10]; 168 | sprintf(tempString, "%04d", display_time); 169 | sevSeg.DisplayString(tempString, 2); 170 | } 171 | 172 | //Show date on display 173 | //Show date on display 174 | void show_date() 175 | { 176 | char tempString[5]; 177 | switch(date) 178 | { 179 | case 0: 180 | get_days(); 181 | get_months(); 182 | display_date = (days * 100) + months; 183 | sprintf(tempString, "%04d", display_date); 184 | sevSeg.DisplayString(tempString, 2); 185 | break; 186 | case 1: 187 | get_year(); 188 | sprintf(tempString, "%4d", year); 189 | sevSeg.DisplayString(tempString, 0); 190 | break; 191 | case 2: 192 | get_doy(); 193 | sprintf(tempString, "%4d", doy); 194 | sevSeg.DisplayString(tempString, 0); 195 | break; 196 | case 3: 197 | get_dow(); 198 | sprintf(tempString, "%4d", dow); 199 | sevSeg.DisplayString(tempString, 0); 200 | break; 201 | case 4: 202 | get_doy(); 203 | woy = doy / 7; 204 | sprintf(tempString, "%4d", woy); 205 | sevSeg.DisplayString(tempString, 0); 206 | } 207 | if (button2.getSingleDebouncedPress()) 208 | { 209 | date = date - 1; 210 | } 211 | if (button3.getSingleDebouncedPress()) 212 | { 213 | date++; 214 | } 215 | if (date < 0) 216 | { 217 | date = 4; 218 | } 219 | if (date > 4) 220 | { 221 | date = 0; 222 | } 223 | } 224 | 225 | //Get temperature from RTC 226 | byte DS3231_get_MSB(){ 227 | Wire.beginTransmission(DS3231_I2C_ADDR); 228 | Wire.write(DS3231_TEMPERATURE_MSB); 229 | Wire.endTransmission(); 230 | 231 | Wire.requestFrom(DS3231_I2C_ADDR, 1); 232 | temp_msb = Wire.read(); 233 | } 234 | byte DS3231_get_LSB(){ 235 | 236 | Wire.beginTransmission(DS3231_I2C_ADDR); 237 | Wire.write(DS3231_TEMPERATURE_LSB); 238 | Wire.endTransmission(); 239 | 240 | Wire.requestFrom(DS3231_I2C_ADDR, 1); 241 | temp_lsb = Wire.read() >> 6; 242 | } 243 | 244 | //Show temperature on display 245 | void show_temp() 246 | { 247 | char tempString[10]; 248 | temp_msb = DS3231_get_MSB(); 249 | temp_lsb = DS3231_get_LSB(); 250 | 251 | switch(temp_lsb) 252 | { 253 | case 0: 254 | temp = (temp_msb*100); 255 | break; 256 | case 1 : 257 | temp = (temp_msb*100) + 25; 258 | break; 259 | case 2: 260 | temp = (temp_msb*100) + 50; 261 | break; 262 | case 3: 263 | temp = (temp_msb*100) + 75; 264 | break; 265 | } 266 | sprintf(tempString, "%04d", temp); 267 | sevSeg.DisplayString(tempString, 2); 268 | } 269 | 270 | void stopwatch() 271 | { 272 | switch(count) 273 | { 274 | case 0: 275 | char tempString[10]; 276 | if(myChrono.hasPassed(1)) 277 | { 278 | deciSecond++; 279 | sprintf(tempString, "%04d", deciSecond); 280 | if(deciSecond < 10000) 281 | { 282 | sevSeg.DisplayString(tempString, 2); 283 | } 284 | if(deciSecond >= 10000) 285 | { 286 | sevSeg.DisplayString(tempString, 4); 287 | } 288 | } 289 | break; 290 | case 1: 291 | sprintf(tempString, "%04d", deciSecond); 292 | if(deciSecond < 10000) 293 | { 294 | sevSeg.DisplayString(tempString, 2); 295 | } 296 | if(deciSecond >= 10000) 297 | { 298 | sevSeg.DisplayString(tempString, 4); 299 | } 300 | break; 301 | } 302 | if (button3.getSingleDebouncedPress()) 303 | { 304 | if (count <= 1) 305 | { 306 | count++; 307 | } 308 | if (count > 1) 309 | { 310 | count = 0; 311 | } 312 | } 313 | if (button2.getSingleDebouncedPress()) 314 | { 315 | deciSecond = 0; 316 | } 317 | } 318 | 319 | void time() 320 | { 321 | switch(time_show) 322 | { 323 | case 0: 324 | show_hm(); 325 | break; 326 | case 1: 327 | show_ms(); 328 | break; 329 | } 330 | if (button2.getSingleDebouncedPress()) 331 | { 332 | time_show = time_show - 1; 333 | } 334 | if (button3.getSingleDebouncedPress()) 335 | { 336 | time_show++; 337 | } 338 | if (time_show < 0) 339 | { 340 | time_show = 1; 341 | } 342 | if (time_show > 1) 343 | { 344 | time_show = 0; 345 | } 346 | } 347 | 348 | //Set brightness and save to EEPROM if different than before 349 | void brightness_set() 350 | { 351 | char tempString[5]; 352 | sprintf(tempString, "%4d", brightness); 353 | sevSeg.DisplayString(tempString, 0); 354 | 355 | if (button2.getSingleDebouncedPress()) 356 | { 357 | brightness = brightness - 1; 358 | } 359 | if (button3.getSingleDebouncedPress()) 360 | { 361 | brightness = brightness + 1; 362 | } 363 | if (brightness > 10) 364 | { 365 | brightness = 10; 366 | } 367 | if (brightness < 0) 368 | { 369 | brightness = 0; 370 | } 371 | if (button1.getSingleDebouncedPress()) 372 | { 373 | //Save brightness to EEPROM 374 | if(brightness != EEPROM.read(0)) 375 | { 376 | EEPROM.write(0, brightness); 377 | } 378 | mode = 7; 379 | watch = 1; 380 | } 381 | } 382 | 383 | void menu_select() 384 | { 385 | switch(menu) 386 | { 387 | case 0: 388 | sevSeg.DisplayString("Hour", 0); 389 | if (button1.getSingleDebouncedPress()) 390 | { 391 | mode = 0; 392 | watch = 0; 393 | } 394 | break; 395 | case 1: 396 | sevSeg.DisplayString("Date", 0); 397 | if (button1.getSingleDebouncedPress()) 398 | { 399 | mode = 1; 400 | watch = 0; 401 | } 402 | break; 403 | case 2: 404 | sevSeg.DisplayString("Chro", 0); 405 | if (button1.getSingleDebouncedPress()) 406 | { 407 | mode = 2; 408 | watch = 0; 409 | } 410 | break; 411 | case 3: 412 | sevSeg.DisplayString("Heat", 0); 413 | if (button1.getSingleDebouncedPress()) 414 | { 415 | mode = 3; 416 | watch = 0; 417 | } 418 | break; 419 | case 4: 420 | sevSeg.DisplayString("Brtx", 0); 421 | if (button1.getSingleDebouncedPress()) 422 | { 423 | mode = 4; 424 | watch = 0; 425 | } 426 | break; 427 | case 5: 428 | sevSeg.DisplayString("Rstx", 0); 429 | if (button1.getSingleDebouncedPress()) 430 | { 431 | mode = 5; 432 | watch = 0; 433 | } 434 | break; 435 | } 436 | 437 | if (button2.getSingleDebouncedPress()) 438 | { 439 | menu = menu - 1; 440 | } 441 | if (button3.getSingleDebouncedPress()) 442 | { 443 | menu++; 444 | } 445 | if (menu < 0) 446 | { 447 | menu = 0; 448 | } 449 | if (menu > 5) 450 | { 451 | menu = 5; 452 | } 453 | } 454 | 455 | void modes() 456 | { 457 | switch(mode) 458 | { 459 | case 0: 460 | time(); 461 | break; 462 | case 1: 463 | show_date(); 464 | break; 465 | case 2: 466 | stopwatch(); 467 | break; 468 | case 3: 469 | show_temp(); 470 | break; 471 | case 4: 472 | brightness_set(); 473 | break; 474 | case 5: 475 | softwareReset(WDTO_15MS); 476 | break; 477 | } 478 | if (mode < 0) 479 | { 480 | mode = 0; 481 | } 482 | if (mode > 5) 483 | { 484 | mode = 5; 485 | } 486 | if (button1.getSingleDebouncedPress()) 487 | { 488 | watch++; 489 | if (watch > 1) 490 | { 491 | watch = 0; 492 | } 493 | } 494 | } 495 | 496 | 497 | //Initial setup 498 | void setup() 499 | { 500 | delay(10); 501 | rtc.begin(); 502 | timer = millis(); 503 | 504 | //Set time if RTC lost power 505 | if (rtc.lostPower()) 506 | { 507 | // following line sets the RTC to the date & time this sketch was compiled 508 | //rtc.adjust(DateTime(F(__DATE__), F(__TIME__))); 509 | // This line sets the RTC with an explicit date & time: 510 | rtc.adjust(DateTime(2016, 6, 27, 19, 15, 0)); 511 | } 512 | //Init display vars 513 | int displayType = COMMON_CATHODE; 514 | 515 | int digit1 = 8; 516 | int digit2 = 5; 517 | int digit3 = 11; 518 | int digit4 = 13; 519 | 520 | int segA = 7; 521 | int segB = 6; 522 | int segC = 10; 523 | int segD = 3; 524 | int segE = 9; 525 | int segF = 4; 526 | int segG = 2; 527 | int segDP = 12; 528 | 529 | int numberOfDigits = 4; 530 | 531 | sevSeg.Begin(displayType, numberOfDigits, digit1, digit2, digit3, digit4, segA, segB, segC, segD, segE, segF, segG, segDP); 532 | 533 | brightness = EEPROM.read(0); 534 | } 535 | 536 | //Main loop 537 | void loop() 538 | { 539 | sevSeg.SetBrightness(brightness * 10); 540 | switch(watch) 541 | { 542 | case 0: 543 | modes(); 544 | break; 545 | case 1: 546 | menu_select(); 547 | break; 548 | } 549 | } 550 | -------------------------------------------------------------------------------- /Hardware/Assembled.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RafaelRiber/RetroWatch/0d71b24201421904cb94e1a768143cfc52c4f1fa/Hardware/Assembled.JPG -------------------------------------------------------------------------------- /Hardware/OSHPark Renders/back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RafaelRiber/RetroWatch/0d71b24201421904cb94e1a768143cfc52c4f1fa/Hardware/OSHPark Renders/back.png -------------------------------------------------------------------------------- /Hardware/OSHPark Renders/front.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RafaelRiber/RetroWatch/0d71b24201421904cb94e1a768143cfc52c4f1fa/Hardware/OSHPark Renders/front.png -------------------------------------------------------------------------------- /Hardware/Retro|Watch.brd: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | CUT OUT 187 | CUT OUT 188 | RETRO 189 | WATCH 190 | | 191 | Rafael Riber - 2016 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | Designed and Assembled 201 | in Geneva - Switzerland 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | Rev 1.0 239 | 240 | 241 | 242 | 243 | 244 | <b>CAPACITOR</b><p> 245 | chip 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | >NAME 255 | >VALUE 256 | 257 | 258 | 259 | 260 | 261 | <b>RESISTOR</b><p> 262 | chip 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | >NAME 272 | >VALUE 273 | 274 | 275 | 276 | 2-Pin JST PH Series Right-Angle Connector (+/- for batteries) 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | >Name 299 | >Value 300 | + 301 | - 302 | 303 | 304 | 305 | 306 | <h3>SparkFun Electronics' preferred foot prints</h3> 307 | In this library you'll find all manner of display devices- LED displays, LCD displays, etc.<br><br> 308 | We've spent an enormous amount of time creating and checking these footprints and parts, but it is the end user's responsibility to ensure correctness and suitablity for a given componet or application. If you enjoy using this library, please buy one of our products at www.sparkfun.com. 309 | <br><br> 310 | <b>Licensing:</b> Creative Commons ShareAlike 4.0 International - https://creativecommons.org/licenses/by-sa/4.0/ 311 | <br><br> 312 | You are welcome to use this library for commercial purposes. For attribution, we ask that when you begin to sell your device using our footprint, you email us with a link to the product being sold. We want bragging rights that we helped (in a very small part) to create your 8th world wonder. We would like the opportunity to feature your device on our homepage. 313 | 314 | 315 | 316 | 317 | 318 | 319 | >NAME 320 | >VALUE 321 | >VALUE 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | 339 | <h3>SparkFun Electronics' preferred foot prints</h3> 340 | In this library you'll find connectors and sockets- basically anything that can be plugged into or onto.<br><br> 341 | We've spent an enormous amount of time creating and checking these footprints and parts, but it is the end user's responsibility to ensure correctness and suitablity for a given componet or application. If you enjoy using this library, please buy one of our products at www.sparkfun.com. 342 | <br><br> 343 | <b>Licensing:</b> Creative Commons ShareAlike 4.0 International - https://creativecommons.org/licenses/by-sa/4.0/ 344 | <br><br> 345 | You are welcome to use this library for commercial purposes. For attribution, we ask that when you begin to sell your device using our footprint, you email us with a link to the product being sold. We want bragging rights that we helped (in a very small part) to create your 8th world wonder. We would like the opportunity to feature your device on our homepage. 346 | 347 | 348 | 349 | 350 | 351 | 352 | 353 | 354 | 355 | 356 | 357 | 358 | 359 | 360 | 361 | 362 | 363 | 364 | 365 | 366 | 367 | 368 | 369 | 370 | 371 | 372 | 373 | 374 | 375 | 376 | 377 | >NAME 378 | >VALUE 379 | 380 | 381 | 382 | 383 | 384 | 385 | 386 | 387 | 388 | 389 | <h3>SparkFun Electronics' preferred foot prints</h3> 390 | In this library you'll find all manner of digital ICs- microcontrollers, memory chips, logic chips, FPGAs, etc.<br><br> 391 | We've spent an enormous amount of time creating and checking these footprints and parts, but it is the end user's responsibility to ensure correctness and suitablity for a given componet or application. If you enjoy using this library, please buy one of our products at www.sparkfun.com. 392 | <br><br> 393 | <b>Licensing:</b> Creative Commons ShareAlike 4.0 International - https://creativecommons.org/licenses/by-sa/4.0/ 394 | <br><br> 395 | You are welcome to use this library for commercial purposes. For attribution, we ask that when you begin to sell your device using our footprint, you email us with a link to the product being sold. We want bragging rights that we helped (in a very small part) to create your 8th world wonder. We would like the opportunity to feature your device on our homepage. 396 | 397 | 398 | SOIC 8-Lead 399 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | >VALUE 421 | >NAME 422 | 423 | 424 | 425 | 426 | Developed by element14 :<br> 427 | element14 CAD Library consolidation.ulp 428 | at 27/07/2012 14:02:49 429 | 430 | 431 | 432 | 433 | 434 | 435 | 436 | 437 | 438 | 439 | 440 | 441 | 442 | 443 | 444 | 445 | 446 | 447 | 448 | 449 | 450 | 451 | 452 | 453 | 454 | 455 | 456 | 457 | 458 | 459 | 460 | 461 | 462 | 463 | 464 | 465 | 466 | 467 | 468 | 469 | 470 | 471 | 472 | 473 | 474 | 475 | 476 | 477 | 478 | 479 | 480 | 481 | 482 | 483 | 484 | 485 | 486 | 487 | 488 | 489 | 490 | 491 | 492 | 493 | 494 | 495 | 496 | 497 | 498 | 499 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 509 | 510 | 511 | 512 | 513 | 514 | 515 | 516 | 517 | 518 | 519 | 520 | 521 | 522 | 523 | 524 | 525 | 526 | 527 | 528 | 529 | 530 | 531 | 532 | 533 | 534 | 535 | 536 | 537 | 538 | 539 | 540 | 541 | 542 | 543 | 544 | 545 | 546 | 547 | 548 | 549 | 550 | 551 | 552 | 553 | 554 | 555 | 556 | 557 | 558 | 559 | 560 | 561 | 562 | 563 | 564 | 565 | 566 | 567 | 568 | 569 | 570 | 571 | 572 | 573 | 574 | 575 | 576 | 577 | 578 | 579 | 580 | 581 | 582 | 583 | 584 | 585 | 586 | 587 | 588 | 589 | 590 | 591 | 592 | 593 | 594 | 595 | 596 | 597 | 598 | 599 | 600 | 601 | 602 | 603 | 604 | 605 | 606 | 607 | 608 | 609 | 610 | 611 | 612 | 613 | 614 | 615 | 616 | 617 | 618 | 619 | 620 | 621 | 622 | 623 | 624 | 625 | 626 | 627 | 628 | 629 | 630 | 631 | 632 | >NAME 633 | >VALUE 634 | 635 | 636 | 637 | 638 | <h3>SparkFun Electronics' preferred foot prints</h3> 639 | In this library you'll find anything that moves- switches, relays, buttons, potentiometers. Also, anything that goes on a board but isn't electrical in nature- screws, standoffs, etc.<br><br> 640 | We've spent an enormous amount of time creating and checking these footprints and parts, but it is the end user's responsibility to ensure correctness and suitablity for a given componet or application. If you enjoy using this library, please buy one of our products at www.sparkfun.com. 641 | <br><br> 642 | <b>Licensing:</b> Creative Commons ShareAlike 4.0 International - https://creativecommons.org/licenses/by-sa/4.0/ 643 | <br><br> 644 | You are welcome to use this library for commercial purposes. For attribution, we ask that when you begin to sell your device using our footprint, you email us with a link to the product being sold. We want bragging rights that we helped (in a very small part) to create your 8th world wonder. We would like the opportunity to feature your device on our homepage. 645 | 646 | 647 | 648 | 649 | 650 | 651 | 652 | 653 | 654 | 655 | 656 | 657 | 658 | 659 | 660 | 661 | 662 | 663 | >Name 664 | >Value 665 | 666 | 667 | 668 | 669 | 670 | 671 | 672 | 673 | 674 | 675 | 676 | 677 | 678 | 679 | 680 | 681 | 682 | 683 | >NAME 684 | >Value 685 | 686 | 687 | 688 | 689 | <b>AVR Devices</b><p> 690 | Configurable logic, microcontrollers, nonvolatile memories<p> 691 | Based on the following sources:<p> 692 | <ul> 693 | <li>www.atmel.com 694 | <li>CD-ROM : Configurable Logic Microcontroller Nonvolatile Memory 695 | <li>CadSoft download site, www.cadsoft.de or www.cadsoftusa.com , file at90smcu_v400.zip 696 | <li>avr.lbr 697 | </ul> 698 | <author>Revised by librarian@cadsoft.de</author> 699 | 700 | 701 | <B>Logo</B> 702 | 703 | 704 | R 705 | 706 | 707 | 708 | 709 | 710 | 711 | 712 | 713 | 714 | 715 | 716 | 717 | 718 | 719 | 720 | 721 | 722 | 723 | 724 | 725 | 726 | 727 | 728 | 729 | 730 | 731 | 732 | 733 | 734 | 735 | 736 | 737 | 738 | 739 | 740 | 741 | 742 | 743 | 744 | 745 | 746 | 747 | 748 | 749 | 750 | 751 | 752 | 753 | 754 | 755 | 756 | 757 | 758 | 759 | 760 | 761 | 762 | 763 | 764 | 765 | 766 | 767 | 768 | 769 | 770 | 771 | 772 | 773 | 774 | 775 | <h3>SparkFun Electronics' preferred foot prints</h3> 776 | In this library you'll find non-functional items- supply symbols, logos, notations, frame blocks, etc.<br><br> 777 | We've spent an enormous amount of time creating and checking these footprints and parts, but it is the end user's responsibility to ensure correctness and suitablity for a given componet or application. If you enjoy using this library, please buy one of our products at www.sparkfun.com. 778 | <br><br> 779 | <b>Licensing:</b> Creative Commons ShareAlike 4.0 International - https://creativecommons.org/licenses/by-sa/4.0/ 780 | <br><br> 781 | You are welcome to use this library for commercial purposes. For attribution, we ask that when you begin to sell your device using our footprint, you email us with a link to the product being sold. We want bragging rights that we helped (in a very small part) to create your 8th world wonder. We would like the opportunity to feature your device on our homepage. 782 | 783 | 784 | 785 | 786 | 787 | 788 | 789 | 790 | 791 | 792 | 793 | 794 | 795 | 796 | 797 | 798 | 799 | 800 | 801 | 802 | 803 | 804 | 805 | 806 | 807 | 808 | 809 | 810 | 811 | 812 | 813 | 814 | 815 | 816 | 817 | 818 | 819 | 820 | 821 | 822 | 823 | 824 | 825 | 826 | 827 | 828 | 829 | 830 | 831 | 832 | <b>EAGLE Design Rules</b> 833 | <p> 834 | Die Standard-Design-Rules sind so gewählt, dass sie für 835 | die meisten Anwendungen passen. Sollte ihre Platine 836 | besondere Anforderungen haben, treffen Sie die erforderlichen 837 | Einstellungen hier und speichern die Design Rules unter 838 | einem neuen Namen ab. 839 | <b>Laen's PCB Order Design Rules</b> 840 | <p> 841 | Please make sure your boards conform to these design rules. 842 | 843 | 844 | 845 | 846 | 847 | 848 | 849 | 850 | 851 | 852 | 853 | 854 | 855 | 856 | 857 | 858 | 859 | 860 | 861 | 862 | 863 | 864 | 865 | 866 | 867 | 868 | 869 | 870 | 871 | 872 | 873 | 874 | 875 | 876 | 877 | 878 | 879 | 880 | 881 | 882 | 883 | 884 | 885 | 886 | 887 | 888 | 889 | 890 | 891 | 892 | 893 | 894 | 895 | 896 | 897 | 898 | 899 | 900 | 901 | 902 | 903 | 904 | 905 | 906 | 907 | 908 | 909 | 910 | 911 | 912 | 913 | 914 | 915 | 916 | 917 | 918 | 919 | 920 | 921 | 922 | 923 | 924 | 925 | 926 | 927 | 928 | 929 | 930 | 931 | 932 | 933 | 934 | 935 | 936 | 937 | 938 | 939 | 940 | 941 | 942 | 943 | 944 | 945 | 946 | 947 | 948 | 949 | 950 | 951 | 952 | 953 | 954 | 955 | 956 | 957 | 958 | 959 | 960 | 961 | 962 | 963 | 964 | 965 | 966 | 967 | 968 | 969 | 970 | 971 | 972 | 973 | 974 | 975 | 976 | 977 | 978 | 979 | 980 | 981 | 982 | 983 | 984 | 985 | 986 | 987 | 988 | 989 | 990 | 991 | 992 | 993 | 994 | 995 | 996 | 997 | 998 | 999 | 1000 | 1001 | 1002 | 1003 | 1004 | 1005 | 1006 | 1007 | 1008 | 1009 | 1010 | 1011 | 1012 | 1013 | 1014 | 1015 | 1016 | 1017 | 1018 | 1019 | 1020 | 1021 | 1022 | 1023 | 1024 | 1025 | 1026 | 1027 | 1028 | 1029 | 1030 | 1031 | 1032 | 1033 | 1034 | 1035 | 1036 | 1037 | 1038 | 1039 | 1040 | 1041 | 1042 | 1043 | 1044 | 1045 | 1046 | 1047 | 1048 | 1049 | 1050 | 1051 | 1052 | 1053 | 1054 | 1055 | 1056 | 1057 | 1058 | 1059 | 1060 | 1061 | 1062 | 1063 | 1064 | 1065 | 1066 | 1067 | 1068 | 1069 | 1070 | 1071 | 1072 | 1073 | 1074 | 1075 | 1076 | 1077 | 1078 | 1079 | 1080 | 1081 | 1082 | 1083 | 1084 | 1085 | 1086 | 1087 | 1088 | 1089 | 1090 | 1091 | 1092 | 1093 | 1094 | 1095 | 1096 | 1097 | 1098 | 1099 | 1100 | 1101 | 1102 | 1103 | 1104 | 1105 | 1106 | 1107 | 1108 | 1109 | 1110 | 1111 | 1112 | 1113 | 1114 | 1115 | 1116 | 1117 | 1118 | 1119 | 1120 | 1121 | 1122 | 1123 | 1124 | 1125 | 1126 | 1127 | 1128 | 1129 | 1130 | 1131 | 1132 | 1133 | 1134 | 1135 | 1136 | 1137 | 1138 | 1139 | 1140 | 1141 | 1142 | 1143 | 1144 | 1145 | 1146 | 1147 | 1148 | 1149 | 1150 | 1151 | 1152 | 1153 | 1154 | 1155 | 1156 | 1157 | 1158 | 1159 | 1160 | 1161 | 1162 | 1163 | 1164 | 1165 | 1166 | 1167 | 1168 | 1169 | 1170 | 1171 | 1172 | 1173 | 1174 | 1175 | 1176 | 1177 | 1178 | 1179 | 1180 | 1181 | 1182 | 1183 | 1184 | 1185 | 1186 | 1187 | 1188 | 1189 | 1190 | 1191 | 1192 | 1193 | 1194 | 1195 | 1196 | 1197 | 1198 | 1199 | 1200 | 1201 | 1202 | 1203 | 1204 | 1205 | 1206 | 1207 | 1208 | 1209 | 1210 | 1211 | 1212 | 1213 | 1214 | 1215 | 1216 | 1217 | 1218 | 1219 | 1220 | 1221 | 1222 | 1223 | 1224 | 1225 | 1226 | 1227 | 1228 | 1229 | 1230 | 1231 | 1232 | 1233 | 1234 | 1235 | 1236 | 1237 | 1238 | 1239 | 1240 | 1241 | 1242 | 1243 | 1244 | 1245 | 1246 | 1247 | 1248 | 1249 | 1250 | 1251 | 1252 | 1253 | 1254 | 1255 | 1256 | 1257 | 1258 | 1259 | 1260 | 1261 | 1262 | 1263 | 1264 | 1265 | 1266 | 1267 | 1268 | 1269 | 1270 | 1271 | 1272 | 1273 | 1274 | 1275 | 1276 | 1277 | 1278 | 1279 | 1280 | 1281 | 1282 | 1283 | 1284 | 1285 | 1286 | 1287 | 1288 | 1289 | 1290 | 1291 | 1292 | 1293 | 1294 | 1295 | 1296 | 1297 | 1298 | 1299 | 1300 | 1301 | 1302 | 1303 | 1304 | 1305 | 1306 | 1307 | 1308 | 1309 | 1310 | 1311 | 1312 | 1313 | 1314 | 1315 | 1316 | 1317 | 1318 | 1319 | 1320 | 1321 | 1322 | 1323 | 1324 | 1325 | 1326 | 1327 | 1328 | 1329 | 1330 | 1331 | 1332 | 1333 | 1334 | 1335 | 1336 | 1337 | 1338 | 1339 | 1340 | 1341 | 1342 | 1343 | 1344 | 1345 | 1346 | 1347 | 1348 | 1349 | 1350 | 1351 | 1352 | 1353 | 1354 | 1355 | 1356 | 1357 | 1358 | 1359 | 1360 | 1361 | 1362 | 1363 | 1364 | 1365 | 1366 | 1367 | 1368 | 1369 | 1370 | 1371 | 1372 | 1373 | 1374 | 1375 | 1376 | 1377 | 1378 | 1379 | 1380 | 1381 | 1382 | 1383 | 1384 | 1385 | 1386 | 1387 | 1388 | 1389 | 1390 | 1391 | 1392 | 1393 | 1394 | 1395 | 1396 | 1397 | 1398 | 1399 | 1400 | 1401 | 1402 | 1403 | 1404 | 1405 | 1406 | 1407 | 1408 | 1409 | 1410 | 1411 | 1412 | 1413 | 1414 | 1415 | 1416 | 1417 | 1418 | 1419 | 1420 | 1421 | 1422 | 1423 | 1424 | 1425 | 1426 | 1427 | 1428 | 1429 | 1430 | 1431 | 1432 | 1433 | 1434 | 1435 | 1436 | 1437 | 1438 | 1439 | 1440 | 1441 | 1442 | 1443 | 1444 | 1445 | 1446 | 1447 | 1448 | 1449 | 1450 | 1451 | 1452 | 1453 | 1454 | 1455 | 1456 | 1457 | 1458 | 1459 | 1460 | 1461 | 1462 | 1463 | 1464 | 1465 | 1466 | 1467 | 1468 | 1469 | 1470 | 1471 | 1472 | 1473 | 1474 | 1475 | 1476 | 1477 | 1478 | 1479 | 1480 | 1481 | 1482 | 1483 | 1484 | 1485 | 1486 | 1487 | 1488 | 1489 | 1490 | 1491 | 1492 | 1493 | 1494 | 1495 | 1496 | 1497 | 1498 | 1499 | 1500 | 1501 | 1502 | Since Version 6.2.2 text objects can contain more than one line, 1503 | which will not be processed correctly with this version. 1504 | 1505 | 1506 | 1507 | -------------------------------------------------------------------------------- /Hardware/Retro|Watch.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RafaelRiber/RetroWatch/0d71b24201421904cb94e1a768143cfc52c4f1fa/Hardware/Retro|Watch.pdf -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # RetroWatch 2 |

3 | 4 | Front 5 |

6 | OSHPark renders 7 |

8 | 9 | ## Short description 10 | A retro watch, based around the HP QDSP-6064 Bubble display, used in 70s HP calculators like the [HP-35](https://en.wikipedia.org/wiki/HP-35). The display is controlled by an Atmel ATMega328P-AU MCU with Arduino code, and the time is kept by a Maxim DS3231 Real-Time Clock module, that stays connected to the LiPo battery at all times, keeping time even when the microcontroller and display are not powered. 11 | The code is open source, licensed under the MIT License, and the harware is fully open-source. 12 | 13 | ### Featured on: 14 | [Hackaday.com blog post by Elliot Williams](http://hackaday.com/2016/06/25/easy-bubble-watch-oozes-retro-charm/) 15 | 16 | [Hackaday.io project page](https://hackaday.io/project/12402-retrowatch) 17 | 18 | ## Hardware 19 | ### PCB 20 | The board design was made in Eagle, has been tested and works. A 500 mAh [LiPo Battery from Adafruit](https://adafru.it/1578) fits perfectly under the board. It can be freely modified. It can also directly be ordered on the OSHPark website: 21 |

Order from OSH Park

22 | 23 | (DISCLAIMER: I am in no way affiliated with Atmel. I just put the Atmel logo on the PCB to show the circuit uses an Atmel chip, which I really like !) 24 | 25 | ### Bill Of Materials 26 | You can find the BOM [here](https://github.com/RafaelRiber/RetroWatch/blob/master/BOM.md). 27 | 28 | ## Software 29 | The software was written in Arduino code, is licensed under MIT License, and can be uploaded on the microcontroller via ISP. 30 | Be sure to set the desired time in the code prior to uploading, to set the time registers on the RTC. 31 | 32 | Functions of the code include: 33 | * Hours, minutes and seconds 34 | * Day, month, year, day of year, day in week, week in year. 35 | * Stopwatch (start, stop, reset) 36 | * Temperature reading from the real-time-clock's built-in thermometer (accurate to about 3°C) 37 | * Brightness setting in software, saved to EEPROM to save even if the watch is powered off. 38 | 39 | To be able to upload the code on the watch, an Arduno IDE board file for an "ATMega328 on a breadboard" running at 8 MHz with the internal crystal, is needed. You can find it here: https://www.arduino.cc/en/Tutorial/ArduinoToBreadboard under "Minimal Circuit (Eliminating the External Clock)" 40 | ### Required Libraries 41 | 1. [Chrono library by thomasfredericks](https://github.com/thomasfredericks/Chrono) 42 | 2. [Pushbutton library from Pololu](http://pololu.github.io/pushbutton-arduino/) 43 | 3. [RTCLib by Adafruit Industries](https://github.com/adafruit/RTClib) 44 | 4. [SevSeg by SparkFun](https://github.com/sparkfun/SevSeg) 45 | 46 | ### Planned Sofware Functions 47 | • ~~Menu structure for mode selection~~ DONE ! 48 | 49 | • ~~Year~~ DONE ! 50 | 51 | • Time set on the watch 52 | --------------------------------------------------------------------------------