Everything nRF52840


  • Plugin Developer

    @nagelc that's great news!!



  • Arduino Nano 33 BLE code is coming out. It's going to be based on MBED. Here's a discussion on the Arcuino Blog:
    https://blog.arduino.cc/2019/07/31/why-we-chose-to-build-the-arduino-nano-33-ble-core-on-mbed-os/

    I think it is interesting that no one has updated Sandeep Mistry's code for the NRF52840. Since it has been so long, I'm guessing this is not an easy task.


  • Hero Member

    @nagelc thanks for the update. Mbed has a lot of overhead to it, but anything is better than moving mountains alone.



  • Someone may get some reuse out of this. I've made a 3d printed prototyping rig for the NRF52840 DK board as part of my MySensors adventures....

    https://www.thingiverse.com/thing:3836487

    1_1567139386009_Photo 30-8-19, 2 10 17 pm.jpg 0_1567139386008_Photo 30-8-19, 2 10 43 pm.jpg



  • @nagelc I think Sandeep Mistry is working on new arduino core, based on mbed. As you can see he is titled as "Senior Software Engineer at Arduino" here. So I guess Mysensors community would need to move to new core eventually, or to fork Sandeep's core and develop it alone. I would prefer the first choice.


  • Hardware Contributor

    @monte
    I remember in first place they mentioned apache mynewt a while ago, but finally they are moving to mbed.. still nice to hear. I think this new arduino/mbed core has not everything yet for running MySensors, that needs some work on proprietary rf.., whereas there are other working cores. At least for short-mid term. There are so much nice things to improve or add on todolist.
    Team knows about new mcus, new cores etc 🤓 what's missing is time, resources vs real life and projects!



  • @scalz With official support from arduino and massive amount of chinese clone boards and much more powerful hardware I think in a year new nano board can become a new standard. Not to mention that single board which already has everything to work with mysensors is something many people where looking for for years.
    I understand the time constrains, and am always thankful for a dev's work for community's good 🙂


  • Hardware Contributor

    @monte sure would be nice, no need to argue on this, about a standard. (still not sure imho if 2.4g would be best choice). I'm wondering if adafruit will give up on all the work they made on their custom core too (I imagine they have no hurry, and wait to see if that'll be promising).
    let's see what will happen. and perhaps next year there will be new better mcus again, almost sure 😁



  • @heinzv Sorry to cut-in with an unrelated comment, but can you tell me how or from where you got this nice schematic diagram? I am looking for one that has other cards such as Raspberry Pi and TI cards for an architectural diagram

    Cheers



  • @amine-alami what nice schematic diagram are you refering to? I'm looking at this thread very sporadically.


  • Hero Member

    After waiting almost a year for the dust to clear, it seems that there are now roughly two leading platforms at the moment that either have or may get good software support:

    1. The Adafruit nRF52840 feather: https://www.adafruit.com/product/4062
      which Adafruit either has or is making Arduino compatible.
    2. Possibly the Arduino Nano 33 BLE: https://store.arduino.cc/usa/nano-33-ble
      and/or https://store.arduino.cc/usa/nano-33-ble-sense
      for which, ironically, Arduino has chosen to adopt using mbed as the core software techology.

    In other words, it appears that Adafruit has become more Arduino than Arduino!

    There are also some "particle" boards that are hybrids:
    https://www.cnx-software.com/2018/02/14/particle-unveils-three-nrf52840-bluetooth-5-boards-argon-wifi-boron-lte-and-xenon-particle-mesh-technology/
    I had thought these would necessarily be more expensive, but right now the Xenon board is selling at $15, which is almost half the price of either the Adafruit or the Arduino boards:
    https://www.amazon.com/s?k=particle+xenon&i=electronics&ref=nb_sb_noss_1
    Are the particles easy to program and perform OTA updates? I have no experience with them. They're pushing a subscription service if you have more than ten or so of them, so I suppose the true cost could be higher if you go "all in" on them. On the other hand, if you happen to want/need whatever their cloud service is, at least you'd be getting some kind of value for your subscription money. I suspect that, at the moment, it may be the easier to do OTA updates with particle than the first two, if only because it needs to be good if they are to justify their service fee. Their Photon board (which is a wi-fi only device) has gotten mostly favorable reviews on Amazon. On Photon the subscription fee doesn't kick in until you have more than 100 photons, which sounds a lot less confining the the 10+ units of Argon or Xenon. Unfortunately, it sounds as though it's not low power enough for battery powered nodes: https://www.youtube.com/watch?v=68N67ZVxTZ0 A 7.5ma deep sleep sounds stupidly high to me. What were they thinking?

    In summary, the Adafruit nodes sound best to me at this point in time. The Arduino nodes might catch up with the adafruit if enough people buy/develop for them. Time will tell. Sadly, Particle may be DOA unless they have a trick up their sleeve that I don't know about.


  • Hardware Contributor

    I think adafruit core is nice, and they added freertos which is a nice touch too. So, in case, I can easily reuse some modules I wrote for esp32 projects (which is freertos based too, out of he box)

    Good to know, it's not perfect, both cores, nrf5 adafruit or arduino-mbed, unfortunately miss some sdk files..

    I like Adafruit core so far, but Segger IDE with full sdk support is very convenient, because spending time in arduino cores linking missing libs etc is such waste of time, vs coding fun features..


  • Hero Member

    @scalz Yes, you raise a good point about Segger.

    I'll try both the Adafruit and the Arduino versions and report back my impressions afterward.


  • Hero Member

    I gave the Arduino Nano 33 BLE Sense a try just now. I'd say it's beginner friendly in the sense that you can simply plug it into USB and program it that way through the Arduino IDE: no getting confused or stuck burning the flash using an st-link or similar.

    Blink compiles into a roughly 80KByte binary, and I presume most of that is overhead of the included mbed platform. This isn't really a problem though, because the nRF52840 has an abundance of flash--probably more than you'll ever need, even with mbed consuming part of it.

    As for the sensors that are built onto the 33 BLE Sense, you need to load libraries for each one that you want to make use of, but it appears that those libraries are available.

    I get the impression that Arduino has typecast the nRF52840 as primarily a bluetooth device. I see no mention of the radio's proprietary mode. That is perhaps unfortunate, because Bluetooth per se isn't easy, and proprietary mode is actually much easier.

    On the other hand, maybe easier-to-use Bluetooth libraries will eventually arise. I guess time will tell.


  • Plugin Developer

    @NeverDie This is a bit of a side-question but to what degree could Arduino's Bluetooth support fulfill the role MySensors plays?

    In theory it seems Bluetooth could be a useful smart home communications platform:

    • Just like MySensors, Zigbee, Z-wave, it avoids using the IP stack, and generates a separate network for smart devices. This lowers risk to user's home network.
    • Lower energy than WiFi. Lower energy than NRF24 too?
    • The killer app: it's built into smartphones, tablets and Raspberry Pi's already. No need for an extra dongle.

    What I don't know is

    • To what extent Bluetooth has useful smart home profiles
    • To what extent Arduino devices could present themselves as smart home devices using those profiles.
    • To what extent older Bluetooth chips can work with newer device profiles (it would seem a software upgrade should be enough?)

    Maybe this should be a separate post 🙂


  • Mod

    @alowhum interesting idea. Maybe add low-power features to the list. Bt-le has some very nice low-power features, but will it be possible to use them in custom sketches?


  • Hardware Contributor

    @alowhum hard to say if the best would be to get rid of the gateway and program adapter for bluetooth devices, or to make a bluetooth gateway between bluetooth network and mysensors serial protocol.
    In both cases we could have some custom profiles for the types of sensors used by MySensors.


  • Hero Member

    @alowhum Good questions. From a distance, Bluetooth seems near ubiquitous. Closer up, the capabilities seem governed by the available "profiles" baked into a particular implementation, and that's where the apparent ubiquity seems to fall apart. There are long range modes that 5.2 Bluetooth BLE can support, but which of the profiles implement them? Those would be the set of profiles worth considering. Of those profiles, which one would be the best fit? Maybe knowing that would be a step toward answering your questions.

    https://www.bluetooth.com/blog/5-videos-that-prove-thelong-range-capabilitiesof-bluetooth/


  • Plugin Developer

    Here is the datasheet of the actual Bluetooth module on the Arduino 33 BLE (PDF):
    https://www.u-blox.com/sites/default/files/NINA-B3_DataSheet_(UBX-17052099).pdf

    Here is a list of Bluetooth profiles:
    https://en.wikipedia.org/wiki/List_of_Bluetooth_profiles

    Mesh networking profile details (PDF):
    https://www.bluetooth.org/docman/handlers/downloaddoc.ashx?doc_id=429634

    I'm trying to figure out:

    • Can these Arduino's even present themselves as a specific Bluetooth profile? E.g. as a bicycle cadence sensor, or a smart lamp, etc.
    • Can these Arduino's be programmed via Bluetooth?

    the Mesh profile would be interesting:

    Mesh Profile Specification[10] allows for many-to-many communication over Bluetooth radio. It supports data encryption, message authentication and is meant for building efficient smart lighting systems and IoT networks.
    
    Application layer for Bluetooth Mesh has been defined in a separate Mesh Model Specification.[11] As of release 1.0 lighting, sensors, time, scenes and generic devices has been defined. 
    

    The Bluetooth module documentation says it has hardware support for mesh networking. Nothing else though.

    The Bluetooth mesh networking spec only seems to support very basic things like lamps though. No advanced things like thermostats.

    Other interesting things:

    According to this blogpost, Arduino exposes the full MBED options.

    Apparently you double-tap the reset button to be able to access the bootloader. Nothing about wireless upload of sketches via bluetooth though.

    Here are some examples from Arduino on what you can make:
    https://github.com/arduino-libraries/ArduinoBLE/tree/master/examples/Peripheral



  • @alowhum said in Everything nRF52840:

    Can these Arduino's even present themselves as a specific Bluetooth profile? E.g. as a bicycle cadence sensor, or a smart lamp, etc.

    Bluetooth profiles are nothing more than just a set of rules how to structure software ofluetooth profile means that your device provides attributes to read/write described in that specific profile. You can present your device as specific prfoile but not implement its requirements, but in that case other devices will not work properly with yours. So the answer is yes - its just the mater of the software.


  • Plugin Developer

    @rozpruwacz Indeed. This example sketch of a bluetooth battery monitor looks pretty cool:

    https://github.com/arduino-libraries/ArduinoBLE/blob/master/examples/Peripheral/BatteryMonitor/BatteryMonitor.ino

    Lots of new Arduino functions to manage services are described here:
    https://www.arduino.cc/en/Reference/ArduinoBLEBLEbegin

    And here's a list of possible characteristics:
    https://www.bluetooth.com/specifications/gatt/characteristics/
    E.g. Gust Factor, Heart Rate Max, Last Name, Latitude, etc

    Looking at that list I don't see a lot of overlap with MySensors 😞

    Also, bluetooth mesh does not seem to support BLE long range mode. The mesh aspect is technically outside of the official bluetooth spec.


  • Hero Member

    @alowhum With the arrival of the Arduino nano BLE, I'm hoping that some easy-to-use Arduino BLE libraries will become available. In the meantime, Nordic's Bluetooth stack is certainly available and free to use. It didn't look especially easy the last time I looked at it, but that was quite a while ago. Maybe by now either Nordic or someone else has simplified it? For mainstream uses, it certainly should be easy to use without having to know every little detail about the Bluetooth standard. And since Arduino doesn't seem interested in the proprietary modes, I should think there would be pressure for developing such Bluetooth libraries. After all, it's very name is "nano BLE". Therefore, it's reasonable for people who buy it to expect it to be Bluetooth capable. 😉


  • Hero Member

    At the very least, I would expect Bluetooth to be a useful complement to mysensors. For example, outputting diagnostic println's to a simple Bluetooth terminal app on your tablet or cell phone. And if it can do even just that minimal amount, it could be leveraged to do a lot more too.



  • There seems to be https://github.com/sandeepmistry/arduino-BLEPeripheral library. I tried it some time ago, it was working pretty straightforward. I mean it's not ideal, obviously, but it works for a start.



  • anybody seen this new Nordic IoT MCU:
    https://www.nordicsemi.com/Products/Low-power-short-range-wireless/nRF5340

    So far only a DK board for 49$ is available. Has BLE 5.1 (incl. long range).
    I guess it will take some time till it is supported by Arduiono, Platformio etc.

    I'm still striggling with the nRF52840 and the low power sleep. So far I'm far away from the 1.5 to 5uA in sleep mode. Maybe someone has a good example for a sleep, internal timer wake-up.
    The mysensors project I'm using has 1,5mA in sleep and 15mA during sensor read and send. That is not usable for battery mode.



  • @heinzv try powering off all peripherals that was used before sleep.
    The best source of information concerning nrf5 chips is Nordic's devzone. For example look at this thread: https://devzone.nordicsemi.com/f/nordic-q-a/45355/how-optimize-high-current-consumption-in-sleep-mode-using-nrf52840.
    As far as I'm concerned nrf52 library for Arduino contains Nordic SDK, so every function mentioned in Nordic's tutorials and examples should work with Arduino IDE.



  • @monte thanks for your hints. I have actually no peripherals attached during my test. The only external peripheral is a Sensirion sensor (not attched during the power save test) has an auto switch off, but no explicit and it gets down to nano amps.(at least far less than 1uA).
    I did a lot of research in the Nordic DevZone but was not successfull. It looks like that the mySensors sleep functions for the nRF52 family does not work as I have expected (I'm using the MyBoardNRF5.h/cpp which includes some kind of Nordic power save features). It might have something doto with the UART switchoff which might not works or ...
    I'll also try other nRF52840 moduls to ensure it is not because of one product. I'm using a bare nRF52840 from RFstar which has no LED or any other consumer on it.
    https://www.aliexpress.com/item/32921970101.html?spm=a2g0o.productlist.0.0.33f77b08ivGnJC&algo_pvid=834cd241-fead-40dd-a423-762eeaad1e6b&algo_expid=834cd241-fead-40dd-a423-762eeaad1e6b-29&btsid=7de062ad-ecfb-4619-bea6-f9bc99c99996&ws_ab_test=searchweb0_0,searchweb201602_8,searchweb201603_52


  • Hardware Contributor

    @heinzv said in Everything nRF52840:

    anybody seen this new Nordic IoT MCU:
    https://www.nordicsemi.com/Products/Low-power-short-range-wireless/nRF5340

    Looks like NRF52832 is replaced with nrf52833 also, 128K RAM and same radio than nrf52840 allowing the same protocols (zigbee/thread), the same max input voltage (5.5V) and adding bluetooth 5.1. Interesting if it can replace nrf52832 in existing modules.



  • @heinzv by peripherals I mean UART, SPI, I2C and other modules, that can be switched off in NRF52840. Going to sleep mode doesn't disable them, they will still drain current. And as you mentioned by yourself Mysensors sleep function can't be trusted either for doing this for you. I think the best practice will be writing your own sleep function using Nordic's macroses. This way you can be sure everything that needs to be turned off is turned off.
    Try reading this thread: https://devzone.nordicsemi.com/f/nordic-q-a/1657/how-to-minimize-current-consumption-for-ble-application-on-nrf51822.


  • Hero Member

    Andreas Spiess recently gave his review on on the two new Arduino "nano" 33 BLE offerings (which use the nRF2840):
    #298 Four new Arduino Nano Boards: Test and Comparison (Every, 33 IoT, 33 BLE, 33 BLE Sense) – 22:15
    — Andreas Spiess

    He seems cautiously optimistic about the BLE 33s. From his perspective, now that the hardware is being sold, the onus is on Arduino to make the Arduino hardware libraries run on it in a transparent way, just like all the other Arduino's that we're all familiar with. Hopefully that does happen. In the meantime, and even if it doesn't, there are the mBed libraries.

    The only reasons he gives for preferring the ESP32 over the Arduino BLE 33's are the ESP32's faster speed, larger memory, and the ability to do OTA firmware updates. As for where the nRF52840 scores big over the ESP32, the things he mentioned were that it consumes much less power and it can be a USB host.

    I'm hoping that BLE 33 OTA firmware updates will be solved by somebody soon and made available as part of the Arduino IDE, just as it eventually was for the ESP8266. I mean Nordic already has a highly secure FOTA, so it just needs to be exposed in a way that people can easily use it through the Arduino IDE. If that never happens, then I'd wager the lack of it will kill the BLE 33. Likewise, if it does happen, it may very well propel BLE 33's success.

    Interestingly, Andreas points to a $5 nRF52 Ebyte module as a cost equalizer, so he doesn't seem to see cost as a discriminator, especially not in the long term.

    By the way, and unrelated to the above, there is now yet another radio standard vying for IOT adoption. This one, made by Radiocraft: https://www.digikey.com/en/articles/techzone/2019/sep/how-to-quickly-start-low-power-wireless-iot-sensing The energy performance specs sound maybe better than LoRa or SigFox, so who knows? It can do OTA firmware updates by the way. With the marketplace becoming more crowded, FOTA is now an important must-have for being taken seriously. Why do I say that? Any vendor who has a FOTA is devoting at least one entire slide to it in their marketing presentations.


  • Mod

    I wonder how RIIoT gets 3x the range of LoRaWAN, at a speed that is 17x higher. They have about 17dB better link budget?


  • Plugin Developer

    @NeverDie Thanks for the summary 🙂

    Andreas Spiess also never takes things like privacy, and to a lesser degree security, into consideration when he talks about things. For that reason I boycott anything that uses IoT and Wifi in the same sentence.


  • Hero Member

    I found a good place to do range testing.... too bad I didn't bring the gear!0_1574455725203_20191122_134558.jpg


  • Hero Member

    The nRF53840 PDK announced: https://www.mouser.com/pdfDocs/nRF5340PDKPB.pdf

    However, so far I haven't seen even a preliminary datasheet for the nRF53840. The closest I've seen is what's in the above PDF. Based on that, it will be a dual processor arrangement, with the faster processor having 512K RAM. It describes the network processor as "ultra low power," which is also how it describes the 2.4ghz radio. So, it sounds as though the theme will mainly be utilizing less power than the nRF52840.



  • Found this repo: https://github.com/xriss/nrfx. It has standalone nrf peripheral drivers extracted from an SDK so they can be used in any project without using actual Nordic SDK.
    Now with release of a PineTime (opensource smart watch based on nrf52832) we can expect many wonderful opensource projects with our beloved MCU 🙂


  • Hero Member

    @monte Is PineTime the best of the currently available nRF52 watch options? If so, since it's offered at $24.99, I think I may want to order one.


  • Hardware Contributor

    @monte said in Everything nRF52840:

    Found this repo: https://github.com/xriss/nrfx

    Gone already ...

    @NeverDie said in Everything nRF52840:

    @monte Is PineTime the best of the currently available nRF52 watch options? If so, since it's offered at $24.99, I think I may want to order one.

    A very interesting project, too bad they are using NRF52832 and not NRF52840, the max SPI speed on ...32 is too low (8MHz) and I'm afraid the LCD refresh will be annoyingly slow 😞


  • Hero Member

    @Nca78 Good point! I guess one could take the shell and components and insert a custom pcb that uses nRF52840... But that would be extra work. A pity they didn't go that route in the first place.

    It does look perhaps a bit big:
    alt text


  • Plugin Developer

    From what I heard Pine was thinking about upgrading the watch to the NRF52840?


  • Hero Member

    @alowhum said in Everything nRF52840:

    From what I heard Pine was thinking about upgrading the watch to the NRF52840?

    Maybe so. Their website does say: "Note: Final revision may use higher powered hardware including the nRF52840 and/or 16 MB of storage rather than 8 MB."

    On the other hand, what's currently on sale in their store is an nRF52832: https://store.pine64.org/?product=pinetime-dev-kit


  • Hardware Contributor

    @NeverDie said in Everything nRF52840:

    @monte Is PineTime the best of the currently available nRF52 watch options? If so, since it's offered at $24.99, I think I may want to order one.

    There is also the BangleJs/NodeWatch (52832) which is bulkier, more expensive too but with more features, than pinetime. Personally when bulky, I prefer a round shape..still it's quite big, and certainly needs care on UI (round shape vs square display).
    This is a very nice project for BLE based smartwatch I think, they have done lot of work on software.



  • @Nca78 said in Everything nRF52840:

    Gone already ...

    Strange. Yesterday this guy was mentioned in twitter by a Pine64 with regards to his firmware for PineTime. That's how i found that repo. Maybe he realized there was some problems with license?

    I'm afraid the LCD refresh will be annoyingly slow

    Yes full screen refresh seems to be more like a slideshow. https://www.youtube.com/watch?v=_x6B-L5KOtU
    You probably would want to only partially refresh the display.
    Now that's sold as a dev unit with unglued back cover so maybe they will initially upgrade to 52840, I don't think it will be that hard, if they haven't produce large batch of this revision. But for sure display with this resolution needs faster SPI.

    @NeverDie said in Everything nRF52840:

    Is PineTime the best of the currently available nRF52 watch options?

    For this price It well may be. Anyway, for tinkering with nrf I guess it may be the best option.

    @scalz didn't see this one before. Strange choice of square display in round body. There are plenty round displays available on a market.
    I personally like more the approach Pine64 is taking - the lowest possible price and orientation on the opensource community to polish the product. With all the hype they are getting with PinePhone and PienBook Pro I believe they can make it all work.


  • Hardware Contributor

    @monte said in Everything nRF52840:

    maybe they will initially upgrade to 52840, I don't think it will be that hard, if they haven't produce large batch of this revision.

    well, imho switching to nrf52840 won't be a direct upgrade for them. 52840 has more pins, usb etc so not same pcb for sure, then software support (waiting after community for dev too ??). it will certainly be a new watch I think (if they are the designers of the pcb, no idea).
    Still, it is cheap for playing with nrf52832 so that's a good point.

    regarding the banglejs watch, yes it's too bad they chose a square display (this wastes some space).
    I don't have one of these yet, but considering to play with banglejs ecosystem at some point (for watch I would prefer, but that's my preference, to use BLE for more interactions with phone etc).
    In that case I will buy one at least (once it's back in stock) for supporting creator and his team.

    I have my opinion on hype and long term reality. Both pinetime and banglejs/nodewatch are opensource. You could for example use banglejs framework on any nrf52832 device/watch, with some coding of course (regarding pins mapping, sensors and peripherals), but that didn't look that hard when I looked at the code.

    I would prefer a better looking and more compact smartwatch, but for tinkering and playing they both seem fun.



  • @scalz said in Everything nRF52840:

    then software support

    Is there any particular changes in software that need to be done to migrate from 52832 to 52840? Or do you mean support for additional peripherals?


  • Hero Member

    It turns out that the very first solar powered watch, made by Seiko in 1969, had a side read display:
    alt text
    Though it gives up valuable display real estate, maybe that style would be easier to DIY in a form that wouldn't be too large to wear without embarrassment. I kinda like it myself: in theory I could check the time without having to turn my wrist.


  • Mod


  • Hero Member

    This guy had an interesting idea that could probably be improved upon:
    alt text
    To make the watch thinner he spread the parts over different links in the wristband.
    https://www.thingiverse.com/thing:718989


  • Hero Member

    @mfalkvidd Dave Jones reviewed that very watch and was fairly negative about it:
    EEVblog #945 - Thermal Powered Smartwatches Are GIMMICKS! – 29:53
    — EEVblog

    Even so, it looks as though they raised over two million dollars!


  • Mod

    @NeverDie I watched a vlog (unfortunately in Swedish) about it about a week ago. The owner had used it for two months without charging it and was very enthusiastic about it. He said he used it for getting notifications, so he must be using the bluetooth feature.

    Dave does have a point though that swapping the battery every 2-3 years isn't that cumbersome.

    On the other hand, the charging capabilities of the Toyota Prius might have been considered a gimmick when it was introduced in 1997, and today we have electric cars with fairly long range. Technology gets better, and must start somewhere.


  • Hero Member

    @mfalkvidd I'm impressed that they've pre-sold over ten thousand of them.

    Changing a watch battery isn't particularly easy, especially on a waterproof watch, because AFAIK doing so generally ruins the waterproofing seals. Dave Jones may have underestimated the hassle factor.

    Also, there's a watch that was made by the authors of "The art of electronics" that the authors say consumes just 1 microamp, and that was more than a decade ago.
    alt text
    So, bluetooth aside, a TEG should generate more than enough to run a watch like that. I don't doubt that at least some amount of bluetooth or ANT or some other kind of radio communications could be supported. Maybe not a lot, but at least something.

    It's easy to forget that the original consumer LED watches would light up only when you pressed a button, and yet they sold anyway. If you did it that way, then it should be easy, and it would leave more of a budget for the radio communications.


  • Hardware Contributor

    @NeverDie I think you are missing the point about the battery. Dave Jones was right as the energy produced by the watch over several years was similar to the one from a coin cell. And before those years pass we all know what happens to electronic devices: they get replaced. So the problem of battery change they pretended to fix was not a real "problem" as the product life is shorter than the battery life. It had very limited functionality and only manual synchronization with the smartphone, and a very basic app.

    It's probably a similar thing with the new version, solar panel increases the available power but it's still in the uA range and functionalities are very limited, the "full color" lcd has no backlight, GPS use must be limited to a few mins per day, same for heart rate monitoring etc. So in the end a watch with similar functions and a li-ion battery would be smaller, half the price and only need a charge every 6 months. 2h of charge twice a year is far from a constraint... In addition the battery powered watch would allow you to run constant heart rate monitoring, have long GPS sessions like 2 hours of running etc etc if you accept to charge more often.

    It's not as bad as before but it still feels like they made the watch because they needed a product to use the technology, and cut down the functionalities until power consumption was low enough to fit the technology. While it should be the opposite, technology should have been improved until it was able to power a smartwatch with "normal" functionalities.

    I'm pretty sure many users of the new version will end up removing the watch from their wrist to expose it to the sun, and that it will last way longer than the charging time of a typical smartwatch 😄


  • Hero Member

    @Nca78 Thanks! You said it better than Dave Jones did. 🙂 You've convinced me. 😄



  • I have read this thread, have bought a few E73-2G4M08S1C modules for experimenting, downloaded platformio and tried to flash it. I recognized I am not able to do it with my STM32 link V2 programmer in platformio. Could somebody summarize what are the current options to flash NRF52840? Is there a way how to use STM32 link V2 or we just need to IDE from Arduino to Platformio and invest into new programmer (DK/BMP)?


  • Hero Member

    @xmonika I like the nRF52840 SDK. It includes an official j-link and can also be used to burn software to any attached nRF52840 by simply dropping the hex file onto the j-link virtual drive. Of all the options, I find it the easiest, but that's me. Other people use and seem to like the st-link or or black magic probe or dodgy copies of the j-link or clones of black magic probe. Different people seem to like/prefer different things. I read that Particle now has a programming tool as well for its Xenon device, which is basically their version of the nRF52840, and I think I may have read that it works with non-Particle nRF52840's as well.

    There's also BLIP, which is new and sounds kinda interesting: https://www.crowdsupply.com/electronut-labs/blip



  • @scalz said in Everything nRF52840:

    @NeverDie I think you need to hold it, but it looks there is "coded" holes/slots for helping and correct positioning.

    You may want to use TC clip for long-time debugging or odd boards like this:

    fpcb-tc



  • @alowhum said in Everything nRF52840:

    To what extent Bluetooth has useful smart home profiles
    To what extent Arduino devices could present themselves as smart home devices using those profiles.

    Well, the BLE has a lot in common with REST. You have to have one or more central devices (clients) which will query peripherals with sensors and actuators (servers). Communication is P2P, but broadcasting is also supported to some extent (various beacons are well known examples).

    If thinking about it like a RESTful sevice, there is a number of API which were standardized. They call it profile, like in, for example, the Heart Rate Profile. The standard just assures that any heart rate monitoring device will talk the same protocol as any other one - that's it. I don't think there is many standard profiles for smart home devices (if any). At the same time, there is the Project Connected Home IP.

    Of course, there is nothing which may prevent somebody to implement his own interface. If it will be successful enough, it will be later possible to contact the SIG group and promote it to a standard.

    Please also note, that for serious boradcasting there is the Mesh. In a nutshell it works similarly to Ethernet switches. Interesting side effect is that it's possible to build a Mesh network physically wide thus delivering packets over long distances. Of course, if you want to go global, the IPv6 will be the right choice to go. It will require a standalone BLE enable router though - it will connect the devices to the Internet.

    To what extent older Bluetooth chips can work with newer device profiles (it would seem a software upgrade should be enough?)

    As long as they support Bluetooth Low Energy - i.e. version 4.2 or above.



  • @Nca78 said in Everything nRF52840:

    A very interesting project, too bad they are using NRF52832 and not NRF52840, the max SPI speed on ...32 is too low (8MHz) and I'm afraid the LCD refresh will be annoyingly slow

    It might be also interesting to employ the Sharp LS012B7DD06 which is a round 240x240 6-bit color memory display consuming 11 µW in static mode. It will be far away of the PineTime's $25, but with the CryptoCell, NFC and other stuff it might worth it.

    Shall we create a repo? 😉


  • Hero Member

    @Mishka

    The idea I settled on is using a micro-usb connector to make my programming connections. It's cheap and the footprint is small.

    I've posted about it previously, but it got a lot of pushback over the concern that people will think it's a functional usb and plug it into a charger. However, I won't be forgetting, so it hasn't been a problem for me. I suppose that if I were to hand a device over to a layman, I'd probably plug the connector with a drop of superglue (either that or simply de-solder it), since a layman wouldn't be programming it anyway.

    That said, micro-usb connectors aren't super-easy to solder, so I'd like to find something equally tiny that is.



  • @NeverDie For something which is very generic I'd vote for the Cortex 10 pin debug connector. It is as small as Micro USB, very cheap (you may also do not install the connector itself and left that for other users), versatile (may be angled or straight) and - what's very important - it is standard. And, while in this topic, the bonus: it's compatible out of the box with the nRF52 devkits.


  • Hero Member

    @Mishka said in Everything nRF52840:

    I'd vote for the Cortex 10 pin debug connector

    You mean like the connector on this?
    https://www.openhardware.io/view/510/Multi-Sensor-TempHumidityPIR-LeakMagnetLightAccel

    That's what I started with. But I really only need 5 pins: SWD, SWO, Tx, Rx, and GND, so 5 of the 10 pins are wasted.

    I went with the boxed connector, which is huge, to prevent plugging it in wrong. I probably should have gone with the non-boxed connector. Even so, it's still huge.

    I could probably get by with just 4 pins by dropping the Rx pin. Thinking back on it now, I don't think I ever actually used the Rx connection. I've definitely used the Tx though for serial print debugging.

    I think the easiest/best idea might be just using 4 castellated pads and pressing up against those with a side connector, similar to what TC's edge connector does or what an esp8266 burner does (but ideally with closer spacing):
    image url)



  • @NeverDie That's right. You may want to use open version which is much smaller indeed.

    Also, for nRF52 only three pins are required: SWDIO, SWDCLK, and VTref. All the three are very conveniently located in close proximity on pins 2, 4 and 1:

    CTX 10 pin

    Such, for a tiny custom board a 2x2 pin header, 1.27 pitch can be used w/o breaking compatibility.


  • Hero Member

    @Mishka How about this?
    https://www.amazon.com/CQRobot-Programmer-Testing-Support-Programmer/dp/B07BWFJL31

    Either 4 pads on one side or 2 pads on each side of the PCB. Very inexpensive. Not sure if they make a 4 pin clip, but if so, that would be ideal.

    Maybe if instead of pads you went for 4 through-holes it would even self-align?


  • Hero Member

    This is quite clever:
    Connectorless 1x6 mini ISP connector without Pogo pins – 00:15
    — Albert van Dalen

    If you simply stagger the through-holes then a regular block of header pins will fit through and hold itself in place. No pogo pins required.


  • Hardware Contributor

    @NeverDie said in Everything nRF52840:

    If you simply stagger the through-holes then a regular block of header pins will fit through and hold itself in place. No pogo pins required.

    I'm not so sure about the reliability of this ... It's not very difficult to make an adapter using pogo pins, you just need to use 2 similar pcbs to align them properly.

    Another option is to use smaller headers (2mm or better 1.27 mm) and an adapter from selected spacing to 2.54mm header: cheap and compact connector for the board, cheap adapter and reliable connection.
    For example on these adapters you can solder a SMD header on the 1.27mm spaced side and have 2.54mm connectors. You just need to have the opposite genre 1.27mm header on the board and you're done.
    https://www.aliexpress.com/item/32855731928.html



  • @NeverDie
    There is an article on hackaday about this type of clamp that even has a KiCAD footprint. I bought one of the clips, but haven't tried it out yet.
    https://hackaday.io/project/165917-soicbite-programmingdebug-connector-footprint

    I also tried this one from Adafruit;
    https://www.adafruit.com/product/4048
    small, jlink-mini compatible, and polarized.

    So far, my preferrred solution is a 6 pin jst-sh connector.
    small. 3v3, gnd, swdio, swclk, tx, rx
    and polarized.

    My old eyes get tired of confirming I have the pins on in the right direction. Polarization is really nice.


  • Hero Member

    @Nca78 Yup, I too would worry a bit about the long-term repeatability of the staggered pin approach: after you hook it up a few times, maybe the metal on the throughhole would have scraped off due to the friction fit?

    I was thinking that on an "as small as possible" type of board like on Mishka's current project that the castellated connection would have the smallest footprint. On a larger board where space doesn't matter, then, yeah, I would go for some kind of pinned connection. For instance, on my 10 year motion detector, the board size is huge due to just the batteries, so there is plenty of free space to plunk down a connector:

    https://www.openhardware.io/view/499/10-years-wireless-PIR-Sensor-on-just-one-set-of-3-AAs

    Yet, when it came to mount it in a case, that connector got in the way, and I had to redesign it to use the usb connector that everybody but me seemed to hate on the backside, fitted between the batteries. I suppose I could have used some kind of edge pin connector though if it were small enough.

    It would be fun to make a board the same dimensions as an esp8266 or esp32 or wroom module so that I could use one of the test/burner jigs that's designed for them to make the castellated edge connections.


  • Hero Member

    @nagelc said in Everything nRF52840:

    There is an article on hackaday about this type of clamp that even has a KiCAD footprint. I bought one of the clips, but haven't tried it out yet.
    https://hackaday.io/project/165917-soicbite-programmingdebug-connector-footprint

    I couldn't find where to buy that soic bite. Is it even for sale anymore?


  • Hero Member

    On the other hand, the JST-XSR connector might not be a bad way to go. At 0.6mm pitch, a 4 wire connector is just 3mm wide:
    http://www.jst-mfg.com/product/pdf/eng/eXSR.pdf?5e312adac5a05
    It's seems very hard to find for sale though.

    AFAIK, it's the smallest jst connector there is.



  • @NeverDie I don't think that SOICbite has ever been sold. It's just a conventional SOIC-8 test clip, that may need some modification, like filing away some of the plastic in front of the hinge or at the tip. I like the idea of this method because, apart from having a small footprint, they are super cheap (even less than 2 USD/EUR incl. shipping from China, like this one) and it doesn't require additional parts for every single PCB for a one-time job.

    I'm currently designing a PCB (not nRF52840-related though) with the SOICbite connector on it and have some clips on order, to see how well it works. Might take a while until I reveice them, but I can report back as soon as I tested them.



  • hey guys. I'm testing couple of nrf52840 modules. so far i was able to test raytac mdbt50q ipex and e73-2G4M08S1C modules with basic rssi value.
    61zUFSTi8PL.SX425.jpg 41p3AIcJ5nL.SX342.jpg so far ipex version looks abit better but at a cost of external cable and antenna where e73-2G4M08S1C is compact and difference is not that significant.
    i later saw fanstel products, particularly interested in BT840F model because reported range is significantly better than the BT840 model and the only difference is the antenna design between them.
    Capture.PNG BT840_F.jpg
    Considering this difference 840F might be way better than the e73-2G4M08S1C. Has anyone able to compare them or test them directly?


  • Hero Member

    @orhanyor I compared the Fanstel BT840F to the Ebyte with the trace antenna, and the Fanstel was better. I expect the trace anenna is better than the chip antenna on the module that you referred to, so by the transitive property of inequality, I expect the Fanstel would be better than it.



  • @NeverDie thanks for the reply i hope to try them in the future. Best option is definitely something like BT840X or another nrf52840 or 32 with PA/LNA module it needs to be implemented with a code. i found this https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/pa-lna-support-in-s132 in nordic forums but im not sure how it can be implemented into an arduino environment.
    I actually added this code to an arduino sketch and it compiled without an issue but I cant tell if it will work without having a module with PA.



  • @NeverDie also according to this post when TX/RX pins are defined softdevice handles them automatically. https://devzone.nordicsemi.com/f/nordic-q-a/40504/nrf52840-and-pa
    But if you have more control in your FEM like in BT840X with SKY66112 you need to control 2-3 more pins in your code. nRF24 modules mostly use RFX2401C its quite simple with only TX/RX pins and it works quite well may be it will pair nicely with nrf52 modules only if we could configure the code for arduino.



  • I also designed this 2 layer breakout board with a much bigger inverted F antenna design for the nrf52840, ive put BT840 to compare the antenna size. (still needs some touch ups here and there)
    Capture98.JPG
    bottom layer has a good ground layer for the antenna and i believe its going to perform better but just to be sure theres a SMA option for external antenna aswell which can be selected with the 0 ohm resistor.
    nordic specialist approved it and i will probably give it a try just to compare the antenna performance. My only concern is how hard soldering is going to be. if you noticed i removed the pins who are next to each other(i left some because they are mandatory like d+ - swclk etc..) and left the diagonal ones in order to reduce the chance of possible solder bridges. as you can see from the picture there are reports about solder bridges detected with expensive xray machines which i dont have 🙂 so, fewer the pin count less probability for failure.
    pastedimage1562114011660v1.png-640x480.png

    on the other hand ebyte nrf52840 e73 modules even with the bottom pads are really easy to solder without a probability to bridge anything and cause issues because bottom pad to pad distance is very generous, im really happy with that.
    IMG_3229.JPG


  • Hero Member

    @orhanyor Beautiful work, but how exactly do you manage to solder it? I wouldn't know how to even align it properly without some sort of jig to plunk the nRF52840 down. I'm not sure that even a surgeon at the top of his game would have the needed manual dexterity. There must be some tricks to doing this right that the module makers use. I'd think you'd have to get at least reasonably close in the first place for the surface tension of the melted lead to pull things into place.



  • @NeverDie soldering bottom/non visible parts needs at least some sort of reflow oven to make sure they melt and make connection. checking for bridges tho is impossible with microscope etc because they are under the chip. diagonal pin pitch is at around 0.55 and the ones on the same row are at 0.5 which is normal qfn package. if you can solder qfn package this is not a problem but the hardest thing is inability of inspection at hobbyist level 🙂
    aligning is very simple, you just need to have correct courtyard printed on the silk layer of the pcb for the chip/module so when you place the chip/module on to the pcb, it needs to sit exactly on top of the courtyard drawing on the silk layer then you know your pads are exactly where they need to be.
    sadly tho bigger parts like these modules cant benefit from the surface tension force is not enough to pull the weight but then again its very hard to misplace them especially the e73 module. raytac modules(blue one in the picture) are hard aswell they are like super tiny 🙂 heres how it is under the chip but it baked nicely and it works as expected.
    IMG_3199.jpg

    i hope to solder aQFN package aswell but im really not sure about that one :)) standard QFN with visible pads on the side is very nice i wish nrf52840 was like that.


  • Hero Member

    @orhanyor Ah, I see now.

    I wonder if you could use through-holes to gain access to the pads on the back of the module? I ended up doing that on one of my energy harvester boards to solder a ground pad that was on the back of a chip:
    https://www.openhardware.io/view/733/Buck-Energy-Harvester
    It worked, but it was a simpler case. In your case maybe you'd have to cut channels instead of holes.



  • @NeverDie yes that is definitely an option ive seen people do it with normal thru holes on those pads and it works. you might wanna pre tin the pads of the module and its good to go but good news for the E73(ebyte) module specifically none of the bottom pads are necessary for the module to work. they mapped every mandatory pin to the edge of the module which is very hobbyist friendly but of course you will have very few gpio pins to work with but still its very well thought by ebyte.
    i dont know when i will order the pcb for the nrf52840 but i will definitely report the result and the antenna performance 🙂 i also want to use this antenna for nrf24 but yea it is gonna have to wait not in a hurry atm.


  • Hero Member

    @orhanyor I'm very interested in your results. I think you may be the first to upgrade a module antenna. It might save a lot of money if cheaper modules can be used. Fanstells are pricey for their good antenna, so if your approach is just as good or even better...



  • @NeverDie price wise i think e73 modules are unbeatable they are 3.. dollar or something with the current discount in aliexpress. just for the nrf52840 Soc price in mouser is $5.5 which is still ok if theres going to be a noticeable difference in signal strength. considering much bigger ground plane and bigger antenna i expect better performance but need to test it 🙂 aside from the soc theres a low pass filter which is .30 and a crystal which is probably around .20-.30
    that blue raytac module was https://www.raytac.com/product/ins.php?index_id=24 8 or $9 which gave almost the same performance as the e73 so at that price point ive not tested it but BT840F($7) looks better and much easier to solder as the bottom pin pitch is whooping 1.5mm or so.. you can park a truck between those pins :))


  • Hero Member

    To free up this thread for its primary purpose, I just now started a new thread for anyone wanting to continue the wristwatch topic: https://forum.mysensors.org/topic/10917/wristwatches-that-invite-development



  • Today i thoroughly tested nrf52840 modules that i have(2 with ceramic antenna and 2 with ipex connector external antenna) all modules were set to max (+8 dBm) TX power and my observation was kinda disappointing. Setting up services, characteristics etc is fun and all but signal strength is disappointing. I tried ceramic to ceramic, ipex to ipex, ceramic to ipex and ipex to ceramic none of them stood out they gave the same performance. As soon as i put the module in a plastic container or theres more than 1 wall in between packets become unreliable and they just keep dropping, connection slows down etc it just doesnt have enough power whereas nrf24l01 with pa module is rocking even if theres like 10 brick walls in between its not even a competition. I dont think its an antenna problem because it doest get any better than ipex connector so the only option is to add some front end module. There are many options for FEM with different capabilities and functions but I will try to add RFX2401C because im familiar with it and its fairly simple. It is controlled with RX, TX pins but im not really sure how to implement it to a code.
    seems like softdevice has a support FEMs but its a question if its gonna work in arduino environment 🙂 Gotta try and see..

    https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/pa-lna-support-in-s132

    also in nordics front page you can see they released a FEM for nrf52 and nrf53's its called nRF21540
    quoting from the product page
    https://www.nordicsemi.com/News/2019/12/Nordic-samples-nRF21540-RF-Front-End-Module
    "The nRF21540 RF Front End Module is a range extender optimized to boost the link budget of Nordic’s nRF52 and nRF53 Series advanced multiprotocol wireless SoCs. When combined with an nRF52 Series SoC, the nRF21540 RF FEM’s +21 dBm TX output power and 13 dB RX gain ensure a superior link budget for up to 16x range extension"
    so that kinda proves my point connection is somewhat weak and it needs a FEM any kind to at least bump the power to around 20dBm and it will all be good and usable.
    And keep in mind nrf52840 has the most power of all with max +8dBm power, 52832 has 4 and their new workhorse dual processor nrf5340 comes with +3dBm power so probably thats why they are pushing nRF21540 forward to ensure best possible connection.


  • Hero Member

    @orhanyor Yes, that's been more or less my experience as well for modules without FEM and/or good antennas. At the very least you want a gateway with a good PA and LNA and antenna. At least for me the best module I tested was the Fanstel BT840X module, which unfortunately has a high price that hasn't come down, and it's not particularly small either. If you have a BT840X/BT840XE on both ends of the link, then you probably won't experience any meaningful connection issues in, say, a 4000sf house built using typical sticks and bricks construction, which is what I tested in.

    That's why for anything needing guaranteed good range where size doesn't matter, like a leak detector, I use inexpensive LoRa modules instead. In contrast, the area where nRF2840 really shines the most is in remote controls, because it can be configured to very efficiently listen for inbound packets using just battery power for a very long time and with no perceivable latency. Thats due to its tight integration with the mcu and shared memory and the nifty PLC, not to mention the 2mbps datarate. It'd be a lot harder to do that with LoRa, which has none of that.



  • @NeverDie Well BT840X has built in FEM SKY66112 if im not mistaken, thats why you are getting good results but how did you make it work in the code. Because for TX and RX you need to tell the NRF when to listen and when to transmit so the FEM can flip switches inside and work its magic.
    Tomorrow i will try a remote application where client transmits analog read data every 50ms and reports it to the peripheral device, i will put it in a plastic box and wrap my hand around it and see how many packets it will drop tho im really skeptical after today.


  • Hero Member

    @orhanyor said in Everything nRF52840:

    how did you make it work in the code

    IIRC, it's in the datasheet. It is your code which has to flip the switches before and after a Tx or Rx. The nRF52 itself doesn't know the FEM even exists. Think of it as an aftermarket bolt-on, which is what it really is.



  • @orhanyor Your breakout board from the E73 board looks really nice. Is this something you have for sale somewhere? Would you considering selling any extra bare pcbs?



  • @Jon-Raymond selling them was not my intention but i have around 8 bare pcbs and 2 built ones. i can fix you up with one of those if you want to or i can cook totally brand new one up to you.



  • @orhanyor I'd be interested in a couple bare pcbs as I have all the components. It would save me some time rolling my own and waiting for the Chinese pcb supply chain to sort itself out.



  • i just gave this pcb to a production, it has nrf52840 and pa/lna module, 3v3 LDO on it, practically a stand alone board with nrf52. i did not include a battery connector or charger because its for prototyping. i copied the front end part from my nrf24 modules so if i can solder it should work smoothly. tho this aQFN footprint looks very intimidating 🙂 some of the tracks and gaps are at the manufacturers design capability tolerance limits so lets see if they gonna accept it.
    Caapture.JPG



  • @orhanyor Yes that aQFN footprint does look daunting. Do you have a special paste layer for the center pad that limits the paste? I've seen issues where too much paste on the ground pad will actually float the chip off the pin connections.



  • @orhanyor AFAIU you're going to solder it manually, right? Will you use stencil or are you going to presoak pads? For the stencil it might be also reasonable to order a custom PCB pallet which may help to precisely align the board to the stencil. Similarly, another pallet may help to place the chip right into the center. It will be very interesting to hear from you how it went. Wish you best of luck!

    I've ordered some boards with nRF52840/nRF52833, but also had to ask for assembly for exactly this reason. The PCBWay did machine soldering of the aQFN chip, and the rest were soldered manually.

    By the way, the PCB price were raised two times: first, for 5 mil tolerance (the board uses NFC so I was unable to route antenna differently), and second, for ENIG finish because of the aQFN-73 package (the factory insisted on it in order to avoid soldering issues). I still have no room for the RESET, but perhaps I need to go your way and drop some unnecessary pins - that's nice idea.



  • @Jon-Raymond exactly too much in the middle will raise it and bam you have a failed board 🙂
    @Mishka its a wise choice to ask for assembly because of the reasons you mentioned. ENIG is kinda mentioned everywhere for this aQFN footprint otherwise surface might not be even for every single pin and it will result in failed soldering BUT i still went with HASL just to prove them wrong :))
    capped via service is expensive so i just went through every single pin to examine and decide if i really need it or is it necessary for it to work and spaced them out as much as i can. i still got plenty, 3 analog pins, 9 high speed digital pins and rest is low frequency pins which are not recommended for high speed operations. it can interfere with the bluetooth signal. nordic specialist approved the design so if everything goes well it should work.
    my only worry was the at the bottom side XC1 XC2 pins you can see they are really close to each other i think it was 5 mil but still it was in the capabilities so it went through. i ll see how it goes its gonna be interesting.
    and yes i use stencil and a reflow oven.
    how do you like the antenna performance of the nrf52840? sadly it doesnt meet my requirements so im trying this pa lna method to see if i can make it work.



  • @orhanyor said in Everything nRF52840:

    BUT i still went with HASL just to prove them wrong :))

    I'll be not too wrong if say that literally everybody out there is waiting for the result 🙂

    capped via service is expensive so i just went through every single pin to examine and decide if i really need it or is it necessary for it to work and spaced them out as much as i can...
    nordic specialist approved the design so if everything goes well it should work.

    Yeah, HDI is too expensive for small batches. I'm just wondering how Adafruit managed to make those boards at that price. As to me the only reasonable explanation is that they produce thousands of them.

    my only worry was the at the bottom side XC1 XC2 pins you can see they are really close to each other i think it was 5 mil but still it was in the capabilities so it went through. i ll see how it goes its gonna be interesting.

    You might want drop the P0.26 GPIO I think.

    how do you like the antenna performance of the nrf52840? sadly it doesnt meet my requirements so im trying this pa lna method to see if i can make it work.

    IMHO the SoC itself is fantastic. Unfortunately, so far the only boards I have on hands are a couple of those E73 by CDEBYTE - just received them few days ago, but still had no time for them. Also, a number of nrf52833 based Raybeacons are stuck in fabrication. They're not about long range though - the board has low-performance zero clearance antenna.

    The built-in 8dBm TX amplifier is a great add-on. It comes at cost of higher current consumption, of course, so it's subject of proper battery selection for the application. An external 20dBm amplifier may require up to 150mA which will drain battery like a hog. IMHO for the cases when you need it really long a directional antenna is must.

    On the other hand, if you have to have good coverage in the center of a building it might be reasonable to stick with an amplifier. But while you're waiting for the boards, I'd suggest to give a second try to your IPEX modules with this simple DIY biquad antenna: https://martybugs.net/wireless/biquad/. It's very easy to build and promises to add more than 10dBi to your link budget. I remember I used it to feed a pair of 1m dishes (i.e. about +25dBi more) for long range wifi - worked like a charm.

    Another interesting option might be a phased array antenna. The active array will add up about 10-15dBi which is perfectly aligned to peer direction. Not sure will it be any affordable though. A passive array might be much easier to implement in PCB, but you have to align it manually.



  • @Mishka i was looking at that long range support of nrf52840 by lowering the data rate to 500kbps or 125 kbps you gain a significant amount of range like 4 fold but it requires a coded PHY which is not available in arduino environment at least not that i know of. adafruit marked it in their to do list but know knows when they gonna implement it probably thats why nrf24's make a significant difference in signal strength when you lower the data rate to 250kbps.
    Yes that amplifier draws quite abit of current i think it was up to 350ma when tx is on but ofc it is not on all the time so but still its not for everyone.
    i will look into that antenna you mentioned while im waiting for the pcbs thank you for the suggestion!
    antenna that i used in the pcb is this one: i read its better than chip antennas but ofc at a much bigger footprint
    http://www.ti.com/lit/an/swru120d/swru120d.pdf


  • Hardware Contributor

    @orhanyor I can confirm this pcb antenna works well. I used it with 52832 a while ago. You'll certainly need to tune it to get the exact target freq though, usually to do on each new pcb design&shape (so it's not shifted too much compared to your others nodes), but it's a good antenna, easy to use, resistant to detuning. This is the recommended ant by TI for 2.4ghz.
    Here I just have one bt840xe on custom gw (dual band gw, using BLE for 2.4ghz) with good external ant, it has very good range. I didn't design the 52840+PA because I preferred to have ce/fcc for PA, and for one device only, it wasn't worth the shot. For others nodes, I don't need PA, or prefer mysensors subghz for very long range.
    For a devboard, this looks nice, but depending on the target application and sensitive sensors etc, maybe adding an rf shield could help in some cases, especially as you're planning to use a power amplifier. Spectrum analyzer (or a vna) can help to check this (bad rf emissions too, passive filtering can help) and optimize range.

    good luck for your soldering 🙂



  • @scalz thanks for the input, ive seen they tune it by cutting a length from the longer end but in order to do that i need equipment which i dont have so its going to be a hit or miss 🙂 if it doesnt work well i can use SMA antenna but i think thats the least of my worries with that pcb. I like to experiment and see for myself so even if its wasted its ok 🙂



  • So, 8dBm built-in, plus 20dBm PA, plus 12dBi for the feedhorn, plus 20dBi for the dish. Add the coded PHY on top of this. Does anybody want to set a record? 😃



  • In a meanwhile, here is the nRF52840 range test with Johanson 2450AT18D0100 chip-antenna and SAFFB2G45MA0F0A 1dB attenuator
    the nRF9160 range test: https://www.youtube.com/watch?v=p1_0OAlTcuY (spoiler - 14 km).


  • Hardware Contributor

    @Mishka said in Everything nRF52840:

    In a meanwhile, here is the nRF52840 range test with Johanson 2450AT18D0100 chip-antenna and SAFFB2G45MA0F0A 1dB attenuator: https://www.youtube.com/watch?v=p1_0OAlTcuY (spoiler - 14 km).

    typo?? from the video, it seems to be nRF9160



  • @scalz No. The nRF9160 DK has nRF52840 on board.


Log in to reply
 

Suggested Topics

  • 87
  • 7
  • 6
  • 10
  • 1
  • 2

0
Online

11.4k
Users

11.1k
Topics

112.7k
Posts