This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Air Sensor | |
Arduino based air quality sensor | |
Sensors used: | |
DHT22 - temperature and humidity sensor | |
MQ-2 - gas leakage detector. It is suitable for detecting H2, LPG, CH4, CO, Alcohol, Smoke or Propane | |
MQ-3 - alcohol sensor is suitable for detecting alcohol concentration on your breath, just like your common breathalyzer. It has a high sensitivity and fast response time | |
MQ-7 - Carbon Monoxide (CO) sensor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let Angle = 0 | |
basic.forever(() => { | |
Angle = input.compassHeading() | |
if (345 < Angle || Angle < 15) { | |
basic.showLeds(` | |
. . # . . | |
. . . . . | |
. . . . . | |
. . . . . | |
. . . . . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$fn=20; | |
module holder () { | |
difference() { | |
// create rounded corners cube | |
rcube([20, 30, 20]); | |
// make a hole for the screw | |
translate([10, 10, 0]) | |
screwHole(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$fn=60; | |
module lampHandle() { | |
difference() { | |
cylinder(d=35, h = 100); | |
translate([0,0,84]){ | |
bulbSpace(); | |
} | |
holoInside(); | |
buttonHole(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package lt.andro.learnrxjava; | |
import android.os.Bundle; | |
import android.support.v7.app.AppCompatActivity; | |
import android.text.Editable; | |
import android.text.TextUtils; | |
import android.widget.RadioGroup; | |
import android.widget.TextView; | |
import com.jakewharton.rxbinding2.InitialValueObservable; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$fn=60; | |
holeH=37; | |
holeD=12.5; | |
h=40; | |
module lampHolder() { | |
difference() { | |
holderBody(); | |
tableSpace(); |
OlderNewer