Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
A

A3V

@A3V
About
Posts
9
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • hacking a Action Solar-light
    A A3V

    I found this solar light at Action:
    0ba8ad39-6e1c-4df2-b63e-dc12f5a92b61-image.png
    Solarlight Action NL
    Seems very hackable:
    IMG_20220723_173625.jpg
    includes:

    • 40 LED panel; 40 white led in parallel
    • 5.5 V 200 mA solar panel
    • 1 x Li-ion 3.7 2000mAh cell (in battery holder: can be removed )
    • PIR Motion sensor 3.3V
      Signals:
      -Q1 / R2 = probably battery polarity and discharge protection
    • Solar charging IC (could be C3130) pins seems to match functionality:
      diagram1.png
    • R8 (3K3) is probably RiSet

    There is one 8 pin logic chip.

    • Signal at Pin 2 is connected to the PIR
    • Signal at Pin 3 is connected to voltage divider R4/R5 to detect sun light, (LEDS will switch off when there is sun light)
    • Signal at Pin 4 is connected to the button (ON/OFF/Mode)
    • Signal at Pin 5 to R1 is driving the leds via Q1/Q3 (N-channel Mosfet A2SHB) R7/R6 (2x 0.1) Ohm
    • Q2 = voltage regulator 3.3 V To pin 1 of logic chip and PIR element

    Hope to make some mysensor thing out of this soon.

    Greetings A3

    My Project

  • NewbiePCB sensors dying of old age
    A A3V

    I had something similar with one of my homebrew barebone sensors: It ran for two years on one pair of AA batteries then I replaced the batteries and it lasted only 2 months. So changed again the batteries and it ran only 2 weeks.
    I measured the current and it turned out it was drawing a few mA instead of uA while it was sleeping.
    Turned out that one capacitor was leaking. Replaced it and now it has normal sleep current.

    General Discussion

  • Nodemanager: How to control a local output from a local input?
    A A3V

    Reply to myself:
    Looking thought the sources and the forum found out that you can do this using hooks.
    so enabled hooking

    #define NODEMANAGER_HOOKING ON
    

    and added the reference to the hook to before.

    void before() {
     Tsensor.setMeasureTimerMode(TIME_INTERVAL);   // set timer 
     Tsensor.setMeasureTimerValue(1); // interval to 1 sec measurement
    
     Tsensor.setPostLoopHook(&myfirstHook);
     ..etc.etc...
     nodemanager.before();
    }
    

    And finally the hook

    void myfirstHook(Sensor* sensor){
      float temperature =  Tsensor.children.get(1)->getValueFloat()
      Serial.println(temperature);
      if (temperature>setpoint) { 
            if (Relay.getStatus()==OFF){
            Relay.setStatus(ON);      // switch off
            } 
      
    
    }
    

    The error that I got initially was caused by using the wrong child: 0 (it starts from 1).

    I wonder if it is possible to do interval < 1 second?

    NodeManager
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular