Sunday, 1 June 2014

so you are a final year student and you have no idea how to get the components for your project... from sensors to modules, processors...just send us your list...we've got your back...it's soooooo pocket friendly you won't feel the weight... hub360?....everyone's happy THINK+CREATE+REPEAT

Saturday, 10 May 2014

REMOTE CONTROL


REMEMBER WHAT IT WAS LIKE WHEN ALL WE HAD WERE BLACK AND WHITE TELEVISION SETS? AND THEN CAME THE BIG BANG: COLOURED SCREENS!!! WITH BETTER VISUAL DISPLAYS, AND THE COMFORT OF CONTROLLING IT FROM YOUR SEAT WITH THE REMOTE CONTROL. 

 BUT HAVE YOU EVER WONDERED HOW THIS REMOTE CONTROL WORKS?

HAS IT EVER OCCURRED TO YOU THAT YOU CAN HAVE YOUR OWN HOME-MADE REMOTE CONTROLLED DEVICE?

THIS PROJECT TRIES TO ANSWER SOME OF THESE

SO HOW DOES IT WORK?
THE SIMPLE LOGIC IS COMMUNICATION BETWEEN TWO DEVICES, A TRANSMITTER AND A RECEIVER, AND IN THIS CASE, THE REMOTE AND SENSOR RESPECTIVELY VIA INFRA-RED.

WHAT DO WE NEED TO MAKE THIS DREAM A REALITY?
  • ARDUINO BOARD
  • BREADBOARD
  • LEDs (RED, YELLOW AND GREEN)
  • 220 OHM RESISTORS X3 (ONE FOR EACH LED)
  • TSOP 1838 SENSOR
  • REMOTE CONTROL
  • JUMPER WIRES
     PLEASE NOTE
  • YOU HAVE TO MAKE THE FOLLOWING CONNECTIONS
        
        VCC TO 5V OF THE ARDUINO
        GND TO GND OF THE ARDUINO
        OUT TO PIN 9 OF THE ARDUINO
     
  • FOR THIS TOPIC, WE HAVE DECIDED TO USE A SIMPLE SYSTEM YOU SHOULD BE QUITE FAMILIAR WITH NOW

SEE WHAT THE TSOP 1838 LOOKS LIKE






AND THE REMOTE CONTROL


 

WHAT ABOUT THE CODES?

 #include <IRremote.h>
int receiver = 9;
int led1 = 4;
int led2 = 5;
int led3 = 6;
IRrecv irrecv(receiver);
decode_results results;
void setup()
{
  irrecv.enableIRIn();
  pinMode(led1,OUTPUT);
  pinMode(led2,OUTPUT);
  pinMode(led3,OUTPUT);
}
void loop()
{
  if (irrecv.decode(&results)) {
    long decCode = results.value;
    switch(decCode){
      case 16724175:
digitalWrite(led1,HIGH);
digitalWrite(led3,LOW);
digitalWrite(led2,LOW);
break;
case 16718055:
digitalWrite(led2,HIGH);
digitalWrite(led1,LOW);
digitalWrite(led3,LOW);
break;
case 16743045:
digitalWrite(led3,HIGH);
digitalWrite(led2,LOW);
digitalWrite(led1,LOW);
break;
    }
    irrecv.resume();
  }
}

LIKE WE SAID

THREE LEDs USED WITH A REMOTE CONTROL




 PLEASE DON'T FORGET WE WILL LIKE TO HEAR YOUR COMMENTS AND VIEWS, SO PLEASE LET US KNOW... THANKS A LOT
 
THINK+CREATE+REPEAT

THE ULTRA SONIC SENSOR

 
THIS IS ONE COOL WAY TO TRY OUT SOMETHING WE'VE ALL BEEN DOING SINCE GRADE ONE...
SO THE BIG QUESTION IS "WHAT IS AN ULTRA-SONIC SENSOR...WHAT DOES IT DO?" 

WELL AMONGST OTHER THINGS, IT CAN BE USED TO MEASURE DISTANCE BETWEEN OBJECTS.IT WORKS BY SENDING A SIGNAL FROM ONE OF THE OUTPUTS, THE TRANSMITTER (SEEN HERE ON THE LEFT, MARKED 'T'), THIS SIGNAL, DEPENDING ON ITS STRENGTH, HITS A SOLID OBJECT AND IS REFLECTED BACK, RECEIVED BY THE OTHER OUTPUT (RECEIVER-'R'), AND THE DISTANCE IS CALCULATED
  
 MATERIALS NEEDED
  • ARDUINO BOARD AND CABLE
  • BREAD BOARD
  • 220 OHM RESISTOR FOR THE LED
  • ULTRA-SONIC SENSOR
  • JUMPER WIRE 
  • LED
 THIS IS THE ULTRA SONIC SENSOR (the pins from left to right are VCC, TRIG, ECHO and GND)


 
NOTE: CONNECT YOUR CIRCUIT AS FOLLOWS
  • VCC TO ARDUINO 5V
  • GND TO ARDUINO GND
  • ECHO TO ARDUINO PIN 7
  • TRIG TO ARDUINO PIN 8
  • LED TO ARDUINO PIN 9


 AND THE CODE (QUITE LENGTHY, OOOPS):



int echopin =7;
int trigpin =8;
int led = 9;
int maxdistance = 200;
int mindistance = 0;
long duration, distance;
void setup(){
  Serial.begin(9600);
  pinMode(trigpin,OUTPUT);
  pinMode(echopin,INPUT);
  pinMode(led,OUTPUT);
}
void loop(){
  digitalWrite(trigpin,LOW);
  delayMicroseconds(2);
  digitalWrite(trigpin,HIGH);
  delayMicroseconds(10);
  digitalWrite(trigpin,LOW);
  duration = pulseIn(echopin,HIGH);
  distance = duration/58.2;
if (distance >= maxdistance||distance <= mindistance){
    Serial.println("OUT OF RANGE");
    digitalWrite(led,HIGH);
  }
  else{
    Serial.println(distance);
    digitalWrite(led,LOW);
  }
  delay(50);
}



 SO WHAT DO YOU THINK?

THINK+CREATE+REPEAT

Tuesday, 6 May 2014

TACT SWITCH

 the tact switch functions like a normal switch that can be used to control a circuit

WHAT WE'LL NEED

  • ARDUINO BOARD & CABLE
  • BREADBOARD
  • TACT SWITCH
  • LED
  • 10K RESISTOR
  • JUMPER WIRE


 THE CODE SHOULD LOOK LIKE THIS

/* using tact switch to switch an led ON/OFF connected to pin 3
of the arduino...
AUTHOR: ANIEROBI PETER
DATE: 4/23/2014
www.hub360.blogspot.com, www.facebook.com@hub360
*/
int switch =4; // tact switch connected to analog pin 4
int led = 3;// led connected to pin 3
int x;
void setup(){
  pinMode(switch,INPUT); //set tact as input
  pinMode(led,OUTPUT);  //set led as output
}
void loop(){
  x= digitalRead(switch); //read to know if switch is detected or not
  digitalWrite(led,x);  //ON or OFF an LED according to detection
}

 







 
TACT SWITCH by hub360





 we sincerely hope you find this amazing


think...create...repeat

Thursday, 1 May 2014


SO WHAT EXACTLY IS A TILT SENSOR...WHAT DOES IT DO?
simply put, it is an electronic device, quite small (about the size of an LED); it acts like an ordinary switch, the switch closes when the sensor is tilted and opens when brought to its original position.

and amongst other things, a tilt sensor can be used to determine angular deviation (from the normal).


SO WHAT COMPONENTS DO WE NEED FOR THIS CONNECTION?
  •  ARDUINO BOARD AND CABLE
  • BREADBOARD
  • TILT SENSOR
  • LED
  • 220 OHM RESISTOR (FOR THE LED)
  • 10K RESISTOR
  • JUMPER WIRE

SEE WHAT THE SKETCH LOOKS LIKE


/* using tilt sensor to switch an led ON/OFF connected to pin 3
of the arduino...
AUTHOR: ANIEROBI PETER
DATE: 4/23/2014
www.hub360.blogspot.com, www.facebook.com/hub360circuits
*/
int tilt =4; // tilt sensor connected to digital pin 4
int led = 3;// led connected to pin 3
int x;
void setup(){
  pinMode(tilt,INPUT); //set tilt as input
  pinMode(led,OUTPUT);  //set led as output
}
void loop(){
  x= digitalRead(tilt); //read to know if tilt is closed
  digitalWrite(led,x);  //ON or OFF an LED according to detection
}



 AND FOR THE CONNECTION






 THINK...CREATE...REPEAT

Wednesday, 23 April 2014

THIS IS REEEEEEAAAAAALLLLLLYY CHEAP




THIS IS AWESOME







 so you're watching that sci-fi movie and you say "hey dude, *****wood's at it again with all their studio tricks...HOW THE **** DID A LIGHT COME ON WHEN THIS DUDE WALKED BY?"
well, believe it, it's no trick! 
why? 'cos that's what you are about to see... READY?

    WHAT YOU NEED TO PERFECT YOUR OWN *****WOOD TRICK?


  • your arduino board+cable      
  •  breadboard
  •  10k resistor
  •  PIR motion sensor
  • jumper wire

   HERE IS THE SKETCH


/* using pir motion sensor to off and ON an led connected to pin 3 of the arduino...
AUTHOR: ANIEROBI PETER
DATE: 4/23/2014
www.hub360.blogspot.com, www.facebook.com@hub360
*/
int motion =4; // pir motion sensor connected to analog pin 4
int led = 3;// led connected to pin 3
int x;
void setup(){
  pinMode(motion,INPUT); //set pir as input
  pinMode(led,OUTPUT);  //set led as output
}
void loop(){
  x= digitalRead(motion); //read to know if motion is detected or not
  digitalWrite(led,x);  //ON or OFF an LED according to detection
}





NOTE: 
  • WHEN CONNECTING YOUR COMPONENTS, THE VCC OF THE PIR IS CONNECTED TO 5V PIN ON THE ARDUINO BOARD
  • THE GROUND OF THE PIR IS CONNECTED TO THE GROUND PIN OF THE ARDUINO
  • THE OUT OF THE PIR IS CONNECTED TO PIN4MOF THE ARDUINO
  • THE ANODE (POSITIVE LEG) OF THE LED IS CONNECTED THROUGH A 220OHM RESISTOR TO PIN3 OF THE ARDUINO
  • THE CATHODE (NEGATIVE) OF THE LED IS CONNECTED TO THE GROUND OF THE ARDUINO

    


A. LED (ON THE BREAD BOARD) IS OFF DUE TO ABSENCE OF MOVING OBJECT





B. LED (ON THE BREAD BOARD) COMES ON AS IT SENSES MOVING OBJECT

 
don't forget...
think...create...repeat
team hub360

PROJECT 3

hello there. how are you finding our classes? interesting we presume....

have you ever wondered about the possibility of an
AUTOMATIC LIGHTING SYSTEM? the ability to lighten up your home via
a trigger (not a conventional switch)?

ever went out and forgot to turn off those lights? (ooops, more bills)

anyway, for today's class, we will be addressing just that: the ability to
control your lighting system with a light-dependent resistor (LDR)

YEEEEAAAAHHHHHHHHHH!!!!

 "how does it work"? quite simple
 the LDR is sensitive to light and comes on when it senses light, and turns
 off automatically when there is darkness... "THIS IS AWESOME"

 SO WHAT DO WE NEED?
   
    * arduino board+cable
    * breadboard
    * 220 ohm resistor
    * 10k resistor
    * LED
    * light-dependent resistor
    * jumper wire

think...create...repeat

 HERE'S THE SKETCH

 /* using an ldr to off and ON an led connected to pin 3 of the arduino...
AUTHOR: ANIEROBI PETER
DATE: 4/23/2014
www.hub360.blogspot.com
*/
int ldr =0; //ldr connected to analog pin 0
int led = 3;// led connected to pin 3
int x;
void setup(){
  pinMode(ldr,INPUT);
  pinMode(led,OUTPUT);
}
void loop(){
  x= analogRead(ldr); // read ldr and store in varible x
  if(x<100)
  {
    digitalWrite(led,HIGH); // turn on led when ldr is covered
  }
  else if(x>100)
  {
    digitalWrite(led,LOW);//off led when ldr is exposed to light
  }
}


THIS IS WHAT YOUR CONNECTION SHOULD LOOK LIKE




         VOILA!!!

BE SEEING YOU SOON. TILL THEN,
     THINK...CREATE...REPEAT

      

Friday, 18 April 2014

PROJECT 2

hello there,
we trust you found the previous project quite exciting.
our today's project is something we always come across, but we probably don't give it a second thought because we are somewhat quite "familiar" with it...as simple as it is, it saves countless number of lives, money and reduces accidents each year. you've probably guessed it by now:

                                              "A TRAFFIC LIGHT"
so what do we need?

                           MATERIALS NEEDED
  1. (as usual) a computer........................................................check
  2. your arduino (UNO) board and cable................................check
  3. breadboard........................................................................check
  4. 3 LED (red, yellow and green)...........................................check
  5. 3x220 Ohm resistor (you'll need one for each LED)..........check
  6. jumper wire.........................................................................check
                              CONNECTION?






                                                                               SKETCH?





THERE WE GO....REMEMBER TO VERIFY AND UPLOAD YOUR SKETCH TO YOUR BOARD TO SEE IT WORK, AND DON'T FORGET TO COME BACK FOR MORE

and finally, we'll like to hear from you, so your comments and suggestions are always WELCOME, till then,


think...create...repeat
TEAM hub360 

Thursday, 17 April 2014

PROJECT 1

Hello there, it's our priviledge to bring you this tutorial project, 
        #PROJECT 1  
for this project, we will be using the arduino (UNO) board to give a very simple demonstration: A BLINKING LED

MATERIALS/COMPONENTS NEEDED
  1. A LAPTOP/DESKTOP (ALWAYS NEEDED)
  2. YOUR ARDUINO BOARD AND CABLE
  3.  BREADBOARD
  4. LED (ANY COLOR OF YOUR CHOICE)
  5. A 220 OHM RESISTOR
  6. JUMPER WIRE/ CONNECTING WIRE

MAKE THE CONNECTION AS INDICATED



THE SKETCH (ENLARGED VERSION ON THE RIGHT)


 
THERE YOU GO!

and please don't forget to always check back for more...till then,


 think...create...repeat

Tuesday, 8 April 2014

ATTENTION!!!

Greetings to you all,
we are pleased to formally inform you that we  have changed the name of this blog from  PETER ANIEROBI TUTORIALS to circuitplus HUB360.
we will be serving you better. keep following us, and don't forget to give us your feedback. Thanks a lot,
Yours,
TEAM HUB360

Wednesday, 29 January 2014

ARDUINO INTRO

Since the beginning of my adventure in circuit designs, i have always wanted to design wonderful and interesting projects that can easily interface with my computer, mobile phone, etc.
e.g like designing a full automated house that i can control with my laptop anywhere in the world, designing a rain detector that takes in temperature values from sensors and sent to my laptop for analysis.
during my search, i discovered the arduino board, this board turned out to be better than what i expected, as it not only makes circuit designs easy and faster, itself is also easy to program by beginners.

WHAT IS ARDUINO

An Arduino is an open-source microcontroller development board. In plain English, you can use the Arduino to read sensors and control things like motors and lights. This allows you to upload programs to this board which can then interact with things in the real world. With this, you can make devices which respond and react to the world at large.

For instance, you can read a humidity sensor connected to a potted plant and turn on an automatic watering system if it gets too dry. Or, you can make a stand-alone chat server which is plugged into your internet router. Or, you can have it tweet every time your lecturer enters the class. Or, you can have it start warming your food when your alarm goes off in the morning.

Basically, if there is something that is in any way controlled by electricity, the Arduino can interface with it in some manner. And even if it is not controlled by electricity, you can probably still use things which are (like motors and electromagnets), to interface with it.

The biggest advantage of the Arduino over other microcontroller development platforms is the ease of use in
which non-“techie” people can pick up the basics and create their own projects in a relatively short amount of time.
Artists in particular seem to find it the ideal way to create interactive works of art quickly and without specialist knowledge of electronics.

The possibilities of the Arduino are almost limitless. As such, there is no way that one single tutorial can cover everything you might ever need to know. That said, I've done my best to give a basic overview of the fundamental skills and knowledge that you need to get your Arduino up and running. If nothing more, this should function as a springboard into further experimentation and learning 

ARDUINO UNO FEATURES


some people think of the entire Arduino board as a microcontroller, but this is inaccurate. The Arduino board actually is a specially designed circuit board for programming and prototyping with Atmel microcontrollers.

The nice thing about the Arduino board is that it is relatively cheap, plugs straight into a computer's USB port, and it is dead-simple to setup and use (compared to other development boards).

Some of the key features of the Arduino Uno include:

  • An open source design. The advantage of it being open source is that it has a large community of people using and troubleshooting it. This makes it easy to find someone to help you debug your projects.
     
  • An easy USB interface . The chip on the board plugs straight into your USB port and registers on your computer as a virtual serial port. This allows you to interface with it as through it were a serial device. The benefit of this setup is that serial communication is an extremely easy (and time-tested) protocol, and USB makes connecting it to modern computers really convenient.
     
  • Very convenient power management and built-in voltage regulation. You can connect an external power source of up to 12v and it will regulate it to both 5v and 3.3v. It also can be powered directly off of a USB port without any external power.
     
  • An easy-to-find, and dirt cheap, microcontroller "brain." The ATmega328 chip retails for about $2.88 on Digikey. It has countless number of nice hardware features like timers, PWM pins, external and internal interrupts, and multiple sleep modes. Check out the official datasheet for more details.
     
  • A 16mhz clock. This makes it not the speediest microcontroller around, but fast enough for most applications.
  • 32 KB of flash memory for storing your code.
     
  • 13 digital pins and 6 analog pins. These pins allow you to connect external hardware to your Arduino. These pins are key for extending the computing capability of the Arduino into the real world. Simply plug your devices and sensors into the sockets that correspond to each of these pins and you are good to go.
     
  • An ICSP connector for bypassing the USB port and interfacing the Arduino directly as a serial device. This port is necessary to re-bootload your chip if it corrupts and can no longer talk to your computer.
     
  • An on-board LED attached to digital pin 13 for fast an easy debugging of code.
     
  • And last, but not least, a button to reset the program on the chip.

For a complete rundown of all the Arduino Uno has to offer, be sure to check out the official Arduino page.
 

Friday, 10 January 2014

Welcome

It is my honour to formally welcome you to this blog.  This is a medium for interested persons to learn the basics of electrical/electronics such as circuit design, micro-controllers (arduino tutorials), etc. Please feel free to contribute...your feedback is as  important as each lecture,so please don't be silent.
Thanks,
Yours, 
Anierobi Peter