8/8/2023 0 Comments Arduino led clock project![]() This tests the code and should compete without errors. Pick your Arduino board type in the Tools -> Board menu and hit the Verify (check mark) icon. You should see the code appear in the main window. Now go to the File menu and open the main clock sketch – it’s in the mini_clock folder and is the file ending in. If not, go back and check you have them in the right folder. (My menu has some extra libraries listed too that aren’t needed for this project) Look for the 4 library names above to appear in this menu. If the libraries are in the right place you should see the 4 names listed in this menu. Now quit and restart the Arduino IDE to make it pick up the new libraries. After restarting, go to the Sketch -> Import Library menu. The 4 libraries are called ‘Button’, ‘FontLEDClock’, ‘LedControl’ and ‘RTClib’. Inside that folder should be another folder called libraries. Open the libraries folder in the clock download and copy the 4 folders there into the libraries folder in your Arduino projects directory. When you installed the Arduino software it should have created a folder somewhere for your sketches (projects) to go in. ![]() mini_clockx_x (where x is the version number) – this contains the main clock code.matrix_test – this is the demo program ICStation provide to test the matrix kit is working as explained earlier.libraries – contains extra software code the clock needs to work.Unzip the file and inside you will see 3 folders: Once the IDE is installed download the Mini LED Clock code from my page on GitHub by clicking the “Download Zip” button bottom right. You can download the IDE from the Arduino site: The current clock code was tested with IDE version 1.6.5. First you’ll need to download the Arduino programming software called the Arduino IDE. The last job is to upload the clock code to the Arduino. You can also see the connections for the displays on the left (cable tied to the board), and the button connections top left. The reset button was already connected to the Arduino’s reset pins. ![]() ![]() The red LED is connected between Arduino digital pin 13 an GND as the clock sketch flashes this to show it’s running. I connected the green LED between 5v and GND to show power on. My protoshield came with 2 LEDs and a reset button. I was a little nervous about building them at first – some of the resistors and capacitors were super tiny! The kits need to be soldered and uses surface mount components. You simply need a few wires to connect the module to an Arduino, then you can control it using software. The other cool thing is these matrix PCB’s clip together with plastic jumpers, so you can make displays as big as you like. The chip takes all the hard work out of controlling the LEDs. ![]() The kits use a red LED matrix which plugs into a PCB with onboard MAX controller chip. Magnifying glass – if you don’t like squinting at tiny components.2 x Push to make buttons such as these.1 x Arduino Uno or Duemilanove with 32k RAM.4 x MAX7219 Dot Matrix Module Control Display DIY kits.Push button driven menus for setup & display selection.Random clock mode option that changes the display mode every few hours.Slide mode where digits roll on and off screen.If you want to make one yourself it’s not too hard – read on! As well as the LED modules I used an Arduino to run code and a DS1307 clock module to keep time. I had 4 of the modules, so I took the code from my Pong Clock, stripped it down and created a mini clock. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |