Introduction: Arduino - Standalone Atmega328p TIMER - TIME BOMB MOVIE PROP

Picture of Arduino - Standalone Atmega328p TIMER - TIME BOMB MOVIE PROP

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.

Picture of 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!


Comments

vandenbrande (author)2016-09-13

Follow me for more cool stuff!

About This Instructable

228views

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 - SOLID STATE RELAY FAN/ventilator Control Using the W1209 Thermistor and SSR-25 DA Arduino - SSR-25 DA Solid State Relay and DS3231 RTC Automatic Timer Lamp Arduino & C# - RGB LED / LED STRIP CONTROL C# Application
Add instructable to: