/robotix

This repository contains projects and templates related to robotics, Arduino, AVR and similar.

Primary LanguageC

ROBOTIX

This repository contains projects and templates related to robotics, Arduino, AVR and similar. Intention behind this repository is to provide beginners easier access to code and circuit diagrams.

Table of Contents

Introduction

You may have Arduino Board or may have not, but not having the board can't stop you from learnig cool stuff and making building future technology. You can use Tinkercad to simulate circuits. If you have board then you can download Arduino IDE or can use Arduino Online Editor.

Power Supply Pins

Type of Supply BJT FET Traditional Op-Amp
Positive supply voltage VCC / VBB VDD V+ VS+
Negative supply voltage VEE VSS V- VS-
Ground GND GND 0 0

Potentiometer

Potentiometer is three-terminal device which we will use in our projects to adjust voltage.

Terminals are when connected to Vcc and GND (in any manner), output at the wiper will change depending upon rotation of shaft.

ATtiny

void setup() 
{
  pinMode(0, OUTPUT); // set pin0 as output
}

void loop()
{
  digitalWrite(0, HIGH); 
  delay(1000); // Wait for 1 second
  digitalWrite(0, LOW);
  delay(1000); // Wait for 1 second
}

555 timer IC

Push-Button

int buttonState = 0;

void setup()
{
  pinMode(2, INPUT);
  pinMode(13, OUTPUT);
}

void loop()
{
  buttonState = digitalRead(2);
  if (buttonState == HIGH) {
    digitalWrite(13, HIGH);
  } 
  else {
    digitalWrite(13, LOW);
  }
  delay(10); 
}

References