author

转基因生物rano

2
Inbox View Profile
1Instructables 5,623Views 11Comments

Tell us about yourself!

Achievements

  • LEDura - Analog LED Clock

    Great to hear that! :)Off course :) That fixed lightning is called "compass" in the code. So if you want to turn it off, you have 2 options:1) Better one: In file ring.cpp comment out all the callings of the function: displayCompas(). So for example in function: void HourRing::displayClockVariableColor(int color){ comment out: displayCompas(color);Do the same in other "displayClock..." functions for the clock ring as well for the minute ring.2) You can also modify function that turns on the compass on the clock. There is different function for hour ring and different for minute ring. For example: void HourRing :: displayCompas(uint8_t hue) Is for hour ring.You can modify it so it doesn't turn on any of the LEDs...just comment out all the lines inside it.But t…

    see more »

    Great to hear that! :)Off course :) That fixed lightning is called "compass" in the code. So if you want to turn it off, you have 2 options:1) Better one: In file ring.cpp comment out all the callings of the function: displayCompas(). So for example in function: void HourRing::displayClockVariableColor(int color){ comment out: displayCompas(color);Do the same in other "displayClock..." functions for the clock ring as well for the minute ring.2) You can also modify function that turns on the compass on the clock. There is different function for hour ring and different for minute ring. For example: void HourRing :: displayCompas(uint8_t hue) Is for hour ring.You can modify it so it doesn't turn on any of the LEDs...just comment out all the lines inside it.But then you will lose that functionality also when you need it (for example when you set the time, displayCompas is also called....or in maintainance mode).I hope that helps :)

    View Instructable »
  • LEDura - Analog LED Clock

    Great! :)Unfortunately no, there is no switch to change the direction of the clock :/ You can try and modify the code yourself. There is some work but you can do it :)You would have to change every "for loop" in a code for hour ring...for example from this: for(uint8_t i = 0; i < NUM_LED_HOUR; i++)To this: for(uint8_t i = (NUM_LED_HOUR-1); i >= 0; i - -)to change direction of the pixel movement.And in ring.cpp file you would have to change the HourRing class...for example (in line 67) you have to change all the lines that look like this: From: setHSV( (px_hou*2), color, 255, 250); setHSV( (px_hou*2)+1, color, 255, 250);To this: setHSV(23 - (px_hou*2), color, 255, 250); setHSV(23 - (px_hou*2) -1, color, 255, 250);If you decide to do it yourself and y…

    see more »

    Great! :)Unfortunately no, there is no switch to change the direction of the clock :/ You can try and modify the code yourself. There is some work but you can do it :)You would have to change every "for loop" in a code for hour ring...for example from this: for(uint8_t i = 0; i < NUM_LED_HOUR; i++)To this: for(uint8_t i = (NUM_LED_HOUR-1); i >= 0; i - -)to change direction of the pixel movement.And in ring.cpp file you would have to change the HourRing class...for example (in line 67) you have to change all the lines that look like this: From: setHSV( (px_hou*2), color, 255, 250); setHSV( (px_hou*2)+1, color, 255, 250);To this: setHSV(23 - (px_hou*2), color, 255, 250); setHSV(23 - (px_hou*2) -1, color, 255, 250);If you decide to do it yourself and you maybe need some help along the way, you can contact me on a private message :)And if you decide to just buy a new ring, show us some picture how it turned out :)

    View Instructable »
  • LEDura - Analog LED Clock

    Hi!In Arduino IDE, try to select different Processor setting (Tools -> Processor: ...) Try with >>Processor: "ATmega328P (Old Bootloader) <<

    View Instructable »
  • LEDura - Analog LED Clock

    You found the solution? Great! :) Nice suggestion that smooth hour transitions - maybe I will add it in my code :)And luminosity of the clock - I was thinking about it, but I left it for user to decide how bright the clock should be. But you can easily upgrade it to do it automatically, like you suggested. First, take the value of photo resistor (saved as global variable "photo_val") and map it in the range of 0 to 255... you can do it with Arduinos function "map":photo_val = map(photo_val, 0, 1023, 0 255);Then set the brightness of the LEDs with:FastLED.setBrightness(photo_val);You can put this two lines on the end of function CLOCK_DisplayTime() and thats should be it :)But before you start making that upgrade, check how you connect the photo resistor. I am guessing …

    see more »

    You found the solution? Great! :) Nice suggestion that smooth hour transitions - maybe I will add it in my code :)And luminosity of the clock - I was thinking about it, but I left it for user to decide how bright the clock should be. But you can easily upgrade it to do it automatically, like you suggested. First, take the value of photo resistor (saved as global variable "photo_val") and map it in the range of 0 to 255... you can do it with Arduinos function "map":photo_val = map(photo_val, 0, 1023, 0 255);Then set the brightness of the LEDs with:FastLED.setBrightness(photo_val);You can put this two lines on the end of function CLOCK_DisplayTime() and thats should be it :)But before you start making that upgrade, check how you connect the photo resistor. I am guessing that you maybe have swapped positive and negative terminal of the photo resistor. Why? Because you had to change that comparator like you said. My resistor is giving me values around 1000 when it is dark and values around 10 when it is bright. If I would swap the terminals it would be the other way around. So first check your values (here is one nice tutorial on how to do it //www.smiletrl.com/Arduino-Reading-Analog-Voltage/)

    Hi! I will gladly try to help you, but you have to be more precise, what is the problem :)You don't have to include LEDclock.h file into Arduino IDE...it is done in the code with the sentence #include LEDclock.h . But all 4 files (LEDclock.ino, LEDclock.h, rin.cpp and ring.h) must be in the same folder and the folder must have the same name as .ino file, (so it must be called LEDclock) for the code to work.If you are looking for the whole code, you can get it from: * this instructables (click Download besides all 4 files on the end of a section "Step 7 : Software - code", and save all the files in a folder called LEDclock).* Or you can download it from my Github repository ( https://github.com/9morano/led-clock ) - here you first have to extract all the files (so unzip led-clo…

    see more »

    Hi! I will gladly try to help you, but you have to be more precise, what is the problem :)You don't have to include LEDclock.h file into Arduino IDE...it is done in the code with the sentence #include LEDclock.h . But all 4 files (LEDclock.ino, LEDclock.h, rin.cpp and ring.h) must be in the same folder and the folder must have the same name as .ino file, (so it must be called LEDclock) for the code to work.If you are looking for the whole code, you can get it from: * this instructables (click Download besides all 4 files on the end of a section "Step 7 : Software - code", and save all the files in a folder called LEDclock).* Or you can download it from my Github repository ( https://github.com/9morano/led-clock ) - here you first have to extract all the files (so unzip led-clock-master.zip file) and then go to a folder LEDclock.

    Oh, I see that now. Thanks for pointing it out...I will fix it so there won't be any more misunderstanding. :)Happy to help :)

    View Instructable »
  • LEDura - Analog LED Clock

    你应该离开内以下行:时钟etClockMode (true); // set to 12h format We must use 12h format instead of 24h format, because my code doesn't know the difference between 7:00 PM (= 19:00) and 7:00 AM (=7:00).But you can delete other lines - the clock is set to this "default time" only once, when you power it on. Later you can change time by pressing both buttons together.And also, if you want your clock to remember the time even when you unplug it from the power supply, you must insert a cell coin battery to the RTC clock module. :)

    I'm glad you made it! :)Can you first tell me, which lines of code did you delete?And also which RTC clock module are you using? :)

    View Instructable »
  • LEDura - Analog LED Clock

    Wow, I really like your design! Great work, thanks for sharing! :)

    View Instructable »
    • LEDura - Analog LED Clock
      480views
      8favorites
      3comments