Navigation

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

    Best posts made by A3V

    • hacking a Action Solar-light

      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

      posted in My Project
      A3V
      A3V
    • RE: NewbiePCB sensors dying of old age

      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.

      posted in General Discussion
      A3V
      A3V
    • RE: Nodemanager: How to control a local output from a local input?

      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?

      posted in NodeManager
      A3V
      A3V