Skip to main content

Posts

Showing posts from August, 2017

Simple Dark Sensor Circuit

This circuit shows the application of a transistor as a switch. (DARK SENSOR)

1. Circuit Diagram
2. Breadboard Schematic




3. Parts Needed- A breadboardAn NPN transistor-eg. BC547, BC557 or 2N222An LDRA 220 ohm resistor (Red-Red-Brown) or 330 ohm.A 220k ohm resistor (Red-Red-Yellow) or 200 ohm.Any colour LEDA 9V BatteryA 9V Battery clipAll of these components can be found on amazon at a very reasonable rate- http://amzn.to/2vkDGK7 4. YouTube video-
The circuit works on a simple principle, that current always takes the path of least resistance. While using the transistor as a switch when the base of the transistor receives adequate current, it allows current to exit from the collector. When it is dark, the resistance of the LDR becomes high enough to not allow any current to simply bypass the transistor and complete the circuit. So current then encounters an LED in this path and lights it up. When there is enough light, the transistor is bypassed and no LED is encountered on the way.
Goodluck with…

How to program an ATTINY 85/45 using an Arduino Uno 2017

I bought an Attiny85 IC recently, after watching an amazing tutorial on how to use them by GreatScott on Youtube. However, I had a hard time trying to get a simple blink code to run on it. Finally after a lot (A LOT!) of Googleing, this method is the only one that worked for me. So I decided to make a simple precise tutorial which anyone would be able to understand. Here it is

Things you will need-
1. An attiny85 or attiny45 or whichever attiny
2. An Arduino Uno
3. Some wires (ofcourse)
4. A 10uF capacitor
5. A breadboard

First things first, for this method you will require the Arduino IDE version above 1.6.3. I recommend using 1.8.3. Download it from the link below-
https://www.arduino.cc/en/Main/OldSoftwareReleases#00xx

Once you've installed it, open the Preferences dialogue from the file menu.
And in the 'Additional Boards Manager URLs:' Simply Copy and paste this link-

http://www.leonardomiliani.com/repository/package_leonardomiliani.com_index.json
Then click OK twice and then ope…

TV Remote Controlled Servo Motor-Using Arduino!

Greetings!
We use our TV remotes to control the functions of the TV's, but when the TV is not in use, they're absolutely useless. Today, we are going to learn how to add more functionality to ordinary IR based remotes, in this one we shall see how to control servo motors. There are so many (SO MANY) different applications of this project that one can think of. Using the following tutorial, you can make one yourself!

1. Watch the video tutorial-


2. Things you will need-

Note that you may use a different IR receiver other than TSOP1738, if it isn't available. Usually you can find this on websites like amazon and ebay.
3. The circuit diagram!

4. The IR Remote Library http://z3t0.github.io/Arduino-IRremote/
5. The Arduino Code- Just copy paste this code into your Arduino IDE

// Written by Siddharth Kothari, curiousmotor.com// Enjoy your journey Exploring Arduino!#include <IRremote.h>#include <IRremoteInt.h>#include <Servo.h>intRECV_PIN=11;//IR receiver pinintgndIR=10;/…