Kayıtlar

C Application (File Operations )

This tutorial shows us that  how to read from txt file , storing  in the array structer and searching from that array structer.For this tutorial you need to create a txt file named phonebook and write  name , surname and number like this . Garen    Haddeler   87143232141 Ali   Emre 231241421 Name    Surname    23123124124 ..................................................... You all succed!! mail me if you have question or suggestion mail:g.haddeler@gmail.com C  Codes : ---------------------------------- #include <stdio.h> #include <string.h> #include <conio.h> // Program creates an array  structer and stores the chars that taken from phonebook.txt file . //It has two other function that searching name and last name individually  struct  phonebook{   char name[16];   char surname[21];   char num[11]; }; int name_searching(char *FirstName, int size ); ...

Gyro Stabilizer with Arduino and 3-Axis Accelometers

Resim
There should be 3 axis accelometres and gyro sensor for gyro stabilizer . But  scarcity of several equipment, I only use 3 axis accelometers . Sorry for my bad english. You all succes guys! Materials : ​ 3x servo motors 1x gyro stand( you can print or build it ) 1x arduino  1xarduino sheild 1x 3-axis accelometers I use  2 servo's pins from dc motor sheild's  and one servo pins from arduino.Because dc motor sheild can only  control  two servo motors. Here you can see the basic scheme of gyro-stibilizer. Painted blues are gyro stand Painted reds are servos. Servo 1 and Servo 2  has  reverse  rotation each others.Servo 1 is connected directly to the arduino's pins. Servo 2 and Servo 3 is connected via dc motor sheild.  Arduino codes:  #include <Servo.h>  Servo servo1;  Servo servo2; Servo servo3; #define MAXx 180 #define MINx 0  #define MAXy 170  #def...