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.
- Introduction
- Power Supply Pins
- Potentiometer
- ATtiny
- 555 timer IC
- Push-Button
- ATmega 2560
- 7-Segment Display
- Motor-Drivers
- Bitwise Operators
- Clipper Circuits
- BJT
- Op-Amp
- References
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.
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 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.
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
}
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);
}