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

by AXR AMAR in Circuits > Arduino

10051 Views, 105 Favorites, 0 Comments

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

IMG_20161128_154339.jpg
IMG_20161127_222451.jpg
584ba7bf8852ddae60000290.jpeg

Sometimes we need to build a smaller circuit for our projects,but unfortunately, if we use Breadboard or Perforated copper 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 this Instructable 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.

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

A Small Introduction to Wearables

How wearable technology will change our lives | Gonzalo Tudela | TEDxSFU
13 Amazing Pieces of Wearable Technology

############ 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.

Watch These Videos ...!

Part-1 : How to Make ATtiny85 PCB board with ICSP Pins and Relay,voltage Regulator On it ,
PART-2 :How to Make ATtiny85 PCB board with ICSP Pins and Relay,voltage Regulator On it

Video 1 - Making of PCB

Video 2 - Bluetooth Demo

COMPONENTS REQUIRED............!!

IMG_20161125_220742.jpg
IMG_20161125_220747.jpg

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 DATASHEET Amazon Sparkfun

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

Circuit Diagram

basci Attiny programmer.jpg
hqdefault.jpg
7805.jpg
ATtiny85_Arduino_pins2m.JPG
IMG_20161127_124444.jpg
IMG_20161127_124549.jpg
download.jpg
Untitled.jpg
IMG_20161127_124545.jpg
IMG_20161127_123641.jpg
download (2).jpg

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!

How to Design PCB Without Using Any Computer Software ?

IMG_20161127_123638.jpg
IMG_20161127_134947.jpg
IMG_20161127_124420.jpg
IMG_20161127_123703.jpg
IMG_20161127_123620.jpg
IMG_20161127_124901.jpg
IMG_20161127_140420.jpg
IMG_20161127_153718.jpg
IMG_20161127_123654.jpg
IMG_20161127_154441.jpg

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.

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

Preparing Ferrous Chloride Solution !

IMG_20161127_154719.jpg
IMG_20161127_154731.jpg

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.

Etching Process !

IMG_20161127_160624.jpg
IMG_20161127_160938.jpg
IMG_20161127_160933.jpg
IMG_20161127_153713.jpg
IMG_20161127_160627.jpg
IMG_20161127_161254.jpg

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 .

Soldering !

IMG_20161127_165420.jpg
IMG_20161127_162547.jpg
IMG_20161127_182304.jpg
IMG_20161127_165422.jpg
IMG_20161127_222431.jpg

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

Bootloading and Programming ATtiny85 !

IMG_20161211_081513.jpg
FUQ5FONIPZRND0S.MEDIUM.jpg
FHHZ8QMIPZRND0Y.SMALL.jpg
FYXNDRWIPZPI42M.MEDIUM.jpg
IMG_20161211_081519.jpg
IMG_20161211_081536.jpg
IMG_20161211_081521.jpg

#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 my Instructable .

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"

ATtiny85 BLINK CODE

IMG_20161128_125237.jpg
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
}

ATtiny85 Bluetooth

asd.jpg
<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 ...
}

Build Your Own ANDROID APP !

4.jpg
1.jpg
2.jpg
3.jpg

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.

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 ..!