Reference Pages:
Useful links: Electronics parts suppliers:
Useful info:
Feeds:
Antipasto Hardware
Arduinotronics
Youritronics
Embedds
CircuitDB
uC Blog
Adafruit Industries
Citizen Engineer
Open Source Torchris
PyroElectro
Earthshine Electronics Blog
DIY Blog
Hacked Gadgets
RepRap
Make
Tomi Engdahl
Science Blog
The AmpHour Podcast
EEV Podcast
Chris Gammell Analog Life
Open Energy Monitor
IKEA Hacker
DIY Computing
Barefoot Beekeeper
Homegrown Evolution
Borganic
Better Generation
Circuit Projects
Circuit Project Electronic
MintCast
CameraHacker
GPSy EV Project
EconTalk PodCasts
Phil McKinney
The Next Hope
Plugin Tests:
Run-up
Run-up
Oster
Oster
Agreements
Agreements
Financial Backings
Financial Backings
Meetings
Meetings
Ideas:
Link tests:
Downloadable syntax-highlighted code test:
#include <Ethernet.h> // Set up the Networking piece byte mac[] = { 0xF0, 0x0F, 0xFA, 0xDE, 0xBA, 0x5E }; //physical mac address byte ip[] = { 192, 168, 0, 110 }; // ip in lan byte gateway[] = { 192, 168, 0, 1 }; // internet access via router byte subnet[] = { 255, 255, 255, 0 }; //subnet mask // Set up server connection byte server[] = { 192, 168, 0, 7 }; //Client client(server, 80); // set up for Nagios' NCSA port // Set up voltage conversion // First measurement (set V1In and V1Out to 0 during calibration) double refV1In = 2.35; // actual attopilot input voltage double refV1Out = 514; // arudino output from analogRead // Second measurement (set V2In and V2Out to 1 during calibration) double refV2In = 0.76; // actual attopilot input voltage double refV2Out = 167; // arudino output from analogRead void setup() { //Ethernet.begin(mac, ip, gateway, subnet); Serial.begin(9600); //opens serial port, sets data rate to 9600 bps } void loop() { /* if (!client.connected()) { Serial.println("disconnected"); while (!client.connected()) { delay(1000); Serial.println("connecting..."); if (client.connect()) { Serial.println("connected"); } else { Serial.println("connection failed"); } } } else { delay(1000); } */ delay(1000); //remove if uncommenting client code above int v0 = analogRead(0); // calculate scale (gradient) and offset from the straight line // going through (V1In, V1Out) and (V2In, V2Out) double scale = (refV1In - refV2In) / (refV1Out - refV2Out); double offset = refV1In - (refV1Out * scale); // convert Arduino measurement to actual input double av0 = (v0 * scale) + offset; // print negative sign if necessary if (av0 < 0.0) { Serial.print("-"); av0 = abs(av0); } // print whole number part of input value Serial.print(int(av0)); Serial.print("."); // print 6 decimal places of input value for (int i = 0; i < 6; i++) { av0 -= int(av0); av0 *= 10; Serial.print(int(av0)); } Serial.println(); }
Language plugin:
<PHP> global $ID;echo wl($ID,' ',true); </PHP>
Add to Greg mail: https://bs.sh.com/customers/124253
Click to display ⇲
Click to hide ⇱