Navigation

    • Register
    • Login
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. Ben Coton
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Ben Coton

    @Ben Coton

    0
    Reputation
    2
    Posts
    258
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    Ben Coton Follow

    Best posts made by Ben Coton

    This user hasn't posted anything yet.

    Latest posts made by Ben Coton

    • RE: NodeManager: plugin for a rapid development of battery-powered sensors

      Thanks for the reply.

      I have no idea about the platform.txt file so I will wait to see if someone much smarter than me can figure it out 🙂

      If it helps, I am using the Arduino IDE V.1.81, compiling with a custom atmega328p board running at 8MHz with BOD disabled.

      Ben

      posted in NodeManager
      Ben Coton
      Ben Coton
    • RE: NodeManager: plugin for a rapid development of battery-powered sensors

      I love the look of this setup. I am making my own slim nodes running at 8MHz with a basic 328P chip.

      I am starting with a basic Thermistor which is fine but when I try to compile the code I get the following error.

      exit status 1
      default argument given for parameter 3 of 'void PowerManager::setPowerPins(int, int, long int)' [-fpermissive]

      My code is as follows:

      // load user settings
      #include "config.h"
      // load MySensors library
      #include <MySensors.h>
      // load NodeManager library
      #include "NodeManager.h"
      
      // create a NodeManager instance
      NodeManager nodeManager;
      
      // before
      void before() {
        // setup the serial port baud rate
        Serial.begin(9600);  
        // instruct the board to sleep for 10 minutes for each cycle
      //  nodeManager.setSleep(SLEEP,10,MINUTES);
      
        // register the sensors
        nodeManager.registerSensor(SENSOR_THERMISTOR,A1);
      //  nodeManager.registerSensor(SENSOR_LDR,A2);
        /*
         * Register below your sensors
        */
        
      
        /*
         * Register above your sensors
        */
        nodeManager.before();
      }
      
      // presentation
      void presentation() {
        // Send the sketch version information to the gateway and Controller
      	sendSketchInfo("Battery Temp Sensor","1.0");
        // call NodeManager presentation routine
        nodeManager.presentation();
      
      }
      
      // setup
      void setup() {
        // call NodeManager setup routine
        nodeManager.setup();
      }
      
      // loop
      void loop() {
        // call NodeManager loop routine
        nodeManager.loop();
      
      }
      
      // receive
      void receive(const MyMessage &message) {
        // call NodeManager receive routine
        nodeManager.receive(message);
      }
      

      Any help with sorting this out will be great.
      Cheers,

      Ben

      posted in NodeManager
      Ben Coton
      Ben Coton