Introduction: #DIY# a Complete Guide to Build Your Own ATtiny85 Project PCB With Relay and Interfacing HC05 Bluetooth Module to It

Picture of #DIY# a Complete Guide to Build Your Own ATtiny85 Project PCB With Relay and Interfacing HC05 Bluetooth Module to It

Sometimes we need to build a smaller circuit for our projects,but unfortunately, if we use Breadboard or Perforatedcopper board for project ,the size of the project will become larger , so to overcome this issue ,we must go for PCB but to build PCBs it take much time ,hence in thisInstructable I will show you how to design your PCB by using CD marker , which will overcome time and pain of Designing it in Computer software like Eagle,Diptrace,Fritzzing,KiCAD,Tina and also cost effective too.

#############################################################################################By using this Technique we can build our wearables easily in lesser time , So let us get started.

#############################################################################################

Step 1: A Small Introduction to Wearables

############ The word wearable technology or wearables all refer to electronic technologies or computers that are incorporated into Watch,Bracelets,Helmets,Gloves,Cloths,Shoes,Glasess etc ############

Generally, wearable technology will have some form of communications capability and will allow the wearer access to information in real time. Data-input capabilities are also a feature of such devices, as is local storage. the purpose of wearable technology is to create constant, convenient, seamless, portable, and mostly hands-free access to electronics and computers.

Step 2: Watch These Videos ...!

Video 1 - Making of PCB

Video 2 - Bluetooth Demo

Step 3: COMPONENTS REQUIRED............!!

Picture of COMPONENTS REQUIRED............!!

It's up to you whether you are building simple project or just an ATtiny ic programmer , you can choose your components based on your need.

Before starting this project , I thought of making only ATtiny Programmer with just ICSP connection in it, later I added Male headers for GPIO pins (General Purpose Input Output) and then I added 7805 voltage regulator to it so that we can directly connect 12v source.while designing PCB I added 5v Relay which can control 220v

1 _ ATtiny85 DATASHEETAmazonSparkfun

2_ Copper clad board

3_ 7805 IC DATASHEET

4_ Heat sink

5_ Leds

6_ 8Pin IC Holder

7_ 5V Relay Ebay

8_ Male Header

9_ USBasp Programmer Ebay

10_ Ferrous chloride solution Ebay

11_ Sand Paper

12_ Saw blade (optional)

13_ Plastic bowl

Step 4: Circuit Diagram

Picture of Circuit Diagram

This Circuit is to Connect ATtiny and USBasp programmer to program ATtiny85 using Arduino IDE

ATtiny85 DIGITAL PIN 3 ------------ Relay through transistor (I USED JUMPER TO CONNECT TRANSISTOR BASE AND MALE HEADER)

ATtiny85 DIGITAL PIN 4 ------------ LED

ATtiny85 DIGITAL PIN 1 ----- NOT CONNECTED || MISO

ATtiny85 DIGITAL PIN 0 ------ NOT CONNECTED || MOSI

ATtiny85 DIGITAL PIN 2 ----- NOT CONNECTED || SCK

ATtiny85 DIGITAL PIN 5 ----- NOT CONNECTED ||RESET

Refer the Circuit Diagram above to make Relay circuit.

Though the GPIO pins are connected to ICSP pins it can also connect to Male header pins,

you must Refer ATtiny Instructable by AXR AMAR for Programming tutorial!

Step 5: How to Design PCB Without Using Any Computer Software ?

Picture of How to Design PCB Without Using Any Computer Software ?

its Ok..! if you don't have any idea of designing PCB ,just follow these steps to build your own.

  1. STEP 1 - Place the component on the Top side of the PCB and Mark using CD marker were you need to make Hole .
  2. STEP 2 - Drill the Hole using PCB Driller with 0.8 - 1mm Drill Bit.
  3. STEP 3 - Insert your component and check whether it is perfectly drilled or not.

######################################################################################

NOTE :- Before sketching the PCB, Draw it on Paper and Recheck again and again if you think it is perfect then Go ahead.

######################################################################################

Step 6: Preparing Ferrous Chloride Solution !

Picture of Preparing Ferrous Chloride Solution !

To prepare the solution you must need following items...!

WATER , FERROUS CHLORIDE POWDER, and a PLASTIC BOWL .

just put some water and powder in a bowl and stir it for 1 min using any Plastic spoon.

Step 7: Etching Process !

Picture of Etching Process !

Dip the copper clad board on ferrous chloride solution ,now leave it for 20min ,afterward take it out and wash it with water carefully and scrub it with sandpaper ..now PCB is ready

Note:- you may refer My Instructable on PCB etching .

Step 8: Soldering !

Picture of Soldering !

Place all the components on their respective places and Solder it ..!

Step 9: Bootloading and Programming ATtiny85 !

Picture of Bootloading and Programming ATtiny85 !

#1 Open the preferences dialog in the Arduino software.Find the “Additional Boards Manager URLs” field near the bottom of the dialog.

#2 Paste the following URL into the field (use a comma to separate it from any URLs you’ve already added):

https://raw.githubusercontent.com/damellis/attiny/...

#3 Click the OK button to save your updated preferences.

#4 Open the boards manager in the “Tools > Board” menu.

#5 Scroll to the bottom of the list; you should see an entry for “ATtiny”.

#6 Click on the ATtiny entry. An install button should appear. Click the install button

#7 The word install would appear on the screen Now your Arduino Ide is ready to program your Attiny ..!

for further steps go to myInstructable .

Once connection is complete and Support package is installed ,now you can upload the bootloader program to your tiny85.for that follow these steps :

Goto “Tools > Board”

menu>select ATtiny

Select >Processor as Attiny

Goto Tools > select programmer as "USBasp then click " Burn Bootloader"

Step 10: ATtiny85 BLINK CODE

Picture of ATtiny85 BLINK CODE
void setup() {<br>  // initialize digital pin 3 as an output.
  pinMode(3, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
  digitalWrite(3, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);              // wait for a second
  digitalWrite(3, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);              // wait for a second
}

Step 11: ATtiny85 Bluetooth

Picture of ATtiny85 Bluetooth
<p>#include <SoftwareSerial.h></p>
SoftwareSerial aXr(1, 2); // RX, TX
int ledpin=3; 
int BluetoothData; // the data given from Computer
void setup() {
  // put your setup code here, to run once:
  aXr.begin(9600);
  aXr.println(" press 1 or 0..");
  pinMode(ledpin,OUTPUT);
}
void loop() {
  // put your main code here, to run repeatedly:
   if (aXr.available()){
BluetoothData=aXr.read();
   if(BluetoothData=='1'){   // if number 1 pressed ....
   digitalWrite(ledpin,1);
   aXr.println("Lamp ON ! ");
   }
  if (BluetoothData=='2'){// if number 2 pressed ....
  digitalWrite(ledpin,0);
   aXr.println("Lamp Off ! ");
  }
}
delay(100);// prepare for next data ...
}

Step 12: Build Your Own ANDROID APP !

Picture of Build Your Own ANDROID APP !

you can design your own app using app inventor

http://appinventor.mit.edu/explore/

i have added both Project file and APK file, you can either directly use my app or can edit if you need .

Use UP_ARROW(serial receive 1) and LEFT_ARROW(serial receive 2) button to control relay in this Project.

Step 13: Future Work !

Instead of using DIP we can Use SMD components .

we can add i2c sensors,Displays for projects .




Thank you ..!

Gmail

Facebook Page

my website ..!

Comments

About This Instructable

4,434views

97favorites

License:

Bio: Electronics and Automation Engineer, Game designer, Artist! EMAIL: amaraxr@gmail.com
More by AXR AMAR:#DIY# How to grow Bonsai (or any plant) using Internet of things (IOT)#DIY# A Complete Guide to Build Your own ATtiny85 Project PCB with Relay and Interfacing HC05 Bluetooth Module to it Pinguino Project (a PIC microcontroller based Arduino #No Programmer Required)
Add instructable to: