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
  1. Home
  2. My Project
  3. My first working Switch with Battery and Temperature ..

My first working Switch with Battery and Temperature ..

Scheduled Pinned Locked Moved My Project
temperatureswitchbatterybinary
5 Posts 3 Posters 3.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dzairo
    wrote on last edited by
    #1

    Hi all.

    I make my first project (thanks to all for help) Switch , with battery and temperature monitoring..

    here is my node PCB :
    NodePCB.jpg

    and here is schematic :
    nodeSchematic.png

    and project :
    BinSwitchBatSleep_ACK.zip

    This project use two button INT0 and INT1 . if change state then send packet with ACK request .
    if no ACK received then generate sound .. from piezoelectric generator .
    Battery is in volate *10 - if received value is for example 28 it s 2.8V .

    now working good .. power consumption is 7uA .

    PS> I need help with pin change interupt .. I now use two button only .. but want support 4x button.. then need litle help how to use it ..

    regards..

    BulldogLowellB 1 Reply Last reply
    1
    • daulagariD Offline
      daulagariD Offline
      daulagari
      Hero Member
      wrote on last edited by
      #2

      @dzairo: Nice piece of work and looking at the schematics with enough attention to decoupling and powering the device!

      power consumption is 7uA .

      I assume that is sleep current. Do you know anything about the average consumption over say one hour?

      but want support 4x button.. then need litle help how to use it ..

      I think I can not directly help you with this but it would be good to know to which pins the buttons are connected, that is not readable from the schematics above.

      1 Reply Last reply
      0
      • D dzairo

        Hi all.

        I make my first project (thanks to all for help) Switch , with battery and temperature monitoring..

        here is my node PCB :
        NodePCB.jpg

        and here is schematic :
        nodeSchematic.png

        and project :
        BinSwitchBatSleep_ACK.zip

        This project use two button INT0 and INT1 . if change state then send packet with ACK request .
        if no ACK received then generate sound .. from piezoelectric generator .
        Battery is in volate *10 - if received value is for example 28 it s 2.8V .

        now working good .. power consumption is 7uA .

        PS> I need help with pin change interupt .. I now use two button only .. but want support 4x button.. then need litle help how to use it ..

        regards..

        BulldogLowellB Offline
        BulldogLowellB Offline
        BulldogLowell
        Contest Winner
        wrote on last edited by
        #3

        @dzairo

        Nick Gammon did an example of four pins 'sharing' one interrupt pin. Perhaps this will be workable for you.

        It may be tough to squeeze the 4 diodes onto your board, though!

        1 Reply Last reply
        0
        • D Offline
          D Offline
          dzairo
          wrote on last edited by
          #4

          I know how to do it by diode.. but I want by interrupt only.. I do it my self..

          BulldogLowellB 1 Reply Last reply
          0
          • D dzairo

            I know how to do it by diode.. but I want by interrupt only.. I do it my self..

            BulldogLowellB Offline
            BulldogLowellB Offline
            BulldogLowell
            Contest Winner
            wrote on last edited by
            #5

            @dzairo

            there is a nice PinChangeInterrupt library that you may want to look at.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            25

            Online

            11.7k

            Users

            11.2k

            Topics

            113.1k

            Posts


            Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
            • Login

            • Don't have an account? Register

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