View Single Post
Old 04-23-2012, 12:26 AM   #96 (permalink)
thingstodo
Master EcoModder
 
Join Date: Sep 2010
Location: Saskatoon, canada
Posts: 1,488

Ford Prefect - '18 Ford F150 XLT XTR

Tess - '22 Tesla Y LR
Thanks: 749
Thanked 565 Times in 447 Posts
Arduino, logging and communications

Sketch BarometricPressureWebServer

Gave up on the OLED interface. Let's try the ethernet shield.
Copy the example script and change the hard-coded ip address. Download and it compiles and downloads! This is within 5 minutes of opening the box.

Connect the ethernet port to my router with a cat5 cable. Connect to 192.168.0.20 with my web browser and I get a (very basic, text only) web page!
THAT'S WHY THE ARDUINO IS SO POPULAR. YOU PLUG IT IN, LOAD THE EXAMPLE, AND IT WORKS!
Total time from plug it in to a display on my laptop web browser - 20 minutes. Compare that to the OLED above - 2 hours and nothing works.

Sketch LoggerWeb

Now to make it work with my Logger program.
Copy chunks from the example into my script.
The code appears to need SPI.h ... hmm

After a few program/compile/load/test cycles ... everything that I print out as a debug to the serial port/Arduino monitor now also displays on the web page. I need to keep refreshing it .. but that's OK for now.

Hey, my Nook(book reader) has a web browser. How about I see
if the web page displays on there? 192.168.0.20 ... it does!

Making something work ... a feeling like no other!
  Reply With Quote