#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](/proxy/?url=https://content.instructables.com/FN4/CJ87/IWMR23YL/FN4CJ87IWMR23YL.jpg&filename=IMG_20161128_154339.jpg)
![IMG_20161127_222451.jpg](/proxy/?url=https://content.instructables.com/FW9/5PQ6/IWH395X2/FW95PQ6IWH395X2.jpg&filename=IMG_20161127_222451.jpg)
![584ba7bf8852ddae60000290.jpeg](/proxy/?url=https://content.instructables.com/FFR/AWQV/IWH3A399/FFRAWQVIWH3A399.jpg&filename=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](/proxy/?url=https://content.instructables.com/FNU/J5XE/IWH3A527/FNUJ5XEIWH3A527.jpg&filename=How wearable technology will change our lives | Gonzalo Tudela | TEDxSFU)
![13 Amazing Pieces of Wearable Technology](/proxy/?url=https://content.instructables.com/FTI/3I8O/IWH3A50N/FTI3I8OIWH3A50N.jpg&filename=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 ,](/proxy/?url=https://content.instructables.com/FA6/ETRP/IWH3A4LP/FA6ETRPIWH3A4LP.jpg&filename=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](/proxy/?url=https://content.instructables.com/FTI/XIH9/IWH3A4Q7/FTIXIH9IWH3A4Q7.jpg&filename=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](/proxy/?url=https://content.instructables.com/FDL/FEGR/IWH396AZ/FDLFEGRIWH396AZ.jpg&filename=IMG_20161125_220742.jpg)
![IMG_20161125_220747.jpg](/proxy/?url=https://content.instructables.com/F9V/VB5B/IWH396LT/F9VVB5BIWH396LT.jpg&filename=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](/proxy/?url=https://content.instructables.com/FZ6/XHHR/IWH3ABW7/FZ6XHHRIWH3ABW7.jpg&filename=basci Attiny programmer.jpg)
![hqdefault.jpg](/proxy/?url=https://content.instructables.com/FAW/APLW/IWH3ANYD/FAWAPLWIWH3ANYD.jpg&filename=hqdefault.jpg)
![7805.jpg](/proxy/?url=https://content.instructables.com/FT0/1HMG/IWH3ARQV/FT01HMGIWH3ARQV.jpg&filename=7805.jpg)
![ATtiny85_Arduino_pins2m.JPG](/proxy/?url=https://content.instructables.com/FOF/N3PH/IWH3ABW5/FOFN3PHIWH3ABW5.jpg&filename=ATtiny85_Arduino_pins2m.JPG)
![IMG_20161127_124444.jpg](/proxy/?url=https://content.instructables.com/FUG/22QQ/IWH394T9/FUG22QQIWH394T9.jpg&filename=IMG_20161127_124444.jpg)
![IMG_20161127_124549.jpg](/proxy/?url=https://content.instructables.com/F6C/IHF4/IWH394TF/F6CIHF4IWH394TF.jpg&filename=IMG_20161127_124549.jpg)
![download.jpg](/proxy/?url=https://content.instructables.com/F6C/JNBX/IWH3ANT6/F6CJNBXIWH3ANT6.jpg&filename=download.jpg)
![Untitled.jpg](/proxy/?url=https://content.instructables.com/FAF/QY7G/IWH3AO22/FAFQY7GIWH3AO22.jpg&filename=Untitled.jpg)
![IMG_20161127_124545.jpg](/proxy/?url=https://content.instructables.com/FVB/XXMF/IWH37TI5/FVBXXMFIWH37TI5.jpg&filename=IMG_20161127_124545.jpg)
![IMG_20161127_123641.jpg](/proxy/?url=https://content.instructables.com/F4L/N4Z7/IWH396PH/F4LN4Z7IWH396PH.jpg&filename=IMG_20161127_123641.jpg)
![download (2).jpg](/proxy/?url=https://content.instructables.com/FGB/RCTK/IWH3ANT8/FGBRCTKIWH3ANT8.jpg&filename=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](/proxy/?url=https://content.instructables.com/FFD/GDBE/IWH37THD/FFDGDBEIWH37THD.jpg&filename=IMG_20161127_123638.jpg)
![IMG_20161127_134947.jpg](/proxy/?url=https://content.instructables.com/FH9/V6M4/IWH37TII/FH9V6M4IWH37TII.jpg&filename=IMG_20161127_134947.jpg)
![IMG_20161127_124420.jpg](/proxy/?url=https://content.instructables.com/FEN/HAIV/IWH394SE/FENHAIVIWH394SE.jpg&filename=IMG_20161127_124420.jpg)
![IMG_20161127_123703.jpg](/proxy/?url=https://content.instructables.com/F2I/JLR2/IWH37THT/F2IJLR2IWH37THT.jpg&filename=IMG_20161127_123703.jpg)
![IMG_20161127_123620.jpg](/proxy/?url=https://content.instructables.com/FJS/BPKG/IWH396NI/FJSBPKGIWH396NI.jpg&filename=IMG_20161127_123620.jpg)
![IMG_20161127_124901.jpg](/proxy/?url=https://content.instructables.com/FHZ/KZDX/IWH394UA/FHZKZDXIWH394UA.jpg&filename=IMG_20161127_124901.jpg)
![IMG_20161127_140420.jpg](/proxy/?url=https://content.instructables.com/FHL/8JXV/IWH3954F/FHL8JXVIWH3954F.jpg&filename=IMG_20161127_140420.jpg)
![IMG_20161127_153718.jpg](/proxy/?url=https://content.instructables.com/FUZ/1LBV/IWH3958B/FUZ1LBVIWH3958B.jpg&filename=IMG_20161127_153718.jpg)
![IMG_20161127_123654.jpg](/proxy/?url=https://content.instructables.com/FVV/U9GY/IWH3972F/FVVU9GYIWH3972F.jpg&filename=IMG_20161127_123654.jpg)
![IMG_20161127_154441.jpg](/proxy/?url=https://content.instructables.com/F3X/U0PS/IWH37TJ0/F3XU0PSIWH37TJ0.jpg&filename=IMG_20161127_154441.jpg)
its Ok..! if you don't have any idea of designing PCB ,just follow these steps to build your own.
- STEP 1 - Place the component on the Top side of the PCB and Mark using CD marker were you need to make Hole .
- STEP 2 - Drill the Hole using PCB Driller with 0.8 - 1mm Drill Bit.
- 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](/proxy/?url=https://content.instructables.com/F5Q/DMTV/IWH37TJ9/F5QDMTVIWH37TJ9.jpg&filename=IMG_20161127_154719.jpg)
![IMG_20161127_154731.jpg](/proxy/?url=https://content.instructables.com/FRN/GEXY/IWH395DE/FRNGEXYIWH395DE.jpg&filename=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](/proxy/?url=https://content.instructables.com/FI5/Y2E6/IWH395G4/FI5Y2E6IWH395G4.jpg&filename=IMG_20161127_160624.jpg)
![IMG_20161127_160938.jpg](/proxy/?url=https://content.instructables.com/F8S/4E4R/IWH395KA/F8S4E4RIWH395KA.jpg&filename=IMG_20161127_160938.jpg)
![IMG_20161127_160933.jpg](/proxy/?url=https://content.instructables.com/FMJ/WGO9/IWH395G7/FMJWGO9IWH395G7.jpg&filename=IMG_20161127_160933.jpg)
![IMG_20161127_153713.jpg](/proxy/?url=https://content.instructables.com/FGN/MY9D/IWH3956I/FGNMY9DIWH3956I.jpg&filename=IMG_20161127_153713.jpg)
![IMG_20161127_160627.jpg](/proxy/?url=https://content.instructables.com/F65/EM8K/IWH37TJK/F65EM8KIWH37TJK.jpg&filename=IMG_20161127_160627.jpg)
![IMG_20161127_161254.jpg](/proxy/?url=https://content.instructables.com/FHK/VNVR/IWH37TKC/FHKVNVRIWH37TKC.jpg&filename=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](/proxy/?url=https://content.instructables.com/F67/JV1Q/IWH395UD/F67JV1QIWH395UD.jpg&filename=IMG_20161127_165420.jpg)
![IMG_20161127_162547.jpg](/proxy/?url=https://content.instructables.com/F24/LBUV/IWH37TMC/F24LBUVIWH37TMC.jpg&filename=IMG_20161127_162547.jpg)
![IMG_20161127_182304.jpg](/proxy/?url=https://content.instructables.com/F07/OV80/IWH395UH/F07OV80IWH395UH.jpg&filename=IMG_20161127_182304.jpg)
![IMG_20161127_165422.jpg](/proxy/?url=https://content.instructables.com/FH8/BNTX/IWH37TNP/FH8BNTXIWH37TNP.jpg&filename=IMG_20161127_165422.jpg)
![IMG_20161127_222431.jpg](/proxy/?url=https://content.instructables.com/FJ6/6DWR/IWH395WX/FJ66DWRIWH395WX.jpg&filename=IMG_20161127_222431.jpg)
Place all the components on their respective places and Solder it ..!
Bootloading and Programming ATtiny85 !
![IMG_20161211_081513.jpg](/proxy/?url=https://content.instructables.com/FXZ/XWZY/IWH3DWVI/FXZXWZYIWH3DWVI.jpg&filename=IMG_20161211_081513.jpg)
![FUQ5FONIPZRND0S.MEDIUM.jpg](/proxy/?url=https://content.instructables.com/F8U/TXGO/IWH3B1VG/F8UTXGOIWH3B1VG.jpg&filename=FUQ5FONIPZRND0S.MEDIUM.jpg)
![FHHZ8QMIPZRND0Y.SMALL.jpg](/proxy/?url=https://content.instructables.com/FX8/QGB7/IWH3B1VH/FX8QGB7IWH3B1VH.jpg&filename=FHHZ8QMIPZRND0Y.SMALL.jpg)
![FYXNDRWIPZPI42M.MEDIUM.jpg](/proxy/?url=https://content.instructables.com/FM1/LD62/IWH3B1VY/FM1LD62IWH3B1VY.jpg&filename=FYXNDRWIPZPI42M.MEDIUM.jpg)
![IMG_20161211_081519.jpg](/proxy/?url=https://content.instructables.com/FRU/YM71/IWH3DWX1/FRUYM71IWH3DWX1.jpg&filename=IMG_20161211_081519.jpg)
![IMG_20161211_081536.jpg](/proxy/?url=https://content.instructables.com/FWG/RE4I/IWH3DWYQ/FWGRE4IIWH3DWYQ.jpg&filename=IMG_20161211_081536.jpg)
![IMG_20161211_081521.jpg](/proxy/?url=https://content.instructables.com/FGW/NFG4/IWH3DX1X/FGWNFG4IWH3DX1X.jpg&filename=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](/proxy/?url=https://content.instructables.com/FIQ/2B12/IWH395ZL/FIQ2B12IWH395ZL.jpg&filename=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](/proxy/?url=https://content.instructables.com/FLW/P2AT/IWH3B369/FLWP2ATIWH3B369.jpg&filename=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](/proxy/?url=https://content.instructables.com/F2R/V3O1/IWH3BG8M/F2RV3O1IWH3BG8M.jpg&filename=4.jpg)
![1.jpg](/proxy/?url=https://content.instructables.com/FOQ/FHNR/IWH3BGAO/FOQFHNRIWH3BGAO.jpg&filename=1.jpg)
![2.jpg](/proxy/?url=https://content.instructables.com/FEN/VQHC/IWH3BGC0/FENVQHCIWH3BGC0.jpg&filename=2.jpg)
![3.jpg](/proxy/?url=https://content.instructables.com/FH0/HULT/IWH3BGDD/FH0HULTIWH3BGDD.jpg&filename=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 ..!