amar axr
Published © CC BY-NC-SA

A Complete Guide to Build your Own ATtiny85 Project PCB

Sometimes we need to build a smaller circuit for our projects, but unfortunately, we can't use a breadboard or perforated copper board.

EasyProtip3 hours2,041
A Complete Guide to Build your Own ATtiny85 Project PCB

Things used in this project

Story

Read more

Schematics

Schematic 1

Tb5q5vtqscsabxorvbz3

Schematic 2

Huzlomib0t7wqchnwf7c

Schematic 3

Yvfsijv5td26sicn9c2b

Schematic 4

Kbd90usgywfmg3beha5m

Schematic 5

Mdn83ymqhe4xntbbiknd

Schematic 6

Jyvsuq1dxkkdul1zavbz

Schematic 7

N59brcict6ck4bawxyqd

Schematic 8

Fmpzpajg5svklvno799b

Code

Code snippet #2

Plain text
// 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
}

Code snippet #5

Plain text
void setup() {
  // put your setup code here, to run once:
  aXr.begin(9600);
  aXr.println(" press 1 or 0..");
  pinMode(ledpin,OUTPUT);
}

Code snippet #6

Plain text
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 ...
}

Credits

amar axr

amar axr

12 projects • 9 followers
Electronics and Communication engineer

Comments