Kayıtlar

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...

Communication between two MSP430 with using UART (MSP430 Application C ++)

Hello guys, This tutorial shows you how to communicate between two MSPs. Firstly,  one of them must be a master controller. And the other remaining one must be slaves. Basically , when you enter some input from master contoller, A signal comes from master, goes  into slave's input. This tutorial is show us when you press button from master controller, other controller led will light up.  Embed the codes into microcontroller separately. Play the code as you wish. Mail me if there are any problems with code. Mail: g.haddeler@gmail.com You all succeed! ------------------------- MASTER MSP430 CODES #include "msp430g2553.h" // When you press buton , data which is 0x01 , sends it to slave msp via UART . As long as the data coming from master msp is equal to '2' , the master msp's led lights up. // function prototypes void UARTInit(void); void main(void){ WDTCTL = WDTPW + WDTHOLD;// watchdog timer OFF //DCO clock freq settings BCSCTL1...