My own board (50mm x 30mm)


  • Hardware Contributor

    @gloob I made my own version of the Optiboot bootloader to flash led on pin 8. I will add the hex file to the site later. To flash the atmega328 I made an extension to the bootloader programmer sketch by Gammon, I will post that as well. It is a translation of my version into his sketch format.



  • Hello,

    I have now soldered everything on the board and want to burn the bootloader now.

    I have included the bootloader HEX file in the bootloaders folder and modified the boards.txt file.
    How do I now burn the bootloader with the Arduino IDE?

    I have a FDTI programmer but I'm not sure if this is the correct device to burn the bootloader or if I need something different.



  • Is it possible to order the AC boards from your last picture?



  • I order from OSHpark the v2 of your own board and I have a question, if I run it with 2AA battery for example, I put jumpers (marked red on the picture) and it is working.

    upload-b99a206b-5adb-421c-8865-2e3271212d9e

    But if I want to try with 5v input, like from usb charger, do I need to have a 3.3v regulator for the NRF24+ ? And if yes, do I need other pcb to complete this?

    Other question, what is the use of the jumper J1? I'm not sure...

    Thanks again !!


  • Hardware Contributor

    hi @Carl-H By adding the two jumpers as you do, indeed it wil work with a set of batteries.

    J1 connects the VCC circuit with the 3V3 circuit.

    3V3 circuit connects to the NRF24. Vcc circuit connects to the power (Vcc and AVcc) of the atmega328.

    The jumper you put on the left arrow, is to connect the VRaw input with 3V3 (above).

    So by adding the two jumpers you get battery voltage on VCC and on 3V3 circuit, through the JST connector (which is connected to VRaw).

    If you want to use 5V, you will need to add a 3V3 regulator. This can be through a companion board like I published on OSHPark (https://oshpark.com/shared_projects/IOHUNYT2), or you could make your own board. You could take the VRaw input and bring to down to 3V3 and connect to the 3V3 circuit. If you put a jumper between Vraw pin and VCC pin instead of between VRaw and 3V3, then VCC will have the 5V.
    If you use the companion board, you should not bridge the Vcc and 3V3 circuits or the Vcc and 3V3 circuits.

    As you guessed, to get 3V3 from a 5V input you need more then just this board.

    There are also two pins for a battery holder. One is visible above C9, this is the + side and connected to VBat. The other is right of the LED and R2 and is negative side and connected to GND circuit.

    More info on this board I will keep adding here: http://forum.mysensors.org/topic/595/pcb-boards-for-mysensors/30


  • Hardware Contributor

    @Cliff-Karlsson The blue board (AC capable) can be ordered from Dirtypcb's:
    http://dirtypcbs.com/view.php?share=12146&accesskey=c3a217d7f31434a5565ecf9bdf3f7dc6
    There is no BOM for the moment. I built several variants, and they all work. But I do not consider this my final version of this type of board. The above link points to my first spin of the PCB (first version). There is no v2 right now, but I have some ideas to improve it, and I'm open to suggestions.
    I will add the EAGLE files also to the message thread where we collect all the hardware.
    Fo the moment most info (images) is only here:
    http://forum.mysensors.org/topic/2374/50mm-x-50mm-board-with-different-powering-options/10



  • @GertSanders

    Just got the board v2 from OSHpark and I would to ask a few questions:

    1. Can I replace R2 with 220Ohm one?
    2. I have 16Mhz crystal - hopefully this is not a problem?
      I fired the board, but cannot connect it to the Arduino IDE 1.6.5 via the FTDI USB-TTL. I checked the voltage and it is 3V from the battery pack with two jumpers J1 and VBAT to VCC in place. I have used a standard ATMEGA328P_PDIP with an Arduino Uno bootloader I got from the Ebay. Do you think this may be an issue?

    Regards
    Alex


  • Hardware Contributor

    @alexsh1 I think running at 16Mhz in 3V is asking too much from the processor. The boot loader for Arduino Uno assumes 16Mhz, and communication with the processor at a much higher speed then I use on my board. That is why I compiled my own boot loader (for 8MHz and serial communications at 36K baud instead of 115K baud).

    Also, the boot loader for Arduino Uno assumes there is a LED on pin 13. In my board I moved this to pin 8. This should not block the processor. Having it at 16Mhz while powering it with 3V is more the issue here I think.

    If you have an Arduino Uno available, you can burn your own boatloader. The HEX file is added in the topic:
    http://forum.mysensors.org/topic/595/pcb-boards-for-mysensors/31
    The how to here is:
    http://www.gammon.com.au/bootloader

    Using 220 Ohm for R2 should be OK, the led will get a bit more current, but should handle it fine. The port can give 20mA. With 220 Ohm you pull 13mA, so within limits.


  • Hardware Contributor

    @alexsh1

    From another board:

    The most common non-5v voltage is of course 3v3 and as you can see at 3v3 the chip is only spec'd at just over 13MHz, people do often run them at 16MHz but that is well out of spec. That's ok if you are playing around, making a widget for yourself etc, but it's not ok for a commercial product, especially if it will be subject to large temperature variations.

    Source: http://forum.arduino.cc/index.php?topic=213105.0

    At 3V (or thereabouts when using g a set of batteries) you are well under specification. 12MHz would be OK, 16MHz is a bit much.



  • @GertSanders said:

    @alexsh1 I think running at 16Mhz in 3V is asking too much from the processor. The boot loader for Arduino Uno assumes 16Mhz, and communication with the processor at a much higher speed then I use on my board. That is why I compiled my own boot loader (for 8MHz and serial communications at 36K baud instead of 115K baud).

    Also, the boot loader for Arduino Uno assumes there is a LED on pin 13. In my board I moved this to pin 8. This should not block the processor. Having it at 16Mhz while powering it with 3V is more the issue here I think.

    If you have an Arduino Uno available, you can burn your own boatloader. The HEX file is added in the topic:
    http://forum.mysensors.org/topic/595/pcb-boards-for-mysensors/31
    The how to here is:
    http://www.gammon.com.au/bootloader

    Using 220 Ohm for R2 should be OK, the led will get a bit more current, but should handle it fine. The port can give 20mA. With 220 Ohm you pull 13mA, so within limits.

    @GertSanders - thanks very much for your comprehensive and quick reply.
    OK, this is what I thought. Will have to change crystal to 8Mhz and burn a new bootloader.
    Interesting info I found on Nick's web-site regarding my issue:

    For running at 16 MHz you need at least 3.78V and at 8 MHz you need at least 2.40V. (Caveat: under testing I found that it did not seem to work reliably much under 2.8V at 8 MHz).

    [EDIT] That unreliability would have been because of the brown-out reset kicking in at 2.7V. If you are using lower voltages you need to adjust or disable the brown-out detection.

    I am planning to run at 8 MHz using the internal oscillator, to save parts and space. Thus you could conceivably run the whole thing off 2 x 1.5V batteries, giving around 3V nominally. However 3 x 1.5V batteries would be OK, and let you run it at 16 MHz.

    Taken from here: http://www.gammon.com.au/forum/?id=11637 (Power Supply)


  • Hardware Contributor

    @alexsh1 I completely switched off the BoD in my fuse settings, this saves the battery even more. I found that the processor kept working down to around 1,64V. Even my NRF24 worked to that low level, because the last message I received in my Domoticz from that node gave a battery voltage of 1.64V
    Anyway, since I monitor all battery levels via a script in Domoticz, there is no need for BoD.


  • Hardware Contributor

    @gloob To burn a boatloader with Arduino IDE, you will need a second Arduino or working atmega328 onto which you can load a sketch.
    I have an older Arduino board (the one I bought when I first started exploring this new hobby), and I use the setup as described in this article: http://www.gammon.com.au/bootloader



  • @GertSanders said:

    @alexsh1 I completely switched off the BoD in my fuse settings, this saves the battery even more. I found that the processor kept working down to around 1,64V. Even my NRF24 worked to that low level, because the last message I received in my Domoticz from that node gave a battery voltage of 1.64V
    Anyway, since I monitor all battery levels via a script in Domoticz, there is no need for BoD.

    Yes, I noticed that you have atmega328pO4M8i.bootloader.extended_fuses=0x07 which is as you said switches off all BoD levels.

    Thanks for an interesting info regarding the voltage. This is a very good news. I guess you are getting a notification in Domoticz if a battery level goes down to 1.64V?

    I'am going to setup a programmer on mega 2560 tonight, but meantime ordered one of the programming shields to streamline the process - http://www.boardstuff.co.uk/


  • Hardware Contributor

    @alexsh1 I actually set up a notification on each Voltage sensor within Domoticz, so that I get a prowl message when the voltage drops below 2V. This then gives me some time to replace the batteries. The 1.64V was when I intentionally let a sensornode die out, just to see what would happen. I never let the voltage drop that low now. All my nodes now have batteries that should last at least 9-12 months (depends on the sensor and it's activities).



  • @GertSanders
    Thanks for your help. I was now able to burn the bootloader and will start testing the board tomorrow when I have a valid 3,3V source to power the radio.
    Can I power the radio from an FTDI programmer if the programmer is set to 3,3V power? If yes, how to set the two jumpers?


  • Hardware Contributor

    @gloob if you power via a 3V3 FTDI interface, then you only need to close jumper 1 to connect the Vcc corcuit with the 3V3 circuit.



  • @GertSanders
    Thanks for your support. I have now the serial gateway sketch running and output of the arduino seems good:

    0;0;3;0;9;gateway started, id=0, parent=0, distance=0
    0;0;3;0;14;Gateway startup complete.
    

    I will now order some Si7021 sensors and continue my testing.

    Can I use the following sensors:

    Si7021 Industrial High Precision Humidity Sensor I2C Interface for Arduino


  • Hardware Contributor

    @gloob I'm using the same sensors for Temperature and Humidity. The pinout of these boards is what I based my pinout on my red board on. (3V3, GND, SCL, SDA). I'm using now 5 of these.



  • Ok, after a few long days I managed to burn the bootloader. For those who are struggling with the same problem please note the following:

    1. Use Nick Gammon's website and optiboot bootloader (512kb only). I had a standard ATmegaBOOT_168_atmega328_pro_8MHz_hex (Lilypad 8 MHz loader) and could not make it work with 3.3.v.
    2. Important: the 2048kb bootloader's (Lilypad 8MHz) address is 0x7800. For the optiboot (512Kb) you need to change it for 0x7E00. Now everything works fine - I just need now to change fuses to make sure the voltage can go down below 2V.

    @GertSanders I wonder what sketches do you use with this board? it is nice to have Si7021 (it is pin-for-pin for your board) for temp and humidity.


  • Hardware Contributor

    @alexsh1 I make my own sketches, the one for my board with SI7021 is used most in my house. I also have a repeater, a GSM node, a sleeper node which wakes up when switches are tripped (basis for upcoming door sensor node). I work with the development version of the library (1.6.0-beta) of Mysensors

    I added my Temp/Hum sketch as inspiration: TEMPNODESI7021.ino



  • Interesting
    @GertSanders GSM node? is it a standalone or you have it hooked up to this node?
    I have a GSM node connected to a couple of SSRs to control water heating - sadly this is not connected to MySensors


  • Hardware Contributor

    @alexsh1 It is based on my AC capable board, is a normal atmega328p board, but with a SIM800L mounted on it. This module allows me to send and receive SMS's, and I use one of the digital output pins to control a waterpump. I have a second AC based board ready which will be my MySensors SMS gateway. This means it will be able to receive V_TEXT and send that to the default GSM number as a SMS. It should be possible to receive SMS and send that as V_TEXT to other nodes, but so far I have not started the design of the second sketch yet.

    1447344753891-img_7575.jpg

    You see it here also (top right) with the relay module and the white AC-DC converter connected.

    1447344662709-img_7579.jpg

    Side view:

    1447344891388-img_7582.jpg



  • @GertSanders
    Do you have a source or shop for the AAA battery holder with solder pins? I did only find some for AA batteries.



  • @GertSanders said:

    @alexsh1 It is based on my AC capable board, is a normal atmega328p board, but with a SIM800L mounted on it. This module allows me to send and receive SMS's, and I use one of the digital output pins to control a waterpump. I have a second AC based board ready which will be my MySensors SMS gateway. This means it will be able to receive V_TEXT and send that to the default GSM number as a SMS. It should be possible to receive SMS and send that as V_TEXT to other nodes, but so far I have not started the design of the second sketch yet.

    I only have 1-2 high current (3kWh at 240V resistive load) devices at home and I am already controlling them as well my internet router (remote reboot if no internet) via SMS. At this stage I need a larger property to expand my home automation lol 😆 😆 😆



  • @gloob said:

    @GertSanders
    Do you have a source or shop for the AAA battery holder with solder pins? I did only find some for AA batteries.

    Would you mind me asking why you'd need AAA batteries? Much less capacity and the holder is not much smaller. I have been using Eneloop AA rechargable lithium batteries (http://www.ebay.co.uk/itm/4pcs-1-5V-AA-2200mWh-Lithium-li-ion-Rechargeble-Battery-4-PORTS-AA-charger-/272027421169?hash=item3f561909f1:g:r9AAAOSwMTZWSFHz) and they are holding up really well. The advantage is that they hold 1.5V almost until they are discharged unlike NiMh


  • Hardware Contributor

    @gloob I got my AAA holders from Aliexpress.




  • Hardware Contributor

    Indeed, those 👍



  • Do you have an idea how long a temperature sensor will run on 2 AAA batteries?


  • Hardware Contributor

    @gloob Not yet, some of mine have been running for 2months with a voltage drop of less then 1%



  • IMG_2229.JPG

    My board waiting for a sensor from China



  • @alexsh1
    How did you connect the battery? Did you solder it directly to the board?


  • Hardware Contributor

    @gloob There are two connections on the board to allow soldering the battery holder. Both the AA and AAA versions I use have the same pin spacing (seems standard), so you can use an AA battery holder as @alexsh1 does, or an AAA as I have.

    http://forum.mysensors.org/uploads/files/1446751714416-image.jpeg

    The red arrows show where the batteryholder pins should go. If you have individual AAA battery holders, then the pins surrounded by yellow circle are also used to connect the batteries in series. If the battery holder holds 2 batteries, then only the pins pointed to by red arrows are used.

    batteryholderconnections.jpg

    The PLUS sign next the the pin on the lower right of the above image is for the LED, the polarity of the pins from the battery is marked on the silkscreen of the bottom side. Looking at it from the top side, the pin above right is for Positive, the pin on below right is for Negative (or GND).

    Jumper J2 is to connect the IRQ pin from the NRF24 to pin 2 (INT0) of the atmega328. You could also use that to connect a switch between the top jumper pad (connected to pin 2) and the extra ground pin of C5, to use with a doorswitch. I have used this with the internal pull up, but that would not be very good for the battery-use. It is better to use a 1MOhm pull up resistor wich can also be connected using the extra hole connected to pin 2 and Vcc



  • @gloob @GertSanders is spot on! I only have 1.5V AA rechargeable lithium batteries so the choice of the battery holder is obvious.



  • Just ordered a batch from DirtyPcb so the journey is just beginning!.
    Doubt i will need a whole batch so if anyone requires a couple in the uk let me know.



  • @GertSanders said:

    @alexsh1 I completely switched off the BoD in my fuse settings, this saves the battery even more. I found that the processor kept working down to around 1,64V. Even my NRF24 worked to that low level, because the last message I received in my Domoticz from that node gave a battery voltage of 1.64V
    Anyway, since I monitor all battery levels via a script in Domoticz, there is no need for BoD.

    How is 1.64v possible,It was my understanding that 8Mhz requires a minimum of 2.4v?


  • Mod

    The processor is guaranteed to work within the specified limits. Outside the specified limits, no guarantees are made. It might work, it might not work or it might work slightly with strange glitches.



  • I see now.Thank you
    Has anyone modified Gertsanders Firmware to run at 1Mhz?
    That would give reasonably stable results down to 1.8v.
    I don't have the skills to compile from scratch and cater for the led on pin8 etc.


  • Hardware Contributor

    @rmtucker The firmware itself does not need to be changed to use the internal oscillator. You accomplish that by using a different set of fuse values:
    atmega328pO4M8i.bootloader.low_fuses=0xE2
    atmega328pO4M8i.bootloader.high_fuses=0xDE
    atmega328pO4M8i.bootloader.extended_fuses=0x07

    This sets the processor to a mode using the internal oscillator.

    Add the call to divide the frequency by 8 (can be done in the sketch itself) and you have a 1MHz internal clock.



  • @GertSanders So have you never found it a problem running at 8Mhz?
    Do most of your sensors work ok below the 2.4v threshold?
    Guess i will find out when the pcb boards arrive😃


  • Hardware Contributor

    @rmtucker Short answer: yes. So far most my sensors are working fine and all sit above 2.4V but I have not had problems when they do below 2.4V

    There is one sensor now that has a battery in decline. This sensor uses a lot of power and goes through it's batteries very fast. So it is a good test for this low voltage work. It is now at 2.11V and still sends messages every 5 minutes. On the first graph you can see it is still working fine wel below 2.4V and it is clocked at 8MHz with a crystal.

    Screen Shot 2016-01-03 at 20.27.54.png

    I have a notification on all my sensors so that when the battery voltage goes below 2V I get a Prowl from Domoticz. This has only happened on this sensor (twice so far), because I was using NiMH batteries (which discharge faster than alkaline). Around 2 november I put in 2 alkaline batteries (AAA), but these were not brand new.

    Most of my sensors have a discharge pattern as here below:

    Screen Shot 2016-01-03 at 20.38.51.png



  • @GertSanders What rate is the sensor in the very bottom graph sending messages?
    That discharge rate looks very nice.

    @GertSanders said:

    @rmtucker The firmware itself does not need to be changed to use the internal oscillator. You accomplish that by using a different set of fuse values:
    atmega328pO4M8i.bootloader.low_fuses=0xE2
    atmega328pO4M8i.bootloader.high_fuses=0xDE
    atmega328pO4M8i.bootloader.extended_fuses=0x07

    This sets the processor to a mode using the internal oscillator.

    Add the call to divide the frequency by 8 (can be done in the sketch itself) and you have a 1MHz internal clock.

    Problem with using div/8 in the sketch and not altering the bootloader is that all the timings are off for baud rates and pwm etc.
    Where if it is altered in the bootloader it all works as it should.

    Last question i promise 😋

    I currently use the arduino mini pro and when uploading sketches to it using ftdi,i have to press the reset button to get the upload to work.
    Will i have the same problem with your boards?


  • Hardware Contributor

    @rmtucker On my board I do not need to press a reset to be able to upload sketches, since I connected the RESET pin to the FTDI header via a capacitor.

    So if the FTDI interface does the reset via RTS pin, then it will reset the board and you can upload sketches.

    The sensor in the last graph sends it's voltage and temperature every 5 minutes, even if the value is sometimes the same as the previous one. It also sends it's battery voltage every 5 minutes.

    In my last version of the sketch I have now added a change based on the Sensebender sketch. That sketch sends it's temperature or humidity only if the change is a minimal difference with the previously sent temperature or humidity. It always sends it's battery level every half hour. That should make it last minimum a year on 2 AAA batteries.

    Below is a graph of another sensor sending data every 5 minutes.
    Screen Shot 2016-01-05 at 21.06.06.png



  • In comparison here is an ESP8266 doing the same job every 5mins
    But that is 4 AA Alkaline batteries.
    And by the look of todays voltage it is on it's way out.

    Screenshot from 2016-01-07 17:55:20.jpg


  • Hero Member

    @GertSanders said:

    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)

    76K8 baud works better than 57K6 (division from 8 MHz has less error), and there are Optiboot variants which support it (with theBOARDS.TXT change you mention). Or 38K4 baud (half that) as you suggest, which is no more timing accurate than 76K8 but by being slower still may give more margin for sloppy edges or the like - if needed.



  • Hi GertSanders,

    After ordered and make 3 of 50mm x 30mm board with success. Now I ordered the AC Capable 50mm x 50mm board. I try to read the schema and I have some question. If I want to use this board with only 2 AAA battery, Do I need to use AMS1117? and witch jumper do I need to close? It is optional to use AT24C ?

    Thank you for your help


  • Hardware Contributor

    @Carl-H To use the board with AA batteries you do NOT need to place the AMS1117. But you will need to short the jumper "BAT" which you will find on the same surface as the AMS1117 if you want to feed the NRF24 with the same power.
    The batteries are connected to the Vcc power line. The NRF24 is connected to the 3V3 power line. There is no interconnection, unless you use the AMS1117 or you short the jumper "BAT".

    The AT24C's are optional. If you do plan to use them, you will also need to place the I2C pull resistors and you will need to short the jumpers RSCL and RSDA. These two jumpers connect the pull-up resistors to the SCL and SDA lines.
    If you use a sensor connected to the pins SCL/SDA of the extension connector you sometimes have no need for pull-ups as the sensor itself has them.
    The jumpers SCL-SDA and SDA-SCL are there to allow switching the signals of the SCL/SDA pins on the extension connector. The jumper closest to the board edge is for the pin on the very edge of the connector, the jumper close to the ATSHA is for the second pin. Without shorting these two jumpers, the pins on the extension connector have no function.
    Some sensor-boards have a SDA-SCL-GND-3V3 connector, others have a SCL-SDA-GND-3V3 pattern. The jumpers are there to be able to use both types.

    IMG_7673.jpg



  • Thanks for your clear explication! I have another question, where is the FTDI port ?


  • Hardware Contributor

    @Carl-H It is part of the expansion connector.

    I added more info on the OpenHardware.io site.



  • Ok my boards arrived from DirtyPCB.
    A couple of questions:-

    1.I am not using NR2 (The radio socket that protrudes),Also i am using the internal osc and not the xtal.

    So can i leave out C9,NR2 Socket,C5,C6,Xtal ?

    2.What are C2,C3 doing.
    The socket for the cpu i have fitted will not let me squeeze them in.

    Should i solder them in underneath or can they be left out?


  • Contest Winner

    @mtucker

    1. Yes you are right about leaving out these components, but if you use NR1 i should leave out C8 and keep C9 (mount the decouple C's as close to the decouple component as possible)

    2. these components are for decoupling the uP. You can mount them at the bottom, do not leave the out.
      I used a tip from earlier in this forum thread for gaining a little bit more space when using these

    Cheerz


  • Hardware Contributor

    @BartE answered perfectly. You can leave out C5,C6 and XTAL if you use the internal oscillator. C9 is for the NRF24, no matter if you use NR1 or nR2 socket. And yes, you only need 1 socket, so if you use NR1, no need to add NR2 (and vice versa).
    Socket NR2 is for the longer (and power amplified) radio with external antenna, NR1 was intended for the standard NRF24L01+ with PCB antenna.
    C2 decouples AVCC (the analog power input), just as C1 decouples the VCC (digital) power input. C3 stabilises the analog reference input. If you do not use the analog->digital conversion, you could skip C3 as well.

    I also do not use standard 28 pin sockets, but strip sockets just like BartE.
    In the image here I used a standard socket, but cut away the middle "bridge" to allow mounting the decoupling capacitors.

    https://www.openhardware.io/uploads/568faa0cbaba42246aa57103/image/IMG_7527.jpg

    In the image below I use the strips BartE mentioned:

    https://www.openhardware.io/uploads/568faa0cbaba42246aa57103/image/IMG_7686.jpg

    More images and details are here:

    https://www.openhardware.io/view/5/Battery-based-atmega328p-sensor-no-SMD



  • I am pulling out what hair i have left.
    All i am getting is this:-
    find parent
    send: 253-253-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
    find parent
    send: 253-253-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
    find parent
    send: 253-253-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
    find parent
    send: 253-253-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
    find parent
    send: 253-253-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
    find parent
    send: 253-253-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
    Init complete, id=253, parent=255, distance=255
    Battery:3.161 Batt%:90 Temperature:21.73C Humidity:56%
    find parent
    send: 253-253-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:


  • Hardware Contributor

    Node 253 tries to connect and fint its way to the gateway (find parent) but doesnt get any respons.
    Do you have a working gateway - what does the gateway log looks like?



  • Yes the gateway has been working fine.
    I will connect the gateway back up to the computer and see what it is saying and let you know.


  • Hardware Contributor

    Which controller are you using?



  • Sorry Guys seems the aerial was not tight enough on the Gateway,All working great now.



  • Hmm thats a little worrying,Both sensors are not enclosed sitting in fresh air next to each other.
    10% away from each other seems a lot.
    I am awaiting a delivery of more SI7021 sensors let's see where that takes us??
    0_1454372709451_Screenshot from 2016-02-02 00:21:23.jpg



  • Are these identical sensors?

    I have 10 sensebender micros with a SI7021 sensor and they show completely the same values.



  • No
    One is an si7021 running on the board in this thread.
    The other is a HTU21D running on a pro micro that i already had set up and running.



  • @GertSanders
    I have been struggling to upload photos in the openhardware section of your node and I think it is better if we move our discussion here. Take a look at these:

    0_1456851220108_2016-02-29 13.20.24.jpg

    0_1456851230641_2016-02-29 13.22.06.jpg

    This is my answer to the problem, but I think we can have a neater solution by having jumpers deciding on SDA/SDL pin out ?


  • Hardware Contributor

    @alexsh1 There is indeed a better solution, the next version of this board will allow swapping the I2C data and clock pins 🙂



  • @GertSanders
    Other than that I have not been using the JST connector - this may save some space unless you want to leave it as a power backup. I never used the second row pins (behind the FTDI connection) and some of them are not accessible if using a sensor connected via I2C.



  • This post is deleted!


  • @GertSanders
    I have been running these boards for some time now and overall very easy and compact.
    And battery life on 2 AA batteries is years.
    But i still have problems with deadspots in the house etc.
    So i thought i would try changing the radio's to rfm69w and make another serial gateway with an rfm69hw.
    I have received some of the hallard nrf to rfm adapter boards which i believe can be plugged straight in
    What i would like to know is,Would it be ok to use one of these boards as a serial gateway with an ftdi adapter?
    I am using the board barebones with no external crystal etc at 8mhz.(would this be a problem for a gateway?).

    This would save on a lot of wiring (Level shifters etc).



  • @rmtucker I'm using rfm69w with @GertSanders board (I think it is v1-1) via the same adapter you ordered. You need to solder IRQ pad in order for the board to work with rfm69. I tried to compile both a gateway and a sensor code and it worked. No need to have a crystal if you have the right bootloader on atmega328p. With or without crystal does not matter for radio. Radio has got its own crystal



  • @alexsh1 said:

    @rmtucker I'm using rfm69w with @GertSanders board (I think it is v1-1) via the same adapter you ordered. You need to solder IRQ pad in order for the board to work with rfm69. I tried to compile both a gateway and a sensor code and it worked. No need to have a crystal if you have the right bootloader on atmega328p. With or without crystal does not matter for radio. Radio has got its own crystal

    Wonderful just what I wanted too hear.
    But could you elaborate on the irq soldering?



  • @rmtucker just check out how to connect rfm69 to atmega328. @GertSanders luckily designed the board to be universal- there is a solder pad to connect D2 to IRQ, which you need to solder to use rfm69


  • Hardware Contributor

    @alexsh1
    Indeed, there is a solderpad near to the D2 pin which needs to be closed (connected) to allow the IRQ signal to go to D2, so one can use the radio


Log in to reply
 

Suggested Topics

  • 8
  • 1
  • 5
  • 44
  • 7
  • 3

47
Online

11.4k
Users

11.1k
Topics

112.6k
Posts