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.

BeginnerProtip3 hours12,172
A Complete Guide to Build your Own ATtiny85 Project PCB

Things used in this project

Story

Read more

Schematics

Schematic 1

Schematic 2

Schematic 3

Schematic 4

Schematic 5

Schematic 6

Schematic 7

Schematic 8

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 • 16 followers
Electronics and Communication engineer

Comments