loading
1Instructables3,216Views11 Comments
Electrical Engineering Undergrad at Virginia Tech
  • Va_Tech_EE commented on Va_Tech_EE's instructable Gyroscopic Arduino Head Tracking Unit2 months ago
    Gyroscopic Arduino Head Tracking Unit

    That's very simple. Just use the softSerial library instead of Serial2 to transmit data (this will dictate which two data pins you hook up the XBee to the Nano with). Everything else a can stay the same. You will have to look up which pins are SDA and SCL on the Nano, though (this dictates how you hook the gyroscope to the Nano).

    View Instructable »
  • Make one PM2.5/air quality monitor with Arduino UNO

    Ahh, I see. Arduino handles floats like any other C++ microcontroller. When you divide by 10, just write it as 10.0 and make sure the variable the value is being stored in is type "float"

    View Instructable »
  • Make one PM2.5/air quality monitor with Arduino UNO

    Sorry to say, but I believe there is a bug in your code!If you look in the sensor datasheet, you do not construct an int out of the low and high bytes of PM10 and PM2.5 like in the code you posted. The datasheet says to do this instead:PM2.5 value: PM2.5 (μg /m3) = ((PM2.5 High byte *256) + PM2.5 low byte)/10PM10 value: PM10 (μg /m3) = ((PM10 High byte *256) + PM10 low byte)/10datasheet link: http://inovafitness.com/software/SDS011%20laser%20PM2.5%20sensor%20specification-V1.3.pdf

    Sorry to say, but I believe there is a bug in your code!If you look in the sensor datasheet, you do not construct an int out of the low and high bytes of PM10 and PM2.5 like in the code you posted. The datasheet says to do this instead:PM2.5 value: PM2.5 (μg /m3) = ((PM2.5 High byte *256) + PM2.5 low byte)/10PM10 value: PM10 (μg /m3) = ((PM10 High byte *256) + PM10 low byte)/10datasheet link: http://inovafitness.com/software/SDS011%20laser%20PM2.5%20sensor%20specification-V1.3.pdf PM10 value: PM10 (μg /m3) = ((PM10 high byte*256) + PM10 low byte)/10

    View Instructable »