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 own board (50mm x 30mm)

My own board (50mm x 30mm)

Scheduled Pinned Locked Moved My Project
133 Posts 22 Posters 94.1k Views 21 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.
  • GertSandersG Offline
    GertSandersG Offline
    GertSanders
    Hardware Contributor
    wrote on last edited by
    #15

    Battery-monitoring
    The capacitor between AREF and ground (C3 in my schematic) is not to pull that pin to ground, but to stabilise this reference. Not strickly needed I think, but I prefer it since my sensors will live in a "noisy" environment.

    The code to check the level of VCC using the internal 1.1V reference is found here:
    http://provideyourown.com/2012/secret-arduino-voltmeter-measure-battery-voltage/

    The error of 10% is something I can live with, since I need to be able to measure the supply-voltage and monitor it. It does not need to be super exact, since I plan to replace the batteries when I see levels around 2.2V. I'm mostly interested in the trend graph.

    When using a DC stepup converter, you will of course need to use a pin to measure the original battery level, because the step up will make VCC always 3V3. I like your idea of dual use, so I will implement the pins to hold a voltage divider anyway. It is indeed a good use of PCB space.

    I also ordered some step up converters (from Aliexpress) and I will measure them once I get them. Not all China stepups are crap it seems (as far as I read on various websites).

    LED
    As for the LEDs, I have only 1 LED on my boards. The LED blinks very shortly (5ms) every minute to show that a message is sent. It flashes three times if there is an error. So no need to have two leds. It is also the same LED that is flashed by the bootrom (I'm compiled nmy own version of Optiboot to used pin 14 of the atmega328. On a atmega1284p I use pin 1. This is personal preference.

    I checked your schematic. You will need to change the value of C1 (it is now 22pF, will need to be 100nF).

    I will need to read the datasheet of the atmega328 again to understand the exact use of AREF. I'm not sure that pulling this to VCC is a good idea.

    It seems you have removed the crystal and capacitors and plan to use the internal oscillator, I did this as well. Works most of the time, but uploading of sketches can give transmission errors of you go above 57K6 baud. Better to transmit at 36Kbit then (needs a change in the BOARDS.TXT file of Arduino IDE). Slower, but not a problem if you do not plan to change the sketch every 5 minutes.

    Here is a preview of my new board:
    upload-ef70e5f9-9073-4b47-a074-4a48779f1004

    It will be able to work both as a repeater (NRF24 with antenna) as well as a normal sensor board (small NRF24). The voltage divider on A0 is not yet implemented here. Still some empty spaces :-)

    Z 1 Reply Last reply
    0
    • A Offline
      A Offline
      ahhk
      Hardware Contributor
      wrote on last edited by ahhk
      #16

      Hi,

      thx for the feedback. Capa is changed to 100nF. It also works on my breadboard with 22pF ;)

      Battery-Monitoring
      The link to measure the vcc internally is great! Wow! Does this solution block any pins?
      But i stay with my double-solution - it is not too big on the pcb.

      Crystal
      Yes, i progged the fuses to run at 8Mhz-internal. Runs great and saves parts on the pcb and makes it cheaper ;)

      i am not sure, i understand your board. What are all the connectors for? Where is the ATMEGA? Size?

      Maybe we can join our board-ideas and design one-board together? ;)

      I am missing mounting holes on your pcb...

      Case
      I willl make my own case - a wooden case milled with my CNC...
      8mm Multiplex (or plywood)...looks quite good i think ;)

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

        Different version with mounting holes:
        upload-2854219b-739f-4d11-984c-f73b8519be82

        Schematic:
        upload-1e4c0b8f-b650-4ffb-a991-b9965b6add48

        Topsilk+documentationlayer:
        upload-4281ea10-4bdf-4285-9198-cc8aa3e5e7e1

        Bottomsilk +documentationlayer:
        upload-29293821-220a-494c-b3a3-74f9c923e2ac

        As I said: a work in progress. Nothing fixed yet.

        1 Reply Last reply
        0
        • A Offline
          A Offline
          ahhk
          Hardware Contributor
          wrote on last edited by ahhk
          #18

          Incredible many pinouts and holes! Wow! Are you sure you need them all? Looks much more complicated then my design. But looks cool, too :)

          This is my Case-Prototype - very flexible and easy to manufacture:

          CaseOne-Top.PNG CaseOne.PNG

          The top is adapted to every node-type. E.g. in the picture is the top for the humidity and temperature sensor. Then i plan to create a top for a PIR-Sensor, Acoustic-Sensor and a case for external Sensors and Powersupply, too.
          Maybe i engrave the type of the sensor into the top for a cool looking.

          Then i glue it together or use small magnets. Case is still in "alpha"-status - work in progress. If i need it higher, i just add a second, third (...) bottom part. Every part is made of 8mm wood. If i want another design, i can make a "cover" for the top or use other materials for this (Aluminium, POM,different wood, acryl...) Connections from the side are easy to realise, too. Just drill a hole after building or mill it before putting it together.
          If i could make a 3D-Modell from my PCB (and know how to do this with eagle), i could make a really nice picture with case, pcb and batteries...

          Size is approx 60x40mm.

          Greetings

          Andreas

          NeverDieN 1 Reply Last reply
          0
          • A ahhk

            Incredible many pinouts and holes! Wow! Are you sure you need them all? Looks much more complicated then my design. But looks cool, too :)

            This is my Case-Prototype - very flexible and easy to manufacture:

            CaseOne-Top.PNG CaseOne.PNG

            The top is adapted to every node-type. E.g. in the picture is the top for the humidity and temperature sensor. Then i plan to create a top for a PIR-Sensor, Acoustic-Sensor and a case for external Sensors and Powersupply, too.
            Maybe i engrave the type of the sensor into the top for a cool looking.

            Then i glue it together or use small magnets. Case is still in "alpha"-status - work in progress. If i need it higher, i just add a second, third (...) bottom part. Every part is made of 8mm wood. If i want another design, i can make a "cover" for the top or use other materials for this (Aluminium, POM,different wood, acryl...) Connections from the side are easy to realise, too. Just drill a hole after building or mill it before putting it together.
            If i could make a 3D-Modell from my PCB (and know how to do this with eagle), i could make a really nice picture with case, pcb and batteries...

            Size is approx 60x40mm.

            Greetings

            Andreas

            NeverDieN Offline
            NeverDieN Offline
            NeverDie
            Hero Member
            wrote on last edited by
            #19

            @ahhk said:

            This is my Case-Prototype - very flexible and easy to manufacture:

            Why do you say it's "easy" to manufacture?

            A 1 Reply Last reply
            0
            • GertSandersG Offline
              GertSandersG Offline
              GertSanders
              Hardware Contributor
              wrote on last edited by GertSanders
              #20

              @Andreas: nice woodcase. Do you have access to a CNC machine at home or at work ?

              My design is based on the idea that I want to have a maximum of options with the same PCB. Last night I printed some boardoutlines on paper and then placed the actual components on top. I find limitations in space this way. My idea of 1 long connector has a disadvantage: the small radio covers 4 pins, so that a top board would not be able to plug into these. I went back to a seperate header for the small radio and for the top board.
              Still thinking about powering options. VRAW (anything external), VCC (regulated to maximum 5V, e.g. from a USB port), 3V3 (regulated via bottom- or top-daughter boards), VBAT (from onboard AAA batteries). The problem is finding an elegant and easy way to choose. Solderpads are compact, but permanent. Jumpers are easy but big. Small toggle- or slide-switches are expensive.

              The fruit of last night's meditations:
              upload-28d0b2a4-7a0b-42a5-8be4-621438373d1d

              I have still not decided if I should use the pintout of the SI7021 breakout modules (VCC-GND-SCL-SDA) or the HTU21D (VCC-GND-SDA-SCL). Most breakouts seems to use 3V3, so I may need to plan for that.

              1 Reply Last reply
              0
              • scalzS Offline
                scalzS Offline
                scalz
                Hardware Contributor
                wrote on last edited by
                #21

                hi.
                nice boards guys!
                yep, so lot meditation for tiny things :laughing: I am still asking myself on some points..

                in my case I choosed solderpads. not difficult to change and it is small. but not as easy to use as jumpers. I think jumpers are useful for proto stage but then in real you won't need it and it will take place.

                I was thinking about having pinout for breakout too. but what if sellers change or stop boards. I don't think so, but it could happen...and it increase overall size too.
                but I understand your vision of your board (mine is full smd). I like your ideas too!

                See you soon and good luck for meditation :smile:

                1 Reply Last reply
                0
                • NeverDieN NeverDie

                  @ahhk said:

                  This is my Case-Prototype - very flexible and easy to manufacture:

                  Why do you say it's "easy" to manufacture?

                  A Offline
                  A Offline
                  ahhk
                  Hardware Contributor
                  wrote on last edited by ahhk
                  #22

                  @NeverDie said:

                  @ahhk said:

                  This is my Case-Prototype - very flexible and easy to manufacture:

                  Why do you say it's "easy" to manufacture?

                  I put a wooden 8mm-plate on my cnc and mill the parts :D Very cheap and fast made....

                  @GERT: I have a cnc at home. i built it several years ago ;) Take a look if u want: http://www.rc-network.de/forum/showthread.php/304809-CNC-FRÄSMASCHINE-OPEN-SOURCE-PROJEKT/page11

                  Power
                  I have only 2 possible variants in mind:

                  • Battery with or without step up (plugin boost converter)
                  • USB-Powered

                  For the last one i wanted to use these pcbs - glued into the case or plugged instead of the step-up module:
                  http://www.ebay.de/itm/301652467812?_trksid=p2060353.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT

                  Or i install a small connector into the case and solder 2 wires to the board. Something like this http://www.ebay.de/itm/2-Pair-DC-Power-Female-Male-Connector-Cable-Pigtail-Plug-Wire-CCTV-camera-White-/252099946337?hash=item3ab253e761

                  Everything should stay "easy&simple" and i think, once installed, the sensor will "hang around" for a year or longer....

                  Sensors
                  I checked 3 properties to find the correct sensor:

                  • minimum allowed voltage
                  • time for a measurement
                  • price

                  So, the htu21d was the winner for me - works great and fast after a little optimization of the arduino-library for this (replaced delay with gw.sleep)...

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    ahhk
                    Hardware Contributor
                    wrote on last edited by ahhk
                    #23

                    Next variant. Less flexible, but flexible enough. Boardsize now 50x30mm
                    It's only one pcb now and you can connect

                    • 5x sensors (digital or analog)
                    • 1x I2C and 3x sensors (digital or analog)

                    Step-up can be soldered to the bottom.

                    What do you think?
                    base2sch.png base2.png

                    1 Reply Last reply
                    1
                    • GertSandersG Offline
                      GertSandersG Offline
                      GertSanders
                      Hardware Contributor
                      wrote on last edited by
                      #24

                      hi Andreas,

                      What is the intention of TEMP4 and TEMP5 connectors ? I see that you pull up SCL and SDA, but all these connectors can do now is give VCC and GND on pin 1.

                      For TEMP1->3, it depends on how the sensor actually works. With Light Dependant resistor there is no issue. For other sensors (TMP36), a resistor pulling up to VCC would be a problem. A switch would be OK between pin 1 and 3 (GND) of those connectors. What is the usecase ?

                      I have a atmega1284 based design, which is not yet shared on OSHPark. The version I made has the NRF24 connector in the wrong direction (but this is still useful). However, I can not close the case with the NRF24 in place. It was made for a Hammond 1593N case (the transparent blue type, very cool):
                      IMG_6861.jpg
                      IMG_6860.jpg
                      IMG_6859.jpg
                      I used the case for the Arduino Due (bought this from Mouser).
                      I now corrected the orientation of the NRF24 connector but this not put this on OSHPark, because I can live with the mistake I made. Many ports on this one. But only works on 6-24V input. The power converters are from TRACO (1 for 5V, 1 for 3V3). It has 64KB EEPROM and RTC. Level converters for 5v->3V3 on I2C (so 2 I2C ports actually) and most pins are brought out together with 5V and GND.
                      The point here is that adding resistors to the three pin connectors is not really necessary. But it is nice to have signal-VCC-GND on three wires each time.
                      I think I will order the 1593K case next (to see what can be done with that), nice little box.

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

                        @Andreas: Very impressive CNC machine !!!

                        1 Reply Last reply
                        0
                        • A Offline
                          A Offline
                          ahhk
                          Hardware Contributor
                          wrote on last edited by ahhk
                          #26

                          Hi Gert,

                          thx for the cnc-flowers :D

                          Sensors

                          I thougt about the different nodes i will have later. The biggest node will have 5x DS18B20 - so i really dont need more than 5 "ports" to connect sensors. I changed them to the analog-pins of the arduino, because i can use them as digital and analog ports too...

                          Temp4 and Temp5 can be used as I2C ("horizontal") OR as Temp4 and Temp5 for DS18B20 ("vertical"). See top left corner of the board. I think it is very flexbile to not solder the resistors (disconnect VCC) or to solder a wire instead of the resistor (vcc to pad). In this way i can connect PIRs, DS18B20, Analog-sensors and so on....i just solder the parts i need for the sensors...

                          Only thing: I cannot use I2C AND Temp4 / Temp5 at the same time, because A4 and A5 are SCL and SDA too....
                          I hope you understand what i mean and try to reach...

                          Btw: Jumper-pins are not a must, if i want, i connect the sensors via wire to the pads, or solder them onto the pads directly....

                          Greetings

                          Andreas

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

                            A 3D view of my lastest board :+1:

                            upload-075a0c14-d55f-4c52-946c-8962127de3fb
                            upload-9c879fc0-e05c-4eb7-91f7-5a2d307244fb
                            upload-c4bb585c-691d-4211-87d7-ac5b78906a26
                            upload-6505f209-0883-45ac-999b-0ae1b85be314

                            Tool used: http://mayhewlabs.com/3dpcb

                            So cool to see a 3D render, very fluid when moving around :-)

                            1 Reply Last reply
                            0
                            • A Offline
                              A Offline
                              ahhk
                              Hardware Contributor
                              wrote on last edited by
                              #28

                              Hi,

                              3d-view is really nice. I dont know why, but my gerber files dont work. Board is BIIIIIIIGGG and without holes :(

                              I asked in the hardware-forum, if there are any errors in my design. (http://forum.mysensors.org/topic/2042/errors-in-pcb-design)

                              I must finish this and order my boards now ;) Otherwise i will never find an end....

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

                                Getting close to final layout myself ....

                                Unknown.jpg
                                Unknown-2.jpg

                                1 Reply Last reply
                                1
                                • A ahhk

                                  Hi,

                                  i thougt a long time about placing such a booster on the pcb. Its quite difficult to find a good(!) booster. Lots of the cheaper booster draw a lot of current (quiescent current) - like the one behind your link. I tested only 2 until today.

                                  This one: http://www.exp-tech.de/pololu-3-3v-step-up-spannungsregler-u1v10f3?gclid=CPmll6rH0ccCFRI6Gwod884Lxg
                                  and this one: http://www.exp-tech.de/sparkfun-ncp1402-3-3v-step-up-breakout-prt-10967?gclid=CPCv55_H0ccCFUu6GwodKDUHwA

                                  Current consumption differs approx 30uA between those 2 (red 70uA, green 100uA in sleepmode with sensors etc)...
                                  Did you check current-consumption of your booster?

                                  Actually i am changing the board size to 50mmx24mm - its a lot cheaper to order from fusionpcb (seeedstudio)...
                                  Thats a lot.
                                  Greetings

                                  [▲QUICK EDIT]
                                  Something like this? Booster soldered vertical....In this way you must select with the solder jumper how to power the board (battery direct or via booster)...schema.png board.png

                                  M Offline
                                  M Offline
                                  maciejka
                                  wrote on last edited by
                                  #30

                                  @ahhk said:

                                  Hi,

                                  i thougt a long time about placing such a booster on the pcb. Its quite difficult to find a good(!) booster. Lots of the cheaper booster draw a lot of current (quiescent current) - like the one behind your link. I tested only 2 until today.

                                  This one: http://www.exp-tech.de/pololu-3-3v-step-up-spannungsregler-u1v10f3?gclid=CPmll6rH0ccCFRI6Gwod884Lxg
                                  and this one: http://www.exp-tech.de/sparkfun-ncp1402-3-3v-step-up-breakout-prt-10967?gclid=CPCv55_H0ccCFUu6GwodKDUHwA

                                  Current consumption differs approx 30uA between those 2 (red 70uA, green 100uA in sleepmode with sensors etc)...
                                  Did you check current-consumption of your booster?

                                  Actually i am changing the board size to 50mmx24mm - its a lot cheaper to order from fusionpcb (seeedstudio)...
                                  Thats a lot.
                                  Greetings

                                  [▲QUICK EDIT]
                                  Something like this? Booster soldered vertical....In this way you must select with the solder jumper how to power the board (battery direct or via booster)...schema.png board.png

                                  Hi ahhk,
                                  Can You share brd files for this version? Thanks.
                                  Maciej

                                  1 Reply Last reply
                                  0
                                  • A Offline
                                    A Offline
                                    ahhk
                                    Hardware Contributor
                                    wrote on last edited by
                                    #31

                                    Hi,

                                    sure i will share the brd-file and schemativ. No problem. But let me first build one working sensor. I think i will order the pcbs this weekend, because this looks good too =>
                                    IMG_20150925_130732.jpg IMG_20150925_130712.jpg

                                    1 Reply Last reply
                                    1
                                    • GertSandersG Offline
                                      GertSandersG Offline
                                      GertSanders
                                      Hardware Contributor
                                      wrote on last edited by GertSanders
                                      #32

                                      Done, this will be sent to the PCB makers:

                                      Top:
                                      top.png
                                      Bottom:
                                      bottom.png

                                      1 Reply Last reply
                                      1
                                      • scalzS Offline
                                        scalzS Offline
                                        scalz
                                        Hardware Contributor
                                        wrote on last edited by
                                        #33

                                        each boards are nice, good work :wink:

                                        1 Reply Last reply
                                        0
                                        • A Offline
                                          A Offline
                                          ahhk
                                          Hardware Contributor
                                          wrote on last edited by
                                          #34

                                          PCBs are ordered (shenzen2u)....i am very curious about it :)

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


                                          9

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.0k

                                          Posts


                                          Copyright 2019 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