30 december 2011
Arduino NEXA
Arduino
https://code.google.com/p/arduino-nodo/issues/attachmentText?id=33&aid=77920028636723490&name=nexa+protocol.txt&token=96bfee27292cb534de328bf6ea88b531
http://www.elektronikforumet.com/forum/viewtopic.php?f=3&t=11720&start=105
NEXA string examples
-----------------------
o = 320µs high, 960µs low, 320µs high, 960µs low
x = 320µs high, 960µs low, 960µs high, 320µs low
turn OFF house A, unit 2: "ooooxooooxxo+"
house id unit unknown activation stop bit
oooo xooo oxx o +
turn ON house C, unit 8: "oxooxxxooxxx+"
house id unit unknown activation stop bit
oxoo xxxo oxx x +
SARTANO string examples
--------------------------
0 = 360µs high, 1100µs low, 1100µs high, 360µs low
X = 360µs high, 1100µs low, 360µs high, 1100µs low
turn OFF house id 35, channel 2: "00X0X0X0000X+"
house id channel activation stop bit
00X0X 0X000 0X +
turn ON house id 124, channel 1: "XX0X0X0000X0+"
house id channel activation stop bit
XX0X0 X0000 X0 +
ex.
sendstringrf("oxooxxxooxxx+"); //NEXA
sendstringrf("XX0X0X0000X0+"); //Sartano
void sendstringrf(char *str)
{
char i, j;
for(i = 0; i < 4; i++)
{
j = 0;
while (*(str+j) != '\0')
{
sendrf(*(str+j));
j++;
}
}
}
void sendrf(char v)
{
switch (v)
{
case '0':
PORTD |= _BV(RFD);
_delay_us(350);
PORTD &= ~_BV(RFD);
_delay_us(1100);
PORTD |= _BV(RFD);
_delay_us(1100);
PORTD &= ~_BV(RFD);
_delay_us(350);
break;
case 'X':
PORTD |= _BV(RFD);
_delay_us(350);
PORTD &= ~_BV(RFD);
_delay_us(1100);
PORTD |= _BV(RFD);
_delay_us(350);
PORTD &= ~_BV(RFD);
_delay_us(1100);
break;
case 'o':
PORTD |= _BV(RFD);
_delay_us(320);
PORTD &= ~_BV(RFD);
_delay_us(960);
PORTD |= _BV(RFD);
_delay_us(320);
PORTD &= ~_BV(RFD);
_delay_us(960);
break;
case 'x':
PORTD |= _BV(RFD);
_delay_us(320);
PORTD &= ~_BV(RFD);
_delay_us(960);
PORTD |= _BV(RFD);
_delay_us(960);
PORTD &= ~_BV(RFD);
_delay_us(320);
break;
case '+':
PORTD |= _BV(RFD);
_delay_us(360);
PORTD &= ~_BV(RFD);
_delay_ms(8);
break;
}
}
28 december 2011
26 december 2011
Elektronik
UPM Väderstation
http://wiki.nethome.nu/doku.php/modupm
http://www.youtube.com/watch?v=3itu7S7B1AQ&feature=related
http://www.electrokit.com
P8055
http://www.velleman.eu/downloads/0/illustrated/illustrated_assembly_manual_k8055_uk_rev3.pdf
http://www.velleman.eu/support/downloads/?code=K8055
Ocsilloskop
http://www.kjell.com/sortiment/el/verktyg/matinstrument/oscilloskop/velleman-hps140i-p48141
Arduino
http://www.arduino.cc
http://arduiniana.org/libraries/newsoftserial/
http://wiki.nethome.nu/doku.php/modupm
http://www.youtube.com/watch?v=3itu7S7B1AQ&feature=related
http://www.electrokit.com
P8055
http://www.velleman.eu/downloads/0/illustrated/illustrated_assembly_manual_k8055_uk_rev3.pdf
http://www.velleman.eu/support/downloads/?code=K8055
Ocsilloskop
http://www.kjell.com/sortiment/el/verktyg/matinstrument/oscilloskop/velleman-hps140i-p48141
Arduino
http://www.arduino.cc
http://arduiniana.org/libraries/newsoftserial/
09 december 2011
24 november 2011
Trek Superfly Elite
Superfly Elite™
RAMSET | |
---|---|
Storlekar | 15.5, 17.5, 19, 21, 23" |
Ram | Monocoque carbon, G2 29" Geometry |
Dämpning fram | Fox F29 RLC w/E2 steerer, custom G2 Geometry, 51mm offset crown, 100mm travel |
HJUL | |
Hjul | Bontrager Race X Lite FCC Scandium Disc 29, 28 hole |
Däck | Bontrager 29-2, Team Issue, 29x2.1" |
DRIVLINA | |
Växlar | SRAM X.0, 10 speed |
Framväxel | SRAM X.0 |
Bakväxel | SRAM X.0 |
Vevarmar | SRAM X.0, 39/26 |
Kassett | SRAM PG-1070 12-36, 10 speed |
Pedaler | n/a |
KOMPONENTER | |
Sadel | Bontrager Evoke 3, titanium rails |
Sadelstolpe | Bontrager Race X Lite ACC, 27.2mm, 5mm offset |
Styre | Bontrager Race X Lite Carbon Big Sweep, 12 degree sweep |
Styrstam | Bontrager Race X Lite, 31.8mm |
Styrlager | Cane Creek IS-2/Z3, 1.5" |
Bromsar | Avid XO hydraulic disc brakes, 6-bolt; G3 160mm rotors |
Extra | Fork sag meter |
15 november 2011
Android
Allmänt
http://dl.google.com/io/2009/pres/W_0300_CodingforLife-BatteryLifeThatIs.pdf
http://www.vogella.de/articles/Android/article.html
HTTP
http://stackoverflow.com/questions/4543894/android-java-http-post-request
http://w3mentor.com/learn/java/android-development/android-http-services/example-of-http-get-request-using-httpclient-in-android/
LOCATION
http://developer.android.com/guide/topics/location/obtaining-user-location.html
http://dl.google.com/io/2009/pres/W_0300_CodingforLife-BatteryLifeThatIs.pdf
http://www.vogella.de/articles/Android/article.html
HTTP
http://stackoverflow.com/questions/4543894/android-java-http-post-request
http://w3mentor.com/learn/java/android-development/android-http-services/example-of-http-get-request-using-httpclient-in-android/
LOCATION
http://developer.android.com/guide/topics/location/obtaining-user-location.html
JSON
http://www.vogella.de/articles/AndroidJSON/article.html
PINCH ZOOM MULTITOUCH
http://code.google.com/p/android-multitouch-controller/
APK
https://docs.google.com/open?id=0B7KBREijWfkuYTM1ZTc2YWItNWJjYS00Njc5LTgxYTEtNjIxODQyOTI3N2U4
Go launcher ex
8 pen
13 november 2011
Ladda up GPX till Garmin 305
How to upload GPX file to Garmin Edge 305
1. Download Morgan Territory GPX file and save GPX file to your folder
2. Go to http://www.gpsies.com/createTrack.do (track creator)
3. Go to bottom of right column and import file
4. Go to 2nd space of right column and export file as "Garmin Logbook"
5. Export to Garmin GPS
6. Opens a new window
a. If you do not have the Garmin Communicator Plugin (download it now)
b. If you do have the plugin, choose "GPX Route
7. Done. You should see this in your Navigation Setting, Under Routes, Saved Routes
Prenumerera på:
Inlägg (Atom)