loading
11 CommentsManila,Philippines
living my life to it`s fullest :)
  • frankdark commented on diy_bloke's instructable Mini weather station with Attiny8510 months ago
    Mini weather station with Attiny85

    nope.i`ve got the error on my transmitter side.i`m using ATtiny 85 in compiling this one and it says that "TWBR = ((F_CPU / frequency) - 16) / 2;^exit status 1Error compiling.and when i`m declaring it still the same scenario :) hahha what should i do?

    GoodDay :D need help here!!:) i can`t upload my program to my ATtiny85 here is the error"TWBR = ((F_CPU / frequency) - 16) / 2; ^exit status 1Error compiling."TIA for the help :)

    #include <Wire.h>#include <VirtualWire.h>byte Version[3];int8_t x_data;int8_t y_data;int8_t z_data;int a;byte range=0x00;float divi=16;float x,y,z;char *controller;void setup() {vw_set_ptt_inverted(true); vw_set_tx_pin(0); vw_setup(4000); Wire.begin(); Wire.beginTransmission(0x0A); // address of the accelerometer // range settings Wire.write(0x22); //register address Wire.write(0x01); //can be set at"0x00""0x01""0x02""0x03", refer to Datashhet on wiki // low pass filter Wire.write(0x20); //register address Wire.write(0x05); //can be set at"0x05""0x04"......"0x01""0x00", refer to Datashhet on wiki Wire.endTransmission();} void AccelerometerInit() { Wire.beginTransmission(0x0A); // ...see more »#include <Wire.h>#include <VirtualWire.h>byte Version[3];int8_t x_data;int8_t y_data;int8_t z_data;int a;byte range=0x00;float divi=16;float x,y,z;char *controller;void setup() {vw_set_ptt_inverted(true); vw_set_tx_pin(0); vw_setup(4000); Wire.begin(); Wire.beginTransmission(0x0A); // address of the accelerometer // range settings Wire.write(0x22); //register address Wire.write(0x01); //can be set at"0x00""0x01""0x02""0x03", refer to Datashhet on wiki // low pass filter Wire.write(0x20); //register address Wire.write(0x05); //can be set at"0x05""0x04"......"0x01""0x00", refer to Datashhet on wiki Wire.endTransmission();} void AccelerometerInit() { Wire.beginTransmission(0x0A); // address of the accelerometer // reset the accelerometer Wire.write(0x04); // Y data Wire.endTransmission(); Wire.requestFrom(0x0A,1); // request 6 bytes from slave device #2 while(Wire.available()) // slave may send less than requested { Version[0] = Wire.read(); // receive a byte as characte } x_data=(int8_t)Version[0]>>2; Wire.beginTransmission(0x0A); // address of the accelerometer // reset the accelerometer Wire.write(0x06); // Y data Wire.endTransmission(); Wire.requestFrom(0x0A,1); // request 6 bytes from slave device #2 while(Wire.available()) // slave may send less than requested { Version[1] = Wire.read(); // receive a byte as characte } y_data=(int8_t)Version[1]>>2; Wire.beginTransmission(0x0A); // address of the accelerometer // reset the accelerometer Wire.write(0x08); // Y data Wire.endTransmission(); Wire.requestFrom(0x0A,1); // request 6 bytes from slave device #2 while(Wire.available()) // slave may send less than requested { Version[2] = Wire.read(); // receive a byte as characte } z_data=(int8_t)Version[2]>>2; switch (a){ case 0: //Turn ON PIN 8 if (x>=0.13&&y>=0.31) { controller="8"; vw_send((uint8_t *)controller, strlen(controller)); vw_wait_tx(); } case 1: //Turn OFF PIN 8 if (x>=0.13&&y<=-0.31) { controller="a"; vw_send((uint8_t *)controller, strlen(controller)); vw_wait_tx(); } case 2: //Turn ON PIN 9 if (x<=-0.13&&y>=0.31) { controller="9"; vw_send((uint8_t *)controller, strlen(controller)); vw_wait_tx(); } case 3: //Turn OFF PIN 9 if (x<=-0.13&&y<=-0.31) { controller="b"; vw_send((uint8_t *)controller, strlen(controller)); vw_wait_tx(); } case 4: //Turn ON PIN 10 if (x==0.00&&y>=0.31) { controller="1"; vw_send((uint8_t *)controller, strlen(controller)); vw_wait_tx(); } case 5: //Turn OFF PIN 10 if (x==0.00&&y<=-0.31) { controller="c"; vw_send((uint8_t *)controller, strlen(controller)); vw_wait_tx(); } case 6: //Turn ON PIN 11 if (x<=-0.37&&y<=0.40&&z<=-0.06) { controller="2"; vw_send((uint8_t *)controller, strlen(controller)); vw_wait_tx(); } case 7: //Turn OFF PIN 11 if (x>=-0.37&&y<=0.40&&z<=-0.06) { controller="d"; vw_send((uint8_t *)controller, strlen(controller)); vw_wait_tx(); } default: break; }} void loop() { switch(range) //change the data dealing method based on the range u've set { case 0x00:divi=16; break; case 0x01:divi=8; break; case 0x02:divi=4; break; case 0x03:divi=2; break; default: while(1); } AccelerometerInit(); delay(1000);}this is my codes on my transmitter :D

    View Instructable »
  • MPU6050: Arduino 6 Axis Accelerometer + Gyro - GY 521 Test & 3D Simulation

    thanks for this advice :) i must think that way, engineering thinking hahaha

    View Instructable »
  • MPU6050: Arduino 6 Axis Accelerometer + Gyro - GY 521 Test & 3D Simulation

    hi what application i can use to see if my accelerometer is working properly?BMA220 triaxial accelerometer

    View Instructable »
  • Interfacing Accelerometer ADXL 335 With Mediatek LinkIt One Board

    can i use it on the arduino Uno??:) and where can i see the output??i mean that COM6 GUI??

    what is serial monitor? :) sorry 1st timer on arduino.

    View Instructable »
  • Use an Accelerometer and Gyroscope with Arduino

    GoodDayi find this one ralated to my ideal project..:) i`m using BMA220 triaxial accelerometerand i can`t make it work.my accelerometer doesn't have x,y & z pins, nor,it have SDA and SCL pins.how can i get the data from those pins :DTIA for the Helps..

    View Instructable »
  • frankdark commented on bergerab's instructable Backpack Anti-Theft Alarm11 months ago
    Backpack Anti-Theft Alarm

    Good Day.just want to ask if Atiny85 can read the data of Accelerometerand transfer it to 433Mhz transmitter so the transmitter would send it to the 433Mhz receiver on the other end?:) Thanks for the future Help..

    View Instructable »
  • RF 315/433 MHz Transmitter-receiver Module and Arduino

    Hi I`m a Engineering Student fro Philippines i`m looking for a shop where i can buy this 433Mhz Transmitter and receiver:) hope you can give me somethank you in advance

    View Instructable »
  • RC Multi Channel Arduino Proportional Transmitter / Receiver with Button Trimmers

    hi i`m looking for store where can i buy this 433Mhz transmitter and receiver:)hoping you can give me some.i`m from Philippines Working on my Design Project :)

    View Instructable »