Opportunity missed

Yesterday, the Malaysian team lost a chance to brag 3 points in the opening match against Singapore. However, we still get 1 point from a 0-0 draw on that match. On the 14th minute...

Manchester United continues their winning streak

Manchester United have achieved their victory once again to continue their winning streak. Just 8 minutes after the whistle went off...

Gunners Stunned

After having a disappointment for the last few matches, Arsenal are stunned again by the 14th-ranked Blackburn yesterday. This made Arsenal...

Mission 33 almost impossible

Selangor lost another game with T-Team on a slim 2-1 score after having a draw wtih Kuala Lumpur last Tuesday. On the 14th minute...

Showing posts with label Arduino. Show all posts

Arduino Motor Controlling without a H-Bridge

Related Posts Plugin for WordPress, Blogger...CLICK TITLE FOR MORE INFORMATION





Yet, another project from me. This time, it's about controlling a DC motor, BUT withOUT a H-bridge. It'll use the keyboard to control the motor.

For your reference:
'a' - FORWARD
's' - REVERSE
'd' - BRAKE*
'f'  - FREE-RUN*

*The difference between Brake and Free-run is that the Brake function shorts the motor to Ground and finally you'll get to brake. The Free-run function just disconnects the motor terminals with the Arduino and you'll still get to stop but it takes longer as its inertia is still present.

Arduino PIR Traffic Light

CLICK TITLE FOR MORE INFORMATION   



Wow! I will have traffic lights in my house now with wireless sensing capability with a PIR sensor. When the PIR doesn't sense anyone in front of it, it lights the red LED. If it does, the Arduino starts calculating the time once it detects something. If the time is below 5 seconds, the yellow LED will light. Once over 5 seconds, the red LED will light up. It will turn back to red once the PIR go back to LOW. 

Arduino 7 Segment LED Count-up with 74HC595

CLICK TITLE FOR MORE INFORMATION






Again, another Arduino project from me! But this time, I'll use a 7 segment LED ,a 74HC595 Shift Register and of course an Arduino Board. This project is designed to count-up relevant to the sketch. 

Arduino Clock

CLICK TITLE FOR MORE INFORMATION

Related Posts Plugin for WordPress, Blogger...After a long time, let me introduce another project of mine, and that is the Arduino Clock. This time it comes in 2 version, the 12 hour version and the 24 hour version (Version 2). I've used :

Arduino Uno
to function my project. Below would be the sketch for both versions :

Arduino Keyboard Piano

(CLICK TITLE FOR MORE)

Another project again. This time it'll be about music. For each button I press, it will play a note on the piezo speaker. I've used:
Arduino Uno
Piezo Speaker

Arduino Keyboard Password

(CLICK TITLE FOR MORE)


This time, I've made another project on my Arduino Uno. This time it's about customizable passwords that I can program on it. I've used a bare connection to the:
Arduino Uno

to make my project work again. Below would be the sketch for this project :

Arduino Remote Decoder LED Trigger

This afternoon, I've made a project on my Arduino Uno. It is programmed to light a LED for each button I pressed on a remote control. I've used :
Arduino Uno
IR Receiver

10K Ohm Resistors
Phillips Remote Control
to make my project work! Below is the sketch for my project:

IRremote library download link >>>>>> HERE


#include <IRremote.h>                // use the library
int receiver = 8;                              // pin 1 of IR receiver to Arduino digital pin 8
IRrecv irrecv(receiver);                 // create instance of 'irrecv'
decode_results results;
int led1=2;
int led2=3;
int led3=4;


void setup()
{
  Serial.begin(9600);                    // for serial monitor output
  irrecv.enableIRIn();                    // Start the receiver
  pinMode(led1,OUTPUT);
  pinMode(led2,OUTPUT);
  pinMode(led3,OUTPUT);
}
void loop()
{
  if (irrecv.decode(&results))       // have we received an IR signal?
  {
    Serial.println(results.value, HEX);  // display it on serial monitor in hexadecimal
    irrecv.resume();                                 // receive the next value
  }            // Your loop can do other things while waiting for an IR command
  //below is triggering mode
  //0x???? ????is the HEX code detected, must add 0x to trigger something
  switch(results.value){
    case 0x458:                   //1st push (UP Button Phillips)
    digitalWrite(led1,HIGH);
    break;
    case 0x10458:              //2nd push
    digitalWrite(led1,HIGH);
    break;
    case 0x45A:                  //1st push (LEFT Button Phillips)
    digitalWrite(led2,HIGH);
    break;
    case 0x1045A:             //2nd push
    digitalWrite(led2,HIGH);
    break;
    case 0x45B:                  //1st push (RIGHT Button Phillips)
    digitalWrite(led3,HIGH);
    break;
    case 0x1045B:             //2nd push
    digitalWrite(led3,HIGH);
    break;
    case 0x45C:                 //1st push (OK Button Phillips)
    digitalWrite(led1,LOW);
    digitalWrite(led2,LOW);  
    digitalWrite(led3,LOW);
    break;
    case 0x1045C:            //2nd push
    digitalWrite(led1,LOW);
    digitalWrite(led2,LOW);  
    digitalWrite(led3,LOW);
    break;
    case 0x459:                 //1st push (DOWN Button Phillips)
    digitalWrite(led1,HIGH);
    digitalWrite(led2,HIGH);  
    digitalWrite(led3,HIGH);
    break;
    case 0x10459:            //2nd push
    digitalWrite(led1,HIGH);
    digitalWrite(led2,HIGH);  
    digitalWrite(led3,HIGH);
    break;
  }
}

Wanna know how it works? Watch the video below!!!! Enjoy!


by Weng Fei

Popular Posts