![]() I guess as both the lights and the clock probably operate over a serial protocol, it could be a conflict with the serial drivers - maybe both using the same time-critical operations. The Arduino Due has two I2C / TWI interfaces SDA1 and SCL1 are near to the AREF pin and the additional one is on pins 20 and 21. On the Arduino boards with the R3 layout (1.0 pinout), the SDA (data line) and SCL (clock line) are on the pin headers close to the AREF pin. ![]() Open the IDE and click to the 'Sketch' menu and then Include Library > select the option to 'Add. This library allows you to communicate with I2C / TWI devices. To install a new library into your Arduino IDE you can use the Library Manager. ![]() What are my troubleshooting steps - should I try alternative libraries, or could I dig into the libraries themselves and see what hardware resources they might be using? also we will need Wire Library, which is inbuilt, so we will just install MPU - 6050 Library. An easy way to find the location of the Wire library for the board you have currently selected in the IDE is to open one of the Wire library's example sketches, then use the Sketch > Show sketch folder menu to open the example sketch's folder. The LED data goes over pin 6 and the clock uses pins 2,3,4 (these pins are customisable in code).Įven just adding a DS1302 initialisation to a working FastLED sketch causes no more LED output #include ![]() Individually these two libraries work fine, so I can either echo the time to the serial console, or I can drive the LEDs as I need.īut when I combine them there is some conflict happening and I get no LED output. So I’m using DS1302 for the clock, and FastLED for the lights. I am making a custom wall-clock, and need the Arduino (Uno or Nano) to connect to a DS1302 real time clock module and a WS2811 LED chain. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |