Tell us about yourself!

Complete Your Profile

Achievements

100+ Comments Earned a bronze medal
  • Colorful Countdown Clock for Tight Timeline Management

    Code quite interesting but, I can not find the "HT1632 LED Dot Matrix display" on ebay, only "16x24 Led Dot Matrix Display". (https://www.ebay.com/itm/LED-Lattice-Module-16x24-Dot-Matrix-LED-Subtitle-Text-Display-HT1632C-3-3V-5V/352639868003)

    View Instructable »
  • dancopy commented on Madrajib's instructable How to Make a Arduino Digital Clock20 days ago
    How to Make a Arduino Digital Clock

    Did you make all the connections correctly, including the GNDs?

    View Instructable »
  • Arduino (SPI) 7 Bi-color LED Matrix Scrolling Text Display

    Very cool code but, the scrolling speed, which is from 1 to 9, as in the example, (191) * is still very fast. How could it be diminished?Another thing: Is it possible to fix 3 messages in the code - one in GREEN, one in RED and another in ORANGE? (Successively)Thank you

    View Instructable »
  • Arduino and 3.5 Inch (320x480) TFT LCD (ILI9488) SPI Interface With DHT22 Temperature / Humidity Measurement

    Does it work with esp8266 Nodemcu or what should be changed / added in the sketch?Thank you

    View Instructable »
  • dancopy commented on 陳亮's instructable ESP32 Photo Clock2 months ago
    ESP32 Photo Clock

    Hello 陳亮!I did not understand correctly what your project does (photo clock); Does this show only one image on the display? How to adapt it to a Nodemcu esp8266?Thank you

    View Instructable »
  • Tablet/Phone As Arduino Screen, and a $2 Oscilloscope

    Excelent idea!Do you intend to expand this project to work directly with esp8266 or esp32 (not with the STM32 board)? It was one of the things I was looking for long ago. I would like to use these Tablet screens with Arduino to do, for example, weather stations and also as presentation of images and scrolling texts with ESP.If you have anything or any idea on this subject, I thank you very much.

    View Instructable »
  • dancopy commented on educ8s's instructable Arduino DS3231 Real Time Clock With Color TFT2 months ago
    Arduino DS3231 Real Time Clock With Color TFT

    How to adapt this sketch to a 2.2 display with ili9341? Thank you

    View Instructable »
  • dancopy commented on Silvius's instructable 32x16 LED Matrix Panel and Arduino3 months ago
    32x16 LED Matrix Panel and Arduino

    Hi Silvius!I'm using the 'myMATRIX_Demo' sketch with the Arduino IDE 1.8.5 and it's showing the following error:Arduino: 1.8.5 (Windows 10), Board: "Arduino Nano, ATmega328P"Archiving built core (caching) in: C: \ Users \ Daniel \ AppData \ Local \ Temp \ arduino_cache_836286 \ core \ core_arduino_avr_nano_cpu_atmega328_0c812875ac70eb4a9b385d8fb077f54c.aC: \ Users \ Daniel \ AppData \ Local \ Temp \ ccmnYXtK.ltrans0.ltrans.o: In function `myMATRIX :: t_shiftOut (unsigned char, unsigned char) [clone .constprop.15] ':C: \ Users \ Daniel \ Documents \ Arduino \ libraries \ myMATRIX / myMATRIXclass.cpp: 237 :(.text + 0x8c): relocation truncated to fit: R_AVR_7_PCREL against `no symbol 'collect2.exe: error: ld returned 1 exit statusexit status 1Compiling error for Arduino Nano card...

    see more »

    Hi Silvius!I'm using the 'myMATRIX_Demo' sketch with the Arduino IDE 1.8.5 and it's showing the following error:Arduino: 1.8.5 (Windows 10), Board: "Arduino Nano, ATmega328P"Archiving built core (caching) in: C: \ Users \ Daniel \ AppData \ Local \ Temp \ arduino_cache_836286 \ core \ core_arduino_avr_nano_cpu_atmega328_0c812875ac70eb4a9b385d8fb077f54c.aC: \ Users \ Daniel \ AppData \ Local \ Temp \ ccmnYXtK.ltrans0.ltrans.o: In function `myMATRIX :: t_shiftOut (unsigned char, unsigned char) [clone .constprop.15] ':C: \ Users \ Daniel \ Documents \ Arduino \ libraries \ myMATRIX / myMATRIXclass.cpp: 237 :(.text + 0x8c): relocation truncated to fit: R_AVR_7_PCREL against `no symbol 'collect2.exe: error: ld returned 1 exit statusexit status 1Compiling error for Arduino Nano cardIf you can help me, thank you;Daniel Fernandes

    View Instructable »
  • dancopy commented on HariFun's instructable Morphing Digital Clock4 months ago
    Morphing Digital Clock

    I would like to know if this sketch works with 64x32 1R1G (Red-Green) LED Matrix Module with HUB08 protocol; The pins are as in the picture; Thank you

    View Instructable »
  • Weekend Project Clock Date Thermometer and Humidity With Arduino Mega

    sketch_dec17a:56: error: 'Thermister' was not declared in this scope

    View Instructable »
  • Weekend Project Clock Date Thermometer and Humidity With Arduino Mega

    Does it work with the current IDE of Arduino Uno? Thank you

    View Instructable »
  • dancopy commented on jollifactory's instructable Arduino Parola Zone Time Msg Display6 months ago
    Arduino Parola Zone Time Msg Display

    RegardsI bought the 7 green PCBs in the Tindie shop more ...With all the 'instructables' site libraries installed, and I can not get rid of the errors. I am using the Arduino IDE 1.8.5 and the first error presented is in the "JF_Font_Data.h" tab at line 5 in "uint8_t jF_Custom [] PROGMEM = {" it says: "error: 'class MD_DS1307' has no member named ' Controlexit status 1variable 'jF_Custom' must be const in order to be put into read-only section by means of '__attribute __ ((progmem))' ".So I replaced line 5 on the same tab with "const uint8_t jF_Custom [] PROGMEM = {" and it shows the error: 'class MD_DS1307' has no member named 'Control'exit status 1expected primary-expression before 'const'in line 97 "strncpy_P (psz, (const prog_char *) str ...

    see more »

    RegardsI bought the 7 green PCBs in the Tindie shop more ...With all the 'instructables' site libraries installed, and I can not get rid of the errors. I am using the Arduino IDE 1.8.5 and the first error presented is in the "JF_Font_Data.h" tab at line 5 in "uint8_t jF_Custom [] PROGMEM = {" it says: "error: 'class MD_DS1307' has no member named ' Controlexit status 1variable 'jF_Custom' must be const in order to be put into read-only section by means of '__attribute __ ((progmem))' ".So I replaced line 5 on the same tab with "const uint8_t jF_Custom [] PROGMEM = {" and it shows the error: 'class MD_DS1307' has no member named 'Control'exit status 1expected primary-expression before 'const'in line 97 "strncpy_P (psz, (const prog_char *) str [code-1], len);" of the "JF_Parola_Zone_TimeMsg_V1_0" tab.I suppose it's a problem with libraries but, as I said, I'm using all the libraries on the site. So, please, I'd like some hint; Thank you

    View Instructable »
  • dancopy followed Kesselwagen6 months ago
      • OpenVFD: 6-Digit IV-11 VFD Tube Clock
      • The NerdClock: an RGB Binary Clock [Arduino Software]
      • Arduino VFD Display Clock Tutorial - a Guide to VFD Displays
  • Thermohygrometer With Clock and LCD Display on Arduino UNO

    Excellent! How to leave the backlight permanently lit? Thank you

    View Instructable »
  • dancopy commented on ZaNgAbY's instructable ESP8266 LED Matrix Clock6 months ago
    ESP8266 LED Matrix Clock

    Greetings ZaNgAbY!I defined in the following line: t = epoch -5*3600; (for Brazilian time zone). Although I did not understand why -5 but it was working properly; when it arrived today, 28 Oct 2018 the clock returned 1 Hour. In your code, Daylight Savings Time should be set for Germany and my region is Brazil; How can I do it? Thank you

    View Instructable »
  • Efficient and Cheap: Display With STM32L4

    Olá Fernando! Primeiramente, obrigado pela postagem!Eu tenho um problema: o meu display é igual ao seu mas, tem 5 dígitos e eu não sei qual caractere representa o ponto decimal; vc pode me ajudar? Obrigado

    View Instructable »
  • dancopy commented on witnessmenow's instructable RGB LED Matrix With an ESP8266 7 months ago
    RGB LED Matrix With an ESP8266

    I have a Bicolor Display (1R1G) 64x32 HUB08;The pins are:N AN BN CO DR1 G1R2 G2N L (Latch)N S (CLK)Is it possible to use it with your sketch? Thank you

    View Instructable »
  • 16x128 Display Showing Date, Time, Temp, Humidity

    Hi Jeffreye, you wrote: "One thing I did want was a way to "Add" to the scrolling message any user input message and display it after the date, then repeat. I am working on adding a ESP8266 WIFI Module and letting the user set the Time, Date, and add a Message from their phone or tablet." So, did you do this or did you update something in this code?I would also like to use it with ESP8266 Nodemcu but I do not know how to do it; Thank you

    View Instructable »
  • Arduino VFD Display Clock Tutorial - a Guide to VFD Displays

    Hi friend, what should I change/add in code to use a SN75518N controller instead of the transistors? Thank you

    View Instructable »
  • Arduino VFD Display Clock Tutorial - a Guide to VFD Displays

    Greetings Kesselwagen!I have this Display here: https://www.clitishop.top/samsung-temp-cook-time-svm06me08-vacuum-fluroescent-display-tube-part-m64-p-7943.htm and would like to use it with a VFD SN75518 Driver to make a Clock but I do not know what is the sequence to connect the SN75518 in the VFD Display and how to set the pins in the Arduino sketch;The sequence of pins, from right to left is: 1-2, GND of Filament; 3-16, are Segments Anodes; pin 17 not connected; 18-23, are Grids; 24-25, +3V of Filament.If you could help me, please, I would be very grateful!

    View Instructable »
  • dancopy commented on PoisonMondo's instructable Colorduino Scrolling Text: Updated!10 months ago
    Colorduino Scrolling Text: Updated!

    I recorded the "Standalone Scroll" sketch on a Colorduino normally but it shows nothing. Arduino 1.8.5

    View Instructable »
  • dancopy commented on alinke's instructable Rainbowduino Sign10 months ago
    Rainbowduino Sign

    Ok! Do you have any code for scrolling text, for example, to several Colorduino? Thank you

    View Instructable »
  • dancopy commented on alinke's instructable Rainbowduino Sign10 months ago
    Rainbowduino Sign

    The 450Mb "installation package" link is not available, could you post again?Thank you

    View Instructable »
  • Colorduino Scrolling Text: More Characters!

    Hello PoisonMondo!How to change the font type used in Matrix?

    View Instructable »
  • Colorduino Scrolling Text: More Characters!

    Hi, did you find out yet? If no...First, install all libraries correctly; Use the Arduino IDE 1.0Write the "ScrollTextv2.txtScrollTextv2.txt" sketch on the first Colorduino by typing 1 in the line "int displaynumber = 1;" for the first Colorduino. Then, write the same sketch in the second Colorduino, writing 2 in the line "int displaynumber = 1;" and so on successively if you use more Colorduino. After, connect the 2 or 3 Colorduino together and feed the Colorduino's right hand.

    Are you using the Arduino IDE 1.0, how did I tell Tachyon?

    View Instructable »
  • dancopy commented on vnod2805's instructable A Simple Driver for VFD Displays11 months ago
    A Simple Driver for VFD Displays

    If anyone could answer me, I would be very grateful.

    View Instructable »
  • Arduino and the Noritake 24x6 VFD Module (Vacuum Fluorescent Display)

    But how do I connect it to Arduino? Or at least how can I test it?

    View Instructable »
  • dancopy commented on Kesselwagen's instructable OpenVFD: 6-Digit IV-11 VFD Tube Clock11 months ago
    OpenVFD: 6-Digit IV-11 VFD Tube Clock

    I do not know if I understand, but to feed the VFD, can you use only the "Boost Converter" mentioned above? Thank you

    View Instructable »
  • Arduino UNO Based HUB75 LED DISPLAY DRIVER

    Hi friend! Can this code be used with the HUB08 Interface as well? Thanks

    View Instructable »
  • dancopy commented on Tustin High T-Tech's instructable 64x16 RED LED Marquee1 year ago
    64x16 RED LED Marquee

    I would like to make a clock HH;MM;SS with this screen but I do not have enough knowledge; if anyone did, share the arduino code, please!

    ¡Oi dani! ¿Conseguiste algo?También me gustaría hacer un reloj con esa pantalla pero no tengo suficiente conocimiento; si usted consiguió, comparta conmigo, por favor!Daniel Fernandes (meuviolino@hotmail.com)

    View Instructable »
  • dancopy commented on dcgchico's instructable Reloj De Palabras1 year ago
    Reloj De Palabras

    Thank you for the explanation,A hug from Brazil, Daniel Fernandes

    View Instructable »
  • Interface DHT11 (Humidity Sensor) Using NodeMCU

    Hi, I did not understand one thing: this library runs with the NodeMCU card but does not have in the code header the #include esp8266; So does it run with this #include esp8266 too?Thank you

    View Instructable »
  • dancopy commented on Bodmer's instructable Arduino TFT Display and Font Library1 year ago
    Arduino TFT Display and Font Library

    Greetings Bodmer!I have this Arduino code - The original was made by you for the TFT Display 1.8" ST7735 and adapted by Nicu FLORICA here:http://www.tehnic.go.ro/ (Afisaj TFT de 1,8" cu driver ST7735B (3);But I would like to use it on a 2.2" TFT Display ILI9341 because I found the watch beautiful and interesting, how can I do it? My thanks in advance.

    View Instructable »
  • dancopy commented on SteveQuinn's instructable Using ESP8266 SPIFFS1 year ago
    Using ESP8266 SPIFFS

    I would like to know how to clean the SPIFFs (text, image) files loaded in esp8266.Thank you

    View Instructable »
  • Arduino Serial UART Scrolling Display Terminal Using a 2.2" TFT

    Hi Bodmer! All the "Adafruit_GFX_AS" libraries I have downloaded do not have the setTextColor() function. Could you provide some that have this function? Thanks

    View Instructable »
  • Arduino Serial UART Scrolling Display Terminal Using a 2.2" TFT

    Hi Bodmer!I'm trying to use an Arduino code that makes use of this library: Adafruit_ILI9341_AS; I installed it in the correct location but when I compile in Arduino (IDE 1.8.5) it presents the following error: 'class Adafruit_ILI9341_AS' has no member named 'setTextColor'; I also noticed that this function does not appear in the CPP file of this library. But I can not find another.The Adafruit_GFX_AS library is also installed.Thank you if you can help.

    View Instructable »
  • Arduino Serial UART Scrolling Display Terminal Using a 2.2" TFT

    Greetings;I have an arduino sketch that calls this library <Adafruit_ILI9341_AS.h> but, it displays the following error: 'class Adafruit_ILI9341_AS' has no member named 'setTextColor'error:'class Adafruit_ILI9341_AS' has no member named 'fillCircle'error:'class Adafruit_ILI9341_AS' has no member named 'drawCentreString'error:'class Adafruit_ILI9341_AS' has no member named 'drawLine'I've been looking in the .CPP and .H files and these are not included.can anybody help me? Thank you

    View Instructable »
  • dancopy commented on dcgchico's instructable Reloj De Palabras1 year ago
    Reloj De Palabras

    Ok dcgchico!Você me esclareceu; Obrigado pela resposta.

    View Instructable »
  • dancopy commented on dcgchico's instructable Reloj De Palabras1 year ago
    Reloj De Palabras

    Primeiramente, obrigado pelo post; tenho duas perguntas:1) Não são colocados os Minutos no código? Por exemplo, "São Nove Horas e Um Minuto" ou "São Nove Horas e Dezesseis Minutos".2) Gostaria de fazer esse Relógio em Português (Brasil), portanto, o que devo e onde devo alterar no código Arduino? Obrigado

    View Instructable »
  • Rainbow Word Clock With a Full Rainbow Effect.

    Nice project! Are you continuing?

    View Instructable »
  • Pixel Shipped Counter Based on Arduino

    The "loop" sketch is working but I have a problem: instead of text the leds (dots) are all erased and the background leds are lit; how to fix this in code?Thank you

    View Instructable »
  • Getting Started With NeoPixel / WS2812  RGB LED

    Greetings friend!I have 5 meters RGB LED strip WS2812 and would like to make a strip of this 8X32; How do I make the connections? Is it the end of one at the beginning of the other, as in zig-zag? Thank you

    View Instructable »
  • How to Wire the 6 Digit 7 Segment 2.4 Inch Ht1621 LCD Display Module on Arduino Microcontroller

    Would you kindly have some arduino clock code for this display? thank you

    View Instructable »
  • dancopy commented on lincomatic's instructable Lampduino - an 8x8 RGB Floor Lamp1 year ago
    Lampduino - an 8x8 RGB Floor Lamp

    Any text scrolling code for multiple Colorduino? Thank you

    View Instructable »
  • Colorduino Scrolling Text: More Characters!

    Hi, gusantor! Solved your problem? I'm going through the same problem; any tips? Thank you

    View Instructable »
  • dancopy commented on Alexis Ospitia's instructable Arduino Watch Sport 1 year ago
    Arduino Watch Sport

    Can Arduino Nano be used instead of Pro Mini? Thank you

    View Instructable »
  • Colorduino Scrolling Text: More Characters!

    Hi PoisonMondo!I did exactly as you describe in your post but, simply, my array does not light up; I am using version 1.6.5 of arduino and with other sketches is working, for example, this one: https://www.michael-wessel.info/blog.html(2016 - 1 - 6: A working Colorduino scrolling and graphics library)Thanks in advance for your help.

    Hi LakshmananCI was testing with IDE 1.0.5-r2 and it says: processing.app.debug.RunnerException: Sketch too big; see http://www.arduino.cc/en/Guide/Troubleshooting#size for tips on reducing it;Would you have any tips? Thank you

    View Instructable »
  • 16x128 Display Showing Date, Time, Temp, Humidity

    Has anyone here had this issue of Number of the Year, rather than 2017, show 2047? Looking forward to an answer.

    View Instructable »
  • 16x128 Display Showing Date, Time, Temp, Humidity

    Many thanks for the reply jeffreye!I have not been able to sort out the part of the code that is showing the Year "47" instead of the Year "17" (ie 2017); I know you're very busy, but if you can give me a suggestion, I thank you very much,Daniel

    View Instructable »
  • dancopy commented on lagsilva's instructable Talking Clock With Arduino1 year ago
    Talking Clock With Arduino

    Saudações Engº lagsilva!Seria possível usar um Display TFT 2.2" (ili9341) no lugar do TM1637?O que mudaria/acrescentaria no código? Vc poderia me dar uma ajuda? Obrigado

    View Instructable »
  • dancopy commented on Silvius's instructable 32x16 LED Matrix Panel and Arduino1 year ago
    32x16 LED Matrix Panel and Arduino

    Silvius! Souvenirs!Did not you make any more code for this Display? I would like to do a clock + scrolling text but I am not aware enough.I would also like to find this module already mounted (soldier);Thank you

    View Instructable »
  • 16x128 Display Showing Date, Time, Temp, Humidity

    Hi Dennis! Did you get any solution on the change of the year? Mine also does not leave the year 47; Hugs from Brazil

    View Instructable »
  • 16x128 Display Showing Date, Time, Temp, Humidity

    Could someone tell me how I convert this code, the temperature from Fahrenheit to Celsius? Thank you all

    View Instructable »
  • 16x128 Display Showing Date, Time, Temp, Humidity

    Hi jeffreye! I'm almost there but I still have three questions:1) I still have problems with the configuration of the Data that, even when configuring in the library that you provided, the year does not change; Continues to appear 47 at the time of year.2) What this button necessarily does: A3 = DST Adjust3) I could not change the temperature from Fahrenheit to CelsiusThanks and congratulations for the program!

    View Instructable »
  • 16x128 Display Showing Date, Time, Temp, Humidity

    Hello DennisB36! Did you get anything? In mine also shows the Date on 7/8/47; Although, I have also moved into the configuration library, sent by author Jeffreye; I'm waiting for someone !! Hugs to all

    In the following lines:PORTB | =! ((Buffer [index] >> (7-i)) & 0x01) << (data_R1-8); // top set of rows If (HEIGHT == 32) PORTB | =! ((Buffer [index + 128] >> (7-i)) & 0x01) << (data_R2-8); // bottom set of rowsTry this:PORTB | =! ((~ Buffer [index] >> (7-i)) & 0x01) << (data_R1-8); // top set of rows If (HEIGHT == 32) PORTB | =! ((~ Buffer [index + 128] >> (7-i)) & 0x01) << (data_R2-8); // bottom set of rowsThat is, add "~" before the words "Buffer" like this: ~Buffer

    View Instructable »
  • dancopy commented on grizelli's instructable Simple Dot Matrix Clock Using Node MCU1 year ago
    Simple Dot Matrix Clock Using Node MCU

    fatal error: avr/pgmspace.h: No such file or directory#include <avr/pgmspace.h>I am using Arduino IDE 1.6.9Thanks

    View Instructable »
  • dancopy commented on randofo's instructable Arduino Countdown Timer2 years ago
    Arduino Countdown Timer

    I would like to take advantage of the same circuit for a countdown from 9999 to 0000 with Buzzer - what should be changed in the code? Thank you all

    View Instructable »
  • Arduino Countdown Timer With Setup Buttons

    Hi friend!What should be changed / added in the code to a 4-digit display? Thank you

    View Instructable »
  • dancopy commented on diytronics's instructable Arduino GPS Reciever In a Tin2 years ago
    Arduino GPS Reciever In a Tin

    Hi friend! (diytronics)Can a larger screen be used, for example 2.8" or 3.2" Nextion?Thank you

    View Instructable »
  • Linear Clock using Arduino + DS1307 + Neopixel: Re-using some hardware.

    Hi Lluis, beautiful project!Could you please kindly tell me what it would look like in the arduino code to use two LED strips, one for the Hours and one for the Minutes and Seconds?I have little experience with ArduinoThank you

    View Instructable »
  • Pixie: An Arduino Based NeoPixel Wristwatch

    Hi Konstantin! And the LED that displays the seconds flashes? For I have not seen it on video! Thank you

    It is possible with this code, using a ring 24 or even 60 LEDs?Thank you

    View Instructable »
  • 64 pixel RGB LED Display - Another Arduino Clone

    It is possible to connect several modules that make for a longer text?How would the schematic? Thank you

    View Instructable »
  • dancopy commented on Bodmer's instructable Arduino TFT display and font library2 years ago
    Arduino TFT display and font library

    Greetings ! I need your help, or someone you know, please!I have this Arduino code to an Analog Clock with credits for Gilchrist Updated by Alan Senior. It would, however, to connect a DS3231 RTC to the accuracy of the time but do not know how to adapt it in the code; someone could guide me? I know that for those who understand it is very easy, but I have little knowledge of Arduino; My anticipated thanks.Arduino sketch/*Gilchrist 6/2/2014 1.0 Updated by Alan Senior 18/1/2015 */// Estas são as conexões para o Arduino UNO#define sclk 13 // Não altere#define mosi 11 // Não altere#define cs 10#define dc 9#define rst 8 // você também pode conectá-lo ao pino Reset do Arduino#include <Adafruit_GFX_AS.h> // Biblioteca Core de gr&aacu...

    see more »

    Greetings ! I need your help, or someone you know, please!I have this Arduino code to an Analog Clock with credits for Gilchrist Updated by Alan Senior. It would, however, to connect a DS3231 RTC to the accuracy of the time but do not know how to adapt it in the code; someone could guide me? I know that for those who understand it is very easy, but I have little knowledge of Arduino; My anticipated thanks.Arduino sketch/*Gilchrist 6/2/2014 1.0 Updated by Alan Senior 18/1/2015 */// Estas são as conexões para o Arduino UNO#define sclk 13 // Não altere#define mosi 11 // Não altere#define cs 10#define dc 9#define rst 8 // você também pode conectá-lo ao pino Reset do Arduino#include <Adafruit_GFX_AS.h> // Biblioteca Core de gráficos#include <Adafruit_ILI9341_AS.h> // Hardware-specific library#include <SPI.h>#define ILI9341_GREY 0x5AEBAdafruit_ILI9341_AS tft = Adafruit_ILI9341_AS(cs, dc, rst); // Invoca biblioteca personalizadafloat sx = 0, sy = 1, mx = 1, my = 0, hx = -1, hy = 0; // Salva os multiplicadores H, M, S x & yfloat sdeg=0, mdeg=0, hdeg=0;uint16_t osx=120, osy=120, omx=120, omy=120, ohx=120, ohy=120; // Salva as coordenadas H, M, S x & yuint16_t x0=0, x1=0, y0=0, y1=0;uint32_t targetTime = 0; // for next 1 second timeoutuint8_t hh=conv2d(__TIME__), mm=conv2d(__TIME__+3), ss=conv2d(__TIME__+6); // Obtém H, M, S do tempo de compilaçãoboolean initial = 1;void setup(void) { tft.init(); tft.setRotation(2); //tft.fillScreen(ILI9341_BLACK); //tft.fillScreen(ILI9341_RED); //tft.fillScreen(ILI9341_GREEN); //tft.fillScreen(ILI9341_BLUE); //tft.fillScreen(ILI9341_BLACK); tft.fillScreen(ILI9341_GREY); tft.setTextColor(ILI9341_WHITE, ILI9341_GREY); // Adicionando uma cor de fundo, automaticamente, apaga o texto prévio // Desenha o círculo do relógio tft.fillCircle(120, 120, 118, ILI9341_GREEN); tft.fillCircle(120, 120, 110, ILI9341_BLACK); // Desenha 12 linhas for(int i = 0; i<360; i+= 30) { sx = cos((i-90)*0.0174532925); sy = sin((i-90)*0.0174532925); x0 = sx*114+120; y0 = sy*114+120; x1 = sx*100+120; y1 = sy*100+120; tft.drawLine(x0, y0, x1, y1, ILI9341_GREEN); } // Desenha 60 pontos for(int i = 0; i<360; i+= 6) { sx = cos((i-90)*0.0174532925); sy = sin((i-90)*0.0174532925); x0 = sx*102+120; y0 = sy*102+120; // Desenha o ponteiro dos minutos tft.drawPixel(x0, y0, ILI9341_WHITE); // Desenha os principais pontos do quadrante if(i==0 || i==180) tft.fillCircle(x0, y0, 2, ILI9341_WHITE); if(i==90 || i==270) tft.fillCircle(x0, y0, 2, ILI9341_WHITE); } tft.fillCircle(120, 121, 3, ILI9341_WHITE); // Desenha um texto na posição 120,260 usando 4 fontes // Somente fonte de números 2,4,6,7 são válidos. Fonte 6 somente contém caracteres [espaço] 0 1 2 3 4 5 6 7 8 9 : . a p m // Fonte 7 é uma fonte de 7 segmentos e contém somente caracteres [espaço] 0 1 2 3 4 5 6 7 8 9 : . tft.drawCentreString("Tempo de Paz",120,260,4); targetTime = millis() + 1000; }void loop() { if (targetTime < millis()) { targetTime = millis()+1000; ss++; // Avança os segundos if (ss==60) { ss=0; mm++; // Avança os minutos if(mm>59) { mm=0; hh++; // Avança as horas if (hh>23) { hh=0; } } } // Pré-computa a posição de graus, coordenadas x & y para uma atualização rápida da tela sdeg = ss*6; // 0-59 -> 0-354 mdeg = mm*6+sdeg*0.01666667; // 0-59 -> 0-360 - includes seconds hdeg = hh*30+mdeg*0.0833333; // 0-11 -> 0-360 - includes minutes and seconds hx = cos((hdeg-90)*0.0174532925); hy = sin((hdeg-90)*0.0174532925); mx = cos((mdeg-90)*0.0174532925); my = sin((mdeg-90)*0.0174532925); sx = cos((sdeg-90)*0.0174532925); sy = sin((sdeg-90)*0.0174532925); if (ss==0 || initial) { initial = 0; // Apaga as posições de horas e dos minutos a cada minuto tft.drawLine(ohx, ohy, 120, 121, ILI9341_BLACK); ohx = hx*62+121; ohy = hy*62+121; tft.drawLine(omx, omy, 120, 121, ILI9341_BLACK); omx = mx*84+120; omy = my*84+121; } // Redraw new hand positions, hour and minute hands not erased here to avoid flicker tft.drawLine(osx, osy, 120, 121, ILI9341_BLACK); osx = sx*90+121; osy = sy*90+121; tft.drawLine(osx, osy, 120, 121, ILI9341_RED); tft.drawLine(ohx, ohy, 120, 121, ILI9341_WHITE); tft.drawLine(omx, omy, 120, 121, ILI9341_WHITE); tft.drawLine(osx, osy, 120, 121, ILI9341_RED); tft.fillCircle(120, 121, 3, ILI9341_RED); }}static uint8_t conv2d(const char* p) { uint8_t v = 0; if ('0' <= *p && *p <= '9') v = *p - '0'; return 10 * v + *++p - '0';}

    View Instructable »
  • dancopy commented on xfoguet's instructable Arduino Time Lapse2 years ago
    Arduino Time Lapse

    Nice tutorial! I would rather save the photos on the SD card, display directly to a TFT display (3.5 "or larger), you would have any schematic to do this?Thank you very much

    View Instructable »
  • dancopy commented on Bodmer's instructable Arduino TFT display and font library2 years ago
    Arduino TFT display and font library

    First, thanks for the reply Bodmer; My display uses the chip driver ILI9341, then what would be the easiest, I enjoy "RTC_Clock.zip" you sent me or "SetSerial" sketch included in the DS3232RTC library? If you allow me, I will be using your ready code "RTC_Clock_S6D02A1" added the DS3232RTC library; You could add this in code to me by a great kindness? (I am weak in Arduino!!) -email: meuviolino@hotmail.comAgain, thank you very much

    View Instructable »
  • dancopy commented on Bodmer's instructable Arduino TFT display and font library2 years ago
    Arduino TFT display and font library

    Great tutorial! I have some questions, please:1) I would use the analog clock circuit the DS3231 RTC module for time precision but would like to know what should be added to the code;2) How to set the time on the clock? (I have little knowledge in arduino)Thank you very much

    Great tutorial! I have some questions, please:1) I would use the analog clock circuit the DS3231 RTC module for time precision but would like to know what should be added to the code;2) How to set the time on the clock? (I have little knowledge in arduino)Thank you very much

    View Instructable »