Skip to content

Instantly share code, notes, and snippets.

//placing sensor in closed mouth and exhaling into cmouth cavity. twice
REBOOT
BMP180 init success
temperature: 26.92 deg C, pressure: 1010.94 mb, 29.86 inHg
temperature: 27.29 deg C, pressure: 1011.06 mb, 29.86 inHg
temperature: 27.52 deg C, pressure: 1011.07 mb, 29.86 inHg
temperature: 27.65 deg C, pressure: 1012.00 mb, 29.89 inHg
temperature: 27.71 deg C, pressure: 1017.95 mb, 30.06 inHg
temperature: 27.72 deg C, pressure: 1052.04 mb, 31.07 inHg
@5shekel
5shekel / dood
Created November 28, 2015 21:10
//based on https://github.com/telavivmakers/BMP180_Breakout_Arduino_Library/tree/master/examples/SFE_BMP180_example
#include <SFE_BMP180.h>
#include <Wire.h>
// You will need to create an SFE_BMP180 object, here called "pressure":
SFE_BMP180 pressure;
#define ALTITUDE 25.0 // Altitude of SparkFun's HQ in Boulder, CO. in meters
//scaled to Serial.println((P-1000)*100., 2);
// see https://github.com/5shekel/doodlitech
REBOOT
BMP180 init success
1606.16
1607.87
1615.45
1621.81
1615.15
1618.05
1014.77
1014.61
1014.72
1014.80
1014.70
1014.75
1014.76
1014.82
1014.77
1017.07
/*
* ON PUBLIC DOMAIN
* Author : Nitish Dash
* Name : Temperature and Humidity on 16X2 LCD with DHT11 Sensor
* Created : 12/26/2014
* Webpage : http://goo.gl/W5iB30
* Author Email : [email protected]
* Author Website : http://www.nitishdash.com/
**** DONOT COPY AND PLAGIARATE WITHOUT THE AUTHOR'S PERMISSIONS ****
*/
//game (with cornell)
#define DEBUG 1
//GRID lib using neopixel_grid
#include <Adafruit_GFX.h>
#include <Adafruit_NeoMatrix.h>
#include <Adafruit_NeoPixel.h>
@5shekel
5shekel / polytonesWithoutDelay.ino
Created February 19, 2016 12:31
lifted from this nice blog, polytones Without Delay
/*
details here: http://richdecibels.com/blog/?p=214
a useful way to achieve pretty accurate event timing without having to delve into the AVR’s Timer registers and learn about Interrupt Service Routines and so on. In your main loop() put:
int x; //timing interval
long foo; //timing placeholder
if (millis() - foo > x) {
foo = millis();
//run the following chunk of code every x milliseconds
@5shekel
5shekel / test_server.py
Last active April 9, 2016 07:23
whats running on the space.telavivmakers.org
#!/usr/bin/python
import numpy
import cv2, sys
import Image
from BaseHTTPServer import BaseHTTPRequestHandler,HTTPServer
from SocketServer import ThreadingMixIn
import StringIO
import time
import datetime
Mar 16 14:28:54 yaircc nginx[16521]: 2016/03/16 14:28:54 [error] 16525#0: *541 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught TypeError: Argument 1 passed to MWExceptionHandler::rollbackMasterChangesAndLog() must be an instance of Exception, instance of ParseError given, called in /srv/http/telavivmakers.org/includes/exception/MWExceptionHandler.php on line 137 and defined in /srv/http/telavivmakers.org/includes/exception/MWExceptionHandler.php:111
Mar 16 14:28:54 yaircc nginx[16521]: Stack trace:
Mar 16 14:28:54 yaircc nginx[16521]: #0 /srv/http/telavivmakers.org/includes/exception/MWExceptionHandler.php(137): MWExceptionHandler::rollbackMasterChangesAndLog(Object(ParseError))
Mar 16 14:28:54 yaircc nginx[16521]: #1 [internal function]: MWExceptionHandler::handle(Object(ParseError))
Mar 16 14:28:54 yaircc nginx[16521]: #2 {main}
Mar 16 14:28:54 yaircc nginx[16521]: thrown in /srv/http/telavivmakers.org/includes/exception/MWExceptionHandler.php on line 111" while reading response header fr
@5shekel
5shekel / CokeMan.ino
Last active March 30, 2016 06:31
Coke Man
//code for motion sensor circuit
//
const int ledPin = 13;
const int inputPin = A2;
int threshold = 500;
void setup() {
Serial.println("restart......");