Posts

Showing posts with the label Arduino

Bluetooth interfacing with arduino

Image
Bluetooth interfacing with Arduino Components require: Arduino uno HC06/HC05 Connecting cables Red LED 1k Resistor Example projects: ROBOT controlling with app Home automation with app 2 arduino communication RGB color change of LED Connections: VCC=5v GND=GND RX=Tx Tx=Rx key=keep Open State=keep Open download app here.. To learn how to interface led with Arduino LEARN LED INTERFACING WITH ARDUINO Arduino Code: /* It's a simple sketch which waits for a character on serial and in case of a desirable character, it turns an LED on/off. Possible string values: a (to turn the LED on) b (tor turn the LED off) */ char junk; String inputString=""; void setup() // run once, when the sketch starts { Serial.begin(9600); // set the baud rate to 9600, same should be of your Serial Monitor pinMode(13, OUTPUT); } void loop() { if(Serial.available()){ while(Serial.available()) { c...

GPS INTERFACING WITH ARDUINO

Connect GPS pin to arduino as follow: TX of GPS  -->   Digital Pin 1 RX of GPS  -->   Digital Pin 0 VCC of GPS  -->   +5V GND of GPS  -->   GND --------------------------------------------------------------------------------- Program:[usefull with arduino uno,nano,mini] --------------------------------------------------------------------------------- #include <Roshan.h> roshan gps(9600); void setup() {    gps.begingps();   Serial.println("roshan is included"); } void loop() {    String rawgps= "";   rawgps= gps.getgps();   Serial.println(gps.getgps());  Serial.println("lattitude="+gps.getlattitude(a));  Serial.println("longitude="+gps.getlongitude(a));  delay(1000); } --------------------------------------------------------------------------------- NOTE:- YOU WILL NEED HERE LIBRARY FOR GPS   Here I have developed my own ...