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. OpenHardware.io
  3. 💬 AC/DC/Batteries capable atmega328p board

💬 AC/DC/Batteries capable atmega328p board

Scheduled Pinned Locked Moved OpenHardware.io
regulatoratmega328atsha204aflashbatterypower supplynrf24l01
20 Posts 7 Posters 7.8k Views 6 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.
  • Carl HC Offline
    Carl HC Offline
    Carl H
    wrote on last edited by
    #6

    This is my board:

    0_1456440224123_dc board.jpg

    I don't want to use the bat jumber because my source is by USB plug (5v).

    My question is why is it working when I plug with my FTDI Cable (5v version).

    I will try tonight with other sensor like Si7021 but i'm pretty sure it will be working.

    GertSandersG 1 Reply Last reply
    0
    • Carl HC Carl H

      This is my board:

      0_1456440224123_dc board.jpg

      I don't want to use the bat jumber because my source is by USB plug (5v).

      My question is why is it working when I plug with my FTDI Cable (5v version).

      I will try tonight with other sensor like Si7021 but i'm pretty sure it will be working.

      GertSandersG Offline
      GertSandersG Offline
      GertSanders
      Hardware Contributor
      wrote on last edited by
      #7

      @Carl-H I see that you are connected to D6 (not D7 as you mentioned earlier).

      1 Reply Last reply
      0
      • Carl HC Offline
        Carl HC Offline
        Carl H
        wrote on last edited by Carl H
        #8

        I wrote D7 but in my sketch is D6 ;)

        #define DHT_PIN 6

        AWIA 1 Reply Last reply
        0
        • Carl HC Carl H

          I wrote D7 but in my sketch is D6 ;)

          #define DHT_PIN 6

          AWIA Offline
          AWIA Offline
          AWI
          Hero Member
          wrote on last edited by
          #9

          @Carl-H did you add a pull up? The DHT can be unstable without.

          Carl HC 1 Reply Last reply
          0
          • GertSandersG Offline
            GertSandersG Offline
            GertSanders
            Hardware Contributor
            wrote on last edited by
            #10

            Added a sketch for a combination of 1 PIR, 2 relays and HTU21D Temperature/Humidity.

            1 Reply Last reply
            0
            • AWIA AWI

              @Carl-H did you add a pull up? The DHT can be unstable without.

              Carl HC Offline
              Carl HC Offline
              Carl H
              wrote on last edited by
              #11

              @AWI Yes I have pull up !

              1 Reply Last reply
              0
              • Carl HC Offline
                Carl HC Offline
                Carl H
                wrote on last edited by
                #12

                After make some test this morning I found a solution but I do not know why and what is the difference.

                I explain:

                When I used this DHT librairies (https://github.com/markruys/arduino-DHT), this one come with mysensors librairies. I can read my DHT22 sensor with my FTDI cable but is not working with from a DC 5v in, reading always 0.

                But If now I used this librairies (https://github.com/adafruit/DHT-sensor-library) , is working with FTDI cable and now with my DC 5v in.

                GertSandersG 1 Reply Last reply
                0
                • Carl HC Carl H

                  After make some test this morning I found a solution but I do not know why and what is the difference.

                  I explain:

                  When I used this DHT librairies (https://github.com/markruys/arduino-DHT), this one come with mysensors librairies. I can read my DHT22 sensor with my FTDI cable but is not working with from a DC 5v in, reading always 0.

                  But If now I used this librairies (https://github.com/adafruit/DHT-sensor-library) , is working with FTDI cable and now with my DC 5v in.

                  GertSandersG Offline
                  GertSandersG Offline
                  GertSanders
                  Hardware Contributor
                  wrote on last edited by
                  #13

                  @Carl-H Very strange indeed, but I'm glad it is sorted out.

                  1 Reply Last reply
                  0
                  • alexsh1A Offline
                    alexsh1A Offline
                    alexsh1
                    wrote on last edited by
                    #14

                    @Carl-H I have used DHT11/22, DS18B20, SI7021, HTU21D, BMP180 and BME280 sensors with Arduino / Particle Photon and I can only suggest using SI7021, HTU21D and BMP180/BME280 temperature and humidity sensors. DS18B20 is very sensitive to noises and throwing temperature abnormal readings (65000C or something). DHT22 is very temperamental needless to say about the size. Also the sensors I suggested are very-very precise. BME280 being probably the most expensive.

                    1 Reply Last reply
                    0
                    • Carl HC Offline
                      Carl HC Offline
                      Carl H
                      wrote on last edited by
                      #15

                      @GertSanders I have a couple of your board and I will be very happy. Now I will want to try the OTA feature with this board. Did you have DualOptiboot already compiled (hex file) with D8 led pin and with 8 mhz external crystal? It will be cool you include this file like Optiboot 6.2.. Thanks

                      GertSandersG 1 Reply Last reply
                      0
                      • Carl HC Carl H

                        @GertSanders I have a couple of your board and I will be very happy. Now I will want to try the OTA feature with this board. Did you have DualOptiboot already compiled (hex file) with D8 led pin and with 8 mhz external crystal? It will be cool you include this file like Optiboot 6.2.. Thanks

                        GertSandersG Offline
                        GertSandersG Offline
                        GertSanders
                        Hardware Contributor
                        wrote on last edited by
                        #16

                        @Carl-H

                        The EEPROMs on this boards are of the I2C type and this is not supported by DualOptiboot, so unfortunatly you can not use OTA on this board.

                        OTA is only supported with SPI type flash memory.

                        I also do not have the sourcefiles for DualOptiboot to recompile it with my D8 LED flashing. At the moment I have to concentrate on other tasks at home, but recompiling DualOptiboot to my own desires is on my TODO list for this year (I hope).

                        Carl HC 1 Reply Last reply
                        0
                        • GertSandersG GertSanders

                          @Carl-H

                          The EEPROMs on this boards are of the I2C type and this is not supported by DualOptiboot, so unfortunatly you can not use OTA on this board.

                          OTA is only supported with SPI type flash memory.

                          I also do not have the sourcefiles for DualOptiboot to recompile it with my D8 LED flashing. At the moment I have to concentrate on other tasks at home, but recompiling DualOptiboot to my own desires is on my TODO list for this year (I hope).

                          Carl HC Offline
                          Carl HC Offline
                          Carl H
                          wrote on last edited by
                          #17

                          @GertSanders oh thanks, I have made an error... Maybe it will be working with MYSBootloader 1.3pre2 because he don't require any external memory.. Did you try before?

                          GertSandersG 1 Reply Last reply
                          0
                          • Carl HC Carl H

                            @GertSanders oh thanks, I have made an error... Maybe it will be working with MYSBootloader 1.3pre2 because he don't require any external memory.. Did you try before?

                            GertSandersG Offline
                            GertSandersG Offline
                            GertSanders
                            Hardware Contributor
                            wrote on last edited by
                            #18

                            @Carl-H
                            No, so far I have not experimented with OTA on this board or any of my boards.
                            Someone has used OTA on one of my other (batterybased) boards, because that one has an SPI Flash footprint.
                            When I get back to doing more MySensor stuff I will be experimenting with OTA. Being a Mac user my options are a bit limited now.

                            1 Reply Last reply
                            0
                            • MiKaM Offline
                              MiKaM Offline
                              MiKa
                              wrote on last edited by
                              #19

                              Hi,
                              please add order number or ebay link for enclosure (box)
                              THX!

                              mfalkviddM 1 Reply Last reply
                              0
                              • MiKaM MiKa

                                Hi,
                                please add order number or ebay link for enclosure (box)
                                THX!

                                mfalkviddM Online
                                mfalkviddM Online
                                mfalkvidd
                                Mod
                                wrote on last edited by mfalkvidd
                                #20

                                @MiKa which box are you referring to?

                                Generic boxes are available here: https://www.mysensors.org/store/boxes

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


                                10

                                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