loading

Hello world! Today i made a standalone arduino timer with a relay. We are going to build our own arduino with this tutorial. follow the next step for the schematic, code & Parts list! This instructable is somehow more advanced on the electronics side!

AT FIRST:

We need to Burn the bootloader if there is no bootloader on your AtMega328p yet!

Then we need to upload the code to the AtMega328p.

Follow this LINK to find out how these 2 steps work.


Step 1: Schematic, Code & Parts List.

MAKE SURE YOU HAVE THE LIBRARY INSTALLED SevenSeg.h

BEWARE that there are common cathode and common anode displays.

//Only for common cathode 7segments
disp.setCommonCathode(); <--- just comment this in the code when using common anode.

Simply wire everything up like the schematic. It should work fine after uploading the code.

Parts list:

  • Atmega328p Microcontroller
  • 16 Mhz Crystal
  • 220 K resistor
  • Transistor L7805CV
  • 4 x push button
  • 2x 1 Digit 7 Segment Display
  • 2x Capacitor 10uF
  • 2x Ceramic Capacitor 22pF
  • Jumper wire Set MM/FF/MF
  • KY-019 Relay Module
  • Arduino uno to program your Atmega328p

Good luck! Follow me for more cool stuff!


<p>Follow me for more cool stuff!</p>

About This Instructable

182views

0favorites

License:

Bio: Hello world! I make simple & Advanced projects for people who want to learn programming and electronics. Most of my Instructables are about arduino and the ... More »
More by vandenbrande:Arduino - LCD 20x4 Water LEVEL MONITOR HC SR04 Arduino - NRF24L01 2.4Ghz Wireless Relay Switch RGB led STRIP control Arduino Android BLUETOOTH - SMD5050  
Add instructable to: