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
import urllib | |
import re | |
import time | |
data = urllib.urlopen('http://bitly.measuredvoice.com/bitly_archive/?C=M;O=D').read() | |
#print data | |
#datafiles name pattern - usagov_bitly_data2011-07-29-1311919454 |
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
/* | |
fht_adc.pde | |
guest openmusiclabs.com 9.5.12 | |
example sketch for testing the fht library. | |
it takes in data on ADC0 (Analog0) and processes them | |
with the fht. the data is sent out over the serial | |
port at 115.2kb. there is a pure data patch for | |
visualizing the data. | |
*/ | |
//shin: mod with mapping of rgb to frequency |
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
/* | |
fixFFT http://forum.arduino.cc/index.php/topic,38153.0.html | |
this should give an fft with | |
sampling rate: 1ms | |
frequency resolution: 500Hz | |
lowest frequency: 7.8Hz | |
*/ | |
//shin: fft with attiny85, rgb led blend with frequency |
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
public void getURL() | |
{ | |
URL u = null; | |
InputStream is = null; | |
DataInputStream dis; | |
String s; | |
try { |
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
//************************************************************************** | |
//* Self-balancing Chopper project * | |
//* * | |
//* FOR Arduino MEGA1280 8.11.14 * | |
//* Pin 20 is SDA and 21 is SCL on a Mega 1280 * | |
//* * | |
//* John Dingley * | |
//* Clearly the part of this code that reads the digital IMU * | |
//* is based on the Varaseno FreeSix IMU library * | |
//* * |
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
//#include <SoftwareSerial.h> | |
//use mega Serial 2 for serial monitor; Serial 1 on pins 19 (RX) and 18 (TX);// Serial2 on pins 17 (RX) and 16 (TX), Serial3 on pins 15 (RX) and 14 (TX). | |
#define SSID "enter SSID here" | |
#define PASS "enter password here" | |
#define DST_IP "220.181.111.85" //baidu.com | |
//SoftwareSerial dbgSerial(10, 11); // RX, TX | |
void setup() | |
{ | |
// Open serial communications and wait for port to open: | |
//serial 2 is to esp8266 |
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
#include <SoftwareSerial.h> | |
#define SSID "enter the SSID" | |
#define PASS "enter the password" | |
#define DST_IP "220.181.111.85" //baidu.com | |
SoftwareSerial dbgSerial(10, 11); // RX, TX | |
void setup() | |
{ | |
//setup RGB LED as indicator instead of softserial | |
pinMode(3, OUTPUT); | |
pinMode(4, OUTPUT); |
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
//mod from https://github.com/Doomhammer458/ESP8266-LED-Server/blob/master/esp8266LED.ino | |
//#include <SoftwareSerial.h> | |
//use mega Serial 2 for serial monitor; Serial 1 on pins 19 (RX) and 18 (TX);// Serial2 on pins 17 (RX) and 16 (TX), Serial3 on pins 15 (RX) and 14 (TX). | |
#define SSID "the_ssid_here" | |
#define PASS "the_password_here" | |
#define DST_IP "220.181.111.85" //baidu.com | |
//SoftwareSerial dbgSerial(10, 11); // RX, TX | |
#define acPin 7 | |
char myChar; |
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
// | |
//#include <SoftwareSerial.h> | |
//use mega Serial 2 for serial monitor; Serial 1 on pins 19 (RX) and 18 (TX);// Serial2 on pins 17 (RX) and 16 (TX), Serial3 on pins 15 (RX) and 14 (TX). | |
//DS18B20 uses onewire protocol; need 5k pullup | |
#include <OneWire.h> | |
#include <DallasTemperature.h> | |
#define SSID "SSID_HERE" | |
#define PASS "PASSWORD_HERE" | |
#define DST_IP "220.181.111.85" //baidu.com |
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
#have to physically connected to the respective AP to use | |
#T931 cloud thingSpeak1: 172.16.114.166 | |
#http://172.16.114.166:3000 | |
#T1662 thingspeak server: 192.168.1.117:3000 | |
//---error with apt-get---- | |
#remove deb with Failed cond via comment # | |
sudo nano /etc/apt/sources.list | |
/----list sw to a file-- |
OlderNewer