Tuesday, May 3, 2016

Arduino Servo Light Switch

This is a light switch servo that turn off the light temperately. Eventually I'll put a motion sensor that will turn the lights on when I walk in a room.



Here is the code:



#include <Servo.h>

Servo myservo; 

int switchpin = 13;
int val = 0;  

void setup()
{
  myservo.attach(9); 
}

void loop()
{
  val = digitalRead(switchpin);     

if (val == HIGH){
 myservo.write(70);
 delay(2000);
}
else myservo.write(1);
}

This is the video:


Saturday, February 6, 2016

Auto Off Circuit

This is a simple auto off circuit. The switch energizes the capacitor witch turns on the transistor. The 100k resistor drains the capacitor intern shutting down the transistor. On this circuit the transistor controls the relay.





My Auto Off Youtube Video


Monday, February 16, 2015

My First 3D Printer

Hi, for Christmas I bought the Printrbot Simple Metal. I've had the printer for 2 months now and it works awesome. I have no complaints so far other than it makes a lot of noise. So far I have used approximately used 1.5kg of plastic and had only plugged the hot end tip 3 times and that's all the problems I have had. The design softwere I use is TinkerCad and I'm on Thingiverse. HERE: My Thingivers Account


Here are my first 3 videos with this.

 







Wednesday, September 17, 2014

555 SMD Circuit

I've been buying SMD components from eBay and finely built my first SMD circuit. Its a simple blink-blink 555 timer circuit. You can get an app from the App Store on Apple called Electronic Toolbox Pro to figure out the numbers on the SMD resistors. Here is the schematic, pictures, and the video on my first SMD project.





Tuesday, September 2, 2014

Monostable & Astable 555 Timer Circuit

This circuit, schematic, and video stemmed from a video I made awhile ago. I needed to make a monostable circuit, so I looked back on that video and seen that I had no schematic. Here is the schematic for a monostable and astable circuit.


Monostable:


Astable:

Video:





Sunday, July 13, 2014

12'' Adjustable Wrench Hack

This is my first hack on this blog, its a tool I needed for my work. Its a 12'' adjustable wrench with a 1/2'' drive socket on the other end. I built it for tightening jack bolts on a tool to align metal for welding, the tool is called a dog and it is welded to your work and then you turn the jack bolt to align the two peaces of metal together. Sometimes  its to hard to turn the jack bolt with just an adjustable wrench so you need a cheater on the other end. The socket will let you put a 1/2'' beaker bar on the wrench.






Thursday, July 3, 2014

My First Arduino Robot

This is my first successful robot using an Arduino and a ping sensor. The forward and reverse circuit is the same as the forward and reverse circuit I have posted on this blog and YouTube. The motor is a set of motors i bought from Radio Shack. The big silver transistor is a NPN 2N3055 that controls the stearig motor. The code is at the bottom.








And here is the code.

// by BirdshoBrad @ YouTube & Blogger
const int pingPin = 7;
int pin1 = 10;
int pin2 = 11;
int pin3 = 12;



void setup() {

  Serial.begin(9600);  // initialize serial communication:
  pinMode(pin1, OUTPUT);
  pinMode(pin2, OUTPUT);
  pinMode(pin3, OUTPUT);
}

void loop()
{
  long duration;

  // The PING is triggered by a HIGH pulse of 5 microseconds.
  // Give a short LOW pulse beforehand to ensure a clean HIGH pulse:
  pinMode(pingPin, OUTPUT);
  digitalWrite(pingPin, LOW);
  delayMicroseconds(2);
  digitalWrite(pingPin, HIGH);
  delayMicroseconds(5);
  digitalWrite(pingPin, LOW);

  // The same pin is used to read the signal from the PING, a HIGH
  // pulse whose duration is the time (in microseconds) from the sending
  // of the ping to the reception of its echo off of an object.
  pinMode(pingPin, INPUT);
  duration = pulseIn(pingPin, HIGH);
Serial.println(duration);
delay(100);

if (duration > 2500) // the distance....about 8-10 inches
{digitalWrite(pin1, LOW);
digitalWrite(pin2, LOW);
digitalWrite(pin3, HIGH); //forward
}

else {
  digitalWrite(pin3, LOW); // forward
  delay(1500); // rest
  digitalWrite(pin1, HIGH); // turnig transistor
digitalWrite(pin2, HIGH); // reverse
delay(3000);
digitalWrite(pin3, LOW);
digitalWrite(pin1, LOW);
digitalWrite(pin2, LOW);
delay(2000); //rest
}
 
}