๐Ÿ’ฌ Easy/Newbie PCB for MySensors


  • Hardware Contributor

    Hi @BastienVH

    Do you use 3.3 or 5v arduino?
    How do you power it?
    Did you solder the pinheader / jumper?

    I have rev7 myself, and those works great for me.



  • I have a 3.3v arduino.
    At the moment it's powered the FTDI232 connected to my computer.
    I will transfer to battery once I'm done.
    Do you mean the "BAT" / "REG"?
    I haven't soldered that. I'm guessing that's necessary?

    Also, while I have you hear ๐Ÿ˜‰ , if I want to use the battery measuring, do I have to add the 0.1uF capacitor?
    What advantage does it provide?

    Thanks for your help!


  • Hardware Contributor

    If you use the FTDI connector, make sure its the 3.3v and connect it to Gnd/Pwr on the PCB and not Arduino FDTI connector.
    You could just exclude those pins and connect a battery directly and use that as power and the FDTI as programmer/serial debug only

    Bat or Reg is nessecary!
    See this picture for battery use: https://www.openhardware.io/view/4/EasyNewbie-PCB-for-MySensors
    https://www.openhardware.io/uploads/568ed84b60aa3f8965fbf095/image/3.jpg
    All components in the image is needed (except battery measurment).
    If you dont want to use booster you need to bypass that one with a wire/jumper (or set the jumper on REG instead of BAT but that kills the logic).

    The battery doesnt "need" the 0,1uF but see here:https://www.mysensors.org/build/battery
    "The tap point could be bypassed with a 0.1 uF capacitor to keep the noise level low, at this otherwise high impedance point. "



  • @sundberg84
    Thanks for the explanation!
    I think I've got it now.
    Will test and get back with the results when I've gotten my hands on some more solder wire!


  • Contest Winner

    Hi,
    I see you use CERN OHL but I do not find the required files.
    Where do you store those?
    According to the CERN OHL 1.2 howto, you need to provide the following documentation with your project:
    LICENSE.PDF
    cern_ohl_v_1_2_howto.pdf
    PRODUCT.TXT
    CHANGES.TXT

    Please check the howto closely for how to use the license, or pick another license. If it is not used according to spec, others don't need to follow it either since it is invalid, so you won't be "protected" by it.



  • @BastienVH
    Replying to myself to follow up on my assembly-issues.
    I have been able to get the board to work.
    I don't have my 0.1ยตF caps yet, so I just put a little blob of solder in the holes so the current could run through.
    Now I've got myself 2 working board. I just have to find a good way to attach my PIR, dallas temp, ... to them.

    Thanks for the work and help!


  • Plugin Developer

    I'am now finnish with my first rev7 node.
    It is a Arduino 5V with DHT-22 and a HC-SR501 sensor.
    1_1454528676795_IMG_6223 copy.jpg
    0_1454528676794_IMG_6224 copy.jpg

    Good work @sundberg84 for the PCB


  • Hardware Contributor

    @BastienVH Good to hear - its not essential to have to 0.1uF cap on the voltage retulator, it will work without but its good to keep noice out.
    @ErrK Nice, I see you run through RAW pin and using the internal voltage regulator on the arduino - I have not tested that much, does it work ok?



  • @sundberg84
    When I get the caps, I'll place them on the board.
    I did notice alot of noise when I was reading battery state on a breadboard in an earlier build, so I will get that sorted.
    Only problem is I can't find them locally, so have to get them from China.
    Will take a while...


  • Plugin Developer

    @sundberg84 yes it's working good. But the problem is that it's eating up the batteries ๐Ÿ™‚
    It was up for only 15days.

    I will now test with a arduino that i have removed the led and volt regulator.


  • Hardware Contributor

    Sounds good @ErrK - dont forget to power it through REG and not RAW on the PCB and add a jumper on REG since it wont work if you use the same setup as in the images and remove voltage regulator.


  • Plugin Developer

    Thank you @sundberg84. I will think of that.



  • Hi,
    Why have you redesigned from rev7 to rev8?
    When will the rev8 be tested ?


  • Hardware Contributor

    @Barna - I just wanted to make it smaller, with the radio not sticking out so much.
    I ordered them a while ago, so if they made it out of china before their new year I think it will be tested soon.



  • Just received Rev 8 :

    alt text

    I'll test it asap ๐Ÿ˜ƒ


  • Hardware Contributor

    Nice. @dark-nico
    The main concern is the new placement of caps and voltage divider - I hope they fit in between the radio and screw terminal. Should not be a problem - but you know, always nice to see it IRL. Might be good to solder them first before radio, arduino and screw terminal.



  • Ok, I'll do that.
    My main problem is that I haven't received both my booster and my 5->3.3 reg. ๐Ÿ˜ž
    So I can test Batt version by bypassing the booster, but it will not tell us if the reg placement is ok.
    I'll dig in my "donor harware" if I can find a reg.



  • Looks good!

    alt text

    and works fine!

    Perfect, thanks again ๐Ÿ‘

    I'll test the batt version as soon as I receive the boosters.


  • Hardware Contributor

    @dark-nico - You know its easy to cut the PCB to make it smaller? Using it as 5v you can remove the right battery part:

    Either cut with a knife and brake:
    https://www.youtube.com/watch?v=SiC-_g3iNb8

    Or sometimes i just use a saw (before components are added) - might not be recommended ๐Ÿ˜‰



  • @sundberg84 - Yes I know that I can cut that part, but I think this one will be my test board with all this option, including the battery parts.
    However I'll keep the video method in mind, I was thinking about using a dremel, but, it seems cleaner.


  • Hardware Contributor

    @dark-nico Ok, have not tested adding both Bat and reg/5v posibilities at the same time. Might be that 5v travels backwards towards the booster... try it out, but as I said, not tested.



  • @sundberg84 : I have also received the rev 7 from DirtyPCB and learned how to solder. Very nice and flexible design !
    0_1455455160676_20160214_133450.jpg
    Perfect for a Newbie :). Thnaks a lot for sharing


  • Hardware Contributor

    Hi!
    No problems! Makes me glad to see i made something usefull for others ๐Ÿ™‚
    Interesting setup you got the with the HLK as power ๐Ÿ‘



  • Great design and project, thank you for sharing it. I really like the rev8 approach in reducing overall size as it will fitt much better in my boxes.
    Is it possible to get rev8 files needed to order PCBs from some other places?
    Keep up the good work!


  • Hardware Contributor

    @dakipro If you "download all project files" @ https://www.openhardware.io/you will get all files (Eagles, Gerber (run with Iteads CAM job) and other stuff).



  • Please excuse the questions, but you did say this is for Newbies, right? ๐Ÿ™‚

    I'm planning on using this with the 3.3v Arduino with battery power once things are debugged. I see above that you say to power from the battery input rather than the FTDI pins. Is that for 5V and 3.3V? Also, what is the resistor labeled D3 Res Temp/Hum used for?


  • Hardware Contributor

    Hi! @chuckconnors

    You should input power/gnd to the 5v/GND on the PCB and not the ftdi connector on the arduino you have soldered on the pcb. See the images above. This is how the board is designed. It doesnt matter if its 3.3 or 5v.
    The resistor is for if you want to use for example a dallas temp or dht22 on pin 3, then you can add a resistor there since these sensors require this.



  • @sundberg84 Thanks for the reply. Please forgive my ignorance, but can you explain what happens if you connect power via the FTDI pins? Wouldn't it still power the chip and radio?

    Should I supply the 5V/GND from the FTDI interface to the VCC/GND pads on the bottom left side of the board?


  • Hardware Contributor

    @chuckconnors well it depends on your setup. It can be done with powering through fdti but it's easier to just not recommend it. For example 3.3v with a booster /bat setup powering through vcc on arduino will not power the radio.

    That works great. You can connect the fdti to the arduino but extend vcc and gnd with wired to the pcb. To power everything run these cables to the pads in the middle and top of the pcb.



  • @sundberg84 Thanks for the clarification. I took a look at the board images and I see what you mean. Forgive me again for trying your patience, but could you be so kind as to tell me what the minimum required components are for using this board with a 3.3V Arduino?

    Currently I'm only using the Arduino, radio, radio capacitor, power supply (battery or 5V ), and whatever sensors required for that node. This worked out well using the standard hookups as the radio was being powered by the Arduino and the radio is guaranteed the correct voltage via the built in regular on the Arduino, but as you've mentioned this isn't an option with your board. Do I need to include the battery caps and regulator? Again, I'm a novice and I can follow the traces on the top side of the board using the silkscreen labels as a guide but it's a bit harder to follow on the unlabeled bottom side. Do most of you guys use the 5V Arduino?



  • @sundberg84 said:

    If you use the FTDI connector, make sure its the 3.3v and connect it to Gnd/Pwr on the PCB and not Arduino FDTI connector.
    You could just exclude those pins and connect a battery directly and use that as power and the FDTI as programmer/serial debug only

    Bat or Reg is nessecary!
    See this picture for battery use: https://www.openhardware.io/view/4/EasyNewbie-PCB-for-MySensors
    https://www.openhardware.io/uploads/568ed84b60aa3f8965fbf095/image/3.jpg
    All components in the image is needed (except battery measurment).
    If you dont want to use booster you need to bypass that one with a wire/jumper (or set the jumper on REG instead of BAT but that kills the logic).

    The battery doesnt "need" the 0,1uF but see here:https://www.mysensors.org/build/battery
    "The tap point could be bypassed with a 0.1 uF capacitor to keep the noise level low, at this otherwise high impedance point. "


  • Hardware Contributor

    @chuckconnors Well, it is possible... you can always hard wire/bypass stuff with wires... its possible.
    See @BastienVH for minimun req. 3.3v. In bat. operations you feed the radio directly from batteries - less noice and radio can handle down to 0.9V (i think) so its not a problem. You need the booster for sensors and arduino requiers 3.3v to run. You can also feed 3.3v directly to VCC on the PCB if you have that regulated. Then you can just add jumper to reg.

    If you tell me exactly what you want to do i can help you and explain what you need and how to wire it. With your setup now like you described and you run that on 3v batteries it will be dead within a week.

    If you want battery power - you should go with 3.3v arduino (advantage: last longer)
    If you have regulated 5v (like from a phone charger) use 5v arduino (advantage: smaller PCB)


  • Hardware Contributor

    First battery node with rev 8 is up and running... need to test 5v version as well but looks good so far
    0_1456177952831_20160222_213338.jpg



  • Hi,
    I've received boards from dirtypcb, it looks pretty good! Very nice design!

    Just have a few questions:

    1. May I use 78L33 voltage regulator instead of LE33ACZ?
    2. Do you know what is the RAW input tollerance of Pro Mini 3.3V (ebay one, not genuine one)?
      I'm thinking of attach temperature sensor to my PIRs in my home and feed it parasitically from PIR (~13VDC). Do you think is it possible?

  • Hardware Contributor

    Hi Lukasz!

    1. 78L33 is a 3.3v regulator so yes, but is different pins depending on which version you have so you need to check where you put the pins. From left Vout, Gnd and Vin should be connected to the PCB. Compare it with LE33 pinouts.

    2. In theory it should be 12v BUT its a fact that manu clones cant handle that. I would not go above 9v.



  • @sundberg84

    1. Ok I will check pinouts
    2. I understand. So what is the best way in your opinion to feed node parasitically in safe manner? Use voltage regulator to step down voltage to safe 3.3v? Should I expect any significant heat? I'm aware of heat becouse it can trigger false alarm of my PIR

  • Hardware Contributor

    I would go with a voltage regulator from your 13v to 5 or 3.3v depending on which arduino you buy. I would connect this to PWR on the pcb and avoid using arduino internal voltage regulator (avoid use of two voltage regulators).



  • Thanks sundberg84, I will give a try.
    One last question. I didn't find any note in BOM list. May I use ceramic caps instead of electrolitic ones?
    I 'm not able to find electrolitic 0.1uF caps at my local store.


  • Hardware Contributor

    Yes, you can replace it with a ceramic. There are alot to read about the differences on the net.



  • Ger..
    Like to order your stuff...
    Only what are the specs of all your Resistor and Capacitor..
    Or perhaps you can make the bom complete..

    Cannot wait...


  • Hardware Contributor

    @Dombo71 - Hi!
    The BOM is complete, all capacitors needed and its values are found in the BOM tab.
    Since caps are so cheap and common i wont specify any link since you can find theme anywhere.



  • Anyone from the Netherlands who ordered a pack of the rev.8 boards? How long did it take to be delivered?
    The status update on dirtypcbs.com says Shipped on 27 Jan 2016 and I can't wait until I receive them! ๐Ÿ™‚


  • Hero Member

    @lxz I can take around 2 months... ;-(, but in most cases within 5 weeks after shipping.



  • By heart it took about 10-12 days. "maar pin me er niet op vast"


  • Hardware Contributor

    @lxz Chinese New Year Holiday is just over, there seems to be quite a backlog for items ordered in january. It depends on some luck, to Antwerpen took around 6 weeks.



  • Thanks for the replies, guess I have to wait some more then ๐Ÿ™‚



  • I love this PCB. It makes things so much easier. I am having a little problem with the battery version though. I think I've got it wired up right. I've got the jumper. I've got the booster. But, when I plug in a battery (I've tried a 3.7 volt battery, outputting 3.3v - the one from the solar weather station project, and 2 or 4 AA batteries), I get a "Radio Init Fail" message in the serial monitor. Also, the LED at the back, the one near the reset button, does not light brightly. It initially flashes brightly, then nothing.

    I've wired it up two different times for the battery setup, and with neither am I getting the live radio.

    I am able to get a good radio with the 5v setup.

    0_1457023603222_IMG_2712 (1).JPG 0_1457023616266_IMG_2713 (1).JPG


  • Hardware Contributor

    Hi!
    @gentrfam
    It looks correctly wired. The radio (when bat jumper is selected) is feed directly from the battery, so you need to keep within the specs of the radio (0,9v- 3.6v).
    First thing I would do is measure volt over radio. Also measure volt over the arduino. Working backwards can give you a clue where it fails if its a power problem.

    My wild guess is that either its not a genuine/working NRF radio, or you have a cold/bad solder point on arduino and/or radio.

    I always check my radio before soldering them... a while back I counted that I have ordered 33 radios from Ebay and 3 of them was broken so far. So i have a Easy board just for radiocheck loaded with timeaware sketch.



  • @sundberg84 Thank you. I checked, and out of the solar-powered battery, I'm actually just out of the radio spec - 3.7-4.0v. I'm going to try with a new radio, and a smaller battery to see if I fried this radio.

    In the meantime, I tried to run the battery through an LE33 regulator on a breadboard. (Eventually, I'd like to run the solar-battery through the measuring circuitry on the PCB.) Any idea why the LE33 would be outputting 0.6v?

    Thanks for your help. I'm afraid I'm a complete and total noob on this.


  • Hardware Contributor

    No, check incoming voltage to the LE33 - is this correct?
    Is the caps oriented (ground) correcly? (if you have any).
    Broken?



  • Hi,
    I already received PCB, soldered everything and I'm stuck with reliable radio quality. It works good only when I keep touching antenna on nrf board with my finger. Once I release my finger I've got st=fail.
    I've soldered two boards already, tried with two different radios and have same results
    I use nrf24L01+ with internal antenna and 5v pro mini, voltage regulator and caps (100nF, 10uF and 4,7uF) as well.

    Do you have any ideas what can be wrong?
    0_1457048331343_2016-03-04 00.34.16.jpg
    0_1457048341100_2016-03-04 00.34.32.jpg



  • I can't wait to get mine, I bet on version 8 ๐Ÿ˜„ .Fear {display:none;} despite being a noob with electronics.

    Although I do have a question, for a 5v pro mini...

    Suppose I power this using a 9v battery, assuming connection to the RAW, that means not BAT or REG jumpers ?

    And I also wont be able to use the voltage divider to read the voltage.

    However It looks like that if there is no jumper in BAT or REG the voltage divider circuit is independent. Would it be possible to re-wire the voltage divider circuit to measure the RAW 9v from the battery?

    Does anyone know what happens to the internal voltage regulator when the battery gets week? Would the vcc library get any idea of what is happening to the current internally?

    Cheers



  • Hello!
    @fisher
    Please have a look here: http://forum.mysensors.org/topic/2989/nrf24l01-range-of-only-few-meters/7
    It solves my problems.


  • Hardware Contributor

    @fisher as @sven said - it might be a issue with your nrf... i have seen this issues in several forum posts.
    Also, you can try to add a wire from nrf ground to scource ground (and/or try same from voltage regulator) to strengthen your ground connection.

    @barduino Asuming you are using 5v arduino and using RAW you add a voltage regulator (3.3v) to the radio. You do not need any jumper.
    The voltage divider only works from PWR input but if you make a wire from PWR to Vin (right hole) on the booster this should work fine with the voltage divier.

    The internal voltage regulator can handle 3.35 -12 V (3.3V model) or 5 - 12 V (5V model). Below this the regulator will fail, so you need to set your battery measurment to 0 % 5v 100% = 9v.

    This has not been tested by me yet on rev 8 so please share your findings.



  • @sven, @sundberg84 I soldered 83mm wire as mentioned on video and it works like a charm. I'm wondering if it's poor quality of my piece of radios or maybe this is general problem with this type of radio.

    Guys thanks again. You made my day!



  • Thanks @sundberg84



  • It took a while, but I received the rev8 boards last week. I have already had some time to play with it and it works perfectly on 2x AA. Thanks for sharing your pcb design @sundberg84



  • @sundberg84 said:

    @chuckconnors Well, it is possible... you can always hard wire/bypass stuff with wires... its possible.
    See @BastienVH for minimun req. 3.3v. In bat. operations you feed the radio directly from batteries - less noice and radio can handle down to 0.9V (i think) so its not a problem. You need the booster for sensors and arduino requiers 3.3v to run. You can also feed 3.3v directly to VCC on the PCB if you have that regulated. Then you can just add jumper to reg.

    If you tell me exactly what you want to do i can help you and explain what you need and how to wire it. With your setup now like you described and you run that on 3v batteries it will be dead within a week.

    If you want battery power - you should go with 3.3v arduino (advantage: last longer)
    If you have regulated 5v (like from a phone charger) use 5v arduino (advantage: smaller PCB)

    @sundberg84 I just got my boards in and am hoping to hook things up this weekend for a simple Temp/Humidity node with a DHT11. The plan is to provide 5V input from an old phone charger. I'd like to wire this directly to the arduino via the GND PWR pads at the top. What jumper do I need to set for this?

    Can I just power the radio through the 4.7uF cap via the 3.3V and ground pads on the left side of the board via some wires? Does the radio already have a ground coming from the ground on the arduino? I'm assuming that power would be coming from the arduino regulator. Will this set up work?

    Thanks again for your patience.


  • Hardware Contributor

    @chuckconnors - great weekends plan ๐Ÿ‘
    Im suspecting you are going to run a 3.3v pro mini?

    The PCB is designed so if you want to input 5v you set the REG jumper, use a 5v pro mini and use a external voltage regulator for the radio - see here!

    If you are planning to use a 3.3v arduino and power it with 5v you need to input power to RAW and wire a connection/bypass on the voltage regulator. This is not the main design for the PCB but should work. What you need to know is that pro mini internal voltage regulator is not as good as an LE33AC in my world so there might still be great value of using the 0.1 and 10uF caps on power to radio.

    Ground from Radio always goes straight to ground scource, not Arduino Pro mini.



  • @sundberg84 Thanks for the information. So the 5V source goes to RAW input and this goes to the RAW jumper on the left portion of the board. I need to jump that to complete the connection to get RAW power to the Arduino, right? From there it looks like the 3.3V connects to the 4.7uF cap and the power on the radio so I'm assuming once RAW power is supplied to the Arduino that I'd start getting 3.3V output from the 3.3V pin on the Arduino. Am I reading the traces wrong?

    Thanks again


  • Hardware Contributor

    @chuckconnors Hi! Dont mind the RAW jumper, this is a future/requirement for MysX connector and is only used if you want RAW power to the connector to the left. Put 5v to the top right RAW input.

    0_1458150780563_1.jpg

    The caps are not regulating anything - they are just smoothing everything out ๐Ÿ™‚



  • @sundberg84 A picture is worth a 1000 words! Thanks for taking the time to do this for me. I don't have the 0.1uF or 10uF caps available but will order and add them. My real problem is that I am limited in the components I have on hand and have to order them so it takes a while (plus I'm anxious to work on this!).


  • Hardware Contributor

    @chuckconnors You can do it without the 0.1 and 10uF caps but it can generate some range issues and instability. The most important is 4.7 but I have nodes both working without 0.1 and 10uFcaps and nodes that completley failed without them.



  • I am doing the above (RAW with 5-7V on 3v minis). Would be great in a future revision to allow the bypass of the regulator. Also I jumped RAW to PWR and cut the trace from PWR so I could use a 2 pin header for power and ground ๐Ÿ™‚


  • Hardware Contributor

    @chuckconnors I will think about how to bypass the voltage regulator, but anyway you need to solder something (either a jumper or voltage regulator). Do you have any tips?

    Good tip with the raw/pwr. If you have not cut the pcb you also have the proto area where the first is VCC (3.3) and second is Gnd.



  • @sundberg84 I was able to use your marked up image to successfully build two nodes without problem. Thanks again for the help with hooking things up and for providing the board for purchase as well. I was able to build the whole thing in about 10 minutes even with my limited soldering abilities.

    The only gripe I have is that one of my boards had a hole for the 4.7uF cap that wasn't completely drilled out. It was easy enough to just solder to the nearby ground. This is a dirtyboards quality control issue. I'm hoping not to see this on any of my other boards. I guess I'll have to inspect them before adding the components for future nodes.

    All the best to you!


  • Hardware Contributor

    @chuckconnors! Thank you for those kind words - it is appreciated.
    To save your node without the hole for 4.7uF you can solder it directly on the nrf if needed. I hope you have great use for the boards in the future.



  • @sundberg84 I'm about to make an aliexpress order and would like to get some voltage regulators. I scanned through the post but didn't see a BoM. Can you please tell me the part number for the voltage regulator used?


  • Hardware Contributor



  • The boards have arrived!!! YES!!

    It took about 3 weeks between the shipping status and my mailbox. I guess I cant complain.

    0_1459186281454_IMG_0422.JPG

    @sundberg84 I do have another question.

    Are the pins A6, A7 and the extra ground (next to A6) connected at all? is it worth to solder a connector on them to the PCB?

    Edit: or maybe 2...
    D8 does not seem to be used, is this correct?

    Cheers


  • Hardware Contributor

    @barduino

    From the look of the design files, your are correct, A6 A7 and D8 are not connected. The GND pin is connected to the GND on the PCB, so just for the sake of ticking all the boxes, i would have that connected to the PCB from the Arduino.

    Wait for @sundberg84's confirmation on my details, but from what i understand my observations stated above are correct. As i say though, wait for Sundberg's confirmation. I wish you happy tinkering with yet another awesome contribution from Sundberg. ๐Ÿ˜‰


  • Hardware Contributor

    @barduino A6 and A7 is not connected, but as @Samuel235 said - the ground is connected to the PCB with a line to ground source. There are three grounds connected from the arduino (I dont know why exactly) and they are all connected/wired on the PCB.



  • @Samuel235 , @sundberg84 , thank you both



  • @sundberg84
    Hi,
    The suppler has an similar product, is it usable for the same purpose?

    http://www.ebay.com/itm/5x-DC-2V-5V-3-3V-Boost-Buck-Converter-315M-433M-2-4G-RF-Wireless-Module-/181768067370?hash=item2a5238992a

    0.8-3.3V v. 2-5V ?
    thanks


  • Hardware Contributor

    @Barna Its possible to use this, but you want as low as possible and not 2V. This means using 2xAA (3v max) you only have a range down to 2V before the booster wont work anymore. At this point if you have not changed the fuses in the arduino it will fail. I guess you could use this with 3XAA (4.5V) as well if thats what you are aiming for.



  • @sundberg84
    ok, thanks. In that case some power will be left in the AAs, Am I right?
    what do you advice if I need 5V for some sensors but I would like to use battery?
    3xAA, 4xAA, 9V with regulator - is the lifetime of battery is efficient in this case ?


  • Hardware Contributor

    @Barna
    That is a hard question, because i try to do 3.3v for battery and 5v for regulated power.
    I have 1 node at this point running on a 9v battery and 5v arduino (motion detector) but without booster and battery measurment. I have removed led and at this point i have had it run for 4 weeks. I have NO clue about batterylife but I do not expect it to work pretty long.



  • mmmm i think that al this work, for a 4 weeks working sensor is not a good solution for a home automation system....
    Why can a Zwave or 433Mhz motion sensor work for more then a year...
    Is my biggest question..
    Forum link

    Is there relay now solution for a battery live for a year...
    Other bord, other sketch, other regulator, other battery...

    or...



  • @Dylano Google for low power arduino mini. Or arduino mini on battery. I've got one running now for half a year on two aaa batteries. Only lost 10% or something.
    (Quickest is to remove the led and the voltage regulator)


  • Hardware Contributor

    @Dylano Im not sure if I understand what you mean. This PCB does not support 433mhz or Zwave. You need to make that a question in the forum. I have nodes with this PCB now almost running for a year, and reporting good battery level.

    As Sander told you above, remove led and voltage regulator on a 3.3v arduino and you will run a mysensor node for a year:
    alt text



  • This post is deleted!


  • @Sander-Teunissen I have some rev6 that I am willing to sell. Let me know if you are interested.



  • If someone has one of these left in germany or nearby i'm willing to buy one for daugther-board dev purposes.



  • @sundberg84 said:

    I have nodes with this PCB now almost running for a year, and reporting good battery level.

    I see that battery measuring is not working in my case.
    Can you post your sketch for a DHT22 or dallas sensor? Because readVCC.h does not work with a step up booster and 2x AA batteries connected, it seems..


  • Hardware Contributor

    @lxz This is my code (Note dev branch!) for DHT22 incl battery measuring (2xAA).
    The reason for readVCC:h does not work is that you measure after the booster = always 3.3V!

    // Enable debug prints
    #define MY_DEBUG
    
    // Enable and select radio type attached
    #define MY_RADIO_NRF24
    //#define MY_RADIO_RFM69
    #define MY_NODE_ID 15
    
    #include <SPI.h>
    #include <MySensor.h>  
    #include <DHT.h>  
    
    #define CHILD_ID_HUM 0
    #define CHILD_ID_TEMP 1
    #define HUMIDITY_SENSOR_DIGITAL_PIN 3
    unsigned long SLEEP_TIME = 600000; // Sleep time between reads (in milliseconds)
    
    #define SKETCH_NAME "UtomhusHumSyd #15"                // Change to a fancy name you like
    #define SKETCH_VERSION "1.0"                    // Your version
    
    DHT dht;
    float lastTemp;
    float lastHum;
    boolean metric = true; 
    MyMessage msgHum(CHILD_ID_HUM, V_HUM);
    MyMessage msgTemp(CHILD_ID_TEMP, V_TEMP);
    
    //=========================
    // BATTERY VOLTAGE DIVIDER SETUP
    // 1M, 470K divider across battery and using internal ADC ref of 1.1V
    // Sense point is bypassed with 0.1 uF cap to reduce noise at that point
    // ((1e6+470e3)/470e3)*1.1 = Vmax = 3.44 Volts
    // 3.44/1023 = Volts per bit = 0.003363075
    #define VBAT_PER_BITS 0.003363075  
    #define VMIN 1.9                                  //  Vmin (radio Min Volt)=1.9V (564v)
    #define VMAX 3.0                                  //  Vmax = (2xAA bat)=3.0V (892v)
    int batteryPcnt = 0;                              // Calc value for battery %
    int batLoop = 0;                                  // Loop to help calc average
    int batArray[3];                                  // Array to store value for average calc.
    int BATTERY_SENSE_PIN = A0;                       // select the input pin for the battery sense point
    //=========================
    
    void setup()  
    { 
     analogReference(INTERNAL);             // For battery sensing
    
      delay(500); // Allow time for radio if power used as reset
      
      dht.setup(HUMIDITY_SENSOR_DIGITAL_PIN); 
    
      metric = getConfig().isMetric;
    }
    
    void presentation()  
    { 
      // Send the Sketch Version Information to the Gateway
     // Send the Sketch Version Information to the Gateway
      sendSketchInfo(SKETCH_NAME, SKETCH_VERSION);
    
      // Register all sensors to gw (they will be created as child devices)
      present(CHILD_ID_HUM, S_HUM);
      present(CHILD_ID_TEMP, S_TEMP);
    }
    
    void loop()      
    {  
      delay(500); // Allow time for radio if power used as reset
      delay(dht.getMinimumSamplingPeriod());
     
      // Fetch temperatures from DHT sensor
      float temperature = dht.getTemperature();
      if (isnan(temperature)) {
          Serial.println("Failed reading temperature from DHT");
      } else if (temperature != lastTemp) {
        lastTemp = temperature;
        if (!metric) {
          temperature = dht.toFahrenheit(temperature);
        }
        send(msgTemp.set(temperature, 1));
        Serial.print("T: ");
        Serial.println(temperature);
      }
      
      // Fetch humidity from DHT sensor
      float humidity = dht.getHumidity();
      if (isnan(humidity)) {
          Serial.println("Failed reading humidity from DHT");
      } else if (humidity != lastHum) {
          lastHum = humidity;
          send(msgHum.set(humidity, 1));
          Serial.print("H: ");
          Serial.println(humidity);
      }
      batM();
      sleep(SLEEP_TIME); //sleep a bit
    }
    
    void batM() //The battery calculations
    {
       delay(500);
       // Battery monitoring reading
       int sensorValue = analogRead(BATTERY_SENSE_PIN);    
       delay(500);
       
       // Calculate the battery in %
       float Vbat  = sensorValue * VBAT_PER_BITS;
       int batteryPcnt = static_cast<int>(((Vbat-VMIN)/(VMAX-VMIN))*100.);
       Serial.print("Battery percent: "); Serial.print(batteryPcnt); Serial.println(" %");  
       
       // Add it to array so we get an average of 3 (3x20min)
       batArray[batLoop] = batteryPcnt;
      
       if (batLoop > 2) {  
         batteryPcnt = (batArray[0] + batArray[1] + batArray[2] + batArray[3]);
         batteryPcnt = batteryPcnt / 3;
     
       if (batteryPcnt > 100) {
         batteryPcnt=100;
     }
     
         Serial.print("Battery Average (Send): "); Serial.print(batteryPcnt); Serial.println(" %");
           sendBatteryLevel(batteryPcnt);
           batLoop = 0;
          }
         else 
         {
         batLoop++;
         }
    }```


  • Hi

    I also bought v8 of these boards. 2 sensors up an running perfect.

    2 others modules on the other hand, I think I fried the arduino. I am using 5v mini's. They worked when programming thru the USB port. Also communication with domoticz. They stopped working when I attached the 6v external adapter. I connected these to the ground and power connector. Now lights go on, but nothing anymore also not on the serial monitor.

    Should I have used the raw connector????

    thanks for helping


  • Hardware Contributor

    Short answer - yes you should have used RAW. But at least you learned a lesson if you want to think positive. โ˜บ

    Try and see what happens if you change. Maybe they are still OK.



  • thanks!, lessons learned indeed. . Great stuff though.



  • what size terminal blocks do you buy? I bought some and they are the wrong size.


  • Hardware Contributor

    @scooter217, from a quick inspection of the .brd file and a look around the internet for the datasheets it would seem that sundberg has allowed for any screw terminal block that uses a 5mm pin pitch. So you would need a 3 terminal 5mm pin pitch screw terminal. Please allow @sundberg84 some time to reply to ensure I am correct.


  • Hardware Contributor



  • @sundberg84 Thank you, just ordered some from ebay!



  • Hi Sundberg.
    First of all thanks for what you have done here, and hi from New Zealand.
    I have a problem though, sorry to be a hassle.
    I assembled my first board tonight and I dont get 3.3v across the NRF. It starts at 0.07V then falls down to 0 on my cheap meter. Same on the MYSX1.4 connector at 3.3 and gnd. Am getting 3.3 on the mini as well as VCC and GND on the MYSX area so the regulator is working. May be a short? Or a bad solder? Although they look good to me.... If so what solder joints should I redo? Any other ideas?
    Also, Ive traced back the VCC from the NRF and I cant see where it connects to a power source, either the battery in or the boost converter?
    0_1461234488858_MS.jpg

    Thanks,
    Matt


  • Hardware Contributor

    @Matt Hi Matt - tnx.

    Try to measure here: whats your reading?
    0_1461234892945_1.jpg
    if its 3.3v its your radio thats has some error... this is prettu much the last point before radio. Also measure VCC/GND under the pcb and not on top, what does it say?

    Sounds like a short or bad solder...



  • @sundberg84
    Ah crikey I think Im being thick, I just put a jumper across BAT connectors after tracing the lines and reading the manual, am now getting 2.8 at the NRF. Sorry for being a numpty. Still not picking up on my gateway, time to go to bed but will get the serial monitor running tomorrow....
    Thanks for the quick reply.



  • Finally got my boards. In color: Yellow.
    If I would skip the Booster is the esiest thing to just wire Vi - Vo?

    0_1462250321694_IMG_4703.JPG



  • I have a question about using this board as a gateway. Pinout of Mini Pro and Nano are almost identical. I built an adapter board to plug in a Nano into this board. Pin by pin control shows it is OK. I checked connectivity with MYSController. The gateway boots up. When I turn on my battery powered sensor, it asks for ID, the gateway "supposedly" sends it. I watch this from the messages. The sensor does not register. It asks four more times, the gateway responds four times. But sensor could not be ID'd and of course registered.

    I am thinking either reception problem on sensor side, or transmission problem on gateway side? Could it be a power problem related with design of the board? Is there any way to identify?

    Thanks


  • Hardware Contributor

    @Valle - yes you can just put a wire between left and right pin - but it wont work for a long time (the pro mini will die when battery goes below 3v i think).

    @nunver - I have never used this board as gateway. What does your controller say, does it apply an ID for the request?



  • @sundberg84

    I'm using mfalkvidds Plant monitoring
    mfalkvidd said:

    An update on battery life: The sensor in my bonsai tree has been reporting every 11,5 minutes since 2015-11-07, so over the last ~four months it has done 24,504 measurements. The battery level has gone from 3.187V to 3.142V, which means a drop of 0.01125V per month. Assuming I let it go down to 2.34V (limit for 8MHz according to the datasheet) and that the voltage drop is linear, I should get (3.187-2.34)/0.01125 = 75 months = ~6 years. There are several error sources in this calculation, but it looks like battery life will be quite good, even though the sensor reports much more often than necessary.

    So I will try without Booster. But for other sensors I will use booster.


  • Hardware Contributor

    @Valle said:

    So I will try without Booster. But for other sensors I will use booster.

    Sounds good - let us know how it works out for you. 2,34V is for a genuine Arduino so you know - I dont think a clone manages that... also the last energy (from 1,9 to 2,34v) is not used even though the radio could handle it if you used a booster.



Suggested Topics

  • 12
  • 2
  • 66
  • 41
  • 10
  • 7
  • 2
  • 5

0
Online

11.4k
Users

11.1k
Topics

112.7k
Posts