loading
12 Comments

Tell us about yourself!

Complete Your Profile
  • PeteWK8S followed circuits1 month ago
      • How to Use a Breadboard to Light LEDs
      • How to Make a Simple Circuit with a Light Bulb
  • PeteWK8S commented on 陳亮's instructable ATtiny Watch Core10 months ago
    ATtiny Watch Core

    This version works quite well. However, I have a question. How and where do I change where the text begins to display.? It displays low, towards the bottom of the display. Its a 128x64 0.96 inch display. Maybe your display is smaller and the text seems bigger because of that. Thanks again for all your help.

    View Instructable »
  • PeteWK8S commented on 陳亮's instructable ATtiny Watch Core10 months ago
    ATtiny Watch Core

    Hello, this version works but with caveat. I must reset the unit when trying to set time for self calibration. The time will start rapidly changing by itself. Once I reset it, it behaves and keeps time accurately. Thanks for your work and sharing. Pete

    View Instructable »
  • PeteWK8S commented on 陳亮's instructable ATtiny Watch Core10 months ago
    ATtiny Watch Core

    This is not working for me. Using Atmel Attiny85 20PU - IDE 1.65 with settings Tiny85 at 1Mhz InternalProgram chip with Attiny85_Watch_ino with WDT_Time.cpp with default or original entries static uint16_t wdt_millis_per_interrupt = 998; // calibrate value result = 1089952UL / result; // calibrated valueNote down current local timeSet time on Attiny chipMeasure and note actual Mv on Attiny chipWait 1 to 8 hours and note elapsed time in millisecondsNote Debug valuesCompute wdt_millis_per_interrupt as: 51300000 / x = y (x = debug value noted, y= calibrated value)Enter value of y at “static uint16_t wdt_millis_per_interrupt = 998; // calibrate value” in WDT_Time.cpp replacing 998Compute millivolts using x / debug value * 1125300 = y (x=measured millivolts, y= calibrated va...see more »This is not working for me. Using Atmel Attiny85 20PU - IDE 1.65 with settings Tiny85 at 1Mhz InternalProgram chip with Attiny85_Watch_ino with WDT_Time.cpp with default or original entries static uint16_t wdt_millis_per_interrupt = 998; // calibrate value result = 1089952UL / result; // calibrated valueNote down current local timeSet time on Attiny chipMeasure and note actual Mv on Attiny chipWait 1 to 8 hours and note elapsed time in millisecondsNote Debug valuesCompute wdt_millis_per_interrupt as: 51300000 / x = y (x = debug value noted, y= calibrated value)Enter value of y at “static uint16_t wdt_millis_per_interrupt = 998; // calibrate value” in WDT_Time.cpp replacing 998Compute millivolts using x / debug value * 1125300 = y (x=measured millivolts, y= calibrated value)Enter values of x and y at “result = 1089952UL / result; // calibrated value” replacing 1089952 in WDT_Time.cppReprogram Attiny85 chip with the newly calibrated values.Reset time of Attiny85 to current local time. I then recheck the Attiny clock but time is either gaining or losing after only a few minutes. Am I still doing something wrong?

    Thanks -- looking forward to it.

    View Instructable »
  • PeteWK8S commented on 陳亮's instructable ATtiny Watch Core10 months ago
    ATtiny Watch Core

    WDT_Time.cpp shows to compute measured voltage in mv: // result = 1125300L / result; // Calculate Vcc (in mV); 1125300 = 1.1*1023*1000 result = 3375900UL / result; // calibrated value return result; // Vcc in millivoltsMy measured voltage is 3.3V which is 3375900 by this formula - When I make results=3375900UL then debug shows 14806 This is confusing to me.

    View Instructable »
  • PeteWK8S commented on 陳亮's instructable ATtiny Watch Core11 months ago
    ATtiny Watch Core

    Sorry but I'm still doing something wrong. After I determine the ms and mv numbers I still loose too much time. So I think I am not computing the calibration numbers correctly.

    View Instructable »
  • PeteWK8S followed Electronics channel 11 months ago
  • PeteWK8S commented on 陳亮's instructable ATtiny Watch Core11 months ago
    ATtiny Watch Core

    Thank your for revised Calibration Step. However, to help the "clueless" like myself, it could also specify the calibrated values are edited into WDT_Time.cpp at lines:static uint16_t wdt_millis_per_interrupt = 1076; // calibrate valueand for readVcc()result = 3094575L / result; // calibrated value

    Ok - sorry I'm no where near expert in programming.I assume once I determine the values for WDT interrupt count and readVCC(), I edit the sketch and put these value inside brackets here (where I show xxx):else if (display_mode == 1) { oled.print_digits(0, 0, 1, 10000, wdt_get_interrupt_count(xxx), false); oled.print_digits(0, 1, 1, 10000, readVcc(xxx), false); }

    Ok, I'm still a little confused as I'm not a good programmer. I'm able to figure out the measured microvolts and compute the actual time difference, but where in the sketch do I input that data? Do I replace "false" with the numbers? else if (display_mode == 1) { oled.print_digits(0, 0, 1, 10000, wdt_get_interrupt_count(), false); oled.print_digits(0, 1, 1, 10000, readVcc(), false); }

    View Instructable »
  • PeteWK8S commented on 陳亮's instructable ATtiny Watch Core11 months ago
    ATtiny Watch Core

    How do you calibrate? Step by step please! My build of this loose minutes every hour. Suggestions please

    I had same error. Create folder WDT_Time in libraries folder. Put WDT_Time.cpp and WDT_Time.h inside that folder and re-compile. This worked for me under IDE 1.65

    Hello, my build of this ATtiny watch keeps terrible time, loosing time constantly. It is probably that I do not understand the calibration step. How do I calibrate? I can display the debug screen but what then? The instructions don't specify.

    View Instructable »
  • PeteWK8S followed Arduino channel 11 months ago