Navigation

    • Register
    • Login
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. a-lurker
    3. Best
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Best posts made by a-lurker

    • RE: Forum data loss

      Arhhh - no big problem. It will help clean up the conversations!!

      If you know a topic name - for example the auto fill of the URLs in your browser will hold the names of those recently browsed. Then you can search on those in Goggle and dial up the cached page of the topic. Best to do it before Goggle overwrites them:

      Efficiency of 1V to 5V step-up module.txt

      I also had to recreate my log in and my reputation has been trashed as well !!

      posted in Announcements
      a-lurker
      a-lurker
    • Convert sketch from 1.3 to 1.4

      @C4Vette

      "Are there any guidelines on how to convert a sketch that was made for the 1.3 libraries to 1.4?
      I would very much like to use the DimmableLED sketch but I know too little about coding. I found a few obvious differences but nevertheless did not succeed in making the sketch work.

      I found it here: http://forum.micasaverde.com/index.php/topic,23342.0.html and I know the maker blacey is also on this forum and think it is a very nice sketch. The only way I see how to get this to work is to downgrade to the 1.3 libraries but than I would have to start all over."

      <>
      It's not easy to cover all possibilities but here are a few notes and examples based on a temperature sensor plus some other info that might help with the DimmableSketch. I can re-edit this post if there are any corrections needed or something else needs to be added.

      AT THE START OF THE PROGRAM:

      #include <Sensor.h>  change to  #include <MySensor.h>
      #include <EEPROM.h>  <-- this line is no longer required  - delete
      #include <RF24.h>    <-- this line is no longer required  - delete
      Sensor gw;           change to -->  MySensor gw;
      Sensor gw(9,10);     change to -->  MySensor gw;
      
      // Initialize temperature message   <-- insert line
      MyMessage msg(0,V_TEMP);            <-- insert line
      

      IN void setup():

      // send the Sketch Version Information to the Gateway   <-- insert line
      gw.sendSketchInfo("My sketch name", "0.50");            <-- insert line
      
      gw.sendSensorPresentation(i, S_TEMP);  change to -->  gw.present(i, S_TEMP);
      
      metric = gw.isMetricSystem();  change to -->  metric = gw.getConfig().isMetric;
      

      IN void loop():

      // process incoming messages (like config from server)   <-- insert line
      gw.process();                                        <-- insert line
      
      gw.sendVariable(i, V_TEMP, temperature, 1);  change to -->  gw.send(msg.setSensor(i).set(temperature,1));  // send float with one decimal point
      

      SEARCH FOR THE FOLLOWING:

      gw.powerUp();   <-- this line is no longer required - delete if found
      
      sendSensorPresentation   change variable name to --> present
      

      If the following is found then this can be deleted:

      // Set RADIO_ID to something unique in your sensor network (1-254)
      // or set to AUTO if you want gw to assign a RADIO_ID for you.
      #define RADIO_ID AUTO
      
      If the #define RADIO_ID AUTO was found and deleted as above then change this also
      gw.begin( RADIO_ID ); change to --> gw.begin();
      

      OTHER EXAMPLE MESSAGES:

      // batteryPcnt is a uint8_t
      gw.sendBatteryLevel(batteryPcnt);
      
      // I've not checked this
      gw.sendVariable( 0, V_DIMMER, currentLevel ); change to --> gw.send(currentLevel);
      

      INITIALIZING THE SENSOR TO HANDLE A MESSAGE FROM THE MAIN GATEWAY:

      // handle incoming messages
      void incomingMessage(MyMessage message)
      {
         // handle your messages here
         // I've not checked this
         setDimmableLEDState(message);
      }
      
      // the call back incomingMessage receives any incoming messages
      gw.begin(incomingMessage);
      posted in Development
      a-lurker
      a-lurker
    • Standard versus LNA+PA radio modules

      (Note this is a resurrected post). I will stick my neck out on this one - hope I have the following correct:

      The low noise amp gain is 10dB and the power amplifier is 20 dB. If both ends use the PCB with the LNA & PA, then the link is up 30 dB on the standard radios. With line of sight and that also means the antennas must be high enough to be unaffected by the Fresnel Zone; that being 5.6m high for a distance of one km. Then every 6 dB extra doubles the range. So 30dB/6 = 5 So range is extended by 2^5 = 32 times. It's claimed the powered modules can transmit about 1000m, which implies the standard modules have a line of sight range of about 31m.

      However, if you have a standard module at one end and a powered module at the other end, you only increase the link gain by the receiver gain of 10 dB, which just gives 3 times [ = 10^(10dB/20)] the distance of a standard radio, not 32 times [ = 10^(30dB/20)]. So the 31m above get's extended to just about 90m.

      It changes for indoors. An approximation is used, whereby 12 dB increase in power is said to be required to double the distance (where only 6dB is required for line of site). So for two high powered radios with 30 dB link gain, this gives a distance increase of 5.6 = 10^(30dB/40) and for one high powered radio and a standard radio where the link gain is improved by only 10 dB, we get a distance improvement of just 1.8 times = 10^(10dB/40)

      All the above assumes no electro-magnetic interference from other nearby transmitters, etc.

      Outdoors with proper line of site:
      32 distance gain 2* high powered radios
      3 distance gain high powered radio and a standard radio

      Indoors approximation:
      5.6 distance gain 2* high powered radios
      1.8 distance gain high powered radio and a standard radio

      If you want distance, you need the high powered modules at both ends.

      posted in Hardware
      a-lurker
      a-lurker
    • RE: Efficiency of Voltage Boosters

      Holds the text of the old posts:

      Efficiency of 1V to 5V step-up module.txt

      posted in Hardware
      a-lurker
      a-lurker