Friday, 7 October 2016
Monday, 3 October 2016
RGB led+VB.net+microcontroller
10/03/2016
Its a very simple project.In it an RGB led glowing in color of the mouse
pointer background color.Here i am using VB.net, Texas instruments
stellaris launchpad.Energia is the the compiler i am using.The
programing is same as arduino Here i am giving the properties of each
buttons and boxes as pictures
Modules
1.Texas instruments stellaris launchpad
2. VB.net
Description
The Stellaris® LM4F120 LaunchPad Evaluation Board is a low-cost evaluation platform for ARM® Cortex™-M4F-based microcontrollers from Texas Instruments. The design of the Stellaris LaunchPad highlights the LM4F120H5QR microcontroller with a USB 2.0 device interface and hibernation module.
The EK-LM4F120XL also features programmable user buttons and an RGB LED for custom applications. The stackable headers of the Stellaris LM4F120 LaunchPad BoosterPack XL Interface make it easy and simple to expand the functionality of the Stellaris LaunchPad when interfacing to other peripherals with Stellaris BoosterPacks and MSP430™ BoosterPacks.
2. VB.net
Description
The Stellaris® LM4F120 LaunchPad Evaluation Board is a low-cost evaluation platform for ARM® Cortex™-M4F-based microcontrollers from Texas Instruments. The design of the Stellaris LaunchPad highlights the LM4F120H5QR microcontroller with a USB 2.0 device interface and hibernation module.
The EK-LM4F120XL also features programmable user buttons and an RGB LED for custom applications. The stackable headers of the Stellaris LM4F120 LaunchPad BoosterPack XL Interface make it easy and simple to expand the functionality of the Stellaris LaunchPad when interfacing to other peripherals with Stellaris BoosterPacks and MSP430™ BoosterPacks.
Energia
Energia is an open-source electronics prototyping platform started by Robert Wessels in January of 2012 with the goal to bring the Wiring and Arduino framework to the Texas Instruments MSP430 based LaunchPad. The Energia IDE is cross platform and supported on Mac OS, Windows, and Linux. Energia uses the mspgcc compiler by Peter Bigot and is based on the Wiring and Arduino framework. Energia includes an integrated development environment (IDE) that is based on Processing. Energia is also a portable framework/abstraction layer that can be used in other popular IDEs.
Program
Download program here
Friday, 2 September 2016
MEASURING INCLINATION ANGLE (ARDUION+MPU6050)
9/02/2016
Its a project to measure the angle of inclination in X,Y and Z axis.Here i use MPU6050 gyroscope for measurement.
Working of accelerometer
Working of Gyroscope
Circuit
vcc -- +5v
Gnd-- Gnd
SCL-- A5
SDA--A4
Gnd-- Gnd
SCL-- A5
SDA--A4
Program
#include<Wire.h>
const int MPU_addr=0x68;
int16_t axis_X,axis_Y,axis_Z;
int minVal=265;
int maxVal=402;
double x;
double y;
double z;
void setup(){
Wire.begin();
Wire.beginTransmission(MPU_addr);
Wire.write(0x6B);
Wire.write(0);
Wire.endTransmission(true);
Serial.begin(9600);
}
void loop(){
Wire.beginTransmission(MPU_addr);
Wire.write(0x3B);
Wire.endTransmission(false);
Wire.requestFrom(MPU_addr,14,true);
axis_X=Wire.read()<<8|Wire.read();
axis_Y=Wire.read()<<8|Wire.read();
axis_Z=Wire.read()<<8|Wire.read();
int xAng = map(axis_X,minVal,maxVal,-90,90);
int yAng = map(axis_Y,minVal,maxVal,-90,90);
int zAng = map(axis_Z,minVal,maxVal,-90,90);
x= RAD_TO_DEG * (atan2(-yAng, -zAng)+PI);
y= RAD_TO_DEG * (atan2(-xAng, -zAng)+PI);
z= RAD_TO_DEG * (atan2(-yAng, -xAng)+PI);
Serial.print("Angle of inclination in X axis = ");
Serial.print(x);
Serial.println((char)176);
/* Serial.print("Angle of inclination in Y axis= ");
Serial.print(y);
Serial.println((char)176);
Serial.print("Angle of inclination in Z axis= ");
Serial.print(z);
Serial.println((char)176);*/
Serial.println("-------------------------------------------");
delay(1000);
}
Wednesday, 3 August 2016
Circuit wizard simulation
8/03/2016
Circuit
Wizard is
a revolutionary new system that combines circuit
design, PCB design, simulation and CAD/CAM manufacture
in one
complete package.
By integrating the entire design
process, Circuit Wizard provides you with all the
tools necessary
to produce
an electronics project from start to finish – even
including on-screen testing of the PCB prior to construction!