“If you have an apple and I have an apple and we exchange these apples then you and I will still each have one apple. But if you have an idea and I have an idea and we exchange these ideas, then each of us will have two ideas.”

George Bernard Shaw

Sunday, September 8, 2013

Gizduino + Servo + LED

Hi,

This time we will be using the "mini" gizDuino. From the root word "mini" it is a small version of the more popular gizDuino X

Here are the parts needed :

gizduino Mini
LEDs
Connecting Wires (Connector)
L angled or any pin header 
Procedures :
For the servo Motor

1. Create a 3 pin connector (Red, Black, White)
2. Connect the Red to +5v and Black to Gnd 

3. Connect the white to Pin 9 (For Servo Signal).
Connect the White wire to (Pin 9)
4.Connect the other end of connector to connector of the servo.
Brown=Ground, Red = +5v, Orange= Signal(to White)




For LEDs.

1. Get two pieces of 2Pin Connector .
2. Connect the 2pin Connector to 2 LEDs
3. Connect the two ground of 2 LEDS.
4.Connect the other end to gizDuino Mini ,
   Black -> Ground
   Red -> Pin 13
   Green -> Pin 12
5. The prototype is now ready ^_^


Next, we will upload the source code to GizDuino hardware

This is the source code :

#include <Servo.h> 

Servo myservo;  // create servo object to control a servo 
                // a maximum of eight servo objects can be created 

int pos = 0;    // variable to store the servo position 
int led1 = 13; 
int led2 = 12; 
void setup() 

  myservo.attach(9);  // attaches the servo on pin 9 to the servo object 
   pinMode(led1, OUTPUT); 
      pinMode(led2, OUTPUT); 


void loop() 

  for(pos = 0; pos < 180; pos += 1)  // goes from 0 degrees to 180 degrees 
  {                                  // in steps of 1 degree 
    myservo.write(pos);              // tell servo to go to position in variable 'pos' 
    delay(15);                       // waits 15ms for the servo to reach the position 
    digitalWrite(led1, HIGH);
    digitalWrite(led2, LOW);
  } 
  for(pos = 180; pos>=1; pos-=1)     // goes from 180 degrees to 0 degrees 
  {                                
    myservo.write(pos);              // tell servo to go to position in variable 'pos' 
    delay(15);                       // waits 15ms for the servo to reach the position 
    digitalWrite(led1, LOW);
    digitalWrite(led2, HIGH);
  } 


code credits to : BARRAGAN <http://barraganstudio.com> With modification ;) 

Make sure you selected mini Gizduino .



Also , the USBAsp should be properly installed.

You can use this guide from E-gizmo :E-Gizmo Gizduino Guide

We will now upload the code...
1. Long Press the gizDuino Reset Button if the USBAsp is not detected.
2. From the File Menu, select Upload Using Programmer.


Here is the result :)





Wednesday, September 4, 2013

Coming Soon...

Coming Soon...

Tutorial : gizDuino Mini + Servo + LED + Buttons

gizDuino Mini / Servo / LED / Buttons

Thanks!


Sunday, February 3, 2013

First Encounter to gizDuino X

Hi,

I recently bought gizDuino Kit for one of my projects, the E-Gizmo gizDuino X . This somewhat different from what I usually used in prototype projects. I used to fabricate PCB for Microcontrollers (PICs) and build the main controller. This gizDuino X is basically pre-fabricated. It contains all the ports and feature that you will be using for simple to complex system. Well for the first time we will be programming basic code for this cool Kit from Egizmo . We will now try the very basic Blinking LED.

Parts needed are :
Egizmo gizDuino X Kit :  Egizmo gizDuino X

330 ohm Resistor


LED


Here is the instruction.


  1. Place the LED positive(Longer Terminal) to Port 12 of gizDuino X and the Resistor to (GND):


2. Connect the Resistor and Ground of LED (Shorter)


Now we are done with the Hardware , we will move to Software (The programming ).

1. Connect the gizDuino X
2. Open the Arduino Application :
3. Open the sample program (Blink) :

4. Edit  this code :
from :  int led = 13;
to :  int led = 12;

Because we will be using Port 12 .

5. After Editing click the Upload Button (arrow Left).


And now we are done on hardware and software, we will now test our Blinking LED.

Well, that's it for now, hope you got information and ideas and of course enjoy reading .)
Next entry , I will try to interface the gizDuino X to their GSM Kit .