Welcome to EnviroDIY, a community for do-it-yourself environmental science and monitoring. EnviroDIY is part of WikiWatershed, a web toolkit designed to help citizens, conservation practitioners, municipal decision-makers, researchers, educators, and students advance knowledge and stewardship of fresh water. New to EnviroDIY? Start here

Reply To: Newbie Mayfly Setup for RS485 sensor to internet

Home Forums Mayfly Data Logger Newbie Mayfly Setup for RS485 sensor to internet Reply To: Newbie Mayfly Setup for RS485 sensor to internet

#12463
neilh
Participant

Thanks @fisherba..
Great to see your code..

I’m trying though to see how I get up and going with PlatformIO

https://github.com/EnviroDIY/ModularSensors/tree/master/examples/logging_to_EnviroDIY
There is a platformio.ini

I’ve forked and then cloned into my local machine such that I have
C:\Users\neilh77\git\envirodiynh\ModularSensors\examples\logging_to_EnviroDIY

I’ve downloaded the Visual Studio, and enabled the Platformio plugin
It has arduino
C:\Users\neilh77\.platformio\packages\framework-arduinoavr\cores\arduino
I cloned;
C:\Users\neilh77\git\platform-atmelavr\examples\arduino-blink>
modified the .ini board=mayfly and ran and downloaded OK

Then …. prompted by a lot of trial and error …4hrs of random typing and with sporadic glazed reading of .htmls …. finally this seemed to be the effect

envirodiynh\ModularSensors\examples\logging_to_EnviroDIY
I created a directory logging_to_EnviroDIY
I took the logging_to_EnviroDIY.ino and renamed it into logging_to_EnviroDIY\logging_to_EnviroDIY.cpp

then at the TERMINAL
C:\Users\neilh77\git\envirodiynh\ModularSensors\examples\logging_to_EnviroDIY>
entered
>platformio run

and something automagical seem to happen, getting libraries
and it built.

Compiling .pioenvs\mayfly\lib31b\EnviroDIY_ModularSensors_ID1648\YosemitechParent.cpp.o
Compiling .pioenvs\mayfly\lib3ac\AltSoftSerial\AltSoftSerial.cpp.o
Compiling .pioenvs\mayfly\libff4\SoftwareSerial_ExtInts\SoftwareSerial_ExtInts.cpp.o
Archiving .pioenvs\mayfly\libFrameworkArduinoVariant.a
Compiling .pioenvs\mayfly\FrameworkArduino\CDC.cpp.o
Archiving .pioenvs\mayfly\lib3ac\libAltSoftSerial.a
Archiving .pioenvs\mayfly\lib31b\libEnviroDIY_ModularSensors_ID1648.a
Archiving .pioenvs\mayfly\libff4\libSoftwareSerial_ExtInts.a
Compiling .pioenvs\mayfly\FrameworkArduino\HardwareSerial.cpp.o
Compiling .pioenvs\mayfly\FrameworkArduino\HardwareSerial0.cpp.o
Compiling .pioenvs\mayfly\FrameworkArduino\HardwareSerial1.cpp.o
Compiling .pioenvs\mayfly\FrameworkArduino\HardwareSerial2.cpp.o
Compiling .pioenvs\mayfly\FrameworkArduino\HardwareSerial3.cpp.o
Compiling .pioenvs\mayfly\FrameworkArduino\IPAddress.cpp.o
Compiling .pioenvs\mayfly\FrameworkArduino\PluggableUSB.cpp.o
Compiling .pioenvs\mayfly\FrameworkArduino\Print.cpp.o
Compiling .pioenvs\mayfly\FrameworkArduino\Stream.cpp.o
Compiling .pioenvs\mayfly\FrameworkArduino\Tone.cpp.o
Compiling .pioenvs\mayfly\FrameworkArduino\USBCore.cpp.o
Compiling .pioenvs\mayfly\FrameworkArduino\WInterrupts.c.o
Compiling .pioenvs\mayfly\FrameworkArduino\WMath.cpp.o
Compiling .pioenvs\mayfly\FrameworkArduino\WString.cpp.o
Compiling .pioenvs\mayfly\FrameworkArduino\abi.cpp.o
Compiling .pioenvs\mayfly\FrameworkArduino\hooks.c.o
Compiling .pioenvs\mayfly\FrameworkArduino\main.cpp.o
Compiling .pioenvs\mayfly\FrameworkArduino\new.cpp.o
Compiling .pioenvs\mayfly\FrameworkArduino\wiring.c.o
Compiling .pioenvs\mayfly\FrameworkArduino\wiring_analog.c.o
Compiling .pioenvs\mayfly\FrameworkArduino\wiring_digital.c.o
Compiling .pioenvs\mayfly\FrameworkArduino\wiring_pulse.S.o
Compiling .pioenvs\mayfly\FrameworkArduino\wiring_pulse.c.o
Compiling .pioenvs\mayfly\FrameworkArduino\wiring_shift.c.o
Archiving .pioenvs\mayfly\libFrameworkArduino.a
Linking .pioenvs\mayfly\firmware.elf
Checking size .pioenvs\mayfly\firmware.elf
Building .pioenvs\mayfly\firmware.hex
Memory Usage -> http://bit.ly/pio-memory-usage
DATA: [====== ] 64.3% (used 10537 bytes from 16384 bytes)
PROGRAM: [======== ] 80.4% (used 104532 bytes from 130048 bytes)

WOW WOW

    WOW

YaaaaaaYippppeeee

guess I try looking at the code now and see what its supposed to do …. but that might be Saturday